@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --primary: #3b82f6;
  --accent: #0ea5e9;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --glass: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --btn-text-color: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }

/* Typography */
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem 0; line-height: 1.2; }
h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; font-weight: 700; }
a { text-decoration: none; color: inherit; }
p { margin: 0 0 1rem 0; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-subtitle { text-align: center; font-size: 1.25rem; color: var(--muted); margin-bottom: 30px; max-width: 800px; margin-left: auto; margin-right: auto; }
.video-caption { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 10px; margin-bottom: 30px; font-style: italic; }

.products-video-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 15px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  background: var(--glass);
}

.products-video {
  width: 100%;
  height: auto;
  display: block;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* Cards */
.card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: var(--glass-shadow); }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-info { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.product-info h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--text); }
.product-info p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }

.product-spoiler { margin-top: 10px; margin-bottom: 20px; width: 100%; }
.product-spoiler summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; list-style: none; transition: color 0.2s; }
.product-spoiler summary:hover { color: var(--accent); }
.product-spoiler summary::-webkit-details-marker { display: none; }
.product-spoiler ol { text-align: left; padding-left: 20px; margin-bottom: 16px; color: var(--muted); font-size: 0.9rem; }
.product-spoiler li { margin-bottom: 4px; }

/* Trust Items */
.trust { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-item strong { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 5px; }
.trust-item span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-actions .btn {
  padding: 14px 36px;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-actions .btn-primary {
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}
.hero-actions .btn-primary:hover {
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
  transform: translateY(-3px);
}



/* Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--glass); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); padding: 15px 0; transition: transform 0.3s; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 50px; width: auto; object-fit: contain; }
.logo span { color: var(--primary); }

.nav-desktop { display: flex; gap: 30px; align-items: center; }
.nav-desktop a { font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.2s; }
.nav-desktop a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 12px; font-weight: 600; transition: all 0.2s; cursor: pointer; border: none; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6); }
.btn-secondary { background: var(--glass); border: 1px solid var(--glass-border); color: var(--btn-text-color); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.btn-outline { border: 1px solid var(--primary); color: var(--btn-text-color); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-small { padding: 8px 16px; font-size: 0.85rem; }

/* Mobile Menu Toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; z-index: 1002; position: relative; padding: 0; }
.nav-toggle svg { width: 28px; height: 28px; }

/* Mobile Menu Overlay (Optional, if needed later) */
.mobile-overlay { display: none; }

/* Theme Toggle */
.theme-toggle { background: none; border: none; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 50%; transition: color 0.2s, background 0.2s; display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { color: var(--primary); background: rgba(255,255,255,0.05); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
[data-theme="light"] { --bg: #f8fafc; --panel: #ffffff; --text: #0f172a; --muted: #64748b; --border: #e2e8f0; --glass: rgba(255, 255, 255, 0.8); --glass-border: rgba(0, 0, 0, 0.05); --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --btn-text-color: #0f172a; }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
.theme-toggle-mobile { display: none; }
.phone-desktop { display: inline-block; }
.phone-mobile { display: none; }

/* Responsive Header */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .theme-toggle-desktop { display: none; }
  .theme-toggle-mobile { display: block; }
  .phone-desktop { display: none; }
  .phone-mobile { display: inline-block; }

  .nav-desktop {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1001;
    gap: 20px;
  }

  .nav-desktop.open { transform: translateX(0); }

  .nav-desktop a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    width: 100%;
    display: block;
    padding: 10px 0;
  }
  
  .logo { height: 28px; }
  
  .hero h1 { font-size: 2.5rem; white-space: normal; overflow-wrap: break-word; hyphens: manual; }
  .hero p { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
}

/* Hero */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 0; padding-top: 60px; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; z-index: -1; }
.hero-content { text-align: center; max-width: 800px; position: relative; z-index: 1; padding: 0 20px; }
.hero h1 { margin-bottom: 20px; text-shadow: 0 20px 40px rgba(0,0,0,0.5); color: #ffffff; opacity: 1; overflow-wrap: break-word; word-wrap: break-word; white-space: normal; hyphens: manual; }
.hero p { font-size: 1.25rem; color: #ffffff; margin-bottom: 40px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); opacity: 1; }

/* USP List */
.usp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 40px 0;
}
@media (max-width: 900px) {
  .usp {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
.usp li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--glass);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  font-size: 0.95rem;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease;
}
.usp li:hover {
  transform: translateY(-3px);
}
.usp li svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* Scroll Width Animation (Removed due to wrapping issues) */
/* .scroll-width { ... } */

/* Swiper / Portfolio */
.swiper { width: 100%; padding-bottom: 50px; }
.swiper-slide { background: var(--glass); border-radius: 20px; border: 1px solid var(--glass-border); overflow: hidden; transition: transform 0.3s; height: auto; }
.project-card img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s; cursor: pointer; }
.project-card:hover img { transform: scale(1.05); }
.project-info { padding: 25px; }
.project-info h3 { margin-bottom: 10px; font-size: 1.5rem; }
.project-tags { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.tag { font-size: 0.75rem; padding: 4px 10px; background: rgba(59, 130, 246, 0.1); color: var(--primary); border-radius: 20px; font-weight: 600; border: 1px solid rgba(59, 130, 246, 0.2); }
.highlight-text { color: var(--primary); font-weight: 600; text-shadow: 0 0 20px rgba(0, 198, 255, 0.3); }

/* Process / Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.steps li { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; position: relative; display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s ease; box-shadow: var(--glass-shadow); }
.steps li:hover { transform: translateY(-5px); }
.step-number { font-size: 3rem; font-weight: 800; color: var(--primary); opacity: 0.2; position: absolute; top: 10px; right: 20px; line-height: 1; }
.steps strong { font-size: 1.2rem; color: var(--text); }
.steps span { color: var(--muted); font-size: 0.95rem; }

/* Forms & Footer */
.form { background: var(--glass); padding: 40px; border-radius: 24px; border: 1px solid var(--glass-border); max-width: 600px; margin: 0 auto; box-shadow: var(--glass-shadow); }
.form-row { margin-bottom: 24px; }
.form label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; color: var(--text); }
.form-input, .form input, .form textarea, .form select { width: 100%; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.7); font-family: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus, .form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(42,95,184,0.1); }
.form-error { display: none; background: rgba(220, 38, 38, 0.1); color: #dc2626; padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; border: 1px solid rgba(220, 38, 38, 0.2); }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 16px; text-align: center; }
.form-container { max-width: 600px; margin: 0 auto; }
.form-container.review { margin-top: 60px; }
.form-btn { width: 100%; margin-top: 10px; }


/* Footer Styles */
.site-footer { background: var(--panel); border-top: 1px solid var(--border); padding: 80px 0 40px; font-size: 0.95rem; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.footer-info { display: flex; flex-direction: column; gap: 20px; }
.footer-brand { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.copyright { color: var(--muted); margin: 0; }
.privacy-policy { color: var(--primary); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s; display: inline-block; }
.privacy-policy:hover { color: var(--accent); }

.footer-requisites h4 { color: var(--text); font-size: 1.2rem; margin-bottom: 24px; }
.req-item { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.req-label { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.req-value { color: var(--text); font-size: 1rem; font-weight: 500; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 40px; }
  .footer-info { align-items: flex-start; }
  .req-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Testimonials */
.testimonials .card { padding: 30px; }
.testimonials blockquote { margin: 0; display: flex; flex-direction: column; height: 100%; }
.testimonials p { font-style: italic; color: var(--text); flex-grow: 1; margin-bottom: 20px; }
.customer cite { font-style: normal; font-weight: 600; color: var(--primary); font-size: 0.9rem; }

/* FAQ */
.faq details { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.2s; }
.faq summary { padding: 20px; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 400; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq-content { padding: 0 20px 20px; color: var(--muted); font-size: 0.95rem; }

/* Map */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px; }
.contacts p { font-size: 1.1rem; margin-bottom: 15px; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.contacts strong { color: var(--primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contacts a { transition: color 0.2s; }
.contacts a:hover { color: var(--primary); }

.contact-actions { display: flex; gap: 16px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.map-widget { margin-top: 40px; height: 400px; width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); position: relative; }
.map-frame { width: 100%; height: 100%; border: none; }
.map-credit { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Floating CTA */
.floating-cta { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(42,95,184,0.4); z-index: 900; transition: transform 0.3s ease, opacity 0.3s ease; opacity: 0; pointer-events: none; }
.floating-cta:hover { transform: scale(1.1); }
.floating-cta svg { width: 28px; height: 28px; }

/* Lightbox */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(10px); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
.lightbox-image { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; transition: color 0.2s; z-index: 2001; }
.lightbox-close:hover { color: var(--primary); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.7); font-size: 40px; cursor: pointer; padding: 20px; transition: color 0.2s; user-select: none; }
.lightbox-prev:hover, .lightbox-next:hover { color: #fff; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Feature boxes in About */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.feature { background: var(--glass); padding: 20px; border-radius: 12px; border: 1px solid var(--glass-border); text-align: center; }
.feature strong { display: block; font-size: 1.5rem; color: var(--primary); margin-bottom: 5px; }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-30px); }
.reveal-left.in-view { transform: translateX(0); }
.reveal-right { transform: translateX(30px); }
.reveal-right.in-view { transform: translateX(0); }
.reveal-scale { transform: scale(0.9); }
.reveal-scale.in-view { transform: scale(1); }

/* Utilities & Helpers */
.text-center { text-align: center; }
.mb-24 { margin-bottom: 24px; }
.certificates-container { max-width: 600px; margin: 24px auto 0; }
.certificate-content { padding: 16px; text-align: center; }
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 5px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
