/* =============================================================
   Интенсив «Летний лагерь» — виртуальный лагерь клуба «Шагай Дома»
   ВЕРСИЯ B: СОВЕТСКИЙ РЕТРО-СЛОЙ (пионерлагерь, конструктивизм,
   плакат 60–80-х) поверх брендового ядра walk-walk.ru.

   Что осталось от бренда: красный #CE2C01, жёлтый #FFB600, логотип,
   кнопки-пилюли, структура секций.
   Что надето сверху: плакатный узкий гротеск Oswald в капсе, бумажный
   фон с зерном, прямоугольные карточки, путёвка/штампы/звёзды/перфорация.
   ============================================================= */

:root {
  /* --- Бумажный слой. Тёплые кремовые тона вместо стерильного белого --- */
  --color-bg: #f4ead9;            /* базовая «бумага» страницы */
  --color-paper: #fcf7ed;         /* лист карточки — чуть светлее фона */
  --color-text: #1f1300;
  /* Был #6b6b6b — на бежевом это 4.47:1, ниже AA. Тёплый тёмно-коричневый
     даёт 7.4:1 на --color-bg и 6.9:1 на --color-soft. */
  --color-muted: #5a4632;
  --color-line: #d8c3a2;          /* тёплая линовка вместо серой */
  --color-line-strong: #c2a878;

  --color-primary: #ce2c01;       /* брендовый красный — НЕ трогаем */
  --color-primary-hover: #ffb600; /* hover / жёлтый акцент — НЕ трогаем */
  --color-accent-dark: #ca4f00;
  --color-soft: #eee1c9;          /* фон секций-полос (бумага потемнее) */
  --color-cream: #f8f0e2;         /* тёплый фон-разделитель */
  --color-slot: #e9dabf;          /* слот под будущее фото */
  --color-slot-ink: #6f5c40;      /* подпись «фото» — 4.65:1 на слоте */
  --color-dark: #1f1300;
  --color-discount: #cf2c02;

  /* Ретро = более прямоугольное. Пилюли (кнопки) — исключение, это бренд. */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(64, 40, 12, 0.10);
  --shadow-md: 0 10px 24px rgba(64, 40, 12, 0.16);

  --font-h: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-b: 'Inter', Arial, sans-serif;
  --font-m: 'Courier New', ui-monospace, SFMono-Regular, monospace; /* канцелярские подписи */

  /* Бумажная зернистость: inline-SVG feTurbulence, обесцвечен feColorMatrix,
     rect opacity 0.1 → фактическое перекрытие ~4–5%. Тайл 200×200, stitchTiles
     склеивает края без шва. Никаких внешних картинок. */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.1'/%3E%3C/svg%3E");

  /* Диагональная плакатная лента — приглушённый красный под углом 45° */
  --ribbon-diag: repeating-linear-gradient(45deg, rgba(206,44,1,.075) 0 14px, rgba(206,44,1,0) 14px 36px);

  /* Пятиконечная звезда — маркер списков и разделитель (SVG, красная/жёлтая) */
  --star-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23ce2c01' d='M6 0L7.41 4.06L11.71 4.15L8.28 6.74L9.53 10.85L6 8.4L2.47 10.85L3.72 6.74L0.29 4.15L4.59 4.06Z'/%3E%3C/svg%3E");
  --star-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffb600' d='M6 0L7.41 4.06L11.71 4.15L8.28 6.74L9.53 10.85L6 8.4L2.47 10.85L3.72 6.74L0.29 4.15L4.59 4.06Z'/%3E%3C/svg%3E");

  /* Разделитель под заголовками: двойная линия + три звезды */
  --star-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 148 14'%3E%3Cg fill='%23ce2c01'%3E%3Cpath transform='translate(50 1)' d='M6 0L7.41 4.06L11.71 4.15L8.28 6.74L9.53 10.85L6 8.4L2.47 10.85L3.72 6.74L0.29 4.15L4.59 4.06Z'/%3E%3Cpath transform='translate(68 1)' d='M6 0L7.41 4.06L11.71 4.15L8.28 6.74L9.53 10.85L6 8.4L2.47 10.85L3.72 6.74L0.29 4.15L4.59 4.06Z'/%3E%3Cpath transform='translate(86 1)' d='M6 0L7.41 4.06L11.71 4.15L8.28 6.74L9.53 10.85L6 8.4L2.47 10.85L3.72 6.74L0.29 4.15L4.59 4.06Z'/%3E%3C/g%3E%3Cg stroke='%23ce2c01' stroke-width='1.3' opacity='.5'%3E%3Cpath d='M0 5h42M106 5h42'/%3E%3Cpath d='M0 9h42M106 9h42'/%3E%3C/g%3E%3C/svg%3E");

  --container: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background-color: var(--color-bg);
  background-image: var(--paper-grain);
  color: var(--color-text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
h1, h2, h3 { overflow-wrap: break-word; word-break: keep-all; hyphens: manual; text-wrap: balance; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
figure { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ======================== TYPOGRAPHY =========================== */
/* Главный рычаг ретро: узкий плакатный гротеск Oswald + КАПС.
   ВАЖНО про интерлиньяж: у Oswald высота прописной ≈ 0.73em, но глиф-бокс
   заметно выше line-box. При line-height < 1.1 в КАПСЕ верх заглавных букв
   следующей строки визуально влезает в предыдущую и кажется срезанным.
   Поэтому нижняя граница по всей странице — 1.12 (у самых длинных
   заголовков свободнее). Body остаётся Inter — капс на абзацах нечитаем. */
h1, h2, h3 { font-family: var(--font-h); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: .01em; }
.section { padding: 80px 0; }
.section__title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
}
/* Разделитель-плашка: двойная линия + три звезды (плакатная подача) */
.section__title::after,
.rates-banner h2::after {
  content: "";
  display: block;
  width: 148px;
  height: 14px;
  margin: 18px auto 0;
  background: var(--star-rule) center / contain no-repeat;
}
@media (max-width: 560px) {
  .section__title { font-size: 27px; letter-spacing: .015em; }
  .section__title::after, .rates-banner h2::after { width: 124px; margin-top: 14px; }
}
.section__lead {
  text-align: center;
  font-size: 18px;
  color: var(--color-muted);
  max-width: 760px;
  margin: -12px auto 40px;
  line-height: 1.55;
}

/* Пионерский галстук — тематический акцент над заголовками блоков.
   Картинка с CDN Тильды (PNG без фона), используется точечно: три раза
   на странице, чтобы не превращать её в узор. */
.tie-mark {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  object-fit: contain;
}
.tie-mark--sm { width: 42px; height: 42px; margin-bottom: 12px; }
/* На красной карте галстук читается только на белом медальоне */
.tie-mark--on-red {
  width: 68px;
  height: 68px;
  padding: 11px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
  margin-bottom: 20px;
}

/* ======================== BUTTONS ============================== */
/* Кнопки-пилюли — брендовый элемент, скругление НЕ трогаем.
   Ретро добавлено только типографикой: Oswald + капс + разрядка. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .045em;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 10px 18px; font-size: 13px; min-height: 40px; }
.btn--lg { font-size: 16px; padding: 18px 36px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--color-primary); color: #fff; }
.btn--white { background: #fff; color: var(--color-text); border-color: #fff; font-family: var(--font-h); font-weight: 600; }
.btn--outline { background: transparent; color: var(--color-text); border-color: var(--color-discount); }
.btn--outline-white { background: transparent; color: #fff; border-color: #fff; }

/* Жёлтый hover/нажатие — единый стиль для всех CTA */
@media (hover: hover) {
  .btn--primary:hover,
  .btn--white:hover,
  .btn--outline:hover,
  .btn--outline-white:hover {
    background: var(--color-primary-hover);
    color: #1f1300;
    border-color: var(--color-primary-hover);
  }
}
.btn--primary:active, .btn--primary:focus,
.btn--white:active, .btn--white:focus,
.btn--outline:active, .btn--outline:focus,
.btn--outline-white:active, .btn--outline-white:focus {
  background: var(--color-primary-hover);
  color: #1f1300;
  border-color: var(--color-primary-hover);
}
/* Длинный CTA «Еду в летний лагерь!» на узких карточках не должен
   вылезать за края — nowrap снимаем только для блочных кнопок. */
.btn--block { white-space: normal; }

/* ======================== TOPBAR (sticky + таймер) ============= */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #ce2c01, #ca4f00);
  color: #fff;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 46px; padding: 7px 20px; flex-wrap: wrap;
}
.topbar__text {
  font-family: var(--font-h); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
}
.topbar__text strong { font-weight: 700; }
.topbar__timer { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.topbar__unit {
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1;
  background: rgba(255,255,255,.16); border-radius: 2px; padding: 4px 6px; min-width: 30px;
}
.topbar__unit b { font-family: var(--font-h); font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.topbar__unit i { font-style: normal; font-size: 9px; opacity: .85; margin-top: 2px; text-transform: uppercase; letter-spacing: .08em; }
.topbar__sep { opacity: .5; font-weight: 700; }
.topbar__cta {
  background: #fff; color: var(--color-primary);
  font-family: var(--font-h); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
}
.topbar__cta:hover { background: var(--color-primary-hover); color: #1f1300; }
@media (max-width: 640px) {
  .topbar__inner { gap: 10px; }
  .topbar__cta { display: none; }
  .topbar__unit i { display: none; }
  .topbar__unit { min-width: 24px; padding: 3px 5px; }
  .topbar__text { font-size: 13px; }
}

/* ======================== HEADER =============================== */
/* Закреп держит топбар; шапка скроллится (как на walk-walk). */
.header {
  position: static;
  z-index: 50;
  background-color: var(--color-soft);
  background-image: var(--paper-grain);
  /* Двойная линовка вместо серой полоски — ретро-разделитель */
  border-bottom: 3px double var(--color-line-strong);
  transition: box-shadow .2s, background .2s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); background-color: rgba(238,225,201,.95); backdrop-filter: blur(6px); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
}
.header__actions { flex-shrink: 0; display: flex; gap: 12px; align-items: center; }
.header__burger {
  width: 40px; height: 40px;
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border: 0; background: transparent; padding: 0;
}
@media (max-width: 959px) {
  .header__burger { display: flex; }
}
.header__burger span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; display: block; }
.header__logo {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  visibility: visible;
  opacity: 1;
}
.header__logo svg,
.header__logo img {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .header__logo svg, .header__logo img { height: 28px; }
  .header__inner { gap: 8px; }
}
/* «Еду в летний лагерь!» длиннее прежнего CTA — на узких экранах прячем
   кнопку в шапке, конверсию держат hero-CTA и sticky-CTA. */
@media (max-width: 480px) {
  .header__actions .btn--sm { display: none; }
}

/* ======================== OVERLAY NAV =========================== */
.overlay-nav__backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 99;
}
.overlay-nav__backdrop.is-open { opacity: 1; visibility: visible; }
.overlay-nav {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(360px, 90vw); background: var(--color-primary);
  color: #fff; padding: 28px 28px 24px;
  transform: translateX(-100%); transition: transform .3s ease;
  z-index: 100; display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.overlay-nav.is-open { transform: translateX(0); }
.overlay-nav__close {
  align-self: flex-end; background: transparent; color: #fff;
  border: 0; font-size: 32px; line-height: 1; padding: 0; margin-bottom: -10px;
  width: 44px; height: 44px;
}
.overlay-nav__list {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-h); font-size: 18px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
}
.overlay-nav__list a:hover { color: var(--color-primary-hover); }
.overlay-nav__socials { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.overlay-nav__socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16);
  color: #fff;
  transition: background .2s;
}
.overlay-nav__socials a:hover { background: #fff; color: var(--color-primary); }
.overlay-nav__socials svg { width: 18px; height: 18px; }
.overlay-nav__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ======================== HERO ================================ */
.hero { padding: 32px 0 64px; }
/* minmax(0, 1fr) во второй колонке — не косметика, а обязательное условие.
   У обычного 1fr автоминимум = min-content, а .hero__image задаёт
   aspect-ratio: его min-content-ширина считалась бы ОТ ВЫСОТЫ строки и
   распирала бы фото-колонку, сжимая красную карточку — H1 рассыпался бы
   по слогам. minmax(0, …) снимает этот порог. */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
/* ---- Красная карта hero = ОТРЫВНАЯ ПУТЁВКА ----
   Двойная рамка (border + inset box-shadow), перфорированный левый край
   (::before, полукруги цветом бумаги), канцелярские подписи в углах. */
.hero__card {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: inset 0 0 0 6px var(--color-primary), inset 0 0 0 7px rgba(255,255,255,.34);
  padding: 46px 40px 42px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero__card::after {
  content: "";
  position: absolute; inset: 0;
  background: url('https://static.tildacdn.com/tild3562-3535-4166-b634-663130393766/SVG.png') no-repeat center center / cover;
  opacity: 0.18;
  pointer-events: none;
}
/* Перфорация: колонка полукругов цветом фона страницы, шаг 20px.
   rgba(...,0) вместо transparent — Safari иначе даёт серую кайму. */
.hero__card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 13px;
  z-index: 3;
  pointer-events: none;
  background-image: radial-gradient(circle at 0 50%, var(--color-bg) 0 5.5px, rgba(244,234,217,0) 6px);
  background-size: 13px 20px;
  background-repeat: repeat-y;
}
.hero__card > * { position: relative; z-index: 1; }
/* Специфичность 0,2,0 — перебивает `.hero__card > *` выше */
.hero__card > .ticket-tag { position: absolute; z-index: 3; }

/* Chip «Новинка!» */
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero__chip-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-primary-hover);
  box-shadow: 0 0 0 4px rgba(255,182,0,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,182,0,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(255,182,0,0.10); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__chip-dot { animation: none; }
}

/* H1 — белый Oswald в КАПСЕ, жёлтая молния-подчёркивание на названии.
   Трекинг из минуса (-0.03em) переведён в плюс (+0.012em) — в капсе
   отрицательный трекинг слипает буквы.
   Интерлиньяж: было 1.0 — строки слипались, верх заглавных выглядел
   срезанным, а жёлтая молния под «ЛЕТНИЙ ЛАГЕРЬ» садилась на строку ниже.
   Стало 1.14; верх clamp опущен 46px → 44px, чтобы прибавка высоты от
   интерлиньяжа не раздувала красную карту. Замерено: 375/768/1280 —
   переполнения нет (scrollWidth = clientWidth). */
.hero__title {
  color: #fff;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: clamp(27px, 3.4vw, 44px);
  line-height: 1.14;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  margin: 0;
}
.hero__title-boltword {
  display: inline-block;
  position: relative;
  padding-bottom: 0.18em;
  white-space: nowrap;
}
/* right: .32em — запятая теперь внутри span, молния не должна заезжать под неё */
.hero__title-boltline {
  position: absolute;
  left: 0;
  right: 0.32em;
  bottom: 0;
  height: 0.22em;
  pointer-events: none;
}
@media (max-width: 480px) {
  .hero__title-boltword { white-space: normal; }
}

.hero__lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
  color: #fff;
  opacity: .96;
}

