/* ============ Base ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-tint: #fafbfc;
  --line: #e7e8ec;
  --line-strong: #d4d6dc;
  --ink: #0a0b0d;
  --ink-2: #2a2c31;
  --muted: #6b6e76;
  --muted-2: #9b9ea6;
  --graphite: #161719;
  --graphite-2: #232428;
  --accent: #2657ff;          /* electric blue */
  --accent-2: #5e82ff;
  --accent-glow: rgba(38, 87, 255, 0.18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-card: 0 1px 0 rgba(10,11,13,0.04), 0 10px 30px -12px rgba(10,11,13,0.08);
  --shadow-elev: 0 30px 80px -30px rgba(10,11,13,0.25);
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: 'ss01','cv11','cv02';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.4;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Typography ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; font-weight: 600; line-height: 1.05; }
h1 { font-size: clamp(40px, 6.5vw, 96px); font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.2vw, 64px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.02em; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.4vw, 20px); color: var(--muted); line-height: 1.5; }

.kbd-num {
  font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(10,11,13,0.4);
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 14px 40px -10px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 13px; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-svg {
  color: var(--ink);
  transition: opacity 0.2s;
}
.logo-svg:hover { opacity: 0.7; }
.nav-links {
  display: flex; gap: 4px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.nav-links a {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-links a:hover { background: #fff; color: #0a0b0d; }
.dark .nav-links a:hover { background: #fff; color: #0a0b0d; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-switch button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-switch button.active { background: var(--ink); color: #fff; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 140px 0 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(38,87,255,0.06), transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(38,87,255,0.04), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,11,13,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,11,13,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text { max-width: 620px; }
.hero h1 { margin-top: 24px; }
.hero h1 .accent {
  background: linear-gradient(180deg, var(--accent) 0%, #1a3eb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}
.hero .sub { color: var(--muted); margin-top: 24px; max-width: 480px; font-size: 18px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  max-width: 520px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat .num {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

.hero-3d {
  position: relative;
  height: 620px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-3d .corner {
  position: absolute;
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-3d .corner.tl { top: 20px; left: 20px; }
.hero-3d .corner.tr { top: 20px; right: 20px; display: flex; align-items: center; gap: 6px; }
.hero-3d .corner.bl { bottom: 20px; left: 20px; }
.hero-3d .corner.br { bottom: 20px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.hero-3d .hint {
  position: absolute;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Marquee under hero */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  background: #fff;
}
.marquee-track {
  display: flex;
  gap: 56px;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-item .sep {
  width: 6px; height: 6px; background: var(--line-strong); border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Section base ============ */
section.block { padding: 120px 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .right { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 460px; justify-self: end; }

/* ============ Advantages ============ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.adv-card {
  grid-column: span 4;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.adv-card:hover { transform: translateY(-4px); background: #fff; border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.adv-card.feature { grid-column: span 6; background: var(--graphite); color: #fff; border-color: var(--graphite-2); }
.adv-card.feature .adv-icon { background: rgba(255,255,255,0.08); color: var(--accent-2); }
.adv-card.feature .adv-desc { color: rgba(255,255,255,0.6); }
.adv-card.wide { grid-column: span 8; }
.adv-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
}
.adv-card.feature .adv-icon { border-color: transparent; }
.adv-icon svg { width: 22px; height: 22px; }
.adv-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-top: 24px; line-height: 1.15; }
.adv-desc { color: var(--muted); margin-top: 10px; font-size: 14px; line-height: 1.5; }
.adv-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted-2); position: absolute; top: 24px; right: 28px; letter-spacing: 0.1em; }

.adv-card.feature .visual-precision {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 280px; height: 280px;
  border: 1px solid rgba(94,130,255,0.3);
  border-radius: 50%;
  pointer-events: none;
}
.adv-card.feature .visual-precision::before,
.adv-card.feature .visual-precision::after {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(94,130,255,0.2);
  border-radius: 50%;
}
.adv-card.feature .visual-precision::after { inset: 60px; }

/* ============ How it works ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.step:hover { border-color: var(--ink); transform: translateY(-3px); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.12em;
}
.step-title { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-top: 60px; }
.step-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 12px; }
.step-icon {
  position: absolute;
  top: 32px; right: 32px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}

/* ============ Catalog (horizontal scroll) ============ */
.catalog-wrap { overflow: hidden; position: relative; }
.catalog-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
  padding: 0 32px;
  max-width: var(--maxw);
  margin-left: auto; margin-right: auto;
  gap: 40px;
}
.catalog-head h2 { max-width: 600px; }
.catalog-nav { display: flex; gap: 8px; align-items: center; }
.catalog-nav button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.catalog-nav button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog-nav button:disabled { opacity: 0.3; cursor: default; }
.catalog-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  min-width: 60px;
  text-align: center;
}

.catalog-track {
  display: flex;
  gap: 16px;
  padding: 8px 32px 40px;
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.product {
  flex: 0 0 360px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 540px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: flex-basis 0.7s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}
.product.active {
  flex: 0 0 640px;
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-elev);
}
.product-tag {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
.product-tag.new { background: var(--accent); }
.product-tag.bestseller { background: var(--ink); }
.product-image {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #f0f1f4 100%);
  display: grid; place-items: center;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.product.active .product-image { height: 280px; }
.product-image::after {
  content: '';
  position: absolute;
  bottom: -40%; left: 10%; right: 10%; height: 80%;
  background: radial-gradient(ellipse at center top, rgba(10,11,13,0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.product-image svg { position: relative; z-index: 2; max-width: 70%; max-height: 80%; }
.product-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  z-index: 2;
}

.product-name { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.product.active .product-name { font-size: 32px; }
.product-cat { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.product-price {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}
.product-price .unit { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }

.product-specs {
  display: none;
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 0;
}
.product.active .product-specs { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding-right: 12px; }
.spec .lbl { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.spec .val { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }

.product-actions {
  display: none;
  gap: 8px;
  margin-top: 16px;
}
.product.active .product-actions { display: flex; }
.product-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: auto;
}
.product-cta-collapsed {
  font-size: 12px;
  color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.product.active .product-cta-collapsed { display: none; }

/* ============ Cases ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.case {
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 260px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.case:hover { transform: translateY(-4px); border-color: var(--ink); }
.case-1 { grid-column: span 5; background: var(--graphite); color: #fff; border-color: var(--graphite-2); }
.case-2 { grid-column: span 4; }
.case-3 { grid-column: span 3; }
.case-4 { grid-column: span 4; }
.case-5 { grid-column: span 8; background: var(--bg-soft); }
.case-name { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.case-desc { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; max-width: 280px; }
.case-1 .case-desc { color: rgba(255,255,255,0.55); }
.case-tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.case-1 .case-tag { color: rgba(255,255,255,0.45); }

.case-visual {
  position: absolute;
  inset: auto -20px -20px auto;
  width: 200px; height: 140px;
  pointer-events: none;
  opacity: 0.9;
}

/* ============ CTA block ============ */
.cta-block {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(38,87,255,0.35), transparent 60%);
  pointer-events: none;
}
.cta-block-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-block h2 { color: #fff; }
.cta-block .lead { color: rgba(255,255,255,0.6); margin-top: 20px; max-width: 480px; }
.cta-block .btn-primary { background: #fff; color: var(--ink); }
.cta-block .btn-primary:hover { background: var(--accent); color: #fff; }
.cta-block .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-block .btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.5); }

/* ============ Form ============ */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.form-info h2 { max-width: 480px; }
.form-info .lead { margin-top: 24px; max-width: 460px; }
.form-bullets { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.form-bullet { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.form-bullet .check {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  border-radius: 50%;
}
.form-bullet .check svg { width: 12px; height: 12px; }

.form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 18px; position: relative; }
.form-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.form-input {
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
}
.form-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(10,11,13,0.05); }
.form-input::placeholder { color: var(--muted-2); }
.form .btn { width: 100%; justify-content: center; padding: 18px; margin-top: 8px; }
.form-foot { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; line-height: 1.5; }
.form-foot a { text-decoration: underline; text-underline-offset: 3px; }

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success .icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
}
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); margin-top: 10px; }

/* ============ Footer ============ */
.footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 24px; }
.footer-about { color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-social a:hover { background: #fff; color: var(--graphite); border-color: #fff; }

/* ============ Dark Mode ============ */
.dark {
  color-scheme: dark;
  --bg: #0c0d0f;
  --bg-soft: #131416;
  --bg-tint: #0f1012;
  --line: #1e2126;
  --line-strong: #2a2d35;
  --ink: #edeef1;
  --ink-2: #c4c7cd;
  --graphite: #1a1c1f;
  --graphite-2: #242628;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03), 0 10px 30px -12px rgba(0,0,0,0.5);
  --shadow-elev: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.dark body { background: var(--bg); color: var(--ink); }
.dark .nav.scrolled {
  background: rgba(12,13,15,0.88);
  border-bottom-color: var(--line);
}
.dark .hero::before {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(38,87,255,0.1), transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(38,87,255,0.06), transparent 60%);
}
.dark .step { background: var(--bg-soft); }
.dark .case { background: var(--bg-soft); border-color: var(--line); }
.dark .case-1 { background: var(--graphite); }
.dark .case-5 { background: var(--bg-tint); }
.dark .product-image {
  background: linear-gradient(135deg, #1a1c1f 0%, #111315 100%);
  border-color: var(--line);
}
.dark .hero-3d {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-color: var(--line);
}
.dark .form-input {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}
.dark .form { background: var(--bg-soft); border-color: var(--line); }
.dark .mobile-nav { background: rgba(12,13,15,0.97); }
.dark .mobile-nav-link { color: var(--ink); border-bottom-color: var(--line); }
.dark .nav-links a { color: var(--ink); }
.dark .nav-links { background: var(--bg-soft); border-color: var(--line); }
.dark .lang-switch { background: var(--bg-soft); border-color: var(--line); }
.dark .marquee { background: var(--bg); }

/* --- Buttons: dark text on light (--ink) background --- */
.dark .btn-primary { color: var(--bg); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2); }
.dark .btn-primary:hover { color: #fff; }
.dark .btn-ghost:hover { color: var(--bg); }

/* --- Adv cards: don't flash white on hover --- */
.dark .adv-card:hover { background: var(--bg-tint); border-color: var(--line-strong); box-shadow: none; }

/* --- CTA block: light bg now needs dark text --- */
.dark .cta-block { color: var(--bg); }
.dark .cta-block h2 { color: var(--bg); }
.dark .cta-block .lead { color: rgba(10,11,13,0.58); }
.dark .cta-block .eyebrow { color: rgba(10,11,13,0.5); }
.dark .cta-block .btn-primary { background: var(--bg); color: var(--ink); }
.dark .cta-block .btn-primary:hover { background: var(--accent); color: #fff; }
.dark .cta-block .btn-ghost { color: rgba(10,11,13,0.7); border-color: rgba(10,11,13,0.22); }
.dark .cta-block .btn-ghost:hover { background: rgba(10,11,13,0.08); color: rgba(10,11,13,0.9); border-color: rgba(10,11,13,0.35); }

/* --- Form bullet check icon --- */
.dark .form-bullet .check { color: var(--bg); }

/* --- Lang switch active pill --- */
.dark .lang-switch button.active { color: var(--bg); }

/* --- Adv icon container --- */
.dark .adv-icon { background: var(--bg-soft); border-color: var(--line); }
.dark .adv-card.feature .adv-icon { background: rgba(255,255,255,0.08); border-color: transparent; }

/* --- Catalog active product card --- */
.dark .product { background: var(--bg-soft); border-color: var(--line); }
.dark .product.active { background: var(--bg-tint); border-color: var(--line-strong); }
.dark .product-specs { border-top-color: var(--line); }
.dark .product-image { border-color: var(--line); }

/* ============ Mobile Menu ============ */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  flex-shrink: 0;
}
.burger-line {
  width: 18px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s, width 0.3s var(--ease);
}
.burger.open .burger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; width: 0; }
.burger.open .burger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  flex-direction: column;
  padding: 96px 28px 48px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; animation: mobileNavIn 0.35s var(--ease); }
@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-link {
  display: block;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.mobile-nav-link:active { color: var(--accent); }
.mobile-nav-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav-footer .btn { width: 100%; justify-content: center; }
.mobile-nav-lang {
  display: flex;
  justify-content: center;
}

/* ============ Reveal animations ============ */
/* Без JS — всё видно сразу. Анимация включается только после установки .js-ready на <html>. */
.js-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-ready .reveal.in { opacity: 1; transform: none; }
.js-ready .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-ready .reveal-stagger.in > * { opacity: 1; transform: none; }
.js-ready .reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.js-ready .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.js-ready .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.js-ready .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.js-ready .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.js-ready .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal, .js-ready .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-3d { height: 480px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .right { justify-self: start; }
  .adv-grid > * { grid-column: span 6 !important; }
  .case-1, .case-2, .case-3, .case-4, .case-5 { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Base */
  .container { padding: 0 20px; }
  section.block { padding: 72px 0; }

  /* Nav */
  .nav { padding: 12px 0; }
  .nav-links { display: none; }
  .nav-right .btn-sm { display: none; }
  .burger { display: flex; }

  /* Hero */
  .hero { padding: 90px 0 48px; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(34px, 10vw, 52px); margin-top: 14px; }
  .hero .sub { font-size: 16px; margin-top: 16px; }
  .hero-ctas { flex-direction: column; gap: 10px; margin-top: 28px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-3d { height: 300px; border-radius: var(--radius-lg); }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 32px;
    padding-top: 20px;
  }
  .hero-stats .stat .num { font-size: 20px; }
  .hero-stats .stat .lbl { font-size: 10px; letter-spacing: 0.05em; }

  /* Advantages */
  .adv-grid > * { grid-column: span 12 !important; min-height: 200px; padding: 24px; }
  .adv-title { font-size: 20px; margin-top: 18px; }
  .adv-card.feature .visual-precision { width: 200px; height: 200px; }

  /* How it works */
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { min-height: 200px; padding: 24px; }
  .step-title { font-size: 22px; margin-top: 40px; }

  /* Catalog */
  .catalog-head {
    padding: 0 20px;
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }
  .catalog-track { padding: 8px 20px 36px; gap: 12px; }
  .product { flex: 0 0 calc(85vw); height: auto; min-height: 380px; }
  .product.active { flex: 0 0 calc(90vw); }
  .product-image { height: 190px; }
  .product.active .product-image { height: 220px; }
  .product.active .product-specs { grid-template-columns: repeat(2, 1fr); }
  .product.active .product-name { font-size: 26px; }
  .product-actions { flex-direction: column; gap: 8px; }
  .product-actions .btn { width: 100%; justify-content: center; }
  .product-bottom { margin-top: 16px; }

  /* Cases */
  .cases-grid > * { grid-column: span 12; min-height: 190px; }
  .case-name { font-size: 22px; }

  /* CTA */
  .cta-block { padding: 44px 24px; border-radius: var(--radius-lg); }
  .cta-block-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-block h2 { font-size: clamp(26px, 8vw, 40px); }
  .cta-block-grid > div:last-child { display: flex; flex-direction: column; gap: 10px; }
  .cta-block-grid > div:last-child .btn { width: 100%; justify-content: center; }

  /* Form */
  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .form { padding: 24px; }
  .form .btn { padding: 16px; }

  /* Footer */
  .footer { padding: 56px 0 24px; margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-about { font-size: 13px; }

  /* Section head */
  .section-head { margin-bottom: 40px; }
  .section-head .right { font-size: 15px; }
}

@media (max-width: 480px) {
  /* Base */
  .container { padding: 0 16px; }
  section.block { padding: 60px 0; }

  /* Hero */
  .hero { padding: 84px 0 40px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero .sub { font-size: 15px; }
  .hero-3d { height: 260px; }
  .hero-stats { gap: 8px; margin-top: 24px; }
  .hero-stats .stat .num { font-size: 17px; }
  .hero-stats .stat .lbl { font-size: 9px; letter-spacing: 0.03em; }

  /* Catalog */
  .catalog-track { padding: 8px 16px 32px; }
  .product { flex: 0 0 calc(88vw); }
  .product.active { flex: 0 0 calc(92vw); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* CTA */
  .cta-block { padding: 36px 20px; }

  /* Form */
  .form { padding: 20px; }

  /* Typography */
  h2 { font-size: clamp(24px, 7.5vw, 40px); }
}
