/* ============================================================================
   Aquario - "Deep Water" homepage
   Dark, premium, cinematic. Looking down into deep, clear water lit by azure
   light from below. Cousin of internal "Refined Glass" - deeper, editorial.
   ASCII comments / English. UI text RU lives in HTML.
   ============================================================================ */

/* ---------- Tokens ---------- */
:root {
  /* depth / background */
  --depth-0: #04121b;
  --depth-1: #07202e;
  --depth-2: #0b2c3d;
  --depth-3: #0f3a4f;

  /* brand water accents (the ONE bold accent family) */
  --azure: #008DD2;
  --azure-bright: #59c1f6;
  --cyan: #22d3ee;

  /* text */
  --foam: #eaf4fb;
  --muted: #8fb0c4;
  --muted-2: #6b8da3;

  /* glass surfaces over the deep gradient */
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .06);
  --glass-brand: rgba(0, 141, 210, .10);
  --stroke: rgba(120, 180, 215, .14);
  --stroke-2: rgba(120, 180, 215, .26);
  --stroke-soft: rgba(120, 180, 215, .07);

  /* radii */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadow + glow */
  --shadow-2: 0 16px 40px -18px rgba(0, 0, 0, .7);
  --shadow-3: 0 40px 90px -30px rgba(0, 0, 0, .8);
  --glow-brand: 0 0 0 1px rgba(0, 141, 210, .35), 0 14px 44px -12px rgba(0, 141, 210, .55);
  --glow-soft: 0 0 40px -8px rgba(0, 141, 210, .4);

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .15s;
  --t: .28s;
  --t-slow: .55s;

  --header-h: 70px;
  --shell: 1180px;

  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Ensure [hidden] always wins over later display rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foam);
  background: var(--depth-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* The cinematic "deep water lit from below" gradient field */
  background-image:
    radial-gradient(120% 80% at 50% 110%, rgba(0, 141, 210, .22), transparent 60%),
    radial-gradient(90% 60% at 18% -10%, rgba(34, 211, 238, .10), transparent 55%),
    radial-gradient(70% 50% at 90% 5%, rgba(89, 193, 246, .08), transparent 60%),
    linear-gradient(180deg, var(--depth-1) 0%, var(--depth-0) 45%, #030c14 100%);
  /* Default: scroll-attached (cheap, no jank). The cinematic "fixed" parallax is
     opted into only on fine-pointer / hover devices below, where it is safe -
     `background-attachment: fixed` is expensive and janky on iOS/Android. */
}

/* Fixed-parallax backdrop only where it won't cost scroll perf (desktop). */
@media (hover: hover) and (pointer: fine) {
  body { background-attachment: fixed; }
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--azure-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================================
   Depth rail (left margin borehole scale)
   ============================================================================ */
.depth-rail {
  position: fixed;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 60px;
  /* sit ABOVE the sticky header so the rail reads instead of ghosting behind it */
  z-index: 60;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.depth-rail__line {
  position: absolute;
  top: 14vh;
  bottom: 14vh;
  left: 11px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--stroke-2) 12%, var(--stroke-2) 88%, transparent);
}

.depth-rail__marks {
  position: absolute;
  top: 14vh;
  bottom: 14vh;
  left: 0;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
}

.depth-rail__mark {
  position: absolute;
  left: 18px;
  transform: translateY(-50%);
  white-space: nowrap;
  letter-spacing: .02em;
}
.depth-rail__mark::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--stroke-2);
  transform: translateY(-50%);
}

.depth-rail__cursor {
  position: absolute;
  left: 11px;
  top: 14vh;
  transform: translate(-50%, -50%);
  transition: top .12s linear;
}
.depth-rail__cursor::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--azure-bright);
  box-shadow: 0 0 0 4px rgba(89, 193, 246, .18), 0 0 14px 2px rgba(89, 193, 246, .5);
}
.depth-rail__cursor-val {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--azure-bright);
  white-space: nowrap;
  /* readable when it crosses a static mark */
  padding: 2px 5px;
  border-radius: var(--r-sm);
  background: rgba(4, 18, 27, .85);
  box-shadow: 0 0 0 1px var(--stroke);
}

/* Condensed rail on common laptop widths (1100-1340px): narrower, marks hidden,
   keeps the signature cursor + line visible instead of vanishing entirely. */
