/* ============================================================
   CAMP — visual system
   night / canvas / sky / pine / tent / sun
   raw photos · soft gradients · big type · tiny UI · one orange accent
   ============================================================ */

:root {
  --night:  #0B1115;
  --canvas: #F6F3EA;
  --sky:    #B7D8EE;
  --pine:   #173D2E;
  --tent:   #FF6B18;
  --sun:    #FFB33E;

  /* driven by scroll (camp.js) */
  --sky-a: #B7D8EE;
  --sky-b: #E7DCC9;
  --ground: #173D2E;

  --ink:   #0B1115;
  --ink-2: rgba(11, 17, 21, 0.60);
  --ink-3: rgba(11, 17, 21, 0.34);
  --line:  rgba(11, 17, 21, 0.12);
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.80);
  --surface-solid: #F6F3EA;

  --r:      8px;
  --r-lg:   12px;
  --r-pill: 8px;

  /* технические подписи — системный моноширинный, без сетевой загрузки */
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --pad: clamp(20px, 5vw, 40px);
  --gap-section: clamp(64px, 9vh, 120px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* night half of the journey */
html.is-night {
  --ink:   #F6F3EA;
  --ink-2: rgba(246, 243, 234, 0.62);
  --ink-3: rgba(246, 243, 234, 0.34);
  --line:  rgba(246, 243, 234, 0.14);
  --surface: rgba(246, 243, 234, 0.07);
  --surface-strong: rgba(246, 243, 234, 0.10);
  --surface-solid: rgba(246, 243, 234, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: color 0.5s var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   THE SKY — fixed backdrop, one whole day from sunrise to stars
   ============================================================ */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* три остановки: верх неба, розовая прослойка, тёплый низ у горизонта */
  background: linear-gradient(180deg,
    var(--sky-a) 0%,
    var(--sky-mid, var(--sky-b)) 58%,
    var(--sky-b) 100%);
  transition: background 0.25s linear;
}

.sky-sun {
  position: absolute;
  width: clamp(84px, 13vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun-c, var(--sun));
  left: var(--sun-x, 20%);
  top: var(--sun-y, 60%);
  opacity: var(--sun-o, 1);
  transform: translate(-50%, -50%);
  filter: blur(0.3px);
  box-shadow: 0 0 120px 40px rgba(255, 179, 62, 0.28);
  transition: background 0.4s linear, box-shadow 0.4s linear;
}

.sky-stars {
  position: absolute;
  inset: 0;
  opacity: var(--stars-o, 0);
  transition: opacity 0.6s var(--ease);
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* ============================================================
   LAYOUT
   ============================================================ */

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

section {
  position: relative;
  padding: var(--gap-section) 0;
}

/* ============================================================
   TYPE — big headlines, tiny utility labels
   ============================================================ */

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); }
h2 { font-size: clamp(2.1rem, 6.4vw, 4.2rem); letter-spacing: -0.03em; line-height: 1.02; }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.15; }

p { margin: 0; }

.label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.label--tent { color: var(--tent); }

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
  margin-top: 28px;
}

.section-head { margin-bottom: clamp(32px, 4.5vh, 54px); }

.section-head .lede { max-width: 42ch; }

/* ============================================================
   TINY UI — native-feeling controls
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), opacity 0.25s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn--tent {
  background: var(--tent);
  color: #fff;
}
.btn--tent:hover { opacity: 0.9; }

.btn--quiet {
  border-color: var(--line);
  color: var(--ink);
}
.btn--quiet:hover { border-color: var(--ink-3); }

.btn--lg { padding: 19px 34px; font-size: 15px; }

.btn--sm {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* запасной способ оплаты — присутствует, но не спорит с главной кнопкой */

.arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* rounded surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 30px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}