/* Плашка «Старт летней смены 12 августа» — жёлтая точка (без зелёного) */
.hero__startbadge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: rgba(31,19,0,0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid rgba(255,255,255,0.18);
}
.hero__startbadge strong {
  font-weight: 700;
  color: #FFB600;
}
.hero__startbadge-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #FFB600;
  box-shadow: 0 0 0 4px rgba(255,182,0,0.28);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* CTA со стрелкой в кружке — жёлтый акцент на красном фоне */
.hero__cta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 18px !important;
  background: #FFB600 !important;
  color: #1f1300 !important;
  border-color: #FFB600 !important;
  font-weight: 500;
}
.hero__cta-arrow {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1f1300;
  color: #FFB600;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 0;
  transition: transform .2s, background .2s, color .2s;
  flex-shrink: 0;
}
.hero__cta-arrow svg { display: block; margin-left: -2px; }
@media (hover: hover) {
  .hero__cta:hover .hero__cta-arrow {
    transform: translateX(4px);
    background: #FFB600;
    color: #1f1300;
  }
}
.hero__cta:active .hero__cta-arrow,
.hero__cta:focus .hero__cta-arrow {
  background: #FFB600 !important;
  color: #1f1300 !important;
}

/* Социальный пруф с аватар-стрипом */
.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.hero__avatars { display: flex; flex-shrink: 0; }
.hero__avatars--strip { display: block; flex-shrink: 0; height: 42px; }
.hero__avatars--strip img {
  width: auto; height: 100%;
  border-radius: 0; border: 0; margin: 0; background: transparent;
}
.hero__social-text {
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
  opacity: .92;
}
.hero__social-text strong { color: var(--color-primary-hover); font-weight: 600; }