@media (max-width: 1340px) {
  .depth-rail { left: 8px; width: 40px; }
  .depth-rail__line { left: 7px; }
  .depth-rail__cursor { left: 7px; }
  .depth-rail__marks { display: none; }
}
/* Below ~1100px the shell gets too tight - hide the rail to avoid crowding */
@media (max-width: 1100px) { .depth-rail { display: none; } }

/* ---------- Mobile/tablet vestige of the depth signature ----------
   Hidden on desktop (full rail covers it); appears once the rail is gone so the
   borehole-depth identity survives on tablet/phone. A thin top depth tick that
   fills with scroll + a compact corner depth readout. */
.depth-mini { display: none; }

@media (max-width: 1100px) {
  .depth-mini {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 70;
    pointer-events: none;
  }
  .depth-mini__tick {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--azure), var(--azure-bright));
    box-shadow: 0 0 10px 1px rgba(89, 193, 246, .55);
    transition: width .12s linear;
  }
  .depth-mini__val {
    position: absolute;
    top: 8px; right: 10px;
    font-size: 10px;
    line-height: 1;
    color: var(--azure-bright);
    padding: 3px 6px 3px 16px;
    border-radius: var(--r-sm);
    background: rgba(4, 18, 27, .82);
    box-shadow: 0 0 0 1px var(--stroke);
  }
  /* small borehole-depth glyph (downward caret) before the value */
  .depth-mini__val::before {
    content: "";
    position: absolute;
    left: 6px; top: 50%;
    width: 5px; height: 5px;
    border-right: 1.4px solid var(--azure-bright);
    border-bottom: 1.4px solid var(--azure-bright);
    transform: translateY(-65%) rotate(45deg);
  }
}

/* ============================================================================
   Header
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              backdrop-filter var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(5, 18, 27, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--stroke);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--glass-2), var(--glass));
  border: 1px solid var(--stroke);
  box-shadow: var(--glow-soft);
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--foam);
  display: inline-flex;
  align-items: baseline;
}
.brand__word small {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-left: 8px;
  align-self: center;
}

.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 9px 13px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-nav a:hover { color: var(--foam); background: var(--glass); }

.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.icon-btn:hover { color: var(--foam); background: var(--glass); border-color: var(--stroke); }

.burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--stroke-2);
  color: var(--foam);
  background: var(--glass-2);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t) var(--ease),
              border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), color var(--t) var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: var(--azure-bright); }
.btn:active { transform: translateY(0); }

.btn--lg { padding: 15px 24px; font-size: 15.5px; }
.btn--sm { padding: 9px 14px; font-size: 13px; }

.btn--primary {
  color: #04121b;
  background: linear-gradient(135deg, var(--azure-bright), var(--azure));
  border-color: transparent;
  box-shadow: var(--glow-brand);
}
.btn--primary:hover { box-shadow: var(--glow-brand), 0 0 50px -8px rgba(89, 193, 246, .6); }

.btn--ghost { background: var(--glass); color: var(--foam); }
.btn--ghost:hover { background: var(--glass-2); }

.btn[disabled] { opacity: .4; pointer-events: none; }

.cabinet-link { padding: 10px 16px; }

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: scale(0);
  animation: ripple .6s var(--ease-out);
  pointer-events: none;
}
.btn--primary .ripple { background: rgba(4, 18, 27, .3); }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

/* ---------- Mobile drawer ---------- */
.mobile-drawer {
  border-top: 1px solid var(--stroke);
  background: rgba(5, 18, 27, .96);
  backdrop-filter: blur(14px);
  padding: 12px 24px 22px;
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer a {
  padding: 13px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--stroke-soft);
}
.mobile-drawer a:hover { color: var(--foam); }
.mobile-drawer a.btn { justify-content: center; margin-top: 12px; border-bottom: none; }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 12, 20, .72);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  padding-top: 16vh;
  animation: fade .2s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.search-overlay__panel {
  width: min(640px, 92vw);
  background: linear-gradient(180deg, var(--depth-2), var(--depth-1));
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3), var(--glow-soft);
  padding: 14px;
  height: max-content;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.search-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 10px 0;
}
.search-field input::placeholder { color: var(--muted); }
.search-field__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 4px;
  font-size: 13px;
  color: var(--muted);
}
.search-field__hint button {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--azure-bright);
  background: var(--glass-brand);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.search-field__hint button:hover { background: rgba(0, 141, 210, .2); }

/* ============================================================================
   Hero
   ============================================================================ */
.hero {
  position: relative;
  padding: clamp(48px, 8vh, 96px) 0 clamp(56px, 9vh, 104px);
  overflow: hidden;
}