/* ============================================================
   NAV — behaves like a simple app, no menus
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  mix-blend-mode: normal;
}

.nav-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

/* вордмарк набором: логотип-картинка нёс в себе слово «КЭМП» */
.nav-wordmark,
.foot-wordmark {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav-wordmark { font-size: 14px; }
.foot-wordmark { font-size: 13px; color: var(--ink-2); }

/* вордмарк почти чёрный, поэтому на ночных секциях подменяем его светлым */
.nav-logo img { height: 54px; width: auto; display: block; }
.foot-logo img { height: 40px; width: auto; display: block; }

/* специфичность должна перебивать `.nav-logo img` / `.foot-logo img` */
.nav-logo img.logo-night,
.foot-logo img.logo-night { display: none; }

html.is-night .nav-logo img.logo-day,
html.is-night .foot-logo img.logo-day { display: none; }

html.is-night .nav-logo img.logo-night,
html.is-night .foot-logo img.logo-night { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  color: var(--ink-2);
}

.nav-links a:hover { color: var(--ink); }

.nav-join {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  background: var(--tent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-join) { display: none; }
}

/* ============================================================
   01 · HERO — start here
   ============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(96px, 13vh, 128px);
  /* ровно на гряду clamp(150px, 24vh, 300px) плюс небольшой зазор */
  padding-bottom: clamp(170px, 26vh, 320px);
}

.hero h1 { max-width: 15ch; }

.hero-lede { max-width: 40ch; }