/* Правая колонка — вертикальная иллюстрация «пионерки» (1024x1536).
   width/height: 100% обязательны вместе: когда обе величины определены
   (десктоп, 2 колонки), слот = трек × высота строки, и aspect-ratio ниже
   намеренно не применяется — иначе пропорция распёрла бы колонку по ширине.
   На ≤900px колонка одна, высота строки становится неопределённой — там
   форму кадра держит aspect-ratio 3/4 (близко к 2/3 исходника).
   object-position: center top — кадр режется снизу, головы и салют
   остаются в кадре при любой высоте карточки. */
.hero__image-wrap {
  position: relative;
  height: 100%;
  min-height: 0;
}
.hero__image {
  position: relative;
  background-color: #e7cfa3;   /* тёплый охристый фон-фолбэк как у исходника */
  border-radius: var(--radius-sm);
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 60px rgba(31,19,0,0.12);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* minmax(0,1fr) вместо 1fr: подписи плиток длинные («Новая тренировка
   каждый день»), а обычный 1fr имеет min-content-порог — на 320-360px
   треки распёрло бы шире контейнера. minmax(0,…) снимает этот порог. */
.hero__image-badges {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding: 14px;
}
.hero__stat-tile {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: 3px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(64,40,12,0.16);
}
.hero__stat-tile span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.25;
  hyphens: manual;
  overflow-wrap: break-word;
}
/* Специфичность выше, чем у общего .hero__stat-tile span.
   Бокс (34px) заведомо выше самой иконки (26px) — 4px воздуха сверху и снизу,
   поэтому иконка не может упереться в границу плитки и «обрезаться». */
.hero__stat-tile .hero__stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;              /* отступ до подписи даёт margin-top у самой подписи */
  height: 34px;
  color: var(--color-primary);   /* stroke="currentColor" берёт цвет отсюда */
  font-size: 0;
  line-height: 0;
}
/* overflow у инлайнового <svg> в HTML по UA-стилю = hidden: явные размеры
   + visible гарантируют, что скруглённые концы штрихов не срежет по viewBox. */
.hero__stat-tile .hero__stat-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  overflow: visible;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  /* Верх/низ увеличены против исходных 28px — там теперь живут
     канцелярские подписи путёвки (ticket-tag) */
  .hero__card { padding: 38px 26px 42px; }
  .hero__card::before { width: 11px; background-size: 11px 18px; }
  /* Иллюстрация вертикальная — на мобиле ограничиваем ширину, иначе
     кадр 3/4 на 900px даёт 1200px высоты и выталкивает всё остальное. */
  .hero__image-wrap { max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  .hero__lead { font-size: 16px; }
  .hero__chip { font-size: 12px; padding: 6px 12px; }
  .hero__avatars--strip { height: 36px; }
}
/* На узком — 3 плитки в ряд, но компактнее.
   Подписи длинные (до 3 строк по 10px), поэтому 1 колонка отпадает:
   3 плитки в столбик съели бы ~2/3 высоты кадра и выдавили саму картинку. */
@media (max-width: 560px) {
  .hero__image-badges { gap: 6px; padding: 10px; }
  .hero__stat-tile { padding: 9px 4px; border-radius: 3px; }
  .hero__stat-tile span { font-size: 10px; line-height: 1.22; margin-top: 5px; letter-spacing: -0.01em; }
  .hero__stat-tile .hero__stat-icon { height: 30px; }
  .hero__stat-tile .hero__stat-icon svg { width: 24px; height: 24px; }
}

/* ======================== НОВЫЕ ВОЖАТЫЕ ======================== */
.counselors { background-color: var(--color-cream); background-image: var(--paper-grain); }
.counselors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.counselor-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
@media (hover: hover) {
  .counselor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
}
/* Слот под фото. Фото вставляется одной правкой:
   style="background-image:url('assets/counselors/ИМЯ.webp')" + убрать <span>. */