.hero__atmos { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* azure light from below */
.depth-glow {
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 120%;
  height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 141, 210, .35), transparent 70%);
  filter: blur(20px);
  animation: glowDrift 14s var(--ease) infinite alternate;
}
@keyframes glowDrift {
  from { transform: translateX(-52%) scale(1); opacity: .85; }
  to   { transform: translateX(-48%) scale(1.08); opacity: 1; }
}

/* caustic refraction shimmer */
.caustics {
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(115deg, transparent 0 38px, rgba(89, 193, 246, .05) 38px 40px),
    repeating-linear-gradient(60deg, transparent 0 52px, rgba(34, 211, 238, .04) 52px 54px);
  mask-image: radial-gradient(60% 50% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 50% at 50% 40%, #000 30%, transparent 75%);
  animation: causticShift 26s linear infinite;
  opacity: .8;
}
@keyframes causticShift { to { transform: translate(40px, 30px); } }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  padding: 7px 14px 7px 11px;
  margin-bottom: 26px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--azure-bright);
  box-shadow: 0 0 10px 1px var(--azure-bright);
  animation: pulseDot 2.4s var(--ease) infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero__title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
}
.grad {
  background: linear-gradient(100deg, var(--azure-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero__lead {
  margin-top: 22px;
  max-width: 50ch;
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__facts {
  display: flex;
  gap: 34px;
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--stroke-soft);
  flex-wrap: wrap;
}
.hero__facts div { display: flex; flex-direction: column; }
.hero__facts dt {
  font-size: 26px;
  font-weight: 600;
  color: var(--azure-bright);
  letter-spacing: -.01em;
}
.hero__facts dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Signature: H-Q card ---------- */
.hero__chart {
  position: relative;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px);
  margin: 0;
}
.hero__chart::after {
  /* top light edge */
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(89, 193, 246, .5), transparent);
}

.hq-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.hq-card__title { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.hq-card__sku { font-size: 12px; color: var(--cyan); }

.hq { width: 100%; height: auto; }
.hq__axis text { fill: var(--muted); font-size: 11px; }
.hq__grid line { stroke: var(--stroke); }

.hq__op-dot {
  fill: var(--azure-bright);
  filter: drop-shadow(0 0 6px var(--azure-bright));
}
.hq__op-halo {
  fill: none;
  stroke: var(--azure-bright);
  stroke-width: 1.4;
  transform-origin: center;
  animation: opPulse 2.6s var(--ease) infinite;
}
@keyframes opPulse {
  0%, 100% { opacity: .7; transform: scale(.7); }
  50% { opacity: 0; transform: scale(1.5); }
}
.hq__op-guide { stroke: var(--azure-bright); stroke-width: 1; stroke-dasharray: 2 5; opacity: .35; }
.hq__op-label text { fill: var(--azure-bright); font-size: 11px; }
.hq__op-label .hq__op-val { fill: var(--cyan); font-size: 12px; font-weight: 600; }

.hq-card__foot {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
}
.hq-card__foot span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.swatch--curve { background: linear-gradient(90deg, var(--azure-bright), var(--azure)); }
.swatch--op { width: 9px; height: 9px; border-radius: 50%; background: var(--azure-bright); box-shadow: 0 0 8px var(--azure-bright); }

/* scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-pill);
  display: grid;
  place-items: start center;
  padding-top: 8px;
  z-index: 2;
}
.hero__scroll span {
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--azure-bright);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============================================================================
   Section scaffolding
   ============================================================================ */
.section { padding: clamp(56px, 9vh, 104px) 0; position: relative; }
.section--tight { padding-block: clamp(34px, 5vh, 56px); }

.kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

/* ---------- Quick access tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--stroke);
  cursor: pointer;
}
.tile__icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--azure-bright);
  background: var(--glass-brand);
  border: 1px solid var(--stroke);
  margin-bottom: 10px;
}
.tile__icon svg { width: 22px; height: 22px; }
.tile__label { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--foam); }
.tile__sub { font-size: 12.5px; color: var(--muted); }

/* generic card hover lift */
.card-hover { transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.card-hover:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-2);
  box-shadow: var(--shadow-2), var(--glow-soft);
}

/* ---------- Catalog grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--stroke);
  cursor: pointer;
  overflow: hidden;
  min-height: 168px;
}
.cat::before {
  /* left azure accent bar appearing on hover */
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, var(--azure-bright), var(--azure));
  border-radius: 2px;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.cat:hover::before { opacity: 1; }