.hero-cta {
  margin-top: clamp(34px, 5vh, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.scroll-hint {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  left: var(--pad);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  animation: bob 2.6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* the horizon: pine ground + tent, hero only */
.horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(150px, 26vh, 300px);
  pointer-events: none;
  overflow: hidden;
}

.horizon > svg:first-child { width: 100%; height: 100%; display: block; }
.horizon > svg:first-child path { fill: var(--ground); transition: fill 0.4s linear; }

.tent {
  position: absolute;
  right: clamp(24px, 10vw, 160px);
  bottom: 0;
  width: clamp(70px, 9vw, 130px);
  height: auto;
  display: block;
}

/* на телефоне палатка должна читаться, а не быть точкой на горизонте */
@media (max-width: 720px) {
  .tent { width: 200px; right: 16px; }
  .horizon { height: 270px; }
}

/* Разделение первого экрана — облачная гряда.
   Каждый ряд: сверху кромка из повторяющихся полуэллипсов, под ней
   подложка, уходящая в прозрачность. Обе части заданы долями блока,
   поэтому кромка не обрезается ни при низком окне, ни на телефоне. */
.clouds {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(150px, 24vh, 300px);
  /* гряда выше нижнего отступа героя, поэтому её нужно увести под текст:
     на -1 она ложится поверх .sky (тот раньше в DOM), но под контентом */
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.clouds span {
  position: absolute;
  left: -8%; right: -8%;
  top: 0; bottom: 0;
  display: block;
  background-repeat: repeat-x;
  background-image:
    radial-gradient(ellipse 50% 100% at 50% 100%, #fff 99%, transparent 100%),
    linear-gradient(
      #fff 0%,
      rgba(255, 255, 255, 0.97) 14%,
      rgba(255, 255, 255, 0.88) 28%,
      rgba(255, 255, 255, 0.70) 44%,
      rgba(255, 255, 255, 0.46) 60%,
      rgba(255, 255, 255, 0.24) 76%,
      rgba(255, 255, 255, 0.08) 89%,
      rgba(255, 255, 255, 0) 100%);
}

/* задний ряд поднят и приглушён — он даёт глубину гряде */
.clouds .cloud-far {
  bottom: 9%;
  opacity: 0.45;
  background-size: 186px 23%, 100% 77%;
  background-position: left 93px top 0, left 0 bottom 0;
}

.clouds .cloud-near {
  opacity: 0.9;
  background-size: 146px 19%, 100% 81%;
  background-position: left 0 top 0, left 0 bottom 0;
}

/* на узком экране крупные полуэллипсы сливаются в полосу — мельчим шаг */
@media (max-width: 720px) {
  .clouds { height: 190px; }
  .clouds .cloud-far  { background-size: 104px 23%, 100% 77%; background-position: left 52px top 0, left 0 bottom 0; }
  .clouds .cloud-near { background-size: 82px 19%, 100% 81%; background-position: left 0 top 0, left 0 bottom 0; }
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — шапка страницы оплаты
   ============================================================ */

.page-head { padding-top: clamp(118px, 17vh, 180px); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 46ch; }

.fire-scene.fire-scene--short {
  min-height: 0;
  padding-top: clamp(70px, 10vh, 130px);
  padding-bottom: clamp(70px, 10vh, 130px);
}

/* костровое свечение уместно только ночью */
body[data-sky="day"] .fire-glow,
body[data-sky="sunset"] .fire-glow { display: none; }

/* ============================================================
   TRAILS — the group camp, main product
   ============================================================ */

/* главный формат — единственное место, где тропа подсвечена */

html.is-night .trail-go { background: var(--canvas); color: var(--night); }

/* ============================================================
   DAY RHYTHM — how camp works
   ============================================================ */

.days {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.day {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
}

.day-no {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tent);
  font-weight: 600;
}

.day h3 { margin-bottom: 8px; }
.day p { color: var(--ink-2); font-size: 15px; max-width: 52ch; }

@media (max-width: 620px) {
  .day { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================================================
   OUTPUTS — what you'll make
   ============================================================ */

.outputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.output {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 16px;
  line-height: 1.4;
}

.output span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

/* ============================================================
   WHO IT'S FOR
   ============================================================ */

.fits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.fit {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.fit h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: 10px; }
.fit p { color: var(--ink-2); font-size: 15px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 6vh, 70px);
}

/* ============================================================
   CAMP LEADER
   ============================================================ */

/* brand logos */
.brands {
  margin-top: clamp(48px, 7vh, 80px);
}

/* бесконечная лента логотипов */
.marquee {
  position: relative;
  overflow: hidden;
  margin-top: 26px;
  /* края растворяются, чтобы лента не обрывалась резко */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-row {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(36px, 5vw, 72px);
  padding-right: clamp(36px, 5vw, 72px);
}

.marquee-row img {
  height: clamp(26px, 3.1vw, 38px);
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}

.marquee:hover .marquee-row img { opacity: 0.85; }

/* белые логотипы на светлом фоне не читаются — гасим их в чёрный силуэт */
.marquee-row img.is-light { filter: brightness(0); }

/* ночью наоборот: тёмные инвертируем, белые оставляем как есть */
html.is-night .marquee-row img { filter: invert(1) brightness(1.7); }
html.is-night .marquee-row img.is-light { filter: none; }

/* на телефоне логотипы вдвое крупнее — правило идёт после базового,
   иначе его перебьёт объявление выше по каскаду */
@media (max-width: 720px) {
  .marquee-row img { height: 52px; }
  .marquee-row {
    gap: 44px;
    padding-right: 44px;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PRIZE — camera roll / the set
   ============================================================ */

.prize {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}

@media (max-width: 800px) { .prize { grid-template-columns: 1fr; } }

.prize-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* показываем кадр целиком — ни на десктопе, ни на телефоне не режем */
.prize-photo img { width: 100%; height: auto; display: block; }

.prize-list { margin-top: 26px; display: grid; gap: 14px; }

.prize-item {
  padding: 16px 20px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  font-size: 15px;
}

.prize-item b { display: block; font-weight: 600; margin-bottom: 3px; }
.prize-item span { color: var(--ink-3); font-size: 13px; }

/* ============================================================
   CAMP PASS — price + access
   ============================================================ */

.pass {
  border-radius: var(--r-lg);
  padding: clamp(30px, 5vw, 64px);
  /* плотнее обычных карточек: сквозь неё не должно просвечивать солнце */
  background: var(--surface-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

/* в одну колонку: блок цены и блок действия — это один поток, а не две
   колонки, поэтому прижимаем их друг к другу и растягиваем кнопку */
@media (max-width: 820px) {
  .pass {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .pass-includes { margin: 24px 0 0; }

  .pass .btn {
    width: 100%;
    justify-content: center;
  }

  .pass .pass-alt { width: auto; }

  .pass-note { margin-top: 14px; }
  .pass-soft { max-width: none; margin-top: 16px; }
}

.pass-price {
  font-size: clamp(3.2rem, 9vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pass-price small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
}

.pass-includes { display: grid; gap: 13px; margin: 30px 0 34px; }

.pass-includes li {
  list-style: none;
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
}

.pass-includes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--tent);
}

.pass-includes ul { margin: 0; padding: 0; }

.pass-note {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pass-soft {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
}

.pass-soft a, .entry-price a { color: var(--tent); }
.pass-soft a:hover, .entry-price a:hover { opacity: 0.75; }

/* lighter ways in */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(20px, 3vh, 30px);
}

.entry {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry h3 { font-size: 1.15rem; }
.entry p { font-size: 14px; color: var(--ink-2); }
.entry .entry-price { font-size: 15px; font-weight: 600; margin-top: auto; padding-top: 14px; }

/* ============================================================
   FAQ — tiny, native
   ============================================================ */

.qa { border-top: 1px solid var(--line); }

.qa-item { border-bottom: 1px solid var(--line); }

.qa-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font: inherit;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
}

.qa-q i { font-style: normal; color: var(--tent); transition: transform 0.3s var(--ease); }
.qa-item.open .qa-q i { transform: rotate(45deg); }

.qa-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.qa-a p { padding-bottom: 26px; color: var(--ink-2); max-width: 60ch; font-size: 15px; }

/* ============================================================
   12 · SEE YOU BY THE FIRE — final scene
   ============================================================ */

.fire-scene {
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: clamp(120px, 20vh, 220px);
}

.fire-scene h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }

.fire-scene .lede { margin-left: auto; margin-right: auto; text-align: center; max-width: 40ch; }

.fire-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.fire-when {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fire-when b { color: var(--tent); font-weight: 600; }

/* the campfire itself — dies down as the animation ends */
.campfire {
  position: absolute;
  bottom: clamp(40px, 9vh, 110px);
  left: 50%;
  transform: translateX(-50%) scale(var(--fire-scale, 1));
  transform-origin: 50% 100%;
  opacity: var(--fire-o, 1);
  transition: opacity 0.5s linear, transform 0.5s var(--ease);
  pointer-events: none;
}

/* костёр: два полена, широкое пламя, угли и искры */
.fire-stack {
  position: relative;
  width: clamp(120px, 17vw, 200px);
  height: clamp(110px, 16vw, 175px);
  margin: 0 auto;
}

.flame {
  position: absolute;
  left: 50%;
  bottom: 26%;
  transform: translateX(-50%);
  width: clamp(74px, 11vw, 124px);
  height: clamp(86px, 13vw, 140px);
  border-radius: 50% 50% 44% 44% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 82%, var(--sun) 0%, var(--tent) 48%, rgba(255, 107, 24, 0) 76%);
  filter: blur(3px);
  animation: flicker 2.4s ease-in-out infinite;
}

/* второй язык пламени — чтобы огонь не читался ровной свечой */
.flame--side {
  width: clamp(44px, 6.5vw, 74px);
  height: clamp(56px, 8vw, 92px);
  left: 38%;
  bottom: 27%;
  opacity: 0.75;
  animation: flicker 1.9s ease-in-out infinite reverse;
}

.flame-core {
  position: absolute;
  left: 50%;
  bottom: 24%;
  transform: translateX(-50%);
  width: clamp(30px, 4.4vw, 50px);
  height: clamp(42px, 6vw, 66px);
  border-radius: 50% 50% 40% 40% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 84%, #FFF6DC 0%, var(--sun) 58%, rgba(255, 179, 62, 0) 80%);
  filter: blur(2px);
  animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { transform: translateX(-50%) scaleY(1) scaleX(1);       opacity: 0.94; }
  33%      { transform: translateX(-50%) scaleY(1.1) scaleX(0.94);  opacity: 1; }
  66%      { transform: translateX(-50%) scaleY(0.94) scaleX(1.05); opacity: 0.86; }
}

.logs {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  width: clamp(112px, 16vw, 186px);
  height: clamp(26px, 3.6vw, 40px);
}

.logs span {
  position: absolute;
  top: 42%;
  left: 4%;
  width: 92%;
  height: clamp(11px, 1.5vw, 16px);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #4A3524 0%, #2A1C12 100%);
  box-shadow: inset 0 2px 0 rgba(255, 150, 60, 0.32);
}

.logs span:first-child { transform: rotate(-11deg); }
.logs span:last-child  { transform: rotate(10deg); }

.embers {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: clamp(96px, 14vw, 160px);
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 107, 24, 0.85) 0%, rgba(255, 107, 24, 0) 72%);
  filter: blur(4px);
  animation: flicker 3.1s ease-in-out infinite;
}

/* искры уходят вверх */
.spark {
  position: absolute;
  bottom: 34%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0;
  animation: spark 3.4s ease-out infinite;
}

@keyframes spark {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sx, 10px), -120px) scale(0.35); }
}

.fire-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100%);
  height: 46vh;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,107,24,0.22) 0%, rgba(255,107,24,0) 68%);
  opacity: var(--fire-o, 1);
  transition: opacity 0.5s linear;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
}

.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a:hover { color: var(--ink); }

/* ============================================================
   ТЕКСТОВАЯ СТРАНИЦА (политика)
   ============================================================ */

.legal { max-width: 62ch; margin-top: clamp(36px, 5vh, 56px); }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 38px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
.legal a { color: var(--tent); }
.legal b { color: var(--ink); font-weight: 600; }

.legal-list { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 12px; }
.legal-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 2px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tent);
}

