/* Лендинг сети рыболовных каналов. Тема — эхолот и карта глубин:
   тёмная «глубина» на первом экране, светлая холодная «отмель» под списком,
   оранжевый поплавок — единственный яркий акцент. */

:root {
  --deep: #0D2730;      /* глубина: первый экран, шапка, CTA */
  --water: #164653;     /* вода: поверхности на тёмном, заливка графиков */
  --sonar: #7FD3C6;     /* эхо: линии графиков на тёмном, контуры */
  --shallow: #E9EFEC;   /* отмель: фон страницы */
  --paper: #FFFFFF;
  --float: #F05A28;     /* поплавок: CTA и акценты */
  --float-dark: #C9441A;
  --reed: #4F7A34;      /* камыш: рост */
  --ink: #10222A;
  --ink-2: #3E5660;
  --ink-3: #6E838B;
  --line: #D3DDD9;
  --line-dark: rgba(127, 211, 198, .18);

  --font-display: "Bahnschrift", "DIN Alternate", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-lg: 18px;
  --r-md: 12px;
  --r-pill: 999px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--shallow);
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
p { margin: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

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

:focus-visible { outline: 3px solid var(--float); outline-offset: 3px; border-radius: 6px; }

/* --- кнопки ---------------------------------------------------------------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--r-pill); border: 2px solid var(--float);
  background: var(--float); color: #fff;
  font: 600 16px/1 var(--font-body); text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--float-dark); border-color: var(--float-dark); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.btn-ghost { background: transparent; border-color: rgba(233, 239, 236, .35); color: var(--shallow); }
.btn-ghost:hover { background: rgba(233, 239, 236, .08); border-color: rgba(233, 239, 236, .6); }

/* --- шапка ----------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 39, 48, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  color: var(--shallow);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--line-dark); }
.topbar-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--font-display); }
.brand-mark { width: 30px; height: 30px; color: var(--shallow); }
.topnav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topnav a { text-decoration: none; font-size: 14.5px; color: rgba(233, 239, 236, .85); }
.nav-pf {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 14px 0 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line-dark); background: rgba(233, 239, 236, .05);
  transition: background-color .15s, border-color .15s;
}
.nav-pf-count { font: 700 15px/1 var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.nav-pf:hover { background: rgba(233, 239, 236, .12); border-color: rgba(127, 211, 198, .45); color: #fff; }
.nav-link { padding: 0 10px; }
/* «Цены» в шапке — заметная кнопка-обводка */
.topnav .nav-price {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px 0 12px;
  border-radius: var(--r-pill); border: 1.5px solid #9BD07A; color: #9BD07A; font-weight: 650;
  transition: background-color .15s, color .15s;
}
.topnav .nav-price:hover { background: #9BD07A; color: var(--deep); }
.nav-price[hidden] { display: none !important; }
.nav-price-icon { font: 700 15px/1 var(--font-display); }
/* охват «сутки / всего» с подписями под цифрами */
.rp { display: inline-flex; align-items: flex-start; gap: 6px; }
.rp-cell { display: inline-flex; flex-direction: column; align-items: flex-end; }
.rp-lab { margin-top: 3px; font: 400 12px/1.2 var(--font-body); color: var(--ink-3); }
.rp-cell.reach-total .rp-lab { color: var(--ink-3); }
.dstat .rp-cell { align-items: flex-start; }
.metric-value.rp, .dstat-value .rp { display: inline-flex; }
@media (max-width: 720px) { .rp-cell { align-items: flex-start; } }
.nav-link:hover { color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- первый экран: эхолот ------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% 30%, rgba(22, 70, 83, .95), transparent 70%),
    var(--deep);
  color: var(--shallow);
  padding: 36px 0 108px;
}
.isobaths { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sonar); opacity: .16; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.hero-copy { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.hero h1 { font-size: clamp(30px, 3.3vw, 46px); font-weight: 700; }
.lead { margin-top: 14px; font-size: 17px; line-height: 1.5; color: rgba(233, 239, 236, .78); max-width: 92ch; }
.hero-copy, .readout { min-width: 0; }

.readout {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 70, 83, .55), rgba(13, 39, 48, .55));
  padding: 22px 24px 18px;
}
.readout-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.readout-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(233, 239, 236, .06); border: 1px solid var(--line-dark); }
.readout-tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 16px 0 12px; border: 0; border-radius: var(--r-pill);
  background: none; cursor: pointer;
  font: 700 17px/1 var(--font-display); color: rgba(233, 239, 236, .62);
  transition: background-color .15s, color .15s;
}
.readout-tab:hover { color: #fff; }
.readout-tab[aria-selected="true"] { background: rgba(233, 239, 236, .14); color: #fff; }
.readout-tab:focus-visible { outline: 2px solid var(--sonar); outline-offset: 2px; }
.readout-tab .pf-icon { width: 20px; height: 20px; }
.readout-grid.readout-grid-pf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
.readout-text { margin-top: 8px !important; font-size: 15px; line-height: 1.5; color: rgba(233, 239, 236, .82); max-width: 60ch; }
.readout-link { color: var(--sonar); font-weight: 600; text-decoration: none; }
.readout-link:hover { text-decoration: underline; }
/* Кнопки площадок в шапке — только когда сводка первого экрана ушла из вида. */
.topbar .nav-pf { transition: background-color .15s, border-color .15s, opacity .2s, visibility .2s; }
.topbar.pf-hidden .nav-pf { opacity: 0; visibility: hidden; pointer-events: none; }
.readout-sub { font-size: 14px; color: rgba(233, 239, 236, .7); flex: 1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.readout-time { color: rgba(233, 239, 236, .5); }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 0; border-top: 1px solid var(--line-dark); }
.readout-cell { padding: 14px 20px 16px; }
.readout-cell:first-child { padding-left: 0; }
.readout-cell + .readout-cell { border-left: 1px solid var(--line-dark); }
.readout-cell dt { font-size: 14px; color: rgba(233, 239, 236, .72); }
.readout-cell dd { margin: 0; }
.readout-value {
  margin-top: 6px !important;
  font: 700 clamp(30px, 3.2vw, 42px)/1 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -.01em;
}
.readout-cell-accent .readout-value { color: #9BD07A; }
.readout .reach-total { color: rgba(255, 255, 255, .5); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) { .readout .reach-total { display: block; font-size: .72em; margin-top: 2px; } }
.readout-cell-accent .reach-total { color: rgba(155, 208, 122, .6); }
.readout-note { margin-top: 6px !important; font-size: 13px; color: rgba(233, 239, 236, .55); }
.readout-note .is-up { color: #9BD07A; }
.board-small, #channels { scroll-margin-top: 84px; }
.pf-icon { width: 20px; height: 20px; flex: none; }
.pf-icon-sm { width: 16px; height: 16px; }

/* --- секции ---------------------------------------------------------------- */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(28px, 3vw, 38px); }
.section-sub { margin-top: 10px; color: var(--ink-2); max-width: 60ch; }

/* --- доска каналов --------------------------------------------------------- */
.channels { padding-top: 0; margin-top: -84px; position: relative; z-index: 2; }
.board {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -30px rgba(13, 39, 48, .45), 0 1px 0 rgba(13, 39, 48, .06);
  overflow: hidden;
  overflow: clip; /* clip, а не hidden: иначе шапка колонок не закрепится (sticky) */
}
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 26px 28px 18px; }
.board-head h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(26px, 2.6vw, 34px); }
.board-sub { margin-top: 6px; color: var(--ink-3); font-size: 15px; }

.board-cols,
.chan-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) minmax(0, 1.2fr) 132px 40px;
  align-items: center;
  gap: 16px;
}
.board-cols {
  padding: 14px 28px 12px;
  border-bottom: 1px solid var(--line);
  background: #F5F8F6;
  font-size: 13px; color: var(--ink-3);
  /* шапка колонок закрепляется под верхней панелью при прокрутке списка */
  position: sticky; top: var(--topbar-h, 64px); z-index: 6;
  transition: box-shadow .15s;
}
.board-cols.is-stuck { box-shadow: 0 8px 18px -12px rgba(13, 39, 48, .35); }
.board-cols small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); opacity: .8; }
.chan-list { list-style: none; margin: 0; padding: 0; }
.chan-item + .chan-item { border-top: 1px solid var(--line); }
.chan-row {
  width: 100%; padding: 14px 28px; margin: 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  transition: background-color .15s;
}
.chan-row:hover { background: #F5F8F6; }
.chan-item.is-open > .chan-row { background: #F1F6F3; }

.chan-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.chan-avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  object-fit: cover; background: var(--shallow);
}
.chan-avatar-ph {
  display: inline-grid; place-items: center;
  background: hsl(var(--hue, 190) 32% 30%); color: #fff;
  font: 700 18px/1 var(--font-display);
}
.chan-name { display: block; font-weight: 650; font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan-region { display: block; font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.metric { display: block; text-align: right; }
.metric-value { display: block; font: 700 22px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.reach-total { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.metric-sub { display: block; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.metric-sub.is-up { color: var(--reed); }
.metric-sub.is-down { color: #A0452A; }
.metric-label { display: none; }

.spark { width: 120px; height: 34px; color: var(--water); margin-left: auto; }
.chan-names { min-width: 0; }
a.chan-name { text-decoration: none; }
a.chan-name:hover { text-decoration: underline; }
.chan-avatar-pf { display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.chan-avatar-pf .pf-icon { width: 24px; height: 24px; }
/* сводная строка сети — первая в каждой таблице */
.is-total { background: #F3F7F5; box-shadow: inset 4px 0 0 var(--float); }
.is-total .chan-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.is-total .metric-value { color: var(--deep); }
.chan-item.is-total > .chan-row:hover { background: #EDF3F0; }
.spark .spark-bar { fill: currentColor; opacity: .55; }
.spark .spark-bar.is-partial { opacity: .22; }
.spark-empty { font-size: 12px; color: var(--ink-3); text-align: right; }

.chev {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; justify-self: end;
  border: 1px solid var(--line); color: var(--ink-2);
  transition: transform .2s, background-color .15s, border-color .15s;
}
.chan-item.is-open .chev { transform: rotate(180deg); background: var(--deep); border-color: var(--deep); color: #fff; }

/* раскрытая динамика */
.chan-detail { padding: 6px 28px 28px; background: #F1F6F3; }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.period { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: #DCE6E1; }
.period button {
  border: 0; background: none; cursor: pointer;
  min-height: 34px; padding: 0 16px; border-radius: var(--r-pill);
  font: 600 14px/1 var(--font-body); color: var(--ink-2);
}
.period button[aria-pressed="true"] { background: var(--deep); color: #fff; }
.detail-desc { flex: 1 1 320px; min-width: 0; max-width: 72ch; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.detail-link { white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--float-dark); text-decoration: none; }
.detail-link:hover { text-decoration: underline; }

.detail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dstat { background: var(--paper); border-radius: var(--r-md); padding: 12px 14px; }
.dstat-label { font-size: 13px; color: var(--ink-3); }
.dstat-value { margin-top: 4px; font: 700 24px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.dstat-value.is-up { color: var(--reed); }
.dstat-sub { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
/* подсказка: значок «i» рядом с подписью, пояснение по клику */
.hint { position: relative; display: inline-block; vertical-align: 1px; margin-left: 6px; }
.hint-btn {
  display: inline-grid; place-items: center; width: 17px; height: 17px; padding: 0;
  border: 1.5px solid currentColor; border-radius: 50%; background: transparent; color: inherit;
  font: italic 700 11px/1 Georgia, serif; cursor: pointer; opacity: .75;
}
.hint-btn:hover, .hint.is-open .hint-btn { opacity: 1; }
.hint-btn:focus-visible { outline: 2px solid var(--float); outline-offset: 2px; }
.hint-pop {
  display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: -10px;
  width: max-content; max-width: min(300px, 80vw); padding: 10px 12px; border-radius: 10px;
  background: #0F2A33; color: #E9EFEC; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  font: 400 13px/1.45 var(--font-body, inherit); font-style: normal; text-align: left; white-space: normal;
}
.hint.is-open .hint-pop { display: block; }
.readout .hint-pop { background: #F4F7F5; color: var(--ink, #0D2730); }

.detail-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chart-card { background: var(--paper); border-radius: var(--r-md); padding: 14px 16px 10px; }
.chart-title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chart-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.chart { width: 100%; height: auto; aspect-ratio: var(--ar, 520 / 170); margin-top: 8px; overflow: visible; }
.chart text { font: 11px var(--font-body); fill: var(--ink-3); }
.chart .grid { stroke: #E3EAE7; stroke-width: 1; }
.chart .bar { fill: var(--water); }
.chart .bar.is-partial { fill: url(#hatch); }
.chart .line { fill: none; stroke: var(--float); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: rgba(240, 90, 40, .1); }
.chart .dot { fill: var(--float); }
.chart-empty { display: grid; place-items: center; height: 170px; margin-top: 8px; font-size: 14px; color: var(--ink-3); text-align: center; padding: 0 20px; }

.board-empty { padding: 28px; color: var(--ink-3); }

/* --- Telegram и ВК: свои таблицы ----------------------------------------- */
.bonus { padding-top: 8px; }
.extra-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-top: 22px; align-items: stretch; }
.board-small { box-shadow: 0 18px 40px -28px rgba(13, 39, 48, .4), 0 1px 0 rgba(13, 39, 48, .06); }
.board-small .board-head { padding: 18px 20px 12px; }
.board-title { display: flex; align-items: center; gap: 10px; font-size: 24px; }
.pf-icon-lg { width: 24px; height: 24px; }
.small-cols, .small-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; align-items: center; }
.small-cols { padding: 8px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #F5F8F6; font-size: 13px; color: var(--ink-3); }
.small-list { list-style: none; margin: 0; padding: 0; }
.small-row { padding: 12px 20px; }
.small-row + .small-row { border-top: 1px solid var(--line); }
.small-row .chan-avatar { width: 38px; height: 38px; }
.small-desc {
  grid-column: 1 / -1; margin: -6px 0 0 52px; max-width: 60ch;
  font-size: 13.5px; line-height: 1.45; color: var(--ink-2);
}
.small-row .metric-label { display: none !important; }
.small-row .metric { text-align: right; }
/* строки TG и ВК стоят на одной высоте: карточки делят сетку рядов */
@supports (grid-template-rows: subgrid) {
  .board-small { display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .board-small .small-list { display: grid; grid-template-rows: subgrid; row-gap: 0; }
}
.board-small.has-reach .small-cols, .board-small.has-reach .small-row { grid-template-columns: minmax(0, 1fr) 110px 130px; }
@media (max-width: 560px) {
  .board-small.has-reach .small-cols, .board-small.has-reach .small-row { grid-template-columns: minmax(0, 1fr) 84px 96px; gap: 8px; }
}

/* --- цены: пакеты и калькулятор ------------------------------------------- */
.pack-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pack { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border-radius: var(--r-md); padding: 20px; box-shadow: 0 1px 0 rgba(13, 39, 48, .06); }
.pack.is-best { background: var(--deep); color: var(--shallow); box-shadow: 0 18px 40px -24px rgba(13, 39, 48, .6); }
.pack-icons { display: flex; gap: 6px; }
.pack-name { font-weight: 650; font-size: 17px; }
.pack-price { font: 700 34px/1.05 var(--font-display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.pack.is-best .pack-price { color: #9BD07A; }
.pack-old { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); min-height: 22px; }
.pack.is-best .pack-old { color: rgba(233, 239, 236, .6); }
.pack-save { background: var(--float); color: #fff; border-radius: var(--r-pill); padding: 1px 8px; font-size: 12.5px; }
.pack-facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; color: var(--ink-2); flex: 1; }
.pack.is-best .pack-facts { color: rgba(233, 239, 236, .82); }
.pack-bonus { font-weight: 600; color: var(--float); }
.pack-btn { margin-top: 10px; align-self: flex-start; min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 14px/1 var(--font-body); cursor: pointer; }
.pack-btn:hover { background: rgba(13, 39, 48, .06); }
.pack.is-best .pack-btn { border-color: var(--float); background: var(--float); color: #fff; }

.calc { margin-top: 18px; background: var(--paper); border-radius: var(--r-lg); padding: 22px 24px; scroll-margin-top: 84px; }
/* шапка набора (заголовок + быстрый выбор) закреплена под топбаром (64px + 1px рамка) */
.calc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  position: sticky; top: 65px; z-index: 6; margin: -22px -24px 0; padding: 14px 24px 12px;
  background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 1px solid var(--line);
}
.calc-head h3 { font-size: 22px; }
.calc-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.calc-q { min-height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font: 600 14px/1 var(--font-body); cursor: pointer; }
.calc-q[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--shallow); }
.calc-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: 16px; align-items: start; }
.calc-group + .calc-group { margin-top: 14px; }
.calc-ghead { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #F5F8F6; border-radius: 10px; cursor: pointer; font-weight: 650; }
.calc-gnote { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.calc-bonus { margin: 6px 10px 0; font-size: 13px; font-weight: 600; color: var(--float); }
.calc-items { list-style: none; margin: 4px 0 0; padding: 0; }
.calc-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.calc-items li:last-child .calc-item { border-bottom: none; }
.calc-item:hover { background: #F8FAF9; }
.calc input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--float); margin: 0; }
.calc-who { min-width: 0; }
.calc-title { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-sub { display: block; font-size: 13px; color: var(--ink-3); }
.calc-price { font: 700 16px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-sum { position: sticky; top: 140px; background: var(--deep); color: var(--shallow); border-radius: var(--r-md); padding: 18px; display: grid; gap: 8px; }
.calc-sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: rgba(233, 239, 236, .75); }
.calc-total { display: flex; align-items: center; gap: 10px; font: 700 36px/1.05 var(--font-display); font-variant-numeric: tabular-nums; color: #9BD07A; }
.calc-badge { font: 600 13px/1 var(--font-body); background: var(--float); color: #fff; border-radius: var(--r-pill); padding: 4px 8px; }
.calc-meta { display: grid; gap: 3px; font-size: 13.5px; color: rgba(233, 239, 236, .82); }
.calc-hint { margin-top: 4px; color: rgba(233, 239, 236, .6); }
.calc-actions { display: grid; gap: 8px; margin-top: 6px; }
.calc-actions .btn { justify-content: center; }
.calc-copy { min-height: 38px; border-radius: var(--r-pill); border: 1px solid rgba(233, 239, 236, .35); background: transparent; color: var(--shallow); font: 600 14px/1 var(--font-body); cursor: pointer; }
.calc-copy:hover { background: rgba(233, 239, 236, .08); }
.calc-mini { display: none; }
@media (max-width: 860px) {
  .calc-body { grid-template-columns: minmax(0, 1fr); }
  .calc-sum { position: static; scroll-margin-top: 84px; }
  .calc-mini {
    position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 10px; padding: 12px 16px; border-radius: var(--r-pill); background: var(--deep); color: var(--shallow);
    text-decoration: none; font-size: 14px; box-shadow: 0 12px 28px -14px rgba(13, 39, 48, .6);
  }
  .calc-mini b { font: 700 20px/1 var(--font-display); color: #9BD07A; white-space: nowrap; }
}
@media (max-width: 720px) {
  .calc { padding: 16px 14px; }
  .calc-head { margin: -16px -14px 0; padding: 12px 14px 10px; }
  .calc-total { font-size: 30px; }
}

/* --- калькулятор: дополнительные опции --- */
.calc-opts .calc-ghead { cursor: default; }
.calc-opt-desc { white-space: normal; line-height: 1.35; }

/* --- форматы --------------------------------------------------------------- */
.format-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.format-item { background: var(--paper); border-radius: var(--r-md); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.format-name { font: 700 20px/1.15 var(--font-display); }
.format-desc { color: var(--ink-2); font-size: 15px; flex: 1; }
.format-price { font: 700 26px/1 var(--font-display); color: var(--float-dark); font-variant-numeric: tabular-nums; }
.format-price small { font: 400 13px var(--font-body); color: var(--ink-3); }

/* --- кому подойдёт и как проходит размещение ------------------------------- */
.audience { padding-top: 24px; padding-bottom: 32px; }
.audience-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.aud { background: var(--paper); border-radius: var(--r-md); padding: 18px 20px; box-shadow: inset 4px 0 0 var(--reed); }
.aud-title { font: 700 19px/1.2 var(--font-display); }
.aud-text { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

.steps { padding-top: 32px; padding-bottom: 40px; }
.steps-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.step { position: relative; background: var(--paper); border-radius: var(--r-md); padding: 18px 20px 20px; }
.step-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--deep); color: #fff; font: 700 17px/1 var(--font-display); margin-bottom: 12px;
}
.step-title { font: 700 19px/1.2 var(--font-display); }
.step-text { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

/* --- как считаем ---------------------------------------------------------- */
.method { padding: 8px 0 56px; }
.method-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 0; }
.method-box summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 10px; }
.method-box summary::-webkit-details-marker { display: none; }
.method-box summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; }
.method-box[open] summary::before { content: "−"; }
.method-box ul { margin: 0 0 18px; padding-left: 34px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; max-width: 78ch; }

/* --- CTA ------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--deep); color: var(--shallow); padding: 84px 0; }
.isobaths-cta { opacity: .14; }
.cta-inner { position: relative; }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 48px); max-width: 18ch; }
.cta-band p { margin: 14px 0 28px; color: rgba(233, 239, 236, .78); font-size: 18px; max-width: 50ch; }

.footer { background: var(--deep); color: rgba(233, 239, 236, .6); font-size: 14px; border-top: 1px solid var(--line-dark); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 22px; padding-bottom: 26px; }
.footer a { color: var(--shallow); }

/* --- адаптив --------------------------------------------------------------- */
@media (max-width: 1020px) {
  .nav-pf-text { display: none; }
  .nav-pf { padding: 0 12px 0 10px; }
  .hero-copy { flex-direction: column; align-items: flex-start; gap: 18px; }
  .readout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout-cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .readout-cell:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .readout-grid.readout-grid-pf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout-grid-pf .readout-cell-wide { grid-column: 1 / -1; }
  .board-cols, .chan-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-cols span:nth-child(4), .chan-row .chan-spark { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topnav .nav-link { display: none; }
  .topnav .nav-price { width: 34px; min-height: 34px; padding: 0; justify-content: center; }
  .nav-price-text { display: none; }
  .nav-pf { min-height: 34px; width: 34px; padding: 0; justify-content: center; }
  .nav-pf-text, .nav-pf-count { display: none; }
  .nav-pf .pf-icon-sm { width: 18px; height: 18px; }
  .topbar-row { gap: 12px; }
  .brand span { font-size: 17px; }
  .hero { padding: 28px 0 100px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; margin-top: 12px; }
  .hero-inner { gap: 20px; }
  .hero-copy .btn-lg { min-height: 48px; font-size: 16px; }
  .btn-sm { padding: 0 14px; font-size: 13.5px; }
  .readout { padding: 18px 16px 14px; }
  .readout-tabs { width: 100%; }
  .readout-tab { flex: 1 1 auto; justify-content: center; min-height: 36px; padding: 0 8px; gap: 6px; font-size: 15px; }
  .readout-tab .pf-icon { width: 17px; height: 17px; }
  .readout-cell { padding: 12px 12px 14px; }
  .readout-cell:nth-child(odd) { padding-left: 0; }
  .board-head { padding: 20px 16px 14px; }
  .board-cols { display: none; }
  .chan-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    grid-template-areas: "who who chev" "subs reach chev";
    gap: 12px 10px; padding: 14px 16px;
  }
  .chan-row .chan-who { grid-area: who; }
  .chan-row .m-subs { grid-area: subs; }
  .chan-row .m-reach { grid-area: reach; }
  .chan-row .chev { grid-area: chev; align-self: start; }
  .metric { text-align: left; }
  .metric-label { display: block; font-size: 12px; color: var(--ink-3); }
  .metric-value { font-size: 19px; }
  .chan-detail { padding: 4px 16px 20px; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .detail-charts { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; }
  .step { display: flex; gap: 14px; align-items: flex-start; }
  .step-num { margin-bottom: 0; flex: none; }
  .section { padding: 48px 0; }
  .channels { padding-top: 0; }
}

/* Кнопка связи одна на экране: на широком — закреплённая в шапке, на узком
   (в шапке места только под значки площадок) — под заголовком. */
#cta-hero { display: none; }
@media (max-width: 480px) {
  .topbar #cta-nav { display: none; }
  #cta-hero { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