/* ФОТОКАРТОЧКА: белые поля вокруг кадра + лёгкий наклон.
   Наклоняем ИМЕННО фото, а не карточку: 18px паддинга карточки полностью
   съедают вылет от rotate(1.4°) (~5px по горизонтали, ~4px по вертикали),
   поэтому ни клипа, ни горизонтального скролла на 375px. */
.counselor-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  border: 7px solid #fff;
  box-shadow: 0 6px 16px rgba(64,40,12,.16);
  transform: rotate(var(--tilt, -1.4deg));
  background-color: var(--color-slot);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.counselor-card:nth-child(even) .counselor-card__photo { --tilt: 1.4deg; }
.counselor-card__photo span {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-slot-ink);
}
.counselor-card__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.counselor-card__name {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.14;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin: 0;
}
.counselor-card__role {
  margin: 0;
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.counselor-card__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-text); }
.counselor-card__program {
  margin: auto 0 0;
  background: var(--color-soft);
  border: 1px solid var(--color-line);
  border-radius: 3px;
  padding: 13px 15px;
  font-family: var(--font-h);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
}
.counselor-card__program-label {
  display: block;
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .counselors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .counselors { padding: 56px 0; }
  .counselors__grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ======================== ТРЕНИРОВКИ — «ПЛАСТИНКИ» ============= */
.records {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.record-card {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) {
  .record-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
/* Виниловая пластинка целиком на CSS: «дорожки» (repeating-radial-gradient)
   + жёлтая этикетка по центру. Этикетка — РЕАЛЬНЫЙ элемент .record__label,
   а не радиальный градиент: раньше жёлтый круг рисовался градиентом с
   farthest-corner (радиус = 0.30 × полудиагональ ≈ 35.6px), а номер стоял
   top:25% без вертикального центрирования — верх цифр вылезал на чёрное.
   Диаметр фиксированный (не min(168px, 62%)) — все три пластинки строго равны. */
.record {
  position: relative;
  width: 168px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #2b1c08 0 3px, #1f1300 3px 6px);
  box-shadow: 0 14px 34px rgba(31,19,0,.24);
  display: flex;
  align-items: center;
  justify-content: center;
}
.record__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffb600;
  box-shadow: 0 0 0 1.5px rgba(31,19,0,.35);
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .04em;
  color: #1f1300;
}
@keyframes record-spin { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .record-card:hover .record { animation: record-spin 3.6s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .record-card:hover .record { animation: none; }
}
.record-card__title {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.record-card__author {
  margin: 0;
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ДИАГОНАЛЬНАЯ ЛЕНТА — плакатный акцент на блоке «Тренировки с новыми
   вожатыми». Красные полосы под 45° на 7.5% + бумажное зерно, сверху
   двойная рамка через inset box-shadow (полоски до края не доходят). */
.workouts__note {
  max-width: 820px;
  margin: 48px auto 0;
  background-color: var(--color-cream);
  background-image: var(--ribbon-diag), var(--paper-grain);
  border: 2px solid rgba(206,44,1,0.3);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 5px var(--color-cream), inset 0 0 0 6px rgba(206,44,1,.22);
  padding: 36px 32px;
  text-align: center;
}
.workouts__note h3 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.14;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.workouts__note p {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.5;
  color: var(--color-text);
}
@media (max-width: 900px) { .records { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .workouts { padding: 56px 0; }
  .records { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-left: auto; margin-right: auto; }
  .workouts__note { padding: 28px 20px; margin-top: 32px; }
}

/* ======================== УСЛОВИЯ УЧАСТИЯ ===================== */
.conditions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.conditions__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
/* Бокс на 2px больше иконки — воздух по кругу, иконку не режет */
.conditions__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}
.conditions__icon svg { display: block; width: 26px; height: 26px; overflow: visible; }
@media (max-width: 900px) {
  .conditions { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* ======================== ЧТО ВНУТРИ (6 карточек) ============= */
.inside { background-color: var(--color-soft); background-image: var(--paper-grain); }
.inside__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.inside-card {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) {
  .inside-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
/* Иконки — инлайновые stroke-SVG; цвет приходит из color (stroke=currentColor),
   а не хардкодом в path. Бокс 44px под иконку 36px — 4px воздуха сверху/снизу,
   поэтому иконка физически не может упереться в границу карточки. */
.inside-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  color: var(--color-primary);
}
.inside-card__icon svg { display: block; width: 36px; height: 36px; overflow: visible; }
.inside-card h3 {
  font-family: var(--font-h); font-weight: 600; font-size: 20px;
  margin: 0 0 8px; letter-spacing: .025em;
  line-height: 1.18; text-transform: uppercase;
}
.inside-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--color-muted); }
@media (max-width: 900px)  { .inside__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .inside__grid { grid-template-columns: minmax(0, 1fr); } .inside { padding: 56px 0; } }

/* ======================== РЕЗУЛЬТАТЫ УЧАСТНИЦ ================= */
.results { background-color: var(--color-cream); background-image: var(--paper-grain); }
/* Самый длинный заголовок страницы (целое предложение). В капсе он опасен:
   держим размер ниже общего и интерлиньяж свободнее 1.0 → 1.08. */
.results .section__title {
  max-width: 940px; margin-left: auto; margin-right: auto;
  font-size: clamp(22px, 2.9vw, 36px);
  line-height: 1.16;
}
.results__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
/* ФОТОКАРТОЧКИ результатов: белые поля + попеременный наклон ±1.5°.
   Вылет от поворота ~5px на десктопе и ~3px на 375px — целиком уходит
   в gap сетки (12–18px) и паддинг контейнера (24px). */
.result-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  padding: 10px;
  transform: rotate(var(--tilt, -1.5deg));
  transition: transform .2s, box-shadow .2s;
}
.result-card:nth-child(even) { --tilt: 1.5deg; }
@media (hover: hover) {
  .result-card:hover { transform: rotate(var(--tilt, -1.5deg)) translateY(-4px); box-shadow: var(--shadow-md); }
}
/* Слот под фото результата. Вставка одной правкой:
   style="background-image:url('assets/results/ИМЯ.webp')" + убрать <span>. */
.result-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1px;
  background-color: var(--color-slot);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-photo span {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-slot-ink);
}
/* Подпись под фото — канцелярская моноширинная в капсе, без «рукописи» */
.result-card__name {
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 4px 6px;
}
@media (max-width: 900px) { .results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .results { padding: 56px 0; } .results__grid { gap: 12px; } }

/* ======================== RATES BANNER ======================== */
/* Полоса-плакат перед тарифами: диагональная лента + двойная линовка */
.rates-banner {
  padding: 48px 0 40px;
  margin-bottom: 24px;
  text-align: center;
  background-color: var(--color-cream);
  background-image: var(--ribbon-diag), var(--paper-grain);
  border-top: 3px double var(--color-line-strong);
  border-bottom: 3px double var(--color-line-strong);
}
.rates-banner h2 {
  font-size: clamp(23px, 3.2vw, 40px);
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .02em;
  text-transform: uppercase;
  max-width: 900px; margin: 0 auto;
}
.rates-banner .accent { color: var(--color-discount); }

/* ======================== RATES =============================== */
.rates { padding-top: 16px; padding-bottom: 80px; }
.rates__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
/* ---- Тарифы = КОРЕШКИ ПУТЁВОК ----
   Сверху тёмная полоса «ПУТЁВКА № N» (номер — CSS-счётчик, без правки
   разметки), под составом — перфорация пунктиром во всю ширину карточки. */
.rates__grid { counter-reset: putevka; }
.rate-card {
  position: relative;
  counter-increment: putevka;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  /* 52px сверху = 38px полосы «ПУТЁВКА № N» + 14px воздуха до бирки статуса.
     Бирка теперь в потоке, а не абсолютом поверх полосы. */
  padding: 52px 22px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.rate-card::before {
  content: "Путёвка № " counter(putevka);
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-dark);
  color: var(--color-bg);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  /* Не overflow:hidden на карточке — иначе срежет badge-top (он снаружи) */
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.rate-card .btn--block { margin-top: auto; }
.rate-card--featured {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
/* На красной карте полоса выворачивается в бумажную */
.rate-card--featured::before { background: var(--color-bg); color: var(--color-primary); }
/* Единственная статусная бирка карточки — В ПОТОКЕ, под полосой «ПУТЁВКА № N».
   Раньше стояла absolute top:25px и наезжала на полосу (0–38px). Второй бейдж
   («Выгодно») у featured-карточки убран: из-за лишнего элемента заголовок,
   цена и список съезжали вниз на 46px относительно соседних карточек. */
.rate-card__badge-top {
  align-self: center;
  background: var(--color-primary-hover);
  color: #1f1300;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .09em;
  line-height: 16px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(64,40,12,.20);
  white-space: nowrap;
}
.rate-card__title {
  font-size: 23px;
  font-family: var(--font-h);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: .02em;
  text-transform: uppercase;
  min-height: 64px;
  display: flex;
  align-items: flex-start;
}
@media (max-width: 540px) {
  .rate-card__title { min-height: 0; }
}
.rate-card__price { display: flex; flex-direction: column; gap: 4px; }
.rate-card__new {
  font-family: var(--font-h);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: .01em;
}
/* Нейтральная подпись под ценой. Зачёркнутых цен и рассрочки НЕТ —
   реальные суммы не подтверждены (см. TODO в index.html). */
.rate-card__hint {
  font-family: var(--font-m); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; opacity: 0.8;
}
/* Перфорация-разделитель между шапкой корешка и составом: пунктир
   во всю ширину карточки (отрицательные margin = внутренний паддинг 22px) */
.rate-card__features {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  margin: 8px -22px 8px;
  padding: 18px 22px 0;
  border-top: 2px dashed var(--color-line-strong);
  flex: 1;
}
.rate-card--featured .rate-card__features { border-top-color: rgba(255,255,255,.5); }
.rate-card__features li { position: relative; padding-left: 30px; }
/* Звёзды вместо галочек-кружков */
.rate-card__features li::before {
  content: "";
  position: absolute; left: 2px; top: 2px;
  width: 17px; height: 17px;
  background: var(--star-red) center / contain no-repeat;
  border-radius: 0;
}
.rate-card--featured .rate-card__features li::before {
  background-image: var(--star-yellow);
}
.rate-card__features li strong { font-weight: 700; }
/* Заглавная строка состава — с молнией вместо галочки */
.rate-card__features-hero {
  font-size: 16px;
  margin-bottom: 2px;
  padding-left: 30px;
  position: relative;
}
.rate-card__features-hero + .rate-card__features-hero { margin-top: 6px; }
/* Заглавная строка состава: крупная звезда вместо эмодзи-молнии.
   Цветная эмодзи ⚡ выбивалась из ретро-палитры на бумаге. */
.rate-card__features-hero::before {
  content: "" !important;
  background: var(--star-red) center / contain no-repeat !important;
  border-radius: 0 !important;
  width: 21px !important;
  height: 21px !important;
  top: 1px !important;
  left: 0 !important;
}
.rate-card--featured .rate-card__features-hero::before {
  background-image: var(--star-yellow) !important;
}
.rate-card__features-hero strong { color: var(--color-primary); font-weight: 600; }
.rate-card--featured .rate-card__features-hero strong { color: var(--color-primary-hover); }

/* «У меня уже есть абонемент» — ссылка-кнопка под CTA */
.rate-card__alt-link {
  display: block;
  margin: 10px auto 0;
  padding: 12px 18px;
  text-align: center;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: transparent;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
@media (hover: hover) {
  .rate-card__alt-link:hover {
    background: var(--color-primary-hover);
    color: #1f1300;
    border-color: var(--color-primary-hover);
  }
}
.rate-card__alt-link:active,
.rate-card__alt-link:focus {
  background: var(--color-primary-hover);
  color: #1f1300;
  border-color: var(--color-primary-hover);
}
.rate-card__alt-link--on-red {
  color: #fff;
  border-color: rgba(255,255,255,0.9);
}
@media (hover: hover) {
  .rate-card__alt-link--on-red:hover {
    background: var(--color-primary-hover);
    color: #1f1300;
    border-color: var(--color-primary-hover);
  }
}
.rate-card__alt-link--on-red:active,
.rate-card__alt-link--on-red:focus {
  background: var(--color-primary-hover);
  color: #1f1300;
  border-color: var(--color-primary-hover);
}
.rates__note { text-align: center; color: var(--color-muted); font-size: 14px; margin: 24px auto 0; max-width: 640px; line-height: 1.5; }
@media (max-width: 900px) {
  .rates__grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
  .rate-card--featured { transform: none; }
}

/* ======================== ФИНАЛЬНЫЙ CTA ====================== */
.finale { padding: 24px 0 80px; }
/* Финальный CTA — вторая «путёвка»: двойная рамка тем же приёмом, что в hero */
.finale__card {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: inset 0 0 0 6px var(--color-primary), inset 0 0 0 7px rgba(255,255,255,.34);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.finale__card::after {
  content: "";
  position: absolute; inset: 0;
  background: url('https://static.tildacdn.com/tild3562-3535-4166-b634-663130393766/SVG.png') no-repeat center center / cover;
  opacity: 0.18;
  pointer-events: none;
}
.finale__card > * { position: relative; z-index: 1; }
.finale__title {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: .02em;
  text-transform: uppercase;
  max-width: 820px;
  margin: 0 auto;
}
.finale__lead {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.5;
  max-width: 640px;
  margin: 16px auto 28px;
  opacity: .95;
}
.finale__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: left;
}
.finale__list li {
  position: relative;
  padding: 14px 18px 14px 48px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
/* Жёлтая звезда вместо круглой галочки */
.finale__list li::before {
  content: "";
  position: absolute; left: 15px; top: 14px;
  width: 21px; height: 21px;
  border-radius: 0;
  background: var(--star-yellow) center / contain no-repeat;
}
.finale__cta-wrap { margin: 0; }
@media (max-width: 720px) {
  .finale { padding: 8px 0 56px; }
  .finale__card { padding: 36px 20px; }
  .finale__list { grid-template-columns: minmax(0, 1fr); margin-bottom: 26px; }
}

/* ======================== HELP ================================ */
.help { background-color: var(--color-soft); background-image: var(--paper-grain); }
.help__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.help__sub { color: var(--color-muted); margin: 0 0 32px; font-size: 16px; }
.help__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) {
  .help__buttons { flex-direction: column; }
  .help__buttons .btn { width: 100%; }
}

/* ======================== FOOTER ============================== */
.footer {
  background-color: var(--color-bg);
  background-image: var(--paper-grain);
  color: #fff;
  padding: 40px 0 24px;
  border-top: 3px double var(--color-line-strong);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr minmax(0, 1fr);
  gap: 60px;
  background: var(--color-primary);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: var(--radius-lg);
  padding: 60px 60px 40px;
  margin: 0 20px;
  max-width: calc(100% - 40px);
}
.footer__brand {
  font-size: 46px; font-weight: 700; margin-bottom: 28px;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.1;
}
@media (max-width: 768px) {
  .footer__brand { font-size: 32px; }
  .footer__grid { padding: 36px 28px 28px; margin: 0 12px; }
}
.footer__phones { margin-bottom: 28px; font-size: 15px; }
.footer__phones a { color: #fff; }
.footer__phones-title { font-weight: 600; margin-bottom: 8px; }
.footer__phones p { margin: 4px 0; opacity: .85; }
.footer__links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.footer__links a { opacity: .85; }
.footer__links a:hover { opacity: 1; color: var(--color-primary-hover); }
.footer__col--legal p { margin: 6px 0; font-size: 14px; opacity: .85; }
.footer__socials { display: flex; gap: 10px; margin: 24px 0; flex-wrap: wrap; }
.footer__socials a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .2s, color .2s, transform .15s;
}
.footer__socials a:hover { background: #fff; color: var(--color-primary); transform: translateY(-2px); }
.footer__socials svg { width: 22px; height: 22px; display: block; }
.footer__bottom { margin-top: 24px; padding: 12px 0 0; }
.footer__bottom-inner { font-size: 13px; color: var(--color-text); opacity: .7; text-align: center; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ======================== BACK TO TOP ========================= */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  border: 0; font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: opacity .25s, transform .25s, background .2s;
  z-index: 60;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--color-primary-hover); color: #1f1300; }

/* ======================== STICKY MOBILE CTA =================== */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(244,234,217,0) 0%, rgba(244,234,217,.94) 30%);
  display: none;
  justify-content: flex-end;
  pointer-events: none;
}
.sticky-cta.is-visible { display: flex; }
.sticky-cta__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(206, 44, 1, .35);
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.sticky-cta__btn:active { transform: scale(.98); }
.sticky-cta__btn:hover { background: #b32500; }
.sticky-cta__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}
@media (max-width: 360px) {
  .sticky-cta__btn { font-size: 14px; padding: 13px 16px; }
}
@media (max-width: 768px) {
  .back-to-top { bottom: 88px; }
  body { padding-bottom: 72px; }
}

/* ======================== A11Y / POLISH ====================== */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #FFB600;
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.rate-card__alt-link:focus-visible,
.sticky-cta__btn:focus-visible,
.hero__cta:focus-visible { outline-offset: 4px; }

/* Якоря не приземляются под sticky-топбар */
section[id],
.rates-banner { scroll-margin-top: 80px; }

/* ======================== ANTI-TILDA ========================= */
/* На walk-walk.ru Тильда подмешивает стили на <a>/.t-btn — защищаем цвета. */
.btn.btn--primary {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}
.btn.btn--white {
  background: #fff !important;
  color: var(--color-text) !important;
}
@media (hover: hover) {
  .btn.btn--primary:hover,
  .btn.btn--white:hover {
    background: var(--color-primary-hover) !important;
    color: #1f1300 !important;
    border-color: var(--color-primary-hover) !important;
  }
}
/* Hero-CTA жёлтая даже под Тильдой */
.btn.hero__cta {
  background: #FFB600 !important;
  color: #1f1300 !important;
  border-color: #FFB600 !important;
}
/* Footer socials — Тильда красит <a> в чёрный, защищаем */
.footer .footer__socials a {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.footer .footer__socials a svg { fill: currentColor !important; }
@media (hover: hover) {
  .footer .footer__socials a:hover {
    background: #fff !important;
    color: var(--color-primary) !important;
  }
}
.footer .footer__socials a:active,
.footer .footer__socials a:focus {
  background: #fff !important;
  color: var(--color-primary) !important;
}

/* =============================================================
   РЕТРО-КОМПОНЕНТЫ (новые). Чистый CSS/SVG, внешних картинок нет.
   ============================================================= */

/* ---- Канцелярские подписи путёвки (углы красной карты hero) ----
   Позиционирование задано в блоке .hero__card (специфичность 0,2,0),
   здесь — только облик. */
.ticket-tag {
  font-family: var(--font-m);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
  pointer-events: none;
  margin: 0;
}
.ticket-tag--top { top: 17px; left: 34px; }
.ticket-tag--bottom { bottom: 17px; right: 34px; }
@media (max-width: 900px) {
  .ticket-tag { font-size: 9px; letter-spacing: .16em; }
  .ticket-tag--top { top: 14px; left: 24px; }
  .ticket-tag--bottom { bottom: 13px; right: 22px; }
}

/* ---- Поворотный штамп-печать ----
   Обводка 2.5px + внутренняя линия через inset-тень, полупрозрачный
   красный, наклон -12°. Используется 2 раза: «СМЕНА 2026» на фото
   и «УТВЕРЖДЕНО» перед тарифами. */
.stamp {
  display: inline-block;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(178,38,1,.82);
  background: rgba(252,247,237,.42);
  border: 2.5px solid rgba(206,44,1,.6);
  box-shadow: inset 0 0 0 1.5px rgba(206,44,1,.24);
  border-radius: 3px;
  padding: 9px 14px 8px;
  transform: rotate(-12deg);
  white-space: nowrap;
  pointer-events: none;
}
/* Штамп поверх фото пионерок: справа сверху, вне зоны плиток-сносок */
.stamp--hero {
  position: absolute;
  top: 18px;
  right: 14px;
  z-index: 2;
}
/* Штамп у тарифов — в потоке, по центру полосы-плаката */
.stamp--approved {
  margin: 22px auto 0;
  transform: rotate(-8deg);
}
@media (max-width: 560px) {
  .stamp { font-size: 12px; padding: 8px 11px 7px; }
  .stamp--hero { top: 12px; right: 10px; }
}