/* ============================================================
   СОГЛАСИЕ НА АНАЛИТИКУ
   ============================================================ */

.consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 80;
  width: min(760px, calc(100vw - 32px));
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);

  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding: 18px 22px;
  border-radius: var(--r);
  border: 1px solid rgba(11, 17, 21, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(11, 17, 21, 0.12);
}

.consent--in  { transform: translate(-50%, 0); opacity: 1; }
.consent--out { transform: translate(-50%, 140%); opacity: 0; }

.consent-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(11, 17, 21, 0.66);
}

.consent-text a { color: var(--tent); text-decoration: underline; }

.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.consent-actions .btn { white-space: nowrap; }
.consent-actions .btn--quiet { color: rgba(11, 17, 21, 0.7); border-color: rgba(11, 17, 21, 0.16); }

@media (max-width: 720px) {
  .consent { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   MOTION — soft, on reveal
   ============================================================ */

.rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.rise.seen { opacity: 1; transform: none; }

/* the palette flips at dusk — everything fades together, not just body */
.lede, .label, .card-label, .trail p, .day p, .output, .output span,
.fit p, .trust li, .pass-includes li, .qa-a p, .qa-q, .entry p,
.prize-item span, .pass-price small,
.pass-note, .fire-when, .foot, .nav-links {
  transition: color 0.5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .flame, .flame-core, .star, .scroll-hint, .spark, .embers { animation: none; }
  .marquee-track { animation: none; }
  .marquee-row { flex-wrap: wrap; }
}

/* ============================================================
   CAMP 3.0 — жёстче, взрослее: маршрут, тёмные полосы,
   технические подписи вместо милых карточек
   ============================================================ */

/* ── микроподписи и жетоны ───────────────────────────────── */
.tech {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* жетон: рамка с «пробитым» отверстием слева */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 13px 7px 24px;
  position: relative;
}

.tag::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.6;
}

.tag--tent { color: var(--tent); border-color: rgba(255, 107, 24, 0.45); }

/* ── кадр: жёсткая рамка, при необходимости с перфорацией плёнки ── */
.frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(11, 17, 21, 0.06);
}

