/* ============================================================
   ОПТИМУС — строительство бетонных бассейнов под ключ
   Дизайн-система «Liquid Lux» (гибрид):
   тёмные кинематографичные зоны (hero, 3D, финальный CTA, футер)
   + светлые воздушные секции, премиум, тёплый оранжевый CTA.
   ЯДРО: токены, база, навигация, кнопки, hero, 3D, плавающие
   кнопки, модалки, футер, плейсхолдеры, reveal.
   Секции светлой части — в sections.css
   ============================================================ */

:root {
  /* — тёмная вода / ночь (тёмные зоны) — */
  --void:   #03090c;
  --ink-d:  #050f14;
  --deep:   #06222b;
  --deep-2: #0a323d;

  /* — бирюза / вода (бренд) — */
  --aqua:       #16bcd4;
  --aqua-2:     #5fe3ef;
  --aqua-deep:  #0a6c81;
  --aqua-ink:   #06343f;
  --aqua-pale:  #c4f6fb;

  /* — тёплый акцент CTA — */
  --cta:        #ff7a33;
  --cta-2:      #ff9657;
  --cta-deep:   #ef5f17;

  /* — светлая часть — */
  --paper:    #ffffff;
  --mist:     #eef6f8;   /* светлый фон секции */
  --mist-2:   #f6fbfc;
  --ink:      #0c2a33;   /* основной текст на светлом */
  --ink-soft: #44616b;
  --ink-dim:  #6a838c;
  --hair:     #e2edf0;   /* тонкие линии на светлом */
  --hair-2:   #d3e3e7;

  /* текст на тёмном */
  --on-dark:      #e9f6f8;
  --on-dark-soft: rgba(214,238,242,.66);
  --on-dark-dim:  rgba(190,222,228,.42);
  --line-d:       rgba(120,220,235,.12);
  --line-d-soft:  rgba(120,220,235,.07);

  /* акцент воды, управляется через Tweaks */
  --accent:   var(--aqua);
  --accent-2: var(--aqua-2);

  --font-display: "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Manrope", system-ui, sans-serif;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 84px);
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-card: 0 30px 70px -38px rgba(8,42,51,.5);
  --shadow-soft: 0 18px 44px -28px rgba(8,42,51,.4);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-kerning: normal;
  overflow-x: clip;
}
/* табличные цифры там, где числа должны быть ровными по ширине */
.trust .stat .n, .fig-card .fn, .ab-hero-stats .n, .calc-result .price, .pl-type-foot .price .pv,
.type-card .price .pv, .case-foot .price, .prod-card .pprice strong, .tcadv-card .big, .tl-card .yr {
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "tnum" 1, "lnum" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--cta); color: #fff; }