.cat__num {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: .05em;
}
.cat__title { font-size: 16.5px; font-weight: 600; color: var(--foam); margin-bottom: 6px; line-height: 1.2; }
.cat__desc { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.5; }
.cat__line { font-size: 11px; color: var(--cyan); margin-top: 12px; letter-spacing: .02em; }

/* ============================================================================
   Podbor teaser
   ============================================================================ */
.section--podbor::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 80% 50%, rgba(0, 141, 210, .1), transparent 60%);
  pointer-events: none;
}
.podbor__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.steps { list-style: none; margin: 32px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  cursor: pointer;
}
.step.is-active { background: var(--glass-brand); border-color: var(--stroke-2); }
.step__num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--stroke);
  transition: color var(--t) var(--ease), background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.step.is-active .step__num {
  color: #04121b;
  background: linear-gradient(135deg, var(--azure-bright), var(--azure));
  border-color: transparent;
  box-shadow: var(--glow-soft);
}
.step__title { font-size: 15.5px; font-weight: 600; color: var(--foam); }
.step__desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* demo panel */
.podbor__panel {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(10px);
}
.podbor-demo { position: relative; min-height: 248px; }
.demo-screen { display: none; animation: fade .3s var(--ease); }
.demo-screen.is-on { display: block; }
.demo-screen__label {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.src-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.src {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.src svg { width: 24px; height: 24px; color: var(--muted-2); transition: color var(--t-fast) var(--ease); }
.src:hover { color: var(--foam); border-color: var(--stroke-2); }
.src.is-picked {
  color: var(--foam);
  background: var(--glass-brand);
  border-color: var(--azure);
  box-shadow: var(--glow-soft);
}
.src.is-picked svg { color: var(--azure-bright); }

.param { margin-bottom: 20px; }
.param__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.param__row label { font-size: 14px; color: var(--muted); }
.param__row output { font-size: 14px; color: var(--azure-bright); font-weight: 600; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--azure) var(--p, 50%), var(--glass-2) var(--p, 50%));
  cursor: pointer;
}
/* Keyboard focus: a clear ring around the whole control AND a halo on the thumb.
   Parent panels (.podbor__panel/.podbor-demo) are not overflow:hidden, so the
   offset ring is never clipped. */
input[type="range"]:focus-visible {
  outline: 2px solid var(--azure-bright);
  outline-offset: 6px;
  border-radius: var(--r-pill);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--azure-bright);
  border: 3px solid var(--depth-1);
  box-shadow: 0 0 12px 1px rgba(89, 193, 246, .6);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--azure-bright);
  border: 3px solid var(--depth-1);
  box-shadow: 0 0 12px 1px rgba(89, 193, 246, .6);
}
/* Make the thumb itself visibly "lit" on focus for users who watch the handle */
input[type="range"]:focus-visible::-webkit-slider-thumb {
  border-color: var(--foam);
  box-shadow: 0 0 0 4px rgba(89, 193, 246, .35), 0 0 14px 2px rgba(89, 193, 246, .7);
}
input[type="range"]:focus-visible::-moz-range-thumb {
  border-color: var(--foam);
  box-shadow: 0 0 0 4px rgba(89, 193, 246, .35), 0 0 14px 2px rgba(89, 193, 246, .7);
}

.result-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 14px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--stroke);
}
.result.is-best { background: var(--glass-brand); border-color: var(--azure); }
.result__badge {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #04121b;
  background: linear-gradient(135deg, var(--azure-bright), var(--cyan));
  border-radius: var(--r-pill);
  padding: 3px 10px;
  margin-bottom: 4px;
}
.result__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--foam); }
.result__spec { font-size: 12.5px; color: var(--cyan); justify-self: end; }

.podbor-demo__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.dots { display: flex; gap: 7px; }
.dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--glass-2);
  border: 1px solid var(--stroke);
  transition: background var(--t) var(--ease), width var(--t) var(--ease);
}
.dots span.is-on { background: var(--azure-bright); width: 20px; border-radius: var(--r-pill); border-color: transparent; }

/* ============================================================================
   3D teaser
   ============================================================================ */
