@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215;
}

:root {
  color-scheme: light;
  --bg: #f8f3ec;
  --bg-soft: #fffaf3;
  --panel: #fffdf9;
  --cream: #f6ecdf;
  --ink: #2b201b;
  --muted: #645a54;
  --orange: #d9772b;
  --orange-strong: #c2621a;
  --orange-soft: #f8dcbd;
  --sage: #6f9a5c;
  --brown: #8d5d42;
  --line: rgba(68, 44, 33, 0.12);
  --shadow: 0 18px 44px rgba(86, 54, 34, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1120px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

[hidden] { display: none !important; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

p { margin: 0 0 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

.section { padding: 56px 0; }

.section-heading { margin-bottom: 28px; max-width: 720px; }

.section-heading h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 850; margin: 12px 0 10px; }

.section-heading p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-strong);
}

.muted { color: var(--muted); }

.small { font-size: 0.88rem; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(194, 98, 26, 0.28);
}

.btn-primary:hover { background: var(--orange-strong); }

.btn-secondary {
  background: var(--panel);
  color: var(--ink);
  border: 1.5px solid rgba(68, 44, 33, 0.22);
}

.btn-block { width: 100%; }

/* ---------- Шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 243, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; white-space: nowrap; }

.brand img { width: 34px; height: auto; mix-blend-mode: multiply; }

.brand span { display: grid; font-size: 1.15rem; line-height: 1.1; }

.brand small { font-size: 0.72rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }

.nav { display: none; gap: 24px; color: var(--muted); font-weight: 700; }

.nav a { text-decoration: none; }

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

.topbar-cta { min-height: 42px; padding: 0 16px; font-size: 0.92rem; white-space: nowrap; }

@media (max-width: 419px) {
  .topbar-cta { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 32px 0 48px; }

.hero-wrap { display: grid; gap: 32px; align-items: center; }

.hero h1 { font-size: clamp(2.2rem, 9vw, 3.9rem); font-weight: 900; margin: 12px 0 14px; letter-spacing: -0.03em; }

.hero h1 span { color: var(--orange); }

.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }

.cta-stack { display: grid; gap: 12px; margin: 24px 0 10px; }

.cta-note { color: var(--muted); font-size: 0.9rem; text-align: center; margin: 0 0 20px; }

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.facts li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.facts strong { display: block; color: var(--ink); font-size: 1.05rem; }

.hero-visual { position: relative; padding: 18px 26px 10px; max-width: 520px; margin: 0 auto; width: 100%; }

.hero-sheet {
  position: absolute;
  width: 46%;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-sheet.left { left: 0; top: 4px; transform: rotate(-8deg); }

.hero-sheet.right { right: 0; top: 30px; transform: rotate(7deg); }

.hero-art {
  position: relative;
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 50px rgba(120, 66, 22, 0.22);
  width: 82%;
  margin: 40px auto 0;
}

.hero-badge {
  position: absolute;
  left: 8px;
  bottom: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.3;
}

.hero-badge strong { display: block; color: var(--ink); font-size: 1rem; }

/* ---------- Карточки и панели ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
}

.grid { display: grid; gap: 16px; }

.pain h3 { font-size: 1.12rem; font-weight: 850; margin-bottom: 6px; }

.pain .pain-q { color: var(--muted); font-style: italic; margin-bottom: 10px; }

.pain p:last-child { margin: 0; }

/* ---------- Шуршик ---------- */

.story { display: grid; gap: 24px; align-items: center; }

.story-art {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: grid;
  place-items: center;
}

.story-art img { max-height: 340px; width: auto; mix-blend-mode: multiply; }

.story-quote {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 0 0 20px;
  font-size: 1.05rem;
}

.story-quote p:last-child { margin: 0; }

.story-quote cite { display: block; margin-top: 8px; color: var(--brown); font-style: normal; font-weight: 800; font-size: 0.9rem; }

.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.weeks li { display: flex; gap: 12px; align-items: baseline; }

.weeks b {
  flex: none;
  min-width: 82px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-strong);
}

/* ---------- Шаги ---------- */

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-strong);
  font-weight: 900;
  margin-bottom: 12px;
}

.step h3 { font-size: 1.15rem; font-weight: 850; margin-bottom: 6px; }

.step p { color: var(--muted); margin: 0; }

