/* =============================================================================
   SoundingKit — маркетингова оболонка (site shell)
   Широка, виразна, для аноніма. Токени ті самі, що в кабінеті.
   ============================================================================= */

.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--sp-5); }

/* ------------------------------------------------------------ шапка ------- */
.site-head { z-index: 40; }
.site-nav { display: flex; align-items: center; gap: var(--sp-6); height: 78px; color: #fff; }
.site-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; color: #fff; }
.site-brand img { width: 28px; height: 28px; }
.site-brand b { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.04em; }
.site-nav a.lnk { text-decoration: none; font-size: var(--fs-md); font-weight: 500; color: rgba(255,255,255,.78); }
.site-nav a.lnk:hover { color: var(--depth-2); }
@media (max-width: 860px) { .site-nav a.lnk { display: none; } }

.btn-hero { background: var(--depth-2); color: var(--abyss); }
.btn-hero:hover { background: var(--depth-1); color: var(--abyss); }
.btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline:hover { border-color: var(--depth-2); color: var(--depth-2); }

/* ------------------------------------------------------------ герой ------- */
.hero { position: relative; background: var(--abyss); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url(/img/bathy-bands.svg) center/cover no-repeat; opacity: .9;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,24,44,.96) 0%, rgba(4,24,44,.88) 38%,
                                      rgba(4,24,44,.44) 72%, rgba(4,24,44,.32) 100%);
}
.hero .site-wrap {
  position: relative; z-index: 2; padding: 150px var(--sp-5) 0;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 52px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-2xs);
  letter-spacing: .20em; text-transform: uppercase; color: var(--depth-2); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--depth-ramp); border-radius: 2px; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px); color: #fff; max-width: 14ch;
  font-weight: 800; font-family: var(--font-display); line-height: 1.06;
}
.hero h1 u {
  text-decoration: none; background: var(--depth-ramp);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lede { font-size: var(--fs-lg); color: #B9CCD6; max-width: 50ch; margin: 24px 0 32px; }
.hero .cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.hero .cta small { font-family: var(--font-mono); font-size: var(--fs-xs); color: #7592A3; }

/* знак + профіль ехолота (варіант C) */
.art { position: relative; justify-self: end; width: 100%; max-width: 430px; }
.art .top { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.art .top img { width: 42%; max-width: 168px; }
.art .rd { font-family: var(--font-mono); font-size: var(--fs-2xs); color: #7592A3; line-height: 1.9; }
.art .rd b {
  display: block; font-family: var(--font-sans); font-size: 30px; color: #fff;
  font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 6px;
}
.art .trace {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md);
  background: rgba(4,24,44,.45); padding: 10px 12px 6px;
}
.art .trace .cap {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; color: #7592A3; margin-bottom: 6px;
}

/* шкала глибин — легенда батиметричної палітри */
.rail {
  grid-column: 1 / -1; margin-top: 66px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(9, 1fr); font-family: var(--font-mono);
}
.rail div {
  padding: 14px 0 26px; font-size: var(--fs-2xs); color: #89A6B5;
  border-right: 1px solid rgba(255,255,255,.08); position: relative;
}
.rail div:last-child { border-right: 0; }
.rail div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.rail div:nth-child(1)::before { background: var(--depth-1); }
.rail div:nth-child(2)::before { background: var(--depth-2); }
.rail div:nth-child(3)::before { background: var(--depth-3); }
.rail div:nth-child(4)::before { background: var(--depth-4); }
.rail div:nth-child(5)::before { background: var(--depth-5); }
.rail div:nth-child(6)::before { background: var(--depth-6); }
.rail div:nth-child(7)::before { background: var(--depth-7); }
.rail div:nth-child(8)::before { background: var(--depth-8); }
.rail div:nth-child(9)::before { background: var(--depth-9); }

@media (max-width: 900px) {
  .hero .site-wrap { grid-template-columns: 1fr; gap: 42px; padding-top: 118px; }
  .art { justify-self: center; max-width: 340px; }
  .rail { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------- смуга лічильників */
.figures { background: var(--abyss); color: #fff; padding-bottom: 4px; }
.figures .site-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.figures .f { padding: 30px var(--sp-5) 34px; border-right: 1px solid rgba(255,255,255,.10); }
.figures .f:first-child { padding-left: 0; }
.figures .f:last-child { border-right: 0; }
.figures b {
  display: block; font-family: var(--font-sans); font-size: 34px; font-weight: 600;
  letter-spacing: -.04em; color: var(--depth-2); line-height: 1.1;
}
.figures span { font-size: var(--fs-sm); color: #89A6B5; }
@media (max-width: 820px) {
  .figures .site-wrap { grid-template-columns: 1fr 1fr; }
  .figures .f { padding-left: 0; }
}

/* ------------------------------------------------------------ секції ------ */
.site-section { padding: var(--sp-9) 0; }
.site-section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker {
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .20em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.site-section h2 { font-size: clamp(28px, 3.6vw, 44px); max-width: 18ch; }
.site-section .sub { color: var(--ink-2); max-width: 60ch; margin-top: 18px; font-size: var(--fs-lg); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-7); }
.step { position: relative; padding-top: 22px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 2px; }
.step:nth-child(1)::before { background: var(--depth-3); }
.step:nth-child(2)::before { background: var(--depth-5); }
.step:nth-child(3)::before { background: var(--depth-7); }
.step .n { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--ink-3); letter-spacing: .16em; }
.step h3 { font-family: var(--font-display); font-size: var(--fs-2xl); margin: 10px 0; }
.step p { margin: 0; font-size: var(--fs-base); color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.split li {
  position: relative; padding: 10px 0 10px 26px;
  font-size: var(--fs-base); color: var(--ink-2); border-bottom: 1px solid var(--line);
}
.split li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 12px; height: 5px; border-radius: 2px; background: var(--depth-4);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 38px; } }

/* ------------------------------------------------------- фінал і підвал --- */
.final { background: var(--abyss); color: #fff; padding: var(--sp-9) 0; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0;
  background: url(/img/contours-white.svg) center/cover no-repeat; opacity: .09;
}
.final .site-wrap { position: relative; text-align: center; }
.final h2 { color: #fff; max-width: 20ch; margin: 0 auto; font-family: var(--font-display); font-size: clamp(28px,3.6vw,42px); }
.final p { color: #9CB6C4; font-size: var(--fs-lg); margin: 18px auto 30px; max-width: 52ch; }
.final .cta { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

.site-foot { padding: var(--sp-7) 0 var(--sp-6); background: #03121F; color: #8DA8B8; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-6); }
.site-foot h4 {
  font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: .18em;
  text-transform: uppercase; color: #5C7A8C; margin: 0 0 14px; font-weight: 500;
}
.site-foot a { display: block; text-decoration: none; font-size: var(--fs-md); color: #8DA8B8; padding: 5px 0; }
.site-foot a:hover { color: var(--depth-2); }
.site-foot .site-brand b { color: #fff; }
.site-foot .copy {
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.1);
  font-size: var(--fs-sm); color: #5C7A8C; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
}
@media (max-width: 820px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------- ілюстрації в секціях -- */
.viz {
  position: relative; aspect-ratio: 4/3; border-radius: var(--r-md);
  overflow: hidden; background: var(--abyss); box-shadow: var(--shadow-2);
}
.viz .bands { position: absolute; inset: 0; background: url(/img/bathy-bands.svg) center/cover no-repeat; }
.viz svg.track { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz .tag {
  position: absolute; left: 16px; top: 16px;
  background: rgba(4,24,44,.88); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm); padding: 9px 13px;
  font-family: var(--font-mono); font-size: var(--fs-2xs); color: #CFE3EC; line-height: 1.8;
}
.viz .tag b { color: var(--depth-2); font-weight: 600; }
.viz .legend {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(4,24,44,.88); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm); padding: 8px 11px;
  font-family: var(--font-mono); font-size: 10px; color: #CFE3EC; line-height: 1.9;
}
.viz .legend i { display: inline-block; width: 18px; height: 6px; margin-right: 7px; vertical-align: middle; border-radius: 1px; }

.figure-note { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--ink-3); }

.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); }
.chart-card h3 {
  font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 600;
  letter-spacing: -.02em; margin-bottom: var(--sp-1);
}
.chart-card .sub { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: var(--sp-4); }

/* ------------------------------------------------- шапка поза героєм ------ */
/* Типова шапка — суцільна. Прозорий білий варіант лишається тільки там,
   де під нею справді темний герой, інакше текст зливається з фоном. */
.site-head-solid {
  position: sticky; top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-head-solid .site-nav { color: var(--ink); }
.site-head-solid .site-brand { color: var(--ink); }
.site-head-solid .site-nav a.lnk { color: var(--ink-2); }
.site-head-solid .site-nav a.lnk:hover { color: var(--accent); }
.site-head-solid .btn-outline { border-color: var(--line-strong); color: var(--ink); }
.site-head-solid .btn-outline:hover { border-color: var(--ink-3); color: var(--ink); }
.site-head-solid .btn-hero { background: var(--accent); color: var(--accent-ink); }
.site-head-solid .btn-hero:hover { background: var(--accent-hover); color: var(--accent-ink); }

.site-head-hero { position: absolute; top: 0; left: 0; right: 0; }