.scheme__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.scheme__visual {
  position: relative;
  background:
    radial-gradient(80% 80% at 30% 80%, rgba(0, 141, 210, .18), transparent 60%),
    linear-gradient(180deg, var(--depth-2), var(--depth-1));
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 16px 18px 18px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

/* viewer chrome bar - signals "3D model viewer", not a flat plan */
.scheme-viewer__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--stroke-soft);
  margin-bottom: 4px;
}
.scheme-viewer__badge {
  font-size: 11px; font-weight: 600;
  color: #04121b;
  background: linear-gradient(135deg, var(--azure-bright), var(--cyan));
  border-radius: var(--r-sm);
  padding: 3px 8px;
  letter-spacing: .04em;
}
.scheme-viewer__file { font-size: 12px; color: var(--muted); }
.scheme-viewer__drag {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--azure-bright);
}

/* perspective stage gives the model real depth (distinct from flat map) */
.scheme-stage {
  perspective: 1200px;
  padding: 4px 0;
}
.scheme-svg {
  width: 100%; height: auto;
  transform: rotateX(11deg) rotateZ(-1deg);
  transform-origin: 50% 60%;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .45));
}

.scheme-floor path:first-child { fill: rgba(89, 193, 246, .04); stroke: var(--stroke); stroke-width: 1; }
.scheme-floor__grid { fill: none; stroke: var(--stroke-soft); stroke-width: 1; }
.scheme-borehole path { stroke: var(--stroke-2); stroke-width: 2; stroke-linecap: round; fill: none; }
.scheme-borehole__rim { stroke: var(--stroke); stroke-width: 1; opacity: .7; }
.scheme-pump { fill: var(--depth-3); stroke: var(--azure-bright); stroke-width: 1.5; }
.scheme-pump__hi { fill: rgba(89, 193, 246, .35); stroke: none; }
.scheme-node__cap { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.flow-dot { filter: drop-shadow(0 0 5px var(--azure-bright)); offset-path: path("M164 322 L164 222 L246 176 L330 218 L330 250"); animation: flow 3.4s linear infinite; }
.flow-dot--2 { offset-path: path("M164 322 L164 222 L246 176 L312 138"); animation: flow 3.4s linear infinite; animation-delay: 1.7s; }
@keyframes flow { from { offset-distance: 0%; } to { offset-distance: 100%; } }

/* model thumbnails - a "pick a component" affordance the flat map lacks */
.scheme-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke-soft);
}
.scheme-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.scheme-thumb.is-on {
  color: var(--foam);
  background: var(--glass-brand);
  border-color: var(--azure);
  box-shadow: var(--glow-soft);
}
.scheme-thumb.is-on svg { color: var(--azure-bright); }
.scheme-thumb__cap { font-size: 10.5px; letter-spacing: .02em; }

.checklist { list-style: none; margin: 24px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--foam); }
.checklist svg { color: var(--azure-bright); flex-shrink: 0; }

/* ============================================================================
   Stats band
   ============================================================================ */
.stats { padding-block: clamp(44px, 7vh, 80px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 38px 24px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .05);
  position: relative;
}
.stats__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  background: radial-gradient(60% 120% at 50% 120%, rgba(0, 141, 210, .14), transparent 70%);
  pointer-events: none;
}
.stat { text-align: center; position: relative; }
.stat__num {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  color: var(--azure-bright);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat__cap { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ============================================================================
   About / heritage
   ============================================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.about__text { color: var(--muted); font-size: 16px; line-height: 1.7; margin-top: 18px; max-width: 56ch; }
.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  font-size: 12px;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  padding: 7px 14px;
}

.timeline { list-style: none; margin: 0; padding: 0; }
.tl {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--stroke-soft);
  position: relative;
}
.tl:last-child { border-bottom: none; }
.tl::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 26px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--azure-bright);
  box-shadow: 0 0 10px 1px var(--azure-bright);
}
.tl__year { font-size: 16px; color: var(--cyan); font-weight: 600; }
.tl__txt { font-size: 15.5px; color: var(--foam); padding-left: 16px; }

/* ============================================================================
   Where to buy / service
   ============================================================================ */