.hint {
  margin-top: 20px;
  background: var(--panel);
  border: 1.5px dashed rgba(141, 93, 66, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.hint-label { font-weight: 850; margin-bottom: 8px; display: block; }

.hint blockquote { margin: 0 0 10px; color: var(--muted); }

.hint blockquote b { color: var(--ink); }

/* ---------- Что внутри ---------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 16px 16px;
  margin: 0 -16px;
  scrollbar-width: thin;
}

.activity {
  scroll-snap-align: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thumb-btn {
  display: block;
  width: 100%;
  padding: 14px 14px 0;
  border: 0;
  background: var(--cream);
  cursor: zoom-in;
  position: relative;
}

.thumb-btn img {
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -2px 12px rgba(86, 54, 34, 0.1);
  aspect-ratio: 210 / 297;
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 220px;
}

.thumb-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: var(--sage);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.activity-body { padding: 14px 16px 18px; }

.activity-meta { font-size: 0.78rem; font-weight: 800; color: var(--orange-strong); text-transform: uppercase; letter-spacing: 0.06em; }

.activity h3 { font-size: 1.08rem; font-weight: 850; margin: 4px 0 6px; }

.activity p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brown);
  background: var(--cream);
  border-radius: 999px;
  padding: 3px 10px;
}

.extras { margin-top: 28px; }

.extras h3 { font-size: 1.2rem; font-weight: 850; margin-bottom: 14px; }

.extras-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.extra { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }

.extra .thumb-btn { padding: 10px 10px 0; }

.extra .thumb-btn img { height: 150px; }

.extra span { display: block; padding: 10px 12px 12px; font-weight: 800; font-size: 0.92rem; line-height: 1.25; }

.extra small { display: block; font-weight: 600; color: var(--muted); }

/* ---------- Бесплатно ---------- */

.free-box {
  background: linear-gradient(180deg, var(--panel), var(--cream));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
}

.free-sheets { display: flex; justify-content: center; margin: 8px 0 24px; }

.free-sheets img {
  width: 31%;
  max-width: 150px;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(86, 54, 34, 0.14);
  background: #fff;
}

.free-sheets img:nth-child(1) { transform: rotate(-6deg) translateX(10px); }
.free-sheets img:nth-child(2) { position: relative; z-index: 1; transform: translateY(-8px); }
.free-sheets img:nth-child(3) { transform: rotate(6deg) translateX(-10px); }

.check-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }

.check-list li { position: relative; padding-left: 28px; }

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--sage);
  border-bottom: 3px solid var(--sage);
  transform: rotate(-45deg);
}

.file-meta { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 10px 0 0; }

.file-meta + .btn { margin-top: 16px; }

.after-download {
  margin-top: 24px;
  background: var(--panel);
  border: 1.5px solid var(--orange-soft);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
}

.after-download[hidden] { display: none; }

.after-download h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 8px; }

.map-dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.map-dots i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px dashed rgba(141, 93, 66, 0.4);
}

.map-dots i.done { background: var(--orange); border: 2px solid var(--orange); }

/* ---------- Тарифы ---------- */

.plan {
  background: var(--panel);
  border: 1.5px solid var(--orange-soft);
  border-radius: var(--radius-xl);
  padding: 26px 20px;
  box-shadow: var(--shadow);
}

.plan-label { font-size: 0.8rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-strong); }

.plan h3 { font-size: 1.35rem; font-weight: 900; margin: 6px 0 4px; }

.price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 2px; }

.price strong { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }

.price-note { color: var(--muted); margin-bottom: 18px; }

.plan .btn { margin-top: 22px; }

.plan-foot { text-align: center; font-size: 0.88rem; color: var(--muted); margin: 10px 0 0; }

.plan-soon {
  background: transparent;
  border: 1.5px dashed rgba(141, 93, 66, 0.3);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
}

.plan-soon h3 { font-size: 1.2rem; font-weight: 850; margin: 6px 0 8px; }

.plan-soon p { color: var(--muted); }

/* ---------- Следующий выпуск ---------- */

.next { display: grid; gap: 22px; align-items: center; }

.next-art {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 16px;
}

.next-art img { mix-blend-mode: multiply; }

.next h2 { font-size: clamp(1.7rem, 5.5vw, 2.3rem); font-weight: 900; margin: 10px 0 12px; }

.next-question { color: var(--orange-strong); font-weight: 850; font-size: 1.1rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; max-width: 820px; }

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 52px 16px 18px;
  font-weight: 800;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-strong);
  font-weight: 900;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq .answer { padding: 0 18px 16px; color: var(--muted); }

