/* ==========================================================================
   ПУЛЬС — pages.css
   Разметка отдельных страниц: главная, дашборд, карта, сравнение, данные, о проекте
   ========================================================================== */

/* --------------------------------------------------------------------------
   Главная — герой
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 78% 0%, #000 5%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 80% at 78% 0%, #000 5%, transparent 68%);
  opacity: .8;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 88px);
}
.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero .lead { margin-top: 20px; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__fact strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 660;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.hero__fact span { font-size: .8rem; color: var(--muted); }

/* Карточка «Индекс города сейчас» */
.index-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.index-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-2);
}
.index-card__main {
  padding: 22px 18px 6px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.index-card__value {
  font-size: clamp(3.4rem, 2.4rem + 4vw, 5rem);
  font-weight: 680;
  letter-spacing: -.045em;
  line-height: .9;
}
.index-card__scale { flex: 1; min-width: 160px; padding-bottom: 6px; }
.index-card__meter {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.index-card__meter i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width .9s var(--ease);
}
.index-card__scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 6px;
}
.index-card__chart { padding: 6px 8px 0; }
.index-card__foot {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .78rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.index-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  border-top: 1px solid var(--line);
}
.index-breakdown div {
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.index-breakdown div:last-child { border-right: 0; }
.index-breakdown span {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.index-breakdown b {
  font-size: 1.02rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* --------------------------------------------------------------------------
   Главная — блоки
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--accent-wash);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.feature__icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { font-size: .9rem; color: var(--ink-2); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
}
.step {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-right: 0; }
.step__n {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: .06em;
}
.step h3 { font-size: 1rem; margin: 12px 0 8px; }
.step p { font-size: .88rem; color: var(--ink-2); }

.usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.usecase {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.usecase__tag {
  align-self: flex-start;
}
.usecase h3 { font-size: 1.02rem; }
.usecase p { font-size: .9rem; color: var(--ink-2); flex: 1; }
.usecase__metric {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.usecase__metric b { font-size: 1.35rem; font-weight: 660; letter-spacing: -.02em; }
.usecase__metric span { font-size: .8rem; color: var(--muted); }

.cta-band {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(26px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 30px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.cta-band p { color: var(--ink-2); margin-top: 12px; }

.subscribe-form { display: grid; gap: 12px; }
.subscribe-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Живая лента событий */
.feed { display: grid; gap: 0; }
.feed__item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.feed__item:last-child { border-bottom: 0; }
.feed__time {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
  padding-top: 2px;
}
.feed__text { font-size: .89rem; }
.feed__text b { font-weight: 620; }
.feed__meta { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.feed__item.is-new { animation: feed-in .4s var(--ease); }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-6px); background: var(--accent-wash); }
}

/* --------------------------------------------------------------------------
   Дашборд
   -------------------------------------------------------------------------- */
.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.toolbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar__group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.toolbar__group > label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 550;
  white-space: nowrap;
}
.toolbar .select { width: auto; min-width: 168px; height: 38px; min-height: 38px; padding-block: 6px; }
.toolbar__spacer { flex: 1 1 auto; }
.toolbar__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  padding-block: 20px 40px;
}
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }

@media (max-width: 1023px) {
  .col-8, .col-7, .col-5, .col-4 { grid-column: span 12; }
}
@media (max-width: 720px) {
  .col-6 { grid-column: span 12; }
}

.mini-list { display: grid; gap: 2px; }
.mini-list__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: .88rem;
  transition: background var(--dur) var(--ease);
  cursor: pointer;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  width: 100%;
}
.mini-list__row:hover { background: var(--surface-2); }
.mini-list__row .name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mini-list__row .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list__row .val { font-variant-numeric: tabular-nums; font-weight: 620; }
.rank-n {
  width: 20px;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--muted);
  flex: 0 0 auto;
}

.gauge-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.gauge-legend { display: grid; gap: 8px; flex: 1; min-width: 150px; }
.gauge-legend__row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
}
.gauge-legend__row .v {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-2);
}

/* Тепловая карта */
.heat-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  color: var(--muted);
}
.heat-legend__ramp {
  height: 8px;
  width: 110px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--seq-1), var(--seq-3), var(--seq-5), var(--seq-7));
}

/* --------------------------------------------------------------------------
   Карта
   -------------------------------------------------------------------------- */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  padding-block: 20px 40px;
  align-items: start;
}
@media (max-width: 1023px) {
  .map-layout { grid-template-columns: minmax(0, 1fr); }
}

.map-frame { position: relative; }

.map-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.map-svg-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 320px;
  overflow: hidden;
  touch-action: pan-y;          /* прокрутка страницы пальцем остаётся работать */
  cursor: grab;
  background: var(--surface-2);
}
.map-svg-wrap[data-pan="false"] { cursor: pointer; }
.map-svg-wrap.is-panning { cursor: grabbing; }
.map-svg-wrap svg { width: 100%; height: 100%; display: block; }

.district {
  fill: var(--seq-2);
  stroke: var(--surface);
  stroke-width: 2;
  cursor: pointer;
  transition: fill .5s var(--ease), opacity var(--dur) var(--ease);
  outline: none;
}
.district:hover { opacity: .82; }
.district.is-selected {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.district:focus-visible { stroke: var(--accent); stroke-width: 3; }

.district-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 3px;
  stroke-linejoin: round;
}
.district-value {
  fill: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 3px;
  font-variant-numeric: tabular-nums;
}
/* координаты SVG масштабируются вместе с картой, поэтому на узких экранах
   подписи задаются в увеличенных единицах viewBox */
@media (max-width: 760px) {
  .district-label { font-size: 24px; stroke-width: 5px; }
  .district-value { font-size: 20px; stroke-width: 5px; }
  .station { stroke-width: 2.4; }
}

.river {
  fill: none;
  stroke: var(--seq-4);
  stroke-opacity: .5;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.station {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 1.5;
  cursor: pointer;
  transition: r .15s var(--ease);
}
.station.is-offline { stroke: var(--muted); stroke-dasharray: 2 2; }
.station:hover { stroke: var(--accent); }

.map-controls {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 6px;
  z-index: 3;
}
.map-controls .btn { background: var(--surface); box-shadow: var(--shadow-1); }

.map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow-1);
  max-width: calc(100% - 24px);
}
.map-legend__title {
  font-size: .72rem;
  font-weight: 640;
  color: var(--ink-2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.map-legend__ramp {
  display: flex;
  height: 9px;
  border-radius: 3px;
  overflow: hidden;
  min-width: 170px;
}
.map-legend__ramp i { flex: 1; }
.map-legend__labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--muted);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

.map-tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
  padding: 10px 12px;
  font-size: .82rem;
  opacity: 0;
  transition: opacity .12s var(--ease);
  transform: translate(-50%, -118%);
  min-width: 150px;
}
.map-tip[data-show="true"] { opacity: 1; }
.map-tip b { display: block; margin-bottom: 4px; }

.time-scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.time-scrubber input[type="range"] {
  flex: 1;
  min-width: 140px;
  accent-color: var(--accent);
  height: 22px;
}
.time-scrubber__label {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--ink-2);
  min-width: 92px;
  text-align: right;
}

.side-panel { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 78px); }
@media (max-width: 1023px) { .side-panel { position: static; } }

.dl-rows { display: grid; gap: 0; }
.dl-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: .87rem;
}
.dl-row:last-child { border-bottom: 0; }
.dl-row dt { color: var(--muted); }
.dl-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

/* --------------------------------------------------------------------------
   Сравнение
   -------------------------------------------------------------------------- */
.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding-block: 20px 0;
}
@media (max-width: 900px) { .compare-layout { grid-template-columns: minmax(0, 1fr); } }

.compare-table th:first-child, .compare-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
}
.compare-table thead th:first-child { background: var(--surface-2); z-index: 2; }
.compare-table tbody tr:hover td:first-child { background: var(--surface-2); }