.frame img { width: 100%; height: auto; display: block; }

.frame--film { padding: 0 16px; background: #0B1115; }

.frame--film::before,
.frame--film::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16px;
  background-color: #0B1115;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(246, 243, 234, 0.9) 0 9px,
    transparent 9px 22px);
  background-size: 8px 100%;
  background-position: center top;
  background-repeat: no-repeat;
}

.frame--film::before { left: 0; }
.frame--film::after  { right: 0; }

/* ── 01 · первый экран ───────────────────────────────────── */
.hero-grid {
  display: grid;
  gap: clamp(18px, 2.2vh, 30px) clamp(26px, 3.4vw, 52px);
  grid-template-columns: 1.04fr 0.96fr;
  grid-template-areas:
    "lead  photo"
    "cta   photo"
    "facts photo";
  align-items: start;
}

.hero-lead  { grid-area: lead; }
.hero-photo { grid-area: photo; margin: 0; }
.facts      { grid-area: facts; }
.hero .hero-cta { grid-area: cta; margin-top: 6px; flex-direction: column; align-items: flex-start; gap: 12px; }

/* в две колонки заголовок не должен занимать три строки высотой в экран */
.hero .hero-grid h1 { max-width: 13ch; font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
.hero-lede { max-width: 44ch; margin-top: 22px; }

/* кадр держим в пределах экрана и ужимаем по фотографии, чтобы по бокам
   не оставалась серая подложка .frame */
.hero-photo .frame { display: flex; justify-content: center; width: fit-content; margin: 0 auto; }
.hero-photo .frame img { max-height: min(66vh, 640px); width: auto; }

.hero-line {
  margin-top: 20px;
  padding-left: 15px;
  border-left: 2px solid var(--tent);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  font-weight: 500;
  max-width: 40ch;
}

.hero-when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-photo figcaption { margin-top: 14px; display: grid; gap: 4px; }
.hero-photo figcaption b { font-size: 16px; font-weight: 600; }
.hero-photo figcaption span { font-size: 14px; color: var(--ink-2); }
.hero-photo figcaption .tech { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* факты — тонкая техническая сетка, а не набор пилюль */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 46ch;
}

.facts li {
  background: var(--surface-strong);
  padding: 15px 17px;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

.facts li b { font-size: 15px; font-weight: 600; color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "photo" "facts" "cta";
  }
  .hero .hero-grid h1 { max-width: 100%; }
  .frame--film { padding: 0 11px; }
  .frame--film::before, .frame--film::after { width: 11px; background-size: 6px 100%; }
}

/* ── 02 · почему именно я ────────────────────────────────── */
.about-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 40px);
  max-width: 96ch;
}