.faq .answer p:last-child { margin: 0; }

/* ---------- Footer ---------- */

.footer { padding: 24px 0 120px; }

.footer-shell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 26px 20px; }

.footer-grid { display: grid; gap: 24px; }

.footer h3 { font-size: 1rem; font-weight: 850; margin-bottom: 10px; }

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

.footer a { color: var(--muted); }

.footer-legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.86rem; }

/* ---------- Sticky-панель ---------- */

.sticky-buy {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 40;
  width: min(560px, calc(100% - 20px));
  transform: translate(-50%, 140%);
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(43, 32, 27, 0.96);
  color: #fff;
  border-radius: 18px;
  padding: 10px 10px 10px 18px;
  box-shadow: 0 16px 32px rgba(43, 32, 27, 0.28);
}

.sticky-buy.visible { transform: translate(-50%, 0); }

.sticky-buy span { font-size: 0.92rem; line-height: 1.25; }

.sticky-buy strong { display: block; font-size: 1rem; }

.sticky-buy .btn { min-height: 46px; padding: 0 18px; font-size: 0.95rem; flex: none; }

/* ---------- Диалоги ---------- */

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
}

dialog::backdrop { background: rgba(30, 22, 18, 0.72); }

.sheet {
  width: min(520px, 100vw);
  margin: auto auto 0;
  background: var(--bg-soft);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 28px;
  position: relative;
}

dialog.checkout { margin: auto auto 0; }

.sheet h2 { font-size: 1.4rem; font-weight: 900; margin: 0 40px 12px 0; }

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; font-size: 0.93rem; cursor: pointer; }

.consent input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--orange); }

.notice {
  background: #fff3e2;
  border: 1px solid var(--orange-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-top: 14px;
}

.notice[hidden] { display: none; }

dialog.lightbox { width: 100vw; height: 100dvh; margin: 0; }

.lightbox-inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
}

.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; gap: 12px; }

.lightbox-top p { margin: 0; font-weight: 800; }

.lightbox-stage { min-height: 0; display: grid; place-items: center; padding: 0 10px; overflow: auto; }

.lightbox-stage img { max-height: 100%; width: auto; max-width: 100%; background: #fff; border-radius: 4px; }

.lightbox-nav { display: flex; justify-content: center; gap: 12px; padding: 12px 14px 18px; }

.lightbox-nav .btn { min-height: 46px; background: rgba(255, 255, 255, 0.14); color: #fff; }

.lightbox .close-btn { position: static; background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------- Cookie-баннер ---------- */

.cookie {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 60;
  max-width: 560px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px;
  font-size: 0.9rem;
}

.cookie[hidden] { display: none; }

.cookie-actions { display: flex; gap: 10px; margin-top: 10px; }

.cookie-actions .btn { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }

/* ---------- Юридические страницы ---------- */

.doc { max-width: 760px; padding: 40px 0 80px; }

.doc h1 { font-size: 2rem; font-weight: 900; margin-bottom: 18px; }

.doc h2 { font-size: 1.2rem; font-weight: 850; margin: 28px 0 10px; }

.doc h3 { font-size: 1.05rem; font-weight: 850; margin: 18px 0 8px; }

.doc ul, .doc ol { padding-left: 22px; margin: 0 0 12px; }

.doc li { margin-bottom: 6px; }

.todo {
  background: #fff3e2;
  border: 2px dashed var(--orange);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 18px 0;
}

/* ---------- Адаптив ---------- */

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .cta-stack { grid-template-columns: auto auto; justify-content: start; }
  .cta-note { text-align: left; }
  .rail { grid-auto-columns: 40%; }
  .extras-grid { grid-template-columns: repeat(5, 1fr); }
  .free-box { padding: 36px 32px; }
  .plan, .plan-soon { padding: 30px 28px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .section { padding: 80px 0; }
  .nav { display: flex; }
  .hero { padding: 56px 0 72px; }
  .hero-wrap { grid-template-columns: 1.05fr 0.95fr; }
  .grid-3-lg { grid-template-columns: repeat(3, 1fr); }
  .story { grid-template-columns: 0.8fr 1.2fr; }
  .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .free-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .free-sheets { margin: 0; }
  .free-sheets img { max-width: 190px; }
  .plans { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .next { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .sheet { margin: auto; border-radius: 24px; }
  dialog.checkout { margin: auto; }
}

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