/* ==========================================================================
   Перрон — главная страница
   Токены из дизайн-системы «Перрон». Mobile first: 0 → 640 → 1024 → 1248.
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --brand: #0A5C63;
  --brand-hover: #084A50;
  --on-brand: #FFFFFF;
  --brand-tint: #E2EFEE;
  --brand-mid: #9FC9C6;
  --accent: #F5A524;
  --accent-hover: #E0921A;
  --on-accent: #12232B;
  --ink: #12232B;
  --ink-muted: #56666D;
  --surface: #FFFFFF;
  --surface-alt: #F4F1EA;
  --night: #12232B;
  --night-2: #1F3A40;
  --on-night: #FFFFFF;
  --on-night-muted: #DAD5CA;
  --line: #DAD5CA;
  --line-strong: #8A979C;
  --success: #1B7A4B;
  --danger: #B3261E;
  --warning-bg: #FFF4DF;
  --warning-ink: #9A5B00;

  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(18,35,43,.06), 0 4px 16px rgba(18,35,43,.06);
  --shadow-raised: 0 8px 32px rgba(18,35,43,.14);

  --container: 1200px;
  --gutter: var(--space-4);
  --section-y: var(--space-12);
  --header-h: 60px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #5CC2C3; --brand-hover: #7FD3D4; --on-brand: #0E171C; --brand-tint: #123437; --brand-mid: #2B5A5E;
    --accent: #F7B544; --accent-hover: #F9C466; --on-accent: #0E171C;
    --ink: #E8EEF0; --ink-muted: #9DAEB5;
    --surface: #0E171C; --surface-alt: #16232A;
    --night: #0A1216; --night-2: #1F3A40; --on-night-muted: #B8C4C9;
    --line: #2A3A42; --line-strong: #6B8089;
    --success: #5CC98E; --danger: #FF8A7D; --warning-bg: #2A2415; --warning-ink: #F5C06A;
    --shadow-card: 0 1px 2px rgba(0,0,0,.4); --shadow-raised: 0 8px 32px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --brand: #5CC2C3; --brand-hover: #7FD3D4; --on-brand: #0E171C; --brand-tint: #123437; --brand-mid: #2B5A5E;
  --accent: #F7B544; --accent-hover: #F9C466; --on-accent: #0E171C;
  --ink: #E8EEF0; --ink-muted: #9DAEB5;
  --surface: #0E171C; --surface-alt: #16232A;
  --night: #0A1216; --night-2: #1F3A40; --on-night-muted: #B8C4C9;
  --line: #2A3A42; --line-strong: #6B8089;
  --success: #5CC98E; --danger: #FF8A7D; --warning-bg: #2A2415; --warning-ink: #F5C06A;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4); --shadow-raised: 0 8px 32px rgba(0,0,0,.5);
}

@media (min-width: 640px)  { :root { --gutter: var(--space-6); } }
@media (min-width: 1024px) { :root { --section-y: 72px; --header-h: 76px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-4); background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius-md); font-weight: 600;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + var(--space-2)); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--surface-alt); }
.section--night { background: var(--night); color: var(--on-night); }

/* ---------- Типографика ---------- */
.h1 {
  font: 700 32px/38px var(--font-display); letter-spacing: -.01em;
}
.h2 { font: 600 22px/28px var(--font-display); }
.h3 { font: 600 17px/23px var(--font-display); }
@media (min-width: 640px) { .h1 { font-size: 44px; line-height: 50px; } .h2 { font-size: 26px; line-height: 32px; } }
@media (min-width: 1024px) { .h1 { font-size: 56px; line-height: 60px; letter-spacing: -.02em; } .h2 { font-size: 28px; line-height: 34px; } }
.lead { font-size: 16px; line-height: 24px; color: var(--ink-muted); max-width: 36em; }
@media (min-width: 1024px) { .lead { font-size: 18px; line-height: 28px; } }
.muted { color: var(--ink-muted); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.mono { font-family: var(--font-mono); font-weight: 500; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.section-head__text { display: grid; gap: var(--space-2); }
.section-head__text p { color: var(--ink-muted); }
.more-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.more-link svg { transition: transform .2s; }
.more-link:hover svg { transform: translateX(3px); }

/* ---------- Кнопки, бейджи, чипы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-md);
  font-weight: 600; font-size: 16px; line-height: 20px; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, box-shadow .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { background: var(--brand); color: var(--on-brand); }
.btn--secondary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand); }
.btn--sm { min-height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-2);
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.badge--brand { background: var(--brand); color: var(--on-brand); }
.badge--tint  { background: var(--brand-tint); color: var(--brand); }
.badge--warn  { background: var(--warning-bg); color: var(--warning-ink); }
.badge--night { background: var(--night); color: var(--on-night); }

.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap;
}
a.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* Горизонтальный скролл на мобильных */
.scroller {
  display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; flex-shrink: 0; }

/* ---------- Верхняя полоса ---------- */
.topbar { display: none; background: var(--night); color: var(--on-night); font-size: 13px; }
.topbar a { color: var(--on-night); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: var(--space-6); }
.topbar__muted { color: var(--on-night-muted); }
.topbar__right { display: flex; align-items: center; gap: var(--space-6); }
.city-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--on-night); font-size: 13px; min-height: 36px; }
@media (min-width: 1024px) { .topbar { display: block; } }

