/* pool.co.ua — визитка дистрибьютора бассейнов.
   Метафора страницы: спуск в бассейн. Хиро — вид на мозаичное дно сквозь воду,
   слева «глубиномер» как на бортике, футер — тёмный глубокий край. */

@font-face { font-family: "Unbounded"; font-weight: 400 900; font-display: swap;
  src: url(../fonts/unbounded-cyrillic.c3880f0c5a.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 400 900; font-display: swap;
  src: url(../fonts/unbounded-latin.d7f07f8a30.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 300 800; font-display: swap;
  src: url(../fonts/manrope-cyrillic.95a493061f.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 300 800; font-display: swap;
  src: url(../fonts/manrope-latin.e310b55a7f.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia XC"; font-weight: 400 800; font-display: swap;
  src: url(../fonts/sofia-xc-cyrillic.9704b845bb.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia XC"; font-weight: 400 800; font-display: swap;
  src: url(../fonts/sofia-xc-latin.1194eac07d.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --surface: #F2F9FB;   /* плитка бортика */
  --card: #FFFFFF;
  --ink: #0A2540;
  --ink-2: #4A6479;
  --line: rgba(10, 37, 64, .13);
  --aqua: #19B8D3;      /* мелководье */
  --water: #0B7FA5;     /* толща воды */
  --deep: #063A5E;      /* глубокий край */
  --abyss: #041D33;     /* дно футера */
  --sun: #FFC84A;       /* один акцент: маркер глубины */
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Sofia XC", "Arial Narrow", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; margin: 0; }
p, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 20; padding: .5rem .75rem; background: var(--ink); color: #fff; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font: 600 .9375rem/1 var(--cond); letter-spacing: .14em; text-transform: uppercase;
  color: var(--water); margin-bottom: 1rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

/* ---------- шапка ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; color: #fff; padding-top: 1.25rem; }
.top__row { display: flex; align-items: center; justify-content: space-between; }
.brand { font: 700 1.0625rem/1 var(--display); letter-spacing: -.01em; text-decoration: none; }
.brand span { font-weight: 400; opacity: .72; }
.lang { display: flex; align-items: center; gap: .6rem; font: 600 1rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.lang a { text-decoration: none; opacity: .72; padding: .25rem 0; }
.lang a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1.5px; }
.lang__sep { opacity: .4; }

/* ---------- глубиномер ---------- */
.rail {
  display: none; position: fixed; left: 1.5rem; top: 50%; z-index: 6;
  height: min(62vh, 520px); transform: translateY(-50%);
  color: var(--ink); transition: color .35s;
  font: 600 .875rem/1 var(--cond); letter-spacing: .06em;
  pointer-events: none;
}
.rail--light { color: #fff; }
.rail__line { position: relative; height: 100%; width: 1px; background: currentColor; opacity: .95; }
.rail__line::before {
  /* мелкие деления каждые 0,1 м */
  content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 100%;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px calc(100% / 24));
  opacity: .5;
}
.rail__tick {
  position: absolute; left: 0; top: calc(var(--at) * 100%); transform: translateY(-50%);
  padding-left: 16px; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.rail__tick::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 1px; background: currentColor; }
.rail__label {
  position: absolute; left: 0; top: calc(var(--at) * 100%); transform: translateY(-50%);
  padding-left: 46px; white-space: nowrap; opacity: .55; text-transform: uppercase; font-weight: 500; letter-spacing: .12em; font-size: .75rem; transition: opacity .2s;
}
.rail__marker {
  /* табличка глубины, как на стенке бассейна: перекрывает деления и подписи под собой */
  position: absolute; left: -4px; top: calc(var(--at) * 100%); transform: translateY(-50%);
  padding-left: 18px; white-space: nowrap; color: var(--abyss);
}
.rail__marker::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; background: var(--sun); }
.rail__plate { display: block; background: var(--sun); padding: .4rem .6rem .35rem; border-radius: 2px; box-shadow: 0 2px 12px rgba(4,29,51,.28); }
.rail__depth { display: block; font-size: 1.125rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1; }
.rail__where { display: block; font-size: .7rem; opacity: .75; letter-spacing: .14em; text-transform: uppercase; margin-top: .25rem; line-height: 1; }
@media (min-width: 1140px) {
  .rail { display: block; }
  /* Слева от контента должно оставаться место под рейку с подписями (~160px от края окна). */
  .wrap { padding-left: max(var(--gutter), calc(160px - (100vw - var(--wrap)) / 2)); }
}

/* ---------- хиро: дно бассейна ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 100svh; display: grid; align-items: end;
  padding: 7rem 0 12vh;
}
.hero__floor, .hero__caustic, .hero__surface { position: absolute; pointer-events: none; }
.hero__floor {
  inset: -60% 0 -6% 0; z-index: -4; will-change: transform;
  background-color: #12A0C4;
  background-image:
    linear-gradient(rgba(255,255,255,.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.20) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.30) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.30) 2px, transparent 2px),
    linear-gradient(180deg, #0A6F99 0%, #1195BA 45%, #1CB1D2 78%, #3CCBE3 100%);
  background-size: 26px 26px, 26px 26px, 312px 312px, 312px 312px, 100% 100%;
}
.hero__caustic { inset: -45% -6% -8% -6%; z-index: -3; will-change: transform; }
.hero__caustic-in {
  position: absolute; inset: 0; opacity: .85;
  background: url(../img/caustics.3a8a62c25f.svg) 0 0 / 640px 554px repeat;
  animation: drift 34s ease-in-out infinite alternate;
}
.hero__caustic--b .hero__caustic-in {
  opacity: .28; background-size: 1240px 1074px; background-position: 300px 200px;
  animation-duration: 47s; animation-direction: alternate-reverse;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-22px, 14px, 0) scale(1.03); }
  100% { transform: translate3d(18px, -10px, 0) scale(1); }
}
.hero__surface {
  inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 22%, rgba(255,255,255,0) 40%),
    linear-gradient(180deg, rgba(6,58,94,0) 42%, rgba(6,58,94,.55) 78%, rgba(4,29,51,.82) 100%);
}
.hero__content { position: relative; z-index: 1; will-change: transform, opacity; max-width: calc(var(--wrap)); }
.hero h1 {
  font-size: clamp(2.125rem, 6.4vw, 5.5rem); line-height: 1.02; max-width: 15ch;
  text-wrap: balance; text-shadow: 0 2px 24px rgba(4,29,51,.35);
}
.lead {
  margin-top: 1.5rem; max-width: 46ch; font-size: clamp(1rem, 1.35vw, 1.1875rem); line-height: 1.55;
  color: rgba(255,255,255,.9); text-shadow: 0 1px 12px rgba(4,29,51,.35);
}
.hero__hint {
  position: absolute; right: var(--gutter); bottom: 2rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font: 600 .9375rem/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; opacity: .85;
}
.hero__hint svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- секции ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section__head { max-width: 640px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.375rem); line-height: 1.12; text-wrap: balance; }

.tiles {
  /* один ряд мозаики — шов между секциями */
  height: 14px; opacity: .4;
  background:
    linear-gradient(90deg, var(--surface) 1.5px, transparent 1.5px) 0 0 / 14px 14px,
    linear-gradient(90deg, #6ED4E6, #1DB4D0 50%, #6ED4E6);
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  padding: 1.75rem 1.75rem 1.9rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--aqua); }
.card__glyph { width: 46px; height: 46px; color: var(--water); }
.card h3 { font-size: 1.0625rem; line-height: 1.3; }
.card p { color: var(--ink-2); font-size: .9375rem; }
.list { list-style: none; padding: 0; display: grid; gap: .45rem; font-size: .9375rem; }
.list li { position: relative; padding-left: 1.1rem; }
.list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--aqua); }

.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__text { margin-top: 1.25rem; color: var(--ink-2); max-width: 52ch; }
.about__cols { display: grid; gap: 2rem; padding-top: .35rem; }
.about__col h3 { font-size: .9375rem; margin-bottom: .85rem; }
.retail {
  margin-top: 2rem; padding: 1.25rem 1.5rem; max-width: 52ch;
  background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--aqua); border-radius: 3px;
  font-size: .9375rem; color: var(--ink-2);
}
.retail .eyebrow { margin-bottom: .5rem; font-size: .875rem; }
.retail a, .faq details p a { color: var(--water); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.retail a:hover, .faq details p a:hover { color: var(--deep); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.faq__list { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.1rem 0; font: 600 1rem/1.35 var(--display); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--water), var(--water)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--water), var(--water)) center / 1.5px 12px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 3rem 1.35rem 0; color: var(--ink-2); max-width: 64ch; }

/* ---------- футер: глубокий край ---------- */
.deep {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background-color: var(--abyss);
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(180deg, #063A5E 0%, #041D33 70%);
  background-size: 26px 26px, 26px 26px, 100% 100%;
  padding: clamp(4rem, 9vw, 7rem) 0 2.5rem; min-height: 64vh; display: grid; align-items: end;
}
.deep__caustic { position: absolute; inset: 0; z-index: -1; opacity: .16; background: url(../img/caustics.3a8a62c25f.svg) 0 0 / 780px 675px repeat; }
.deep__row { display: grid; gap: .75rem; }
.brand--foot { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.deep__line { color: #8ED8E8; max-width: 60ch; }
.deep__retail { color: rgba(255,255,255,.7); font-size: .9375rem; }
.deep__retail a { color: #fff; text-underline-offset: .2em; }
.lang--foot { margin-top: 1.5rem; text-transform: none; letter-spacing: 0; font: 500 .9375rem/1 var(--body); }
.deep__copy { margin-top: 2.5rem; font: 500 .8125rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; opacity: .55; }

/* ---------- появление при скролле ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal]:nth-child(2) { transition-delay: .08s; }
.js .card[data-reveal]:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__caustic-in, .hero__hint svg { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; padding: 2rem; }
.nf__box { max-width: 36rem; }
.nf__box .brand { color: var(--water); margin-bottom: 2rem; }
.nf__box .brand a { text-decoration: none; }
.nf__box h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 1rem; }
.nf__box p { color: var(--ink-2); }
.nf__ru { margin-top: .5rem; }