.about-copy p { color: var(--ink-2); font-size: clamp(1rem, 1.6vw, 1.1rem); }
.about-copy > div > p:first-child { margin-top: 0; }

@media (max-width: 760px) { .about-copy { grid-template-columns: none; } }

.about-cta { margin-top: clamp(30px, 4.5vh, 48px); }

/* работы: колонки, а не сетка — кадры не режутся, блоки идут асимметрично */
.works {
  columns: 3;
  column-gap: 14px;
  margin-top: clamp(30px, 5vh, 54px);
}

.work { break-inside: avoid; margin: 0 0 14px; }
.work figcaption { margin-top: 9px; display: grid; gap: 3px; }
.work figcaption b { font-size: 14px; font-weight: 600; }

/* пустой слот честно говорит, какой кадр сюда нужен */
.work--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 5;
  padding: 22px;
  border: 1px dashed var(--ink-3);
  border-radius: 4px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.work--empty::before {
  content: attr(data-slot);
  position: absolute;
  top: 11px;
  left: 13px;
  color: var(--tent);
}

.work--empty.work--wide { aspect-ratio: 3 / 2; }

@media (max-width: 900px) { .works { columns: 2; } }
@media (max-width: 560px) { .works { columns: 1; } }

/* ── 03 · самостоятельно / в кэмпе ───────────────────────── */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 20px);
}

.vs-col {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.vs-col--warm {
  background: var(--surface-strong);
  border-color: rgba(255, 107, 24, 0.4);
}

.vs-col ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; }

.vs-col li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-2);
}

.vs-col li::before {
  position: absolute;
  left: 0;
  top: -1px;
  font-family: var(--mono);
}

.vs-col--cold li::before { content: '–'; color: var(--ink-3); }
.vs-col--warm li::before { content: '+'; color: var(--tent); }

@media (max-width: 720px) { .vs { grid-template-columns: 1fr; } }

/* ── 04 · куда ты придёшь ────────────────────────────────── */
.gains {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gain {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 208px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.gain b {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.gain p { margin-top: auto; font-size: 14px; color: var(--ink-2); }

.gain--lg { grid-column: span 2; }
.gain--lg b { font-size: clamp(2rem, 3.8vw, 3.1rem); }

.gain--tent { background: var(--tent); border-color: var(--tent); color: #fff; }
.gain--tent p { color: rgba(255, 255, 255, 0.85); }

/* на телефоне — свайп по карточкам, а не километровый столбик */
@media (max-width: 760px) {
  .gains {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad) 10px;
    -webkit-overflow-scrolling: touch;
  }
  .gain { scroll-snap-align: start; min-height: 190px; }
  .gain--lg { grid-column: auto; }
  .gain--lg b { font-size: clamp(1.7rem, 8vw, 2.3rem); }
}

/* ── технические списки: инструменты, состав, библиотека ─── */
.tools { margin-top: clamp(32px, 5vh, 54px); }

.tools ul, .specs, .kit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.specs { margin-top: clamp(28px, 4vh, 44px); }

.tools li, .specs li, .kit-list li {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 13px;
}

/* ── тёмная хвойная полоса: контраст посреди светлого дня ── */
.section--pine {
  background: var(--pine);
  --ink:   #F6F3EA;
  --ink-2: rgba(246, 243, 234, 0.66);
  --ink-3: rgba(246, 243, 234, 0.40);
  --line:  rgba(246, 243, 234, 0.17);
  --surface: rgba(246, 243, 234, 0.05);
  --surface-strong: rgba(246, 243, 234, 0.09);
  color: var(--ink);
}

/* зерно поверх заливки — чтобы полоса не выглядела пластиковой */
.section--pine::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.section--pine > .wrap { position: relative; z-index: 1; }

/* ── 05 · маршрут из восьми остановок ────────────────────── */
.route {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: clamp(22px, 3.4vh, 40px);
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

.stop-no {
  font-family: var(--mono);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--tent);
}

.stop-body h3 { margin-bottom: 14px; }

.stop-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.stop-body li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-2);
}

.stop-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--tent);
  opacity: 0.8;
}

/* десктоп: тропа идёт зигзагом вокруг пунктирной линии */
@media (min-width: 861px) {
  .route::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    bottom: 8px;
    border-left: 1px dashed var(--line);
  }
  .stop { width: calc(50% - 46px); }
  .stop:nth-child(odd)  { justify-self: start; }
  .stop:nth-child(even) { justify-self: end; }
  .stop::after {
    content: '';
    position: absolute;
    top: 12px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--tent);
    border-radius: 50%;
    background: var(--pine);
  }
  .stop:nth-child(odd)::after  { right: -51px; }
  .stop:nth-child(even)::after { left: -51px; }
}

/* телефон: вертикальный маршрут с соединяющей линией */
@media (max-width: 860px) {
  .stop::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 52px;
    bottom: calc(clamp(22px, 3.4vh, 40px) * -1 - 8px);
    border-left: 1px dashed var(--line);
  }
  .stop:last-child::before { display: none; }
}

/* ── 06 · цикл обучения ──────────────────────────────────── */
.cycle {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.cycle li {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  font-size: 15px;
}

.cycle li b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--tent);
}

/* последний шаг замыкает круг */
.cycle li:last-child { border-color: rgba(255, 107, 24, 0.4); }
.cycle li:last-child::after {
  content: '↻ и снова';
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tent);
}

@media (max-width: 860px) { .cycle { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .cycle { grid-template-columns: 1fr; } }

/* ── 07 · деньги ─────────────────────────────────────────── */
.money-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--line);
}

.money-list li {
  position: relative;
  padding: 17px 0 17px 32px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 1.9vw, 1.2rem);
}

.money-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--tent);
}

@media (max-width: 720px) { .money-list { grid-template-columns: 1fr; } }

/* ── 08 · библиотека ─────────────────────────────────────── */
.kit {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}

.kit-hero {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgba(255, 107, 24, 0.4);
  border-radius: var(--r);
  background: var(--surface-strong);
}

.kit-hero b {
  display: block;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--tent);
}

.kit-hero span { display: block; margin-top: 12px; font-size: 15px; color: var(--ink-2); }

@media (max-width: 720px) { .kit { grid-template-columns: 1fr; } }

/* ── 10 · работы учеников ─────────────────────────────────
   Кадры приходят с очень разными пропорциями: скрин ленты в рост,
   широкая полоска статистики, кадр «до/после». В строгой сетке они
   рвутся по высоте, поэтому колонки — каждая пакуется сама.
   ───────────────────────────────────────────────────────── */
.student-works {
  list-style: none;
  margin: 0 0 clamp(26px, 4vh, 40px);
  padding: 0;
  columns: 3;
  column-gap: 14px;
}

.student-work { break-inside: avoid; margin: 0 0 14px; }
.student-work .frame img { width: 100%; height: auto; }

.student-cap { margin-top: 9px; display: grid; gap: 3px; }
.student-cap b { font-size: 14px; font-weight: 600; }

/* слот без кадра честно говорит, что работы ещё нет */
.student-work--empty {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  padding: 20px;
  border: 1px dashed var(--ink-3);
  border-radius: 4px;
  background: var(--surface-strong);
}

.student-work--empty::before {
  content: attr(data-slot);
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--tent);
}