/* ---------- Шапка ---------- */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); height: var(--header-h); }
.header__logo img { height: 32px; width: auto; }
@media (min-width: 1024px) { .header__logo img { height: 40px; } }
.header__actions { display: flex; align-items: center; gap: var(--space-1); }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink);
}
.icon-btn:hover { background: var(--surface-alt); color: var(--ink); }
.header__login { display: none; }
.header__burger { display: inline-flex; }
@media (min-width: 1024px) {
  .header__login { display: inline-flex; margin-left: var(--space-2); min-height: 44px; }
  .header__burger { display: none; }
}

.nav { display: none; }
.nav__list { display: flex; gap: var(--space-8); }
.nav__link { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.nav__link:hover { color: var(--brand); text-decoration: none; }
@media (min-width: 1024px) {
  .header__left { display: flex; align-items: center; gap: var(--space-12); }
  .nav { display: block; }
}

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(18,35,43,.5); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--surface); display: flex; flex-direction: column; gap: var(--space-4);
  padding: calc(env(safe-area-inset-top, 0px) + var(--space-3)) var(--space-4) calc(env(safe-area-inset-bottom, 0px) + var(--space-6));
  overflow-y: auto; animation: drawer-in .2s ease-out;
}
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 17px; }
.drawer__foot { margin-top: auto; display: grid; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero { background: var(--surface-alt); padding-block: var(--space-6) var(--space-8); }
@media (min-width: 1024px) { .hero { padding-block: 56px 48px; } }
.hero__grid { display: grid; gap: var(--space-6); align-items: center; }
.hero__text { display: grid; gap: var(--space-4); }
.hero__art { display: none; border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 492px; gap: var(--space-12); }
  .hero__text { gap: 20px; }
  .hero__art { display: block; }
}

.search {
  margin-top: var(--space-4); display: grid; gap: var(--space-1); padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.search__field {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0;
  height: 56px; padding: 0 14px; border-radius: var(--radius-md); background: var(--surface-alt); cursor: text;
}
.search__field--wide { grid-column: 1 / -1; }
.search__field:focus-within { box-shadow: inset 0 0 0 2px var(--brand); }
.search__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.search__input { border: 0; background: transparent; padding: 0; min-width: 0; width: 100%; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; }
.search__input::placeholder { color: var(--ink-muted); opacity: 1; }
.search__submit { grid-column: 1 / -1; min-height: 56px; }
@media (min-width: 1024px) {
  .search { margin-top: var(--space-8); padding: var(--space-2); grid-template-columns: 1.1fr 1.5fr 1fr 1fr auto; }
  .search__field { height: 60px; padding: 0 var(--space-4); }
  .search__field--wide { grid-column: auto; }
  .search__submit { grid-column: auto; min-height: 60px; padding: 0 var(--space-8); }
}

.popular { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); }
.popular__label { display: none; font-size: 14px; color: var(--ink-muted); margin-right: var(--space-1); }
@media (min-width: 1024px) {
  .popular { margin-top: var(--space-6); flex-wrap: wrap; }
  .popular .scroller { overflow: visible; flex-wrap: wrap; margin: 0; padding: 0; }
  .popular__label { display: inline; }
}

.trust { display: none; }
@media (min-width: 1024px) {
  .trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); }
  .trust__item { display: flex; gap: var(--space-3); align-items: center; }
  .trust__item svg { flex-shrink: 0; color: var(--brand); }
  .trust__title { font-weight: 600; }
  .trust__text { font-size: 14px; color: var(--ink-muted); }
}

/* ---------- Вкладки ---------- */
.tabs { margin-bottom: var(--space-4); }
.tabs .scroller { gap: var(--space-2); }
.tab {
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; white-space: nowrap;
}
.tab:hover { border-color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (min-width: 1024px) { .tabs { margin-bottom: var(--space-6); } }

/* ---------- Карточка тура ---------- */
.cards { display: grid; gap: var(--space-4); }
.cards--scroll { grid-auto-flow: column; grid-auto-columns: min(300px, 82%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px; scroll-padding-inline: var(--gutter); }
.cards--scroll::-webkit-scrollbar { display: none; }
.cards--scroll > * { scroll-snap-align: start; }
@media (min-width: 640px) {
  .cards--scroll { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: var(--space-6); }
}
@media (min-width: 1024px) { .cards--scroll { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.tour-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
}
.tour-card:hover { box-shadow: var(--shadow-raised); transform: translateY(-2px); }
.tour-card:focus-within { box-shadow: var(--shadow-raised); }
.tour-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--brand-tint); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tour-card__badges { position: absolute; top: var(--space-3); left: var(--space-3); display: flex; flex-wrap: wrap; gap: 6px; }
.tour-card__fav {
  position: absolute; top: var(--space-2); right: var(--space-2); z-index: 2;
  width: 44px; height: 44px; border-radius: var(--radius-pill); border: 0;
  background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card);
}
.tour-card__fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.tour-card__body { display: flex; flex-direction: column; gap: 10px; padding: var(--space-4); flex-grow: 1; }
.tour-card__type { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.tour-card__title a { color: var(--ink); }
.tour-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tour-card__title a:hover { text-decoration: none; }
.tour-card:hover .tour-card__title a { color: var(--brand); }
.tour-card__route, .tour-card__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.tour-card__dates { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-card__dates li {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  font: 500 12px/1 var(--font-mono);
}
.tour-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.tour-card__op { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.tour-card__price { font-size: 22px; line-height: 26px; }
.tour-card__cta { pointer-events: none; }

.tabpanel[hidden] { display: none; }
.tabpanel__more { margin-top: var(--space-4); }

/* ---------- Направления ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
@media (min-width: 1024px) { .dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
.dest {
  display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: box-shadow .2s;
}
.dest:hover { text-decoration: none; color: var(--ink); box-shadow: var(--shadow-raised); }
@media (min-width: 1024px) { .dest { border-radius: var(--radius-lg); } }
.dest__img { aspect-ratio: 16 / 7; width: 100%; object-fit: cover; }
@media (min-width: 1024px) { .dest__img { aspect-ratio: 2 / 1; } }
.dest__body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.dest__name { font-weight: 600; }
.dest__hint { display: none; }
.dest__price { font-size: 13px; color: var(--ink-muted); }
.dest__count { display: none; }
@media (min-width: 1024px) {
  .dest__body { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: var(--space-3); padding: var(--space-4) 20px 20px; }
  .dest__name { font: 600 20px/26px var(--font-display); }
  .dest__hint { display: block; font-size: 14px; color: var(--ink-muted); margin-top: var(--space-1); }
  .dest__side { text-align: right; flex-shrink: 0; }
  .dest__count { display: block; font-size: 12px; color: var(--ink-muted); }
  .dest__price { font-size: 18px; font-weight: 700; color: var(--ink); }
}
.dest-grid + .btn { margin-top: var(--space-4); }
@media (min-width: 1024px) { .dest-grid + .btn { display: none; } }

/* ---------- Города ---------- */
.cities { display: grid; gap: var(--space-4); }
.cities__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.city { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); color: var(--ink); font-size: 14px; font-weight: 500; }
.city:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.city__meta { display: none; }
@media (min-width: 1024px) {
  .cities { grid-template-columns: 340px minmax(0, 1fr); gap: var(--space-12); align-items: start; }
  .cities__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
  .city { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: var(--space-4); border-radius: 12px; border-color: var(--line); font-size: 16px; font-weight: 600; }
  .city__meta { display: block; font-size: 13px; font-weight: 400; color: var(--ink-muted); }
}

/* ---------- Типы туров ---------- */
.section--night .h2 { color: var(--on-night); }
.section--night .section-head__text p { color: var(--on-night-muted); }
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.kind {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px;
  background: var(--night-2); color: var(--on-night); min-height: 64px; justify-content: center;
}
.kind:hover { color: var(--on-night); text-decoration: none; background: #29494F; }
.kind__icon, .kind__text { display: none; }
.kind__name { font-weight: 600; font-size: 15px; }
@media (min-width: 1024px) {
  .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
  .kind { padding: 20px; border-radius: var(--radius-lg); min-height: 172px; justify-content: flex-start; }
  .kind__icon { display: block; color: var(--accent); }
  .kind__name { font-size: 17px; }
  .kind__text { display: block; font-size: 14px; line-height: 20px; color: var(--on-night-muted); }
}

/* ---------- Месяцы ---------- */
.months .scroller { gap: var(--space-3); }
.month {
  display: flex; flex-direction: column; gap: 6px; width: 180px; padding: var(--space-4);
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.month:hover { border-color: var(--brand); color: var(--ink); text-decoration: none; }
.month--hl { background: var(--warning-bg); }
.month--ny { background: var(--brand-tint); }
.month__code { font: 500 12px/16px var(--font-mono); color: var(--ink-muted); }
.month__name { font-weight: 600; font-size: 17px; }
.month__hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .months .scroller { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .month { width: auto; }
}

/* ---------- Как купить ---------- */
.how { display: grid; gap: var(--space-6); }
.steps { display: grid; gap: var(--space-4); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); }
.step__num { grid-row: span 2; font: 500 14px/24px var(--font-mono); color: var(--brand); }
.step__title { font-weight: 600; font-size: 17px; }
.step__text { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.price-note { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--brand-tint); display: grid; gap: var(--space-3); align-content: start; }
.price-note__title { font-weight: 600; font-size: 18px; color: var(--brand); }
.price-note__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.price-note p { font-size: 14px; line-height: 20px; }
@media (min-width: 1024px) {
  .how { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); align-items: stretch; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step__num { grid-row: auto; }
  .step__title { font-size: 18px; }
  .step__text { font-size: 16px; line-height: 24px; }
}

/* ---------- Операторы и отзывы ---------- */
.trustblock { display: grid; gap: var(--space-8); }
.operators { display: grid; gap: var(--space-4); align-content: start; }
.operators__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.operator { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.operator--empty { border-style: dashed; border-color: var(--line-strong); color: var(--ink-muted); font-weight: 400; }
.reviews { display: grid; gap: var(--space-4); align-content: start; }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.reviews__title { font-weight: 600; font-size: 20px; }
.reviews__rating { font-size: 14px; color: var(--ink-muted); }
.reviews__list { display: grid; gap: var(--space-4); }
.review { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--space-3); align-content: start; }
.review__stars { display: flex; gap: 2px; color: var(--accent); }
.review figcaption { font-size: 14px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .trustblock { grid-template-columns: 420px minmax(0, 1fr); gap: var(--space-12); }
  .reviews__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Журнал ---------- */
.posts { display: grid; gap: var(--space-6); }
.post { display: grid; gap: var(--space-3); color: var(--ink); align-content: start; }
.post:hover { color: var(--ink); text-decoration: none; }
.post:hover .post__title { color: var(--brand); }
.post__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-radius: var(--radius-lg); background: var(--brand-tint); }
.post__meta { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.post__title { font-weight: 600; font-size: 18px; line-height: 25px; }
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post--lead { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .posts { grid-template-columns: 2fr 1fr 1fr; }
  .post--lead { grid-column: auto; }
  .post__img { height: 220px; aspect-ratio: auto; }
  .post__title { font-size: 19px; line-height: 26px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-6); }
.faq__intro { display: grid; gap: var(--space-3); align-content: start; }
.faq__intro .btn { justify-self: start; }
.faq__list { display: grid; gap: var(--space-2); }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 56px; padding: var(--space-4) 20px; cursor: pointer; font-weight: 600; font-size: 16px; line-height: 22px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; }
.faq-item__sign { flex-shrink: 0; width: 20px; height: 20px; position: relative; color: var(--brand); }
.faq-item__sign::before, .faq-item__sign::after { content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.faq-item__sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__sign::after { transform: rotate(0deg); }
.faq-item__answer { padding: 0 20px 18px; color: var(--ink-muted); line-height: 24px; }
@media (min-width: 1024px) {
  .faq { grid-template-columns: 380px minmax(0, 1fr); gap: var(--space-12); }
  .faq-item summary { font-size: 17px; }
}

/* ---------- SEO-текст ---------- */
.seo-text { display: grid; gap: var(--space-4); }
.seo-text .h2 { font-size: 20px; line-height: 26px; }
.seo-text__body { display: grid; gap: var(--space-3); line-height: 26px; font-size: 15px; }
.seo-text__body a { text-decoration: underline; text-underline-offset: 3px; }
.seo-text__body.is-collapsed { max-height: 130px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.seo-text__toggle { justify-self: start; background: none; border: 0; padding: 0; min-height: 44px; color: var(--brand); font-weight: 600; }
@media (min-width: 1024px) {
  .seo-text .h2 { font-size: 24px; line-height: 30px; }
  .seo-text__body { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); font-size: 16px; }
  .seo-text__body.is-collapsed { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .seo-text__toggle { display: none; }
}

/* ---------- Подписка ---------- */
.subscribe { padding: var(--space-6) 20px; border-radius: var(--radius-lg); background: var(--brand); color: var(--on-brand); display: grid; gap: var(--space-4); }
.subscribe__title { font: 600 19px/25px var(--font-display); }
.subscribe__text { opacity: .9; }
.subscribe__form { display: grid; gap: var(--space-2); }
.subscribe__input { height: 52px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-md); background: #FFFFFF; color: #12232B; font-size: 16px; min-width: 0; }
.subscribe__input::placeholder { color: #56666D; }
.subscribe__consent { font-size: 12px; line-height: 16px; display: flex; gap: var(--space-2); align-items: flex-start; }
.subscribe__consent input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.subscribe__consent a { color: inherit; text-decoration: underline; }
.subscribe__status { font-size: 14px; font-weight: 600; min-height: 1em; }
@media (min-width: 1024px) {
  .subscribe { grid-template-columns: minmax(0, 1fr) 520px; align-items: center; gap: var(--space-12); padding: 40px 48px; }
  .subscribe__title { font-size: 24px; line-height: 30px; }
  .subscribe__form { grid-template-columns: minmax(0, 1fr) auto; }
  .subscribe__consent, .subscribe__status { grid-column: 1 / -1; }
}

/* ---------- Футер ---------- */
.footer { background: var(--night); color: var(--on-night); padding-block: var(--space-8) calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); }
.footer a { color: var(--on-night-muted); }
.footer a:hover { color: var(--on-night); }
.footer__grid { display: grid; gap: var(--space-6); }
.footer__brand { display: grid; gap: var(--space-4); justify-items: start; }
.footer__brand img { height: 34px; width: auto; }
.footer__tag { font-size: 14px; line-height: 20px; color: var(--on-night-muted); }
.footer__contact { color: var(--on-night) !important; }
.socials { display: flex; gap: var(--space-2); }
.socials a { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--night-2); color: var(--on-night); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.socials a:hover { text-decoration: none; background: #29494F; }
.footer-col { border-bottom: 1px solid #2A3A42; }
.footer-col summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; font-weight: 600; cursor: pointer; }
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary svg { transition: transform .2s; }
.footer-col[open] summary svg { transform: rotate(180deg); }
.footer-col ul { display: grid; gap: 10px; padding-bottom: var(--space-4); font-size: 14px; }
.footer__legal { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid #2A3A42; display: grid; gap: var(--space-2); font-size: 12px; line-height: 18px; color: #9DAEB5; }
.footer__legal a { color: #9DAEB5; text-decoration: underline; }
@media (min-width: 1024px) {
  .footer { padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .footer__grid { grid-template-columns: 300px repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
  .footer__brand img { height: 40px; }
  .footer-col { border: 0; }
  .footer-col summary { min-height: 0; margin-bottom: var(--space-3); cursor: default; pointer-events: none; }
  .footer-col summary svg { display: none; }
  .footer-col ul { padding: 0; }
  .footer__legal { margin-top: var(--space-10, 40px); font-size: 13px; line-height: 20px; }
}

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

/* ---------- Растягивание ссылок-плиток по высоте ячейки ---------- */
.dest-grid > li, .kinds > li, .cities__list > li, .posts > li, .months li { display: flex; }
.dest-grid > li > a, .kinds > li > a, .posts > li > a, .months li > a { flex: 1; }
@media (min-width: 1024px) { .cities__list > li > a { flex: 1; } }
.seo-text__col { display: grid; gap: var(--space-3); align-content: start; }
