/* =========================================================
   Клуб осознанности wake up now — стили лендинга
   1. Токены
   2. База
   3. Хедер и меню
   4. Типографика и утилиты
   5. Кнопки
   6. Первый экран
   7. Списки и заметки
   8. Карточки результата
   9. Формат
   10. Ведущие (блок временно скрыт в index.html)
   11. Тарифы
   12. Вопросы
   13. Финал и футер
   14. Адаптив
   ========================================================= */

/* 1. Токены ---------------------------------------------- */
:root {
  /* Палитра «Шалфей и охра».
     Шалфей — действие: кнопки, кольцо, акцентные рамки.
     Охра — ценность: подсветка фраз, цена, номера недель. */
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --ink: #232722;
  --ink-2: #5F6A5C;
  --muted: #7C8478;
  --muted-2: #9AA195;
  --line: #E6E9E0;
  --line-strong: #CFD6C5;
  --surface: #EDF1E7;      /* плашки-якоря на белом: первый экран, навыки, финал */
  --surface-line: #DEE5D5;

  --sage: #3F6448;
  --sage-deep: #33553B;
  --sage-soft: #E0EADD;
  --ochre: #8A5A22;
  --ochre-light: #D9AE63;  /* охра для текста на фотографии */
  --ochre-soft: #F1E4CB;

  --on-dark: #F2F5EF;
  --on-dark-2: #CAD5C5;
  --on-dark-3: #B7C4B2;
  --on-dark-4: #9BA995;

  --grad-plan: linear-gradient(155deg, #3A5842 0%, #2F4A38 55%, #27402F 100%);

  --radius-lg: 36px;
  --radius-md: 28px;
  --radius-sm: 22px;

  --font-head: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Golos Text", "Helvetica Neue", Arial, sans-serif;

  --shell: 1288px;
  --gutter: 24px;
  --aside: 120px;
  --gap-col: 40px;
  --section-top: 130px;
}

/* 2. База ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
::selection { background: var(--sage-soft); color: var(--sage-deep); }

:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px; top: 16px; z-index: 100;
  padding: 10px 18px; background: var(--ink); color: var(--white); border-radius: 999px;
}

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

.section { padding-top: var(--section-top); }
.section-hero { padding-top: 40px; }

.split {
  display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr);
  gap: var(--gap-col);
  align-items: start;
}
/* Раздел во всю ширину: подпись становится надзаголовком.
   Нужен там, где подпись не помещается в узкую колонку. */
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack > .eyebrow { padding-top: 0; }

.split-body {
  display: flex;
  flex-direction: column;
  gap: 46px;
  min-width: 0;
}
.stack-sm { display: flex; flex-direction: column; gap: 16px; }

/* 3. Хедер и меню ---------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--sage); }
.logo-text {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 500; letter-spacing: .01em;
  color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; align-items: center; gap: 34px; font-size: 14px; color: var(--ink-2); }
.nav-link:hover { color: var(--ink); }
.nav-toggle { display: none; }

/* 4. Типографика и утилиты -------------------------------- */
.h1, .h2, .card-title, .plan-price, .stat-value, .row-week, .logo-text {
  font-family: var(--font-head);
}
.h1 {
  font-weight: 200;
  font-size: clamp(34px, 4.3vw, 62px);
  line-height: 1.07;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.h2 {
  font-weight: 200;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.14;
  letter-spacing: -.015em;
  max-width: 820px;
  text-wrap: balance;
}
.h2-xl { font-size: clamp(30px, 3.5vw, 50px); line-height: 1.14; letter-spacing: -.02em; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
  padding-top: 14px;
}
.split > .eyebrow { padding-top: 14px; }
.eyebrow-light { color: var(--muted); padding-top: 0; }
.panel .eyebrow, .stack-sm .eyebrow { padding-top: 0; }

.lead {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 760px;
}
.lead-center { max-width: 560px; }
.text-muted { color: var(--ink-2); }
.fineprint { font-size: 14px; color: var(--muted); }

/* Подсветка ключевой фразы — охра. На странице ровно два таких места:
   заголовок первого экрана и финальный призыв. */
.mark {
  color: var(--ochre);
  background: var(--ochre-soft);
  padding: 0 .12em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.price { color: var(--ochre); font-weight: 500; }

.icon { width: 16px; height: 16px; flex: none; }

/* 5. Кнопки ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  white-space: nowrap;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { opacity: .85; }
.btn-lg { height: 62px; padding: 0 42px; font-size: 16px; }
.btn-block { display: flex; width: 100%; height: 60px; font-size: 16px; }
.btn-outline { border: 1px solid var(--sage); color: var(--ink); }
.btn-outline:hover { background: var(--sage); border-color: var(--sage); color: var(--white); opacity: 1; }
.btn-accent { background: var(--sage); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding-top: 12px; }
.cta-col { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 8px; }
.cta-note { font-size: 14px; color: var(--ink-2); }

/* 6. Первый экран ---------------------------------------- */
.inset {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.inset-hero {
  padding: 76px 72px 68px;
  background: var(--surface);
}
.hero-copy {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Печатающееся продолжение заголовка.
   Слот резервирует место по самой длинной фразе — вместе с курсором,
   иначе на «вернуться в настоящий момент» курсор срывается на новую строку. */
.slot { position: relative; display: inline-block; }
.slot-ghost { visibility: hidden; }
.slot-live { position: absolute; left: 0; top: 0; width: 100%; }
.typed { color: var(--ochre); }

.caret {
  display: inline-block;
  width: 2px;
  height: .86em;
  margin-left: 3px;
  background: var(--ochre);
  vertical-align: -.06em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1 } 50.01%, 100% { opacity: 0 } }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 7. Списки и заметки ------------------------------------ */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row-num { flex: 0 0 44px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-week {
  flex: 0 0 60px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
}
.row-text { font-size: 18px; }
.row-text-lg { font-size: 20px; line-height: 1.4; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.note {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 34px 36px;
  border-radius: 24px;
}
.note-fill { background: var(--surface); }
.note-outline { background: var(--white); border: 1px solid var(--line); }
.note-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.note-title-muted { color: var(--muted); }
.note-text { color: var(--ink-2); }
.note-text-muted { color: var(--muted); }

/* 8. Карточки результата --------------------------------- */
.inset-light { background: var(--surface); padding: 76px 72px; }
.inset-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding-bottom: 54px;
}
.inset-head .h2 { max-width: 760px; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 30px 28px 32px;
  border-radius: var(--radius-sm);
}
.card-wide { grid-column: span 2; }
.card-plain { background: var(--white); border: 1px solid var(--surface-line); }
/* Первая карточка — единственная с акцентной рамкой: она несёт главный навык */
.card-accent { background: var(--white); border: 1px solid var(--sage); }
.card-title { font-weight: 400; font-size: 19px; line-height: 1.3; color: var(--ink); }
.card-title-lg { font-size: 24px; line-height: 1.28; }
.card-text { font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.card-text-sm { font-size: 14px; line-height: 1.6; }
.card-lg { padding: 34px 34px 36px; gap: 12px; }

/* 9. Формат ---------------------------------------------- */
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat-accent { border-top-color: var(--sage); }
.stat-value { font-size: 44px; font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 15px; color: var(--ink-2); }

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 36px 38px;
  border-radius: 24px;
}
.panel-fill { background: var(--surface); }
.panel-outline { background: var(--white); border: 1px solid var(--line); }

.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; align-items: baseline; gap: 16px; line-height: 1.5; }
.step-num { flex: 0 0 26px; font-size: 13px; color: var(--muted); }

.checklist { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 14px; line-height: 1.5; }
.check .icon { margin-top: 4px; }

/* 10. Ведущие — стили блока, временно скрытого в index.html.
      Разметка: partials/hosts.html ------------------------ */
.hosts { display: flex; flex-direction: column; gap: 46px; }
.hosts-head { display: grid; grid-template-columns: var(--aside) minmax(0, 1fr); gap: var(--gap-col); align-items: start; }
.host {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.host-photo { display: block; width: 100%; height: 300px; object-fit: cover; background: var(--surface); }
.host-body { display: flex; flex-direction: column; gap: 18px; padding: 34px 34px 38px; }
.host-name { font-family: var(--font-head); font-weight: 400; font-size: 27px; line-height: 1.2; }
.host-role { font-size: 15px; color: var(--muted); }
.host-text { font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.host-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 6px; }
.host-fact { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.host-fact-wide { grid-column: span 2; }
.host-fact-value { font-family: var(--font-head); font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; }
.host-fact-label { font-size: 13px; color: var(--muted); }
.hosts-quote-row > * { grid-column: 2; }
.hosts-quote { font-family: var(--font-head); font-weight: 300; font-size: 26px; line-height: 1.42; max-width: 780px; text-wrap: pretty; }
.hosts-sign { font-family: "Marck Script", cursive; font-size: 30px; color: var(--sage); }

/* 11. Тарифы --------------------------------------------- */
.plan {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px 40px 42px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}
/* Единственное тёмное пятно на странице — так тариф читается премиальным */
.plan-dark { border: 0; background: var(--grad-plan); color: var(--on-dark); }
.plan-head { display: flex; flex-direction: column; gap: 14px; }
.plan-name { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 15px; font-weight: 500; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; font-size: 52px; font-weight: 200; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ochre); }
.plan-dark .plan-price { color: var(--on-dark); }
.plan-price-old { font-family: var(--font-body); font-size: 20px; color: var(--muted-2); text-decoration: line-through; }
.plan-dark .plan-price-old { color: var(--on-dark-4); }
.plan .checklist { flex-grow: 1; }
.plan-dark .check { color: #E4EAEC; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .04em;
}
.badge-ochre { background: var(--ochre-soft); color: var(--ochre); }
.badge-ghost { border: 1px solid rgba(255, 255, 255, .3); color: #DCE4E7; }

/* 12. Вопросы -------------------------------------------- */
.faq { gap: 0; }
.faq-item {
  display: flex;
  gap: 60px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { flex: 0 0 340px; font-size: 19px; line-height: 1.35; }
.faq-a { flex: 1 1 0; margin: 0; line-height: 1.62; color: var(--ink-2); }

/* 13. Финал и футер -------------------------------------- */
/* Фотография как подложка: снимок, вуаль, поверх — текст */
.inset-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.06);
}
.veil { position: absolute; inset: 0; }
.veil-band { background: linear-gradient(180deg, rgba(28, 38, 30, .28), rgba(28, 38, 30, .56)); }
.veil-deep { background: linear-gradient(180deg, rgba(24, 34, 27, .52), rgba(20, 30, 24, .78)); }

/* Полоса-разделитель между разделами */
.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 210px;
  display: grid;
  place-items: center;
}
.band-text {
  position: relative;
  padding: 30px 40px;
  text-align: center;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 200;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.inset-final {
  padding: 96px 72px 92px;
  display: flex;
  justify-content: center;
  text-align: center;
}
/* Текст поверх фотографии светлый, подсветка — без плашки */
.inset-final .eyebrow { color: rgba(255, 255, 255, .68); }
.inset-final .h2 { color: var(--white); }
.inset-final .mark { color: var(--ochre-light); background: none; padding: 0; }
.inset-final .lead { color: rgba(255, 255, 255, .84); }
.inset-final .cta-note { color: rgba(255, 255, 255, .72); }
.inset-final .price { color: var(--ochre-light); }
.final-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  max-width: 820px;
}

.footer { padding: 60px 0 70px; margin-top: var(--section-top); }
.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 15px; color: var(--ink-2);
}
.footer-legal { font-size: 13px; color: var(--muted-2); }
.footer-legal a:hover, .footer-links a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); }

/* 14. Адаптив -------------------------------------------- */
@media (max-width: 1180px) {
  :root { --gap-col: 32px; --aside: 110px; --section-top: 100px; }
  .inset-hero { padding: 56px 44px; gap: 36px; }
  .inset-light { padding: 56px 44px; }
  .inset-final { padding: 76px 44px; }
  .band { min-height: 180px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: span 2; }
  .faq-q { flex-basis: 260px; }
  .faq-item { gap: 32px; }
}

@media (max-width: 900px) {
  :root { --section-top: 84px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
  }
  .nav-toggle-bar { display: block; height: 1px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .header-inner { flex-wrap: wrap; gap: 16px; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    padding: 8px 0 16px;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; font-size: 16px; }
  .nav-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { align-self: flex-start; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split > .eyebrow { padding-top: 0; }
  .split-body { gap: 36px; }
  .hosts-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hosts-quote-row > * { grid-column: auto; }

  .inset-hero { flex-direction: column; align-items: flex-start; }
  .lead { max-width: none; }

  .grid-2, .grid-3, .cards { grid-template-columns: minmax(0, 1fr); }
  .card-wide { grid-column: auto; }

  .faq-item { flex-direction: column; gap: 10px; }
  .faq-q { flex-basis: auto; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; --radius-lg: 26px; --radius-md: 22px; --radius-sm: 18px; }

  .inset-hero { padding: 40px 24px 44px; gap: 28px; }
  .inset-light { padding: 44px 22px; }
  .inset-final { padding: 60px 24px; }
  .band { min-height: 150px; }
  .band-text { padding: 24px 22px; }
  .inset-head { padding-bottom: 32px; }
  .hero-copy { gap: 18px; }

  .note, .panel { padding: 26px 22px 28px; }
  .card, .card-lg { padding: 24px 22px 26px; }
  .plan { padding: 28px 24px 30px; }
  .plan-price { font-size: 42px; }

  .row { gap: 16px; }
  .row-num, .row-week { flex-basis: 52px; }
  .row-text, .row-text-lg { font-size: 17px; }
  .stat-value { font-size: 38px; }

  .btn-lg { width: 100%; padding: 0 24px; }
  .cta-row { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 15. Появление при скролле (класс вешает js/main.js) ------ */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