/* ---------- Типографика ---------- */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 600; line-height: 1.0;
  letter-spacing: -.015em; text-wrap: balance; color: var(--ink);
  font-optical-sizing: auto;
}
.display { font-size: clamp(52px, 9vw, 150px); font-weight: 600; line-height: .94; letter-spacing: -.032em; }
.h-eyebrow { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.section-title { font-size: clamp(36px, 6vw, 92px); line-height: .99; letter-spacing: -.022em; }
.lead { font-size: clamp(17px, 1.9vw, 22px); line-height: 1.58; color: var(--ink-soft); text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(84px, 11vw, 168px); }

.eyebrow-row { display: flex; align-items: center; gap: 14px; color: var(--aqua-deep); }
.eyebrow-row::before { content: ""; width: 36px; height: 2px; background: currentColor; display: inline-block; border-radius: 2px; }

.head { max-width: 940px; }
.head .eyebrow-row { margin-bottom: 24px; }
.head p { margin-top: 22px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow-row { justify-content: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 17px 30px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .4s, color .4s, background .4s;
  border: 1.5px solid transparent;
}
.btn span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(4px,-4px); }

/* основной CTA — тёплый оранжевый */
.btn--cta { background: var(--cta); color: #fff; box-shadow: 0 16px 40px -14px rgba(255,122,51,.7); }
.btn--cta::after { content:""; position:absolute; inset:0; background: linear-gradient(110deg, var(--cta-2), var(--cta)); opacity:0; transition:opacity .4s var(--ease); }
.btn--cta:hover { transform: translateY(-3px); box-shadow: 0 24px 54px -16px rgba(255,122,51,.8); }
.btn--cta:hover::after { opacity:1; }

/* бирюзовый */
.btn--aqua { background: var(--aqua); color: #04252b; box-shadow: 0 14px 38px -14px rgba(22,188,212,.65); }
.btn--aqua:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -16px rgba(22,188,212,.8); }

/* контурные */
.btn--outline { border-color: var(--hair-2); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--aqua); color: var(--aqua-deep); transform: translateY(-3px); box-shadow: var(--shadow-soft); }

/* на тёмном фоне */
.btn--ghost-d { border: 1.5px solid rgba(255,255,255,.28); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(255,255,255,.05); }
.btn--ghost-d::after { content:""; position:absolute; inset:0; background:#fff; opacity:0; transition:opacity .4s var(--ease); }
.btn--ghost-d:hover { color: var(--deep); border-color: transparent; transform: translateY(-3px); }
.btn--ghost-d:hover::after { opacity:1; }

.btn--lg { padding: 20px 38px; font-size: 16px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter); color: #fff;
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease), color .5s;
}
.nav.scrolled {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  color: var(--ink); padding-block: 12px;
  box-shadow: 0 1px 0 var(--hair), 0 18px 44px -34px rgba(8,42,51,.5);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand .bt { font-family: var(--font-display); font-size: 25px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.brand .bs { font-family: var(--font-body); font-size: 9px; letter-spacing: .28em; text-transform: uppercase; opacity: .62; font-weight: 700; display:block; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 28px); }
.nav-links a { font-size: 14.5px; font-weight: 600; opacity: .9; transition: opacity .3s; position: relative; white-space: nowrap; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--cta); transition: width .35s var(--ease); border-radius:2px; }
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 16px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.nav-cta { padding: 12px 22px; font-size: 14px; }
.nav-burger { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1.5px solid currentColor; }
.nav-burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }

/* мобильное меню */
.mobile-menu { position: fixed; inset: 0; z-index: 95; background: rgba(4,18,23,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); display: flex; flex-direction: column; padding: 90px var(--gutter) 40px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); color: #fff; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 32px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; }
.mobile-menu .mm-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu .mm-phone { font-size: 26px; font-weight: 800; font-family: var(--font-body); border:none; }
.mobile-close { position: absolute; top: 24px; right: var(--gutter); width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); color:#fff; font-size: 26px; line-height: 1; }

/* ---------- HERO (тёмный) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--ink-d); }
#water-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; touch-action: pan-y; }
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -14%, transparent 36%, rgba(2,9,12,.5) 100%),
             linear-gradient(180deg, rgba(3,11,15,.55) 0%, transparent 28%, transparent 48%, rgba(2,9,12,.85) 100%); }
.hero-inner { position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(120px,15vh,180px) var(--gutter) clamp(70px,8vw,110px);
  display: grid; grid-template-columns: 1.55fr .85fr; gap: 54px; align-items: end; pointer-events: none; }
.hero-inner a, .hero-inner button, .hero-inner input, .hero-inner form, .hero-inner label { pointer-events: auto; }
.hero-eyebrow { color: var(--aqua-pale); margin-bottom: 26px; }
.hero h1 { color: #fff; text-shadow: 0 8px 60px rgba(2,9,12,.55); line-height: 1.02; text-wrap: normal; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 40px; max-width: 40ch; font-size: clamp(17px,1.6vw,21px); line-height: 1.55; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-usp { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 40px; }
.hero-usp .u { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: rgba(255,255,255,.86); font-weight: 600; }
.hero-usp .u svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* мини-форма заявки в hero */
.hero-card { background: rgba(6,22,28,.46); border: 1px solid rgba(140,230,242,.2); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); border-radius: var(--r-lg); padding: 32px 30px 30px; box-shadow: 0 40px 100px -34px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08); }
.hero-card h3 { font-size: 29px; line-height: 1.08; color:#fff; margin-bottom: 5px; }
.hero-card .hc-sub { font-size: 14px; color: rgba(255,255,255,.66); margin-bottom: 22px; }
.hero-scroll { position: absolute; left: 50%; bottom: 24px; z-index: 4; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero-scroll .mouse { width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.hero-scroll .mouse::after { content:""; position:absolute; left:50%; top:7px; width:3px; height:7px; border-radius:2px; background:var(--accent); transform:translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 70%{opacity:1} 100%{opacity:0;transform:translate(-50%,12px)} }

/* поля форм (универсальные) */
.field { margin-bottom: 12px; position: relative; }
.field input, .field textarea { width: 100%; padding: 15px 16px; font-size: 15px; border-radius: var(--r-sm); transition: border-color .3s, background .3s, box-shadow .3s; }
.field textarea { min-height: 92px; resize: vertical; }
/* на тёмном */
.form-dark .field input, .form-dark .field textarea { border: 1px solid rgba(140,230,242,.18); background: rgba(255,255,255,.05); color: #fff; }
.form-dark .field input::placeholder, .form-dark .field textarea::placeholder { color: rgba(255,255,255,.5); }
.form-dark .field input:focus, .form-dark .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(22,188,212,.2); }
/* на светлом */
.form-light .field input, .form-light .field textarea { border: 1.5px solid var(--hair-2); background: var(--mist-2); color: var(--ink); }
.form-light .field input::placeholder, .form-light .field textarea::placeholder { color: var(--ink-dim); }
.form-light .field input:focus, .form-light .field textarea:focus { outline: none; border-color: var(--aqua); background: #fff; box-shadow: 0 0 0 3px rgba(22,188,212,.15); }
.field.invalid input { border-color: #ff5a5a !important; box-shadow: 0 0 0 3px rgba(255,90,90,.16) !important; }
.field .err { font-size: 12px; color: #ff7a7a; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 6px; font-size: 12px; line-height: 1.5; }
.consent input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--cta); }
.form-dark .consent { color: rgba(255,255,255,.55); }
.form-dark .consent a { color: var(--aqua-pale); text-decoration: underline; }
.form-light .consent { color: var(--ink-dim); }
.form-light .consent a { color: var(--aqua-deep); text-decoration: underline; }
.form-fine { font-size: 11.5px; margin-top: 12px; text-align: center; line-height: 1.5; }
.form-dark .form-fine { color: rgba(255,255,255,.46); }
.form-light .form-fine { color: var(--ink-dim); }

/* успешная отправка */
.form-ok { text-align:center; padding: 22px 10px; }
.form-ok .ok-ic { width:72px; height:72px; border-radius:50%; margin:0 auto 20px; background: var(--cta); display:flex; align-items:center; justify-content:center; color:#fff; animation: pop .6s var(--ease-out); box-shadow: 0 14px 40px -10px rgba(255,122,51,.7); }
.form-ok .ok-ic svg{ width:36px; height:36px; }
@keyframes pop { 0%{transform:scale(.4);opacity:0} 60%{transform:scale(1.08)} 100%{transform:scale(1);opacity:1} }
.form-ok h3{ font-size:26px; }
.form-ok p{ margin-top:10px; }
.form-dark .form-ok h3 { color:#fff; } .form-dark .form-ok p { color: var(--on-dark-soft); }
.form-light .form-ok h3 { color: var(--ink); } .form-light .form-ok p { color: var(--ink-soft); }

/* ---------- 3D-БАССЕЙН (тёмная showcase) ---------- */
.showcase { background: var(--ink-d); overflow: hidden; color: #fff; }
.showcase .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.showcase-copy h2 { font-size: clamp(36px, 5vw, 72px); color: #fff; }
.showcase-copy .eyebrow-row { color: var(--accent); }
.showcase-copy .lead { margin-top: 20px; max-width: 40ch; color: var(--on-dark-soft); }
.showcase-feats { margin-top: 32px; display: flex; flex-direction: column; gap: 15px; }
.showcase-feat { display: flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--on-dark-soft); }
.showcase-feat svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.showcase-stage { position: relative; min-height: clamp(380px, 46vw, 560px); display: flex; align-items: center; justify-content: center; }
.showcase-stage::before { content: ""; position: absolute; width: 70%; height: 40%; left: 50%; top: 56%; transform: translate(-50%,-50%); background: radial-gradient(closest-side, rgba(22,188,212,.3), transparent 75%); filter: blur(42px); }
.p3d-scene { position: relative; z-index: 1; width: 100%; height: clamp(380px,46vw,560px); perspective: 1300px; perspective-origin: 50% 42%; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: pan-y; }
.p3d-scene.p3d-grab { cursor: grabbing; }
.p3d-rig { position: relative; transform-style: preserve-3d; --pw: 460px; --ph: 320px; --pd: 130px; --deck: 70px; width: var(--pw); height: var(--ph); transform: rotateX(58deg) rotateZ(-28deg); will-change: transform; }
.p3d-rig > * { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.p3d-deck { background: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 30px), linear-gradient(160deg, #0c2630, #081820); border: 1px solid rgba(140,230,242,.08); }
.p3d-deck--n { width: calc(var(--pw) + var(--deck)*2); height: var(--deck); transform: translate(-50%,-50%) translateY(calc((var(--ph) + var(--deck)) / -2)); }
.p3d-deck--s { width: calc(var(--pw) + var(--deck)*2); height: var(--deck); transform: translate(-50%,-50%) translateY(calc((var(--ph) + var(--deck)) / 2)); }
.p3d-deck--w { width: var(--deck); height: var(--ph); transform: translate(-50%,-50%) translateX(calc((var(--pw) + var(--deck)) / -2)); }
.p3d-deck--e { width: var(--deck); height: var(--ph); transform: translate(-50%,-50%) translateX(calc((var(--pw) + var(--deck)) / 2)); }
.p3d-coping { width: calc(var(--pw) + 16px); height: calc(var(--ph) + 16px); transform: translate(-50%,-50%) translateZ(2px); border-radius: 8px; border: 2px solid color-mix(in oklab, var(--accent) 55%, #bfeef4); box-shadow: 0 0 24px -2px rgba(22,188,212,.7), inset 0 0 18px -4px rgba(22,188,212,.6); }
.p3d-wall { background: linear-gradient(180deg, #0e4a58, #08222b); border: 1px solid rgba(140,230,242,.12); }
.p3d-wall--n { width: var(--pw); height: var(--pd); transform: translate(-50%,-50%) translateY(calc(var(--ph) / -2)) rotateX(-90deg) translateY(calc(var(--pd) / -2)); }
.p3d-wall--s { width: var(--pw); height: var(--pd); transform: translate(-50%,-50%) translateY(calc(var(--ph) / 2)) rotateX(90deg) translateY(calc(var(--pd) / -2)); }
.p3d-wall--w { width: var(--ph); height: var(--pd); transform: translate(-50%,-50%) translateX(calc(var(--pw) / -2)) rotateY(90deg) rotateZ(90deg) translateY(calc(var(--pd) / -2)); }
.p3d-wall--e { width: var(--ph); height: var(--pd); transform: translate(-50%,-50%) translateX(calc(var(--pw) / 2)) rotateY(-90deg) rotateZ(-90deg) translateY(calc(var(--pd) / -2)); }
.p3d-floor { width: var(--pw); height: var(--ph); transform: translate(-50%,-50%) translateZ(calc(var(--pd) * -1)); background: linear-gradient(150deg, #0a3a47, #062029); overflow: hidden; }
.p3d-caustic { position: absolute; inset: -20%; background: radial-gradient(30% 30% at 30% 30%, rgba(22,188,212,.55), transparent 60%), radial-gradient(26% 26% at 70% 60%, rgba(22,188,212,.45), transparent 60%), radial-gradient(22% 22% at 50% 85%, rgba(196,246,251,.4), transparent 60%); mix-blend-mode: screen; opacity: .8; animation: p3dCaustic 9s ease-in-out infinite alternate; }
@keyframes p3dCaustic { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(6%,4%) scale(1.12)} }
.p3d-water { width: var(--pw); height: var(--ph); transform: translate(-50%,-50%) translateZ(calc(var(--pd) * -.16)); background: linear-gradient(150deg, color-mix(in oklab, var(--accent) 40%, #0a3a47), rgba(8,34,43,.7)); border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 60px -10px rgba(22,188,212,.55); }
.p3d-shimmer { position: absolute; inset: -30%; background: repeating-linear-gradient(58deg, rgba(196,246,251,.16) 0 3px, transparent 3px 18px), repeating-linear-gradient(122deg, rgba(196,246,251,.1) 0 2px, transparent 2px 22px); mix-blend-mode: screen; animation: p3dShimmer 7s linear infinite; }
@keyframes p3dShimmer { 0%{transform:translate(0,0)} 100%{transform:translate(-18px,-22px)} }
.p3d-glints { position: absolute; inset: 0; background: radial-gradient(40% 30% at 35% 25%, rgba(255,255,255,.5), transparent 60%); mix-blend-mode: screen; opacity: .5; animation: p3dGlint 6s ease-in-out infinite alternate; }
@keyframes p3dGlint { 0%{opacity:.25;transform:translate(0,0)} 100%{opacity:.6;transform:translate(8%,6%)} }
.p3d-glow { width: var(--pw); height: var(--ph); transform: translate(-50%,-50%) translateZ(calc(var(--pd) * -1 - 6px)); background: radial-gradient(closest-side, rgba(22,188,212,.5), transparent 72%); filter: blur(14px); }
.p3d-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; z-index: 5; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-dim); transition: opacity .5s; pointer-events: none; }
.p3d-hint svg { width: 18px; height: 18px; color: var(--accent); animation: p3dHint 2.6s var(--ease) infinite; }
@keyframes p3dHint { 0%,100%{transform:rotate(-12deg)} 50%{transform:rotate(12deg)} }
.p3d-hint--hide { opacity: 0; }

/* ---------- Плавающие кнопки связи ---------- */
.floats { position: fixed; right: clamp(16px,3vw,30px); bottom: clamp(16px,3vw,30px); z-index: 80; display: flex; flex-direction: column; gap: 13px; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 14px 34px -10px rgba(0,0,0,.4); transition: transform .35s var(--ease); position: relative; }
.float-btn svg { width: 28px; height: 28px; }
.float-btn:hover { transform: scale(1.1) translateY(-2px); }
.float-btn.wa { background: #25d366; }
.float-btn.tg { background: #2aabee; }
.float-btn.call { background: var(--cta); }
.float-btn.call::after { content:""; position:absolute; inset:0; border-radius:50%; border:2px solid var(--cta); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.7);opacity:0} }

/* ---------- Модальные окна ---------- */
.modal-root { position: fixed; inset: 0; z-index: 200; display: none; }
.modal-root.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(4,16,21,.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s var(--ease); }
.modal-root.open .modal-overlay { opacity: 1; }
.modal-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(480px, calc(100vw - 36px)); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: 40px 36px 34px; box-shadow: 0 60px 130px -30px rgba(0,0,0,.6); opacity: 0; transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.modal-root.open .modal-card { opacity: 1; transform: translate(-50%, -50%); }
.modal-card h3 { font-size: 28px; line-height: 1.08; }
.modal-card .m-sub { color: var(--ink-soft); font-size: 15px; margin-top: 12px; margin-bottom: 24px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); color: var(--ink-soft); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s; }
.modal-close:hover { background: var(--cta); color: #fff; }

/* ---------- Футер (тёмный) ---------- */
.footer { background: var(--void); color: var(--on-dark-soft); padding-block: 76px 40px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-d-soft); }
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer-about { font-size: 14.5px; line-height: 1.65; max-width: 34ch; }
.footer-col h5 { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; margin-bottom: 11px; transition: color .3s; }
.footer-col a:hover { color: var(--accent); }
.footer-map { margin-top: 14px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-d-soft); height: 150px; position: relative; }
.footer-socials { display: flex; gap: 12px; margin-top: 8px; }
.footer-socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-d); display: flex; align-items: center; justify-content: center; color: #fff; transition: all .3s; }
.footer-socials a:hover { background: var(--accent); color: #04252b; border-color: transparent; }
.footer-socials svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; color: var(--on-dark-dim); flex-wrap: wrap; gap: 14px; }
.footer-bottom a { text-decoration: underline; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- reveal-анимации ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  html { scroll-behavior: auto; }
  .float-btn.call::after { animation: none; }
}

/* ============================================================
   ПОЛИРОВКА И ЭФФЕКТЫ (премиум-детали)
   ============================================================ */
/* индикатор прогресса прокрутки */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99; background: linear-gradient(90deg, var(--accent), var(--cta)); box-shadow: 0 0 12px -1px var(--accent); transition: width .12s linear; }

/* sheen-блик на кнопках при наведении */
.btn::before { content: ""; position: absolute; top: 0; left: -60%; width: 38%; height: 100%; z-index: 1; pointer-events: none; background: linear-gradient(110deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-18deg); opacity: 0; }
.btn:hover::before { animation: btnSheen .75s var(--ease); }
@keyframes btnSheen { 0% { left: -60%; opacity: 0; } 30% { opacity: 1; } 100% { left: 130%; opacity: 0; } }

/* живой блик-каустика на «водных» плейсхолдерах */
.ph-pool::before, .ph-infinity::before, .ph-spa::before, .ph-aerial::before, .ph-tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(42% 30% at 28% 22%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(36% 26% at 72% 64%, rgba(196,246,251,.16), transparent 62%);
  animation: phGlow 9s ease-in-out infinite alternate;
}
@keyframes phGlow { 0% { opacity: .45; transform: translate(0,0) scale(1); } 100% { opacity: .85; transform: translate(5%,4%) scale(1.07); } }

/* тонкая «водная гладь» бегущими бликами на hero-картах при наведении не нужна — оставляем спокойствие */

/* плавный параллакс глубины (управляется JS, добавляет will-change) */
[data-depth] { will-change: transform; }
.tech-media .ph, .case-media .ph, .footer-map .ph { transform: scale(1.14); will-change: transform; }

/* доступные focus-состояния */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .opt:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .ph-pool::before, .ph-infinity::before, .ph-spa::before, .ph-aerial::before, .ph-tile::before { animation: none; }
  .btn:hover::before { animation: none; }
  .scroll-progress { display: none; }
}

/* ---------- плейсхолдеры изображений ---------- */
.ph { background-size: cover; background-position: center; background-color: var(--mist); position: relative; }
/* светлые, дневные */
.ph-pool { background: radial-gradient(120% 90% at 50% 12%, rgba(180,245,252,.5), transparent 55%), repeating-linear-gradient(116deg, rgba(255,255,255,.18) 0 22px, transparent 22px 46px), linear-gradient(160deg, #2bc4dc 0%, #119bb4 50%, #0c7e96 100%); }
.ph-tile { background: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 1px, transparent 1px 28px), linear-gradient(135deg, #36cfe4, #0e93ab 60%, #0b6f86); }
.ph-deck { background: radial-gradient(100% 80% at 50% 0%, rgba(180,245,252,.4), transparent 60%), repeating-linear-gradient(92deg, rgba(0,0,0,.05) 0 3px, transparent 3px 44px), linear-gradient(150deg, #d7e9ec, #bcd9de 60%, #9fc6cd); }
.ph-spa { background: radial-gradient(70% 60% at 50% 65%, rgba(255,255,255,.45), transparent 65%), linear-gradient(150deg, #34c9e0, #0e93ab 55%, #0b7088); }
.ph-aerial { background: radial-gradient(60% 70% at 65% 40%, rgba(255,255,255,.4), transparent 55%), linear-gradient(135deg, #2bc4dc 0%, #11a0ba 30%, #0c7e96 60%, #0a5e72 100%); }
.ph-infinity { background: linear-gradient(180deg, rgba(255,255,255,.25) 0%, transparent 32%), radial-gradient(120% 70% at 50% 100%, rgba(22,188,212,.7), transparent 60%), linear-gradient(180deg, #1bb5cf 0%, #0e93ab 44%, #0b6f86 70%, #0a5567 100%); }
/* ночной (для тёмных карточек) */
.ph-night { background: radial-gradient(60% 50% at 50% 82%, rgba(22,188,212,.6), transparent 70%), radial-gradient(40% 30% at 20% 30%, rgba(95,227,239,.3), transparent 70%), linear-gradient(180deg, #07222b, #04161c); }
.ph::after { content: attr(data-ph); position: absolute; left: 14px; bottom: 12px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 600; }

/* ---------- адаптив (ядро) ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 480px; }
  .showcase .wrap { grid-template-columns: 1fr; gap: 24px; }
  .showcase-stage { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1260px) {
  .nav-links, .nav-phone { display: none; }
  .nav-burger { display: flex; }
  .nav .nav-cta { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .p3d-rig { --pw: 300px; --ph: 210px; --pd: 92px; --deck: 46px; }
  .float-btn { width: 52px; height: 52px; }
  .float-btn svg { width: 25px; height: 25px; }
  .modal-card { padding: 34px 24px 28px; }
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ (iPhone + Android)
   ============================================================ */
* { -webkit-tap-highlight-color: rgba(0,0,0,0); }
a, button, input, .opt, .faq-q { -webkit-tap-highlight-color: transparent; }
.modal-card, .mobile-menu, .cases-viewport, .rev-viewport { -webkit-overflow-scrolling: touch; }

/* safe-area для устройств с вырезами/home-indicator */
@supports (padding: env(safe-area-inset-bottom)) {
  .nav { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
  .floats { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .mobile-menu { padding-bottom: max(40px, calc(env(safe-area-inset-bottom) + 24px)); padding-top: max(80px, calc(env(safe-area-inset-top) + 70px)); }
  .mobile-close { top: max(24px, calc(env(safe-area-inset-top) + 12px)); }
}

@media (max-width: 620px) {
  :root { --r-lg: 20px; --r-md: 14px; --gutter: 18px; }
  .section-pad { padding-block: clamp(60px, 14vw, 92px); }
  .display { font-size: clamp(44px, 14.5vw, 70px); line-height: 1.0; }
  .section-title { font-size: clamp(31px, 8.6vw, 48px); }

  /* поля ≥16px — iOS не зумит при фокусе */
  .field input, .field textarea { font-size: 16px; padding: 15px 15px; }

  /* hero */
  .hero-inner { padding: clamp(104px, 17vh, 140px) var(--gutter) 52px; gap: 30px; }
  .hero-eyebrow { margin-bottom: 20px; }
  .hero-sub { margin-top: 24px; max-width: none; }
  .hero-usp { gap: 12px 22px; margin-top: 30px; }
  .hero-actions { margin-top: 28px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-card { max-width: none; padding: 26px 22px 24px; }
  .hero-card h3 { font-size: 26px; }
  .hero-scroll { display: none; }

  /* кнопки крупнее по высоте для пальца */
  .btn { padding: 16px 24px; }
  .btn--lg { padding: 17px 26px; font-size: 15.5px; }

  /* заголовки секций — отступы */
  .eyebrow-row::before { width: 26px; }
  .head .eyebrow-row { margin-bottom: 18px; }

  /* карточки и контент */
  .adv-card { padding: 28px 24px; }
  .adv-card .big { font-size: 44px; top: 18px; right: 22px; }
  .type-card .media { height: 220px; }
  .type-card .body { padding: 28px 24px; }
  .type-card h3 { font-size: 30px; }
  .stage { padding: 24px 22px; min-height: 0; }
  .serv-card { padding: 28px 24px; }
  .case-body { padding: 28px 22px; }
  .case-rows .cr { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .case-rows .cr .ck { padding-top: 0; }
  .rev-card { padding: 28px 24px; }
  .rev-card p { font-size: 16.5px; }

  /* 3D-бассейн — компактнее */
  .showcase-stage, .p3d-scene { height: 340px; min-height: 340px; }
  .p3d-rig { --pw: 250px; --ph: 172px; --pd: 76px; --deck: 36px; }

  /* FAQ */
  .faq-q { padding: 19px 18px; font-size: 16px; gap: 12px; }
  .faq-a-inner { padding: 0 18px 20px; }

  /* финальный CTA / контакты */
  .cta-contacts a .big { font-size: 19px; }
  .cta-contacts .ic { width: 42px; height: 42px; }
  .form-card { padding: 30px 22px; }

  /* футер */
  .footer-bottom { font-size: 12px; }

  /* модалка ближе к краям */
  .modal-card { width: calc(100vw - 24px); padding: 30px 20px 24px; border-radius: 22px; }
  .modal-card h3 { font-size: 25px; }
}

@media (max-width: 380px) {
  .trust .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-usp { flex-direction: column; gap: 12px; }
}