.student-work--empty .student-cap { margin-top: 0; }
.student-work--empty .student-cap b { color: var(--ink-3); font-weight: 500; }

@media (max-width: 900px) { .student-works { columns: 2; } }
@media (max-width: 560px) { .student-works { columns: 1; } }

/* ── 12 · заявка ─────────────────────────────────────────── */
.apply {
  padding: clamp(30px, 5vw, 66px);
  border: 1px solid rgba(255, 107, 24, 0.4);
  border-radius: var(--r-lg);
  background: var(--surface-strong);
  text-align: center;
}

.apply .lede,
.apply .pass-note,
.apply .pass-soft {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.apply .lede { max-width: 48ch; }
.apply h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.apply .btn { margin-top: clamp(26px, 4vh, 38px); }
.apply .pass-note { max-width: 46ch; }

/* ── мобильные кнопки: палец, а не курсор ────────────────── */
@media (max-width: 720px) {
  .btn { min-height: 48px; justify-content: center; }
  .consent-actions .btn { min-height: 48px; }
}

/* ── шапка поверх тёмных полос ────────────────────────────
   Логотип и ссылки в шапке всегда тёмные, пока страница не ушла
   в ночь. Над хвойной секцией они сливались с фоном, поэтому под
   шапку кладём светлую подложку с растворяющимся низом.
   ─────────────────────────────────────────────────────── */
.nav::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto 0;
  height: 108px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(246, 243, 234, 0.92), rgba(246, 243, 234, 0));
}

html.is-night .nav::before {
  background: linear-gradient(to bottom, rgba(11, 17, 21, 0.92), rgba(11, 17, 21, 0));
}

/* ── доводка после первой примерки ────────────────────────── */

/* кадры в мозаике занимают всю ширину колонки и не режутся:
   высота у каждого своя, как в настоящей раскладке работ */
.work .frame img { width: 100%; height: auto; }

/* пустой слот без заливки просвечивало солнце из фиксированного неба */
.work--empty { background: var(--surface-strong); }

/* карточки результатов — плотная подложка, солнце не должно мутить текст */
.gain { background: var(--surface-strong); }

/* последний ряд из двух карточек добираем до полной ширины */
.gain--wide { grid-column: span 2; }
@media (max-width: 760px) { .gain--wide { grid-column: auto; } }

/* остановки чуть ближе друг к другу */
.route { gap: clamp(16px, 2.4vh, 30px); }

/* ── правки с превью ───────────────────────────────────────
   Заголовки на маленьких карточках были вдвое мельче, чем на
   первых двух, и ряд читался как второсортный. Подтягиваем их
   вверх, но не до размера крупных: «Портфолио» на одинарной
   карточке при 3.1rem вылезает за край.
   ───────────────────────────────────────────────────────── */
.gain b { font-size: clamp(1.7rem, 2.9vw, 2.5rem); }

/* на оранжевой карточке белый текст просили заменить на чёрный */
.gain--tent { color: var(--night); }
.gain--tent p { color: rgba(11, 17, 21, 0.72); }

/* ── маркер прогресса у остановки: «03 / 08» из брендбука ─── */
.stop-no i {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}


/* ============================================================
   ВОРОНКА: список внутри «обо мне», результат шага, оффер
   ============================================================ */

.about-list {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}

.about-list li { margin-bottom: 6px; }

/* итог каждого шага программы — единственная строка со светлым акцентом */
.stop-result {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.stop-result b { color: var(--tent); font-weight: 600; }

.fits-note {
  margin-top: clamp(22px, 3vh, 34px);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 15px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* состав слева, цена и кнопка справа */
.offer {
  margin-top: clamp(28px, 4vh, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.offer-includes .specs { margin-top: 16px; }

.offer-buy {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.offer-price {
  display: block;
  margin: 10px 0 4px;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.offer-math {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.offer-copy {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--ink-2);
}

.offer-buy .btn { width: 100%; justify-content: center; }

/* розыгрыш ужат до бонуса под ценой */
.prize--bonus {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
}

.prize--bonus h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}

.prize--bonus p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  max-width: 46ch;
}

@media (max-width: 860px) {
  .offer { grid-template-columns: none; }
  .prize--bonus { grid-template-columns: none; }
}