.winner-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 650;
  color: #0a6b0a;
  background: var(--good-wash);
  border-radius: var(--r-full);
  padding: 1px 7px;
  margin-left: 7px;
}
:root[data-theme="dark"] .winner-tag { color: #4fce4f; }

.vs-bar {
  display: grid;
  gap: 10px;
}
.vs-row { display: grid; gap: 5px; }
.vs-row__head {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  gap: 10px;
}
.vs-row__head .n { display: flex; align-items: center; gap: 8px; }
.vs-row__head .v { font-variant-numeric: tabular-nums; font-weight: 620; }
.vs-row__track {
  height: 10px;
  background: var(--surface-3);
  border-radius: 5px;
  overflow: hidden;
}
.vs-row__fill { height: 100%; border-radius: 5px; transition: width .6s var(--ease); }

/* --------------------------------------------------------------------------
   Данные / таблица
   -------------------------------------------------------------------------- */
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}
.filters .field { margin: 0; }

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}
.table-toolbar__count {
  font-size: .83rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.table-toolbar__spacer { flex: 1; }

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 16px;
}
.pagination__spacer { flex: 1; }
.pagination button {
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.pagination button:hover:not([disabled]) { border-color: var(--line-2); color: var(--ink); }
.pagination button[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 620;
}
.pagination button[disabled] { opacity: .4; cursor: default; }
.pagination__dots { color: var(--muted); padding: 0 3px; }

.col-toggles {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.empty-state svg { width: 34px; height: 34px; margin-bottom: 12px; opacity: .5; }
.empty-state h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: 6px; }
.empty-state p { font-size: .9rem; max-width: 44ch; margin-inline: auto; }

/* Карточный вид таблицы на мобильных */
.rows-cards { display: none; }
@media (max-width: 760px) {
  .table-wrap.responsive-cards { display: none; }
  .rows-cards { display: grid; gap: 10px; }
  .row-card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    padding: 14px;
  }
  .row-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .row-card__title { font-weight: 620; font-size: .95rem; }
  .row-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .row-card__grid div span { display: block; font-size: .72rem; color: var(--muted); }
  .row-card__grid div b { font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
}

/* --------------------------------------------------------------------------
   О проекте
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 44px; margin-bottom: 14px; }
.prose h3 { margin-top: 30px; margin-bottom: 10px; }
.prose p { margin-bottom: 16px; color: var(--ink-2); }
.prose ul, .prose ol { margin-bottom: 16px; color: var(--ink-2); display: grid; gap: 7px; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 620; }

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .about-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-left: 1px solid var(--line);
  padding-left: 18px;
  display: grid;
  gap: 9px;
}
@media (max-width: 900px) {
  .toc { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
}
.toc a {
  font-size: .86rem;
  color: var(--muted);
  text-decoration: none;
  padding-left: 0;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.toc a:hover, .toc a.is-active { color: var(--ink); padding-left: 4px; }
.toc a.is-active { font-weight: 600; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.person {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 18px;
}
.person__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 660;
  font-size: .95rem;
  color: var(--ink-2);
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.person__name { font-weight: 620; font-size: .95rem; }
.person__role { font-size: .82rem; color: var(--muted); margin-top: 2px; }

.metric-doc {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.metric-doc + .metric-doc { margin-top: 12px; }
.metric-doc__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.metric-doc__head b { font-size: .95rem; }
.metric-doc__body { padding: 16px; font-size: .89rem; color: var(--ink-2); background: var(--surface); }
.thresholds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.counter {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.counter:last-child { border-right: 0; }
.counter b {
  display: block;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 670;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.counter span { font-size: .8rem; color: var(--muted); }

@media (max-width: 620px) {
  .counter { border-right: 0; border-bottom: 1px solid var(--line); }
  .counter:last-child { border-bottom: 0; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* Мои подписки */
.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.alert-item:last-child { border-bottom: 0; }
.alert-item__main { flex: 1; min-width: 0; }
.alert-item__title { font-weight: 600; font-size: .92rem; }
.alert-item__sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Адаптив страниц
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .hero__facts { gap: 18px 26px; }
  .toolbar { position: static; }
  .toolbar .select { min-width: 0; width: 100%; }
  .toolbar__group { width: 100%; }
  .toolbar__group > .segmented { width: 100%; }
  .toolbar__spacer { display: none; }
  .subscribe-form .row-2 { grid-template-columns: 1fr; }
  .feed__item { grid-template-columns: 60px 1fr; }
  .feed__item > :last-child { grid-column: 1 / -1; }
  .dash-grid { gap: 10px; }
  .index-card__value { font-size: 3rem; }
}