.where__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.map {
  position: relative;
  background:
    radial-gradient(70% 90% at 50% 60%, rgba(0, 141, 210, .14), transparent 65%),
    linear-gradient(180deg, var(--depth-2), var(--depth-1));
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 18px;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
}
.map-svg { width: 100%; height: auto; }
.map-land { fill: rgba(89, 193, 246, .06); stroke: var(--stroke-2); stroke-width: 1; }
.map-land--2 { fill: rgba(34, 211, 238, .04); }
.map-arc { stroke: var(--azure-bright); stroke-width: 1.4; stroke-dasharray: 3 5; opacity: .5; }
.map-arc--2 { stroke: var(--cyan); }
.ping circle:last-child { animation: pingPulse 2.6s var(--ease) infinite; transform-origin: center; }
.ping--2 circle:last-child { animation-delay: .6s; }
.ping--3 circle:last-child { animation-delay: 1.1s; }
.ping--4 circle:last-child { animation-delay: 1.7s; }
@keyframes pingPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.map__note {
  position: absolute;
  bottom: 12px; right: 14px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .04em;
}

.where__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--stroke);
  border-radius: var(--r-xl);
  padding: 24px;
}
.where-field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.where-field__input {
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--stroke);
  color: var(--muted-2);
}
.where-field__input input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--foam); font-family: var(--font-body); font-size: 15px; padding: 12px 0;
}
.where-field__input input::placeholder { color: var(--muted); }
.where__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.where-card {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--stroke);
  cursor: pointer;
}
.where-card__num { font-size: 24px; font-weight: 600; color: var(--azure-bright); }
.where-card__cap { font-size: 13px; color: var(--muted); }
.where__panel .btn { margin-top: auto; }

/* ============================================================================
   Documents
   ============================================================================ */
.doc-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--stroke);
  cursor: pointer;
  height: 100%;
}
.doc__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  color: var(--azure-bright);
  background: var(--glass-brand);
  border: 1px solid var(--stroke);
}
.doc__icon svg { width: 22px; height: 22px; }
.doc__body { display: flex; flex-direction: column; gap: 3px; }
.doc__body b { font-size: 14.5px; font-weight: 600; color: var(--foam); }
.doc__body small { font-size: 11px; color: var(--muted); }

/* ============================================================================
   Final CTA band
   ============================================================================ */
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background:
    radial-gradient(80% 160% at 100% 0%, rgba(0, 141, 210, .22), transparent 60%),
    linear-gradient(135deg, var(--depth-2), var(--depth-1));
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-xl);
  padding: 44px 48px;
  box-shadow: var(--shadow-3), var(--glow-soft);
}
.cta-band__title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 700; }
.cta-band__lead { margin-top: 12px; color: var(--muted); font-size: 16px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(7, 32, 46, .4), rgba(3, 12, 20, .9));
  padding-top: 56px;
  margin-top: 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer__tag { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 32ch; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social .icon-btn { border: 1px solid var(--stroke); }
.site-footer__h {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { font-size: 14px; color: var(--muted); transition: color var(--t-fast) var(--ease); width: max-content; }
.site-footer__col a:hover { color: var(--azure-bright); }
.site-footer__addr { font-size: 14px; color: var(--muted); margin: 0; }
.site-footer__partner { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.site-footer__partner a { color: var(--azure-bright); }
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-top: 1px solid var(--stroke-soft);
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ============================================================================
   Reveal motion
   ============================================================================ */
/* Reveal gate applies ONLY when JS is active (html.js set by inline head script).
   Without JS the .reveal default stays visible, so no-JS users / crawlers see the
   full page instead of a blank one. */
.reveal { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js .reveal { opacity: 0; transform: translateY(18px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-list { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .cabinet-link span { display: none; }
  .cabinet-link { width: 42px; height: 42px; padding: 0; }
  .burger { display: grid; }

  .hero__grid,
  .podbor__grid,
  .scheme__grid,
  .about__grid,
  .where__grid { grid-template-columns: 1fr; gap: 36px; }

  .scheme__grid { grid-template-columns: 1fr; }
  .scheme__copy { order: 2; }
  .scheme__visual { order: 1; }

  .hero__chart { max-width: 520px; }
  .where__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { padding-inline: 18px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  .hero__facts { gap: 16px 20px; }
  .hero__facts div { flex: 1 1 40%; min-width: 120px; }
  .hero__facts dt { font-size: 22px; }
  .src-grid { grid-template-columns: 1fr; }
  .doc-list { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; padding: 28px 18px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .brand__word small { display: none; }
}

@media (max-width: 360px) {
  .tiles, .cat-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   Reduced motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, html.js .reveal { opacity: 1; transform: none; }
  .caustics, .depth-glow, .flow-dot, .flow-dot--2,
  .hq__op-halo, .eyebrow__dot, .hero__scroll span,
  .ping circle, .map-arc { animation: none !important; }
  .flow-dot, .flow-dot--2 { display: none; }
}
