/* ============================================================
   ИнтеллектКАЗС — Design System (Apple-frost tokens)
   "Белый зал с одним синим выключателем"
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* — Blues: one colour, one job — */
  --apple-blue:  #0071e3;   /* button fill / selected only */
  --link-blue:   #0066cc;   /* outline buttons / inline links */
  --signal-blue: #2997ff;   /* decor only: frames, strokes, accent words */

  /* — Neutrals — */
  --carbon: #1d1d1f;
  --frost:  #f5f5f7;
  --ice:    #f4f8fb;
  --smoke:  #333333;
  --ash:    #707070;
  --mist:   #858585;
  --onyx:   #000000;
  --pebble: #e2e2e5;
  --success:#30d158;
  --hairline: #d2d2d7;
  --hairline-dark: #333333;

  /* — Type — */
  --font-text: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --shadow-product: rgba(0,0,0,0.22) 3px 5px 30px 0px;
  --page-max: 1440px;
  --text-col: 980px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-text);
  background: var(--frost);
  color: var(--carbon);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.272px;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: rgba(41,151,255,0.22); }

/* — Type scale — */
.t-display   { font-size: clamp(40px, 6vw, 56px); line-height: 1.07; letter-spacing: 0.6px;   font-weight: 600; }
.t-hero      { font-size: clamp(46px, 8vw, 92px); line-height: 1.04; letter-spacing: -1.5px;   font-weight: 600; }
.t-heading-lg{ font-size: clamp(34px, 4.5vw, 44px); line-height: 1.12; letter-spacing: -0.6px;  font-weight: 600; }
.t-heading   { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.14; letter-spacing: -0.4px;  font-weight: 600; }
.t-heading-sm{ font-size: clamp(22px, 2.4vw, 28px); line-height: 1.18; letter-spacing: -0.2px;  font-weight: 600; }
.t-sub       { font-size: clamp(19px, 2vw, 21px); line-height: 1.4; letter-spacing: -0.1px;     font-weight: 300; color: var(--ash); }
.t-sub.light { color: rgba(245,245,247,0.78); }
.t-eyebrow   { font-size: 12px; line-height: 1.33; letter-spacing: 0.4px; font-weight: 600; text-transform: uppercase; color: var(--mist); }
.mono        { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.accent      { color: var(--signal-blue); }
.success     { color: var(--success); }

/* — Layout — */
.wrap   { max-width: var(--page-max); margin: 0 auto; padding: 0 40px; }
.col    { max-width: var(--text-col); margin: 0 auto; }
.section{ padding: clamp(72px, 10vw, 130px) 0; }
.section.tight { padding: clamp(56px, 7vw, 90px) 0; }
.dark   { background: var(--onyx); color: var(--frost); }
.dark-2 { background: var(--carbon); color: var(--frost); }
.ice    { background: var(--ice); }
.center { text-align: center; }
.stack > * + * { margin-top: 20px; }

/* — Buttons (pills, 980px) — */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-row.center { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 980px; padding: 12px 22px;
  font-size: 17px; font-weight: 400; letter-spacing: -0.2px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.pill-primary { background: var(--apple-blue); color: #fff; }
.pill-primary:hover { background: #0077ed; transform: translateY(-1px); }
.pill-outline { border: 1px solid var(--link-blue); color: var(--link-blue); }
.pill-outline:hover { background: var(--link-blue); color: #fff; }
.dark .pill-outline, .dark-2 .pill-outline { border-color: rgba(245,245,247,0.5); color: var(--frost); }
.dark .pill-outline:hover, .dark-2 .pill-outline:hover { background: var(--frost); color: var(--carbon); border-color: var(--frost); }
.ghost {
  display: inline-flex; align-items: center; gap: 6px; color: var(--link-blue); font-weight: 400;
}
.ghost::after { content: "›"; font-size: 1.2em; transition: transform .3s var(--ease); }
.ghost:hover { text-decoration: underline; }
.ghost:hover::after { transform: translateX(3px); }
.dark .ghost, .dark-2 .ghost { color: var(--signal-blue); }

/* — Product image helpers — */
.blend { mix-blend-mode: multiply; }   /* drops white render bg onto frost canvas */
.grounded { filter: drop-shadow(var(--shadow-product)); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,0.55); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .3s var(--ease);
}
.nav.solid { background: rgba(0,0,0,0.82); }
.nav-inner {
  max-width: var(--page-max); margin: 0 auto; padding: 10px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; }
.brand .word { font-size: 19px; font-weight: 300; color: var(--frost); letter-spacing: -0.2px; }
.brand .word b { font-weight: 700; color: var(--signal-blue); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links > a, .nav-item > a { font-size: 12px; font-weight: 400; color: rgba(245,245,247,0.8); transition: color .25s; display: inline-flex; align-items: center; gap: 4px; }
.nav-links > a:hover, .nav-item > a:hover { color: #fff; }
.nav-item { position: static; }
.nav-item .caret { font-size: 9px; opacity: .7; transition: transform .25s; }
.nav-item:hover .caret { transform: rotate(180deg); }
@media (min-width: 1041px) {
  .nav-item > a { position: relative; }
  /* invisible hover-bridge: keeps :hover alive across the gap between the
     menu link and the dropdown panel, preventing open/close flicker */
  .nav-item > a::after { content: ""; position: absolute; left: -14px; right: -14px; top: 100%; height: 26px; }
}
.drop {
  position: fixed; left: 0; right: 0; top: 51px; width: 100%;
  background: rgba(255,255,255,0.93);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 30px 50px rgba(0,0,0,0.12);
  padding: 28px max(40px, calc((100% - 1320px) / 2)) 32px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  z-index: 95;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility .32s var(--ease);
}
.drop.mega { flex-direction: row; align-items: flex-start; gap: 0 70px; }
.drop.mega .drop-col:first-child { margin-left: -14px; }
.drop-col { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.drop-col.drop-buy { border-left: 1px solid var(--hairline); padding-left: 30px; }
.nav-scrim { position: fixed; inset: 51px 0 0 0; z-index: 80; background: rgba(0,0,0,0.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .32s var(--ease), visibility .32s var(--ease); }
.nav-scrim.on { opacity: 1; visibility: visible; }
.nav-item:hover .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 11px 14px; border-radius: 8px; color: var(--carbon); font-size: 14px; font-weight: 500; transition: background .2s; min-width: 200px; }
.drop a small { display: block; font-size: 12px; font-weight: 400; color: var(--mist); margin-top: 2px; }
.drop a:hover { background: var(--frost); }
.drop a.cur { background: var(--frost); }
.drop a.cur small { color: var(--signal-blue); }
.drop.wide { min-width: 0; }
.drop-head { width: 100%; flex: 0 0 auto; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--mist); padding: 10px 14px 6px; font-weight: 600; }
.drop-div { width: 100%; flex: 0 0 auto; height: 1px; background: var(--hairline); margin: 10px 0 6px; }
.drop a.simple { padding: 9px 14px; font-weight: 400; font-size: 14px; min-width: 180px; }
.drop a.simple:hover { color: var(--link-blue); }
.drop a.drop-free { color: #e0182d; font-weight: 600; }
.drop a.drop-free small { color: #e0182d; opacity: .8; }
.drop a.drop-free:hover { background: rgba(224,24,45,.08); color: #c30f22; }
.nav.open .drop a.drop-free { color: #e0182d; }
.nav.open .drop a.drop-free:hover { background: rgba(224,24,45,.12); }
@media (max-width: 1180px) { .nav-phone { display: none; } .nav-links { gap: 20px; } }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav.open { background: rgba(0,0,0,0.96); }
  .nav.open .nav-links {
    display: flex; position: fixed; left: 0; right: 0; top: 52px; bottom: 0;
    flex-direction: column; gap: 0; padding: 14px 22px 60px; overflow-y: auto;
    background: rgba(0,0,0,0.97); align-items: stretch;
  }
  .nav.open .nav-item, .nav.open .nav-links > a { width: 100%; }
  .nav.open .nav-item > a, .nav.open .nav-links > a {
    color: #fff; font-size: 17px; padding: 15px 2px; border-bottom: 1px solid rgba(255,255,255,0.08); justify-content: space-between;
  }
  .nav.open .nav-item .caret { transform: rotate(0); }
  .nav.open .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none; min-width: 0; padding: 4px 0 12px 14px;
  }
  .nav.open .drop a { color: rgba(245,245,247,0.72); padding: 9px 0; }
  .nav.open .drop a small { color: var(--mist); }
  .nav.open .drop a.cur, .nav.open .drop a:hover { background: transparent; color: #fff; }
  .nav.open .drop-head { padding: 8px 0 2px; }
  .nav.open .drop-div { margin: 6px 0; }
  .nav-burger.x span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.x span:nth-child(2) { opacity: 0; }
  .nav-burger.x span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav-burger span { transition: transform .3s var(--ease), opacity .2s; }
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 13px; color: #ffffff; white-space: nowrap; }
.nav-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.15; }
.nav-mail { font-size: 12px; color: rgba(255,255,255,0.7); white-space: nowrap; transition: color .2s; }
.nav-mail:hover { color: #fff; }
@media (max-width: 1180px) { .nav-contact { display: none; } }
.nav .pill { padding: 7px 16px; font-size: 13px; }

/* Aurora glow around the nav "Заказать звонок" button */
.nav-cta .pill-primary { position: relative; z-index: 0; isolation: isolate; }
.nav-cta .pill-primary::before {
  content: ""; position: absolute; inset: -7px -11px; z-index: -1;
  border-radius: 980px;
  background: linear-gradient(110deg,
    transparent 8%, #2997ff 26%, #74e0ff 44%, #4f9dff 58%, #2db4ff 74%, transparent 92%);
  background-size: 230% 100%;
  filter: blur(11px);
  opacity: .5;
  animation: navAurora 5.5s ease-in-out infinite;
  pointer-events: none;
}
.nav-cta .pill-primary:hover::before { opacity: .85; }
@keyframes navAurora {
  0%, 100% { background-position: 0% 50%; opacity: .4; }
  50%      { background-position: 100% 50%; opacity: .72; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-cta .pill-primary::before { animation: none; opacity: .5; }
}
.nav-burger { display: none; flex-direction: column; gap: 5px; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--frost); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: var(--frost); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 78%, rgba(0,0,0,0.92) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 40px 80px; }
.hero h1 { max-width: 16ch; margin-bottom: 22px; }
.hero .t-sub { max-width: 52ch; margin-bottom: 34px; }
.hero-input {
  margin-top: 40px; display: flex; gap: 10px; max-width: 540px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 980px; padding: 6px 6px 6px 22px; backdrop-filter: blur(8px);
}
.hero-input input {
  flex: 1; background: none; border: none; outline: none; color: #fff; font-size: 15px;
}
.hero-input input::placeholder { color: rgba(245,245,247,0.6); }
.hero-input .pill { padding: 11px 20px; font-size: 15px; white-space: nowrap; }
.hero-microlabel { font-size: 13px; color: rgba(245,245,247,0.6); margin-top: 14px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: rgba(245,245,247,0.5); }

/* ============================================================
   SOCIAL PROOF
   ============================================================ */
.logos { display: flex; flex-wrap: wrap; gap: 14px 56px; align-items: center; justify-content: center; }
.logos span { font-size: clamp(18px, 2.2vw, 25px); font-weight: 600; color: var(--mist); letter-spacing: 0.2px; transition: color .3s; }
.logos span:hover { color: var(--carbon); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 70px; }
.counter .num { font-size: clamp(44px, 6vw, 72px); font-weight: 500; letter-spacing: -2px; line-height: 1; }
.counter .lbl { font-size: 15px; color: var(--ash); margin-top: 12px; }
.counter { padding: 0 10px; }
.counter + .counter { border-left: 1px solid var(--hairline); }

/* ============================================================
   AUDIENCE FLIP CARDS
   ============================================================ */
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flip { perspective: 1400px; height: 280px; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flip:hover .flip-in, .flip.flipped .flip-in { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden;
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--hairline); background: #fff;
}
.flip-front .ico { width: 30px; height: 30px; color: var(--carbon); }
.flip-front h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.4px; }
.flip-front .hint { font-size: 13px; color: var(--mist); }
.flip-back { transform: rotateY(180deg); background: var(--carbon); color: var(--frost); border-color: var(--carbon); }
.flip-back p { font-size: 16px; line-height: 1.45; color: rgba(245,245,247,0.85); }
.flip-back .payback { font-size: 13px; color: var(--mist); }
.flip-back .payback b { color: var(--success); font-family: var(--font-mono); font-weight: 500; }

/* ============================================================
   FLAGSHIP SHOWCASE
   ============================================================ */
.showcase { text-align: center; }
.showcase .stage { margin: 50px auto 0; max-width: 1180px; }
.showcase img { width: 100%; }
.spec-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 56px; }
.spec { padding: 0 38px; text-align: center; }
.spec + .spec { border-left: 1px solid var(--hairline); }
.spec .v { font-size: 34px; font-weight: 600; letter-spacing: -1px; }
.spec .k { font-size: 13px; color: var(--ash); margin-top: 6px; }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: stretch; }
.calc-fields { display: flex; flex-direction: column; gap: 22px; }
.field label { display: block; font-size: 14px; color: var(--ash); margin-bottom: 8px; }
.field-input { display: flex; align-items: center; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.field-input:focus-within { border-color: var(--apple-blue); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.field-input input { flex: 1; border: none; outline: none; background: none; padding: 13px 15px; font-size: 17px; font-family: var(--font-mono); color: var(--carbon); width: 100%; }
.field-input .unit { padding: 0 15px; font-size: 13px; color: var(--mist); white-space: nowrap; border-left: 1px solid var(--hairline); height: 100%; display: flex; align-items: center; }
.field textarea { width: 100%; border: 1px solid var(--hairline); border-radius: 8px; background: #fff; padding: 13px 15px; font-size: 15px; font-family: inherit; resize: vertical; min-height: 84px; outline: none; transition: border-color .25s, box-shadow .25s; }
.field textarea:focus-within, .field textarea:focus { border-color: var(--apple-blue); box-shadow: 0 0 0 3px rgba(0,113,227,0.15); }
.calc-result {
  background: #fff; border: 1px solid var(--hairline); border-radius: 8px;
  padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.result-block .r-lbl { font-size: 14px; color: var(--ash); margin-bottom: 8px; }
.result-block .r-val { font-size: clamp(38px, 5vw, 56px); font-weight: 600; letter-spacing: -2px; font-family: var(--font-mono); line-height: 1; }
.result-block .r-val.green { color: var(--success); }
.result-divider { height: 1px; background: var(--hairline); }
.result-block .r-sub { font-size: 13px; color: var(--mist); margin-top: 8px; }

/* ============================================================
   MODEL RANGE
   ============================================================ */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model-card {
  position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--hairline);
  background: #fff; min-height: 460px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.model-card:hover { transform: translateY(-4px); border-color: var(--mist); }
.model-card.feature { grid-row: span 1; }
.model-media { background: linear-gradient(180deg, #fff, #f0f0f3); height: 230px; display: flex; align-items: center; justify-content: center; padding: 22px; overflow: hidden; }
.model-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.model-card:hover .model-media img { transform: scale(1.05); }
.model-media.zoom-track:hover img { transform: scale(2); transition: transform .15s ease; }
.model-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.model-tag { font-size: 12px; font-weight: 600; color: var(--signal-blue); text-transform: uppercase; letter-spacing: 0.4px; }
.model-body h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.5px; }
.model-specs { display: flex; gap: 22px; margin-top: 4px; }
.model-specs .mv { white-space: nowrap; }
.model-specs div .mv { font-family: var(--font-mono); font-size: 17px; font-weight: 500; }
.model-specs div .mk { font-size: 12px; color: var(--mist); }
.model-body .pill { align-self: flex-start; margin-top: auto; padding: 9px 18px; font-size: 14px; }

/* ============================================================
   FEATURE BANNER (full-bleed image + overlay)
   ============================================================ */
.banner { position: relative; min-height: 78vh; display: flex; align-items: center; color: var(--frost); overflow: hidden; }
.banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 55%, transparent 100%); z-index: 0; }
.banner.center-grad::after { background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%); }
.banner-inner { position: relative; z-index: 1; max-width: var(--page-max); width: 100%; margin: 0 auto; padding: 0 40px; }
.banner-inner .col-l { max-width: 620px; }

/* ============================================================
   ADVANTAGES
   ============================================================ */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; }
.adv { background: var(--frost); padding: 38px 32px; display: flex; flex-direction: column; gap: 16px; transition: background .3s; }
.adv:hover { background: #fff; }
.adv .ico { width: 32px; height: 32px; color: var(--carbon); }
.adv h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.3px; }
.adv p { font-size: 15px; color: var(--ash); line-height: 1.5; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline { position: relative; margin-top: 60px; }
.tl-track { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.tl-line { position: absolute; top: 9px; left: 0; height: 2px; background: var(--hairline); width: 100%; }
.tl-line .fill { height: 100%; width: 0; background: var(--signal-blue); transition: width 1.4s var(--ease); }
.tl-step { position: relative; padding-top: 36px; }
.tl-dot { position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--hairline); transition: border-color .4s, background .4s; }
.tl-step.on .tl-dot { border-color: var(--apple-blue); background: var(--apple-blue); }
.tl-step .n { font-family: var(--font-mono); font-size: 12px; color: var(--mist); }
.tl-step h4 { font-size: 16px; font-weight: 600; margin-top: 4px; letter-spacing: -0.2px; }
.tl-step p { font-size: 13px; color: var(--ash); margin-top: 6px; line-height: 1.4; }

/* ============================================================
   CASES
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case {
  border-radius: 8px; overflow: hidden; border: 1px solid var(--hairline); background: #fff;
  display: flex; flex-direction: column; transition: transform .4s var(--ease);
}
.case:hover { transform: translateY(-4px); }
.case-media { height: 220px; overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case:hover .case-media img { transform: scale(1.05); }
.case-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.case-client { font-size: 13px; color: var(--mist); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; }
.case-body .roi { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.3; }
.case-body .roi b { color: var(--success); font-family: var(--font-mono); font-weight: 600; }
.case-meta { display: flex; gap: 20px; margin-top: auto; padding-top: 8px; }
.case-meta div .cv { font-family: var(--font-mono); font-size: 16px; }
.case-meta div .ck { font-size: 12px; color: var(--mist); }

/* ============================================================
   OBJECTIONS
   ============================================================ */
.obj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.obj { background: #fff; border: 1px solid var(--hairline); border-radius: 8px; padding: 30px; }
.obj .q { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 12px; }
.obj .q::before { content: "«"; color: var(--mist); }
.obj .q::after { content: "»"; color: var(--mist); }
.obj .a { font-size: 16px; color: var(--ash); line-height: 1.5; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.cmp-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--pebble); border-radius: 980px; margin: 0 auto 40px; }
.cmp-toggle button { padding: 9px 22px; border-radius: 980px; font-size: 14px; color: var(--ash); font-weight: 500; transition: all .3s var(--ease); }
.cmp-toggle button.active { background: var(--apple-blue); color: #fff; }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 22px 20px; text-align: left; border-bottom: 1px solid var(--hairline); }
.cmp-table th { font-size: 13px; color: var(--mist); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.cmp-table th.hl { color: var(--carbon); }
.cmp-table td { font-size: 16px; }
.cmp-table td.metric { color: var(--ash); }
.cmp-table td.hl { background: var(--ice); font-weight: 500; }
.cmp-table td .mono.green { color: var(--success); font-weight: 600; }
.cmp-table tr:last-child td { border-bottom: none; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; cursor: default; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 4px; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -0.3px; transition: opacity .3s var(--ease), transform .3s var(--ease); transform-origin: left center; }
.faq-q .plus { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--mist); transition: transform .3s var(--ease); }
.faq-q .plus::before { width: 18px; height: 1.5px; top: 8px; }
.faq-q .plus::after { width: 1.5px; height: 18px; left: 8px; }
.faq-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .42s var(--ease); }
.faq-a-inner { min-height: 0; }
.faq-item.open .faq-a { max-height: 520px; }
@media (hover: hover) { .faq-item:hover .faq-a { max-height: 520px; } .faq-item:hover .plus::after { transform: rotate(90deg); opacity: 0; } .faq-item:hover .faq-q { color: var(--link-blue); } }
.faq-a-inner { padding: 0 4px 18px; font-size: 16px; color: var(--ash); line-height: 1.55; max-width: 760px; }

/* ============================================================
   GEOGRAPHY (dark, pulsing dots)
   ============================================================ */
.geo { position: relative; }
.geo-field { position: relative; height: 440px; margin-top: 50px; border-radius: 8px;
  background: radial-gradient(circle at 60% 40%, rgba(41,151,255,0.08), transparent 60%); border: 1px solid var(--hairline-dark); overflow: hidden; }
.geo-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 26px 26px; }
.geo-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--signal-blue); transform: translate(-50%,-50%); cursor: pointer; }
.geo-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--signal-blue); animation: pulse 2.6s var(--ease) infinite; }
.geo-dot:nth-child(2)::after { animation-delay: .5s; }
.geo-dot:nth-child(3)::after { animation-delay: 1s; }
.geo-dot:nth-child(4)::after { animation-delay: 1.5s; }
.geo-dot:nth-child(5)::after { animation-delay: .8s; }
.geo-dot .tip { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: #fff; color: var(--carbon); font-size: 12px; padding: 6px 12px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.geo-dot:hover .tip { opacity: 1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.4); opacity: 0; } }

/* ============================================================
   FINAL CTA FORM
   ============================================================ */
.cta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.cta-form .field-input, .cta-form textarea { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }
.cta-form .field-input input { color: #fff; }
.cta-form textarea { color: #fff; grid-column: 1 / -1; }
.cta-form .field-input input::placeholder, .cta-form textarea::placeholder { color: rgba(245,245,247,0.5); }
.cta-form .field-input .unit { border-left-color: rgba(255,255,255,0.18); color: rgba(245,245,247,0.55); }
.cta-submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.cta-alt { font-size: 15px; color: rgba(245,245,247,0.6); }
.cta-alt b { color: var(--frost); font-family: var(--font-mono); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--frost); padding: 70px 0 40px; border-top: 1px solid var(--hairline); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.foot-brand .brand .word { color: var(--carbon); }
.foot-brand p { font-size: 13px; color: var(--ash); margin-top: 16px; max-width: 30ch; line-height: 1.5; }
.foot-col h5 { font-size: 12px; font-weight: 600; color: var(--carbon); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 16px; }
.foot-col a { display: block; font-size: 13px; color: var(--ash); margin-bottom: 11px; transition: color .25s; }
.foot-col a:hover { color: var(--carbon); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.foot-bottom, .foot-bottom a { font-size: 12px; color: var(--mist); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .calc { grid-template-columns: 1fr; }
  .grid-6, .models, .cases, .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-track { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .tl-line { display: none; }
  .tl-step { padding-top: 0; padding-left: 28px; }
  .tl-dot { top: 4px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 740px) {
  .wrap { padding: 0 22px; }
  .nav-inner { padding: 10px 22px; }
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .counters { grid-template-columns: 1fr; gap: 0; }
  .counter + .counter { border-left: none; border-top: 1px solid var(--hairline); padding-top: 26px; margin-top: 26px; }
  .grid-6, .models, .cases, .obj-grid, .adv-grid, .cta-form { grid-template-columns: 1fr; }
  .tl-track { grid-template-columns: 1fr; }
  .spec-row { gap: 28px 0; }
  .spec { padding: 0 22px; }
  .hero-input { flex-direction: column; border-radius: 16px; padding: 14px; }
  .hero-input .pill { width: 100%; }
  .cmp-table th:nth-child(3), .cmp-table td:nth-child(3) { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ============================================================
   INNER PAGES (generated scaffolds)
   ============================================================ */
.phero { padding: 150px 0 78px; background: var(--frost); }
.phero.dark { background: var(--onyx); color: var(--frost); }
.phero.ice { background: var(--ice); }
.phero .crumbs { font-size: 13px; color: var(--mist); margin-bottom: 22px; }
.phero .crumbs a { color: var(--mist); } .phero .crumbs a:hover { color: var(--carbon); }
.phero.dark .crumbs, .phero.dark .crumbs a { color: rgba(245,245,247,0.55); }
.phero h1 { max-width: 20ch; margin: 14px 0 18px; }
.phero .t-sub { max-width: 60ch; }
.phero .btn-row { margin-top: 32px; }
.phero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.phero-media { border-radius: 8px; overflow: hidden; border: 1px solid var(--hairline); background: linear-gradient(180deg,#fff,#f0f0f3); }
.phero.dark .phero-media { border-color: var(--hairline-dark); background: #111; }
.phero-media img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; padding: 18px; }
.phero.dark .phero-media img { mix-blend-mode: normal; }
.ph-slot { background: repeating-linear-gradient(135deg,#ececef,#ececef 11px,#e3e3e7 11px,#e3e3e7 22px); border: 1px solid var(--hairline); border-radius: 8px; min-height: 280px; display: flex; align-items: center; justify-content: center; color: var(--ash); font-family: var(--font-mono); font-size: 13px; text-align: center; padding: 24px; }
.article { max-width: 760px; }
.article h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.5px; margin: 56px 0 18px; }
.article h2:first-child { margin-top: 0; }
.article p { color: var(--ash); font-size: 17px; line-height: 1.65; margin: 16px 0; }
.article ul { margin: 16px 0; padding-left: 22px; color: var(--ash); font-size: 17px; line-height: 1.65; }
.article li { margin: 8px 0; }
.article strong { color: var(--carbon); font-weight: 600; }
.article b { color: var(--carbon); }
.quote-box { border-left: 3px solid var(--signal-blue); background: var(--ice); border-radius: 0 8px 8px 0; padding: 24px 28px; margin: 28px 0; font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: -0.2px; }
.quote-box b { color: var(--signal-blue); }
.article-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-table th { text-align: left; padding: 12px 16px; background: var(--carbon); color: var(--frost); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; }
.article-table td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); color: var(--ash); vertical-align: top; }
.article-table tr:nth-child(even) td { background: var(--ice); }
.article-table td:first-child { color: var(--carbon); font-weight: 600; white-space: nowrap; }
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; margin: 40px 0; }
.stat-strip .st { background: var(--frost); padding: 26px 20px; text-align: center; }
.stat-strip .st .v { font-family: var(--font-mono); font-size: 26px; font-weight: 600; color: var(--signal-blue); letter-spacing: -0.5px; }
.stat-strip .st .k { font-size: 13px; color: var(--ash); margin-top: 6px; line-height: 1.4; }
.toc { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 18px 22px; background: var(--ice); border-radius: 8px; margin: 32px 0 0; }
.toc a { font-size: 14px; color: var(--ash); }
.toc a:hover { color: var(--signal-blue); }
.warn-box { border: 1px solid var(--hairline); border-radius: 8px; padding: 22px 26px; margin: 28px 0; background: var(--frost); }
.warn-box .wl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--signal-blue); margin-bottom: 8px; }
@media (max-width:700px){.stat-strip{grid-template-columns:1fr 1fr}}
.lead-col { max-width: 760px; }
.lead-col p { color: var(--ash); margin-top: 16px; font-size: 17px; line-height: 1.55; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split-media { border-radius: 8px; overflow: hidden; border: 1px solid var(--hairline); min-height: 320px; background: linear-gradient(180deg,#fff,#f0f0f3); display: flex; align-items: center; justify-content: center; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media img.contain { object-fit: contain; mix-blend-mode: multiply; padding: 20px; }
.price-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; margin-top: 8px; }
.price-row .from { font-size: 14px; color: var(--mist); }
.price-row .val { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -1px; }
.ttx { width: 100%; border-collapse: collapse; }
.ttx td { padding: 16px 8px; border-bottom: 1px solid var(--hairline); font-size: 16px; }
.ttx td:first-child { color: var(--ash); width: 50%; }
.ttx td:last-child { font-family: var(--font-mono); font-weight: 500; }
.ttx tr:last-child td { border-bottom: none; }
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lcard { border: 1px solid var(--hairline); border-radius: 8px; padding: 26px; background: #fff; display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), border-color .35s; }
.lcard:hover { transform: translateY(-4px); border-color: var(--mist); }
.lcard h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.3px; }
.lcard p { font-size: 14px; color: var(--ash); line-height: 1.5; flex: 1; }
.lcard .ghost { margin-top: 6px; }
@media (max-width: 900px) {
  .phero-grid, .split, .split.reverse .split-text { grid-template-columns: 1fr; order: 0; }
  .link-cards { grid-template-columns: 1fr; }
}

/* burger must win at 741–1040px regardless of source order */
@media (max-width: 1040px) { .nav .nav-burger { display: flex; } }

/* ===== Home hub — product bento ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 16px; }
.bento .flip { height: 100%; perspective: 1400px; }
.bento .s2w { grid-column: span 2; }
.bento .s2h { grid-row: span 2; }
.bento .s2x2 { grid-column: span 2; grid-row: span 2; }
.bento .flip-front { background-size: cover; background-position: center; border: none; color: #fff; justify-content: flex-end; padding: 24px; overflow: hidden; }
.bento .flip-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 36%, rgba(0,0,0,0.76)); }
.bento .flip-front .ftxt { position: relative; z-index: 1; }
.bento .flip-front .tag { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,0.82); margin-bottom: 6px; }
.bento .flip-front h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: #fff; letter-spacing: -0.4px; line-height: 1.12; }
.bento .flip-back { background: var(--carbon); color: var(--frost); border: none; justify-content: center; padding: 26px; }
.bento .flip-back h4 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 10px; }
.bento .flip-back p { font-size: 14px; color: rgba(245,245,247,0.82); line-height: 1.5; }
.bento .flip-back .pill { align-self: flex-start; margin-top: 16px; padding: 8px 16px; font-size: 13px; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .bento .s2w, .bento .s2x2 { grid-column: span 1; } .bento .s2x2 { grid-row: span 1; } }

/* ===== AI Consultant ===== */
@keyframes ai-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.cons-orb { position: fixed; right: 24px; bottom: 24px; width: 62px; height: 62px; border-radius: 50%; z-index: 300; cursor: pointer; border: none; color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; background: linear-gradient(120deg, #2997ff, #a855f7, #ff5470, #ffb347, #30d158, #2997ff); background-size: 320% 320%; animation: ai-shift 6s ease infinite; box-shadow: 0 8px 26px rgba(41,151,255,.42), 0 3px 10px rgba(168,85,247,.34); transition: transform .25s var(--ease); }
.cons-orb:hover { transform: scale(1.07); }
.cons-orb-mark { width: 40px; height: 40px; object-fit: contain; display: block; pointer-events: none; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(4,20,40,.22); }
.cons-cap { position: fixed; right: 98px; bottom: 39px; z-index: 300; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border: 1px solid var(--hairline); border-radius: 980px; padding: 9px 15px; font-size: 13px; font-weight: 500; color: var(--carbon); box-shadow: 0 6px 20px rgba(0,0,0,.14); white-space: nowrap; transition: opacity .25s, transform .25s; }
.cons-cap.hide { opacity: 0; transform: translateX(8px); pointer-events: none; }
.chat-panel { position: fixed; right: 24px; bottom: 98px; width: 350px; max-width: calc(100vw - 32px); height: 470px; max-height: calc(100vh - 140px); background: #fff; border: 1px solid var(--hairline); border-radius: 20px; box-shadow: 0 28px 64px rgba(0,0,0,.24); z-index: 301; display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.97); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head { padding: 15px 16px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; gap: 11px; }
.chat-head .dot { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(120deg, #2997ff, #a855f7, #ff5470, #ffb347); background-size: 320% 320%; animation: ai-shift 6s ease infinite; }
.chat-head h4 { font-size: 15px; font-weight: 600; line-height: 1.1; }
.chat-head .st { font-size: 12px; color: var(--success); }
.chat-close { margin-left: auto; font-size: 22px; color: var(--mist); background: none; line-height: 1; padding: 4px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--frost); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 15px; font-size: 14px; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--hairline); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--apple-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--hairline); }
.chat-input input { flex: 1; border: 1px solid var(--hairline); border-radius: 980px; padding: 10px 15px; font-size: 14px; outline: none; font-family: inherit; }
.chat-input input:focus { border-color: var(--apple-blue); }
.chat-input button { border: none; border-radius: 50%; width: 40px; height: 40px; background: var(--apple-blue); color: #fff; flex-shrink: 0; font-size: 17px; cursor: pointer; }
@media (max-width: 560px) { .cons-cap { display: none; } }

/* ===== Call-back modal (Gemini iridescent backdrop) ===== */
.call-ov { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .32s var(--ease), visibility .32s var(--ease); }
.call-ov.open { opacity: 1; visibility: visible; }
.call-ov::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: linear-gradient(120deg, rgba(41,151,255,.5), rgba(168,85,247,.46), rgba(255,84,112,.42), rgba(255,179,71,.42), rgba(48,209,88,.44), rgba(41,151,255,.5)); background-size: 340% 340%; animation: ai-shift 9s ease infinite; }
.call-modal { position: relative; z-index: 1; width: 430px; max-width: 100%; background: #fff; border-radius: 22px; padding: 36px; box-shadow: 0 30px 80px rgba(0,0,0,.32); transform: translateY(16px) scale(.96); transition: transform .32s var(--ease); }
.call-ov.open .call-modal { transform: none; }
.call-modal h3 { font-size: 27px; font-weight: 600; letter-spacing: -.5px; }
.call-modal p { font-size: 15px; color: var(--ash); margin: 10px 0 24px; }
.call-modal .field-input { margin-bottom: 12px; }
.call-modal .pill { width: 100%; margin-top: 10px; }
.call-x { position: absolute; top: 16px; right: 18px; font-size: 25px; color: var(--mist); background: none; line-height: 1; cursor: pointer; }
.field-input select { flex: 1; border: none; outline: none; background: none; padding: 13px 15px; font-size: 15px; font-family: inherit; color: var(--carbon); cursor: pointer; -webkit-appearance: none; appearance: none; }
.cta-form .field-input input, .cta-form .field-input select, .cta-form textarea { color: var(--ash); }
.cta-form textarea { min-height: 122px; }
