/* Жанар Сулейменова · «Переход» — стили сайта */
:root {
  --cream: #F6F1EA;
  --paper: #FBF8F3;
  --ink: #2B2B2B;
  --ink-soft: #5E5A53;
  --forest: #2F4A3A;
  --forest-deep: #243A2D;
  --gold: #C9A25B;
  --gold-soft: #E7D3A8;
  --sage: #E3E8DF;
  --line: #D9D0C3;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--forest); margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7.5vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); margin-bottom: 0.6em; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.35em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--sage { background: var(--sage); }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest); color: #EDE6DA; }
.section--forest h2, .section--forest h3 { color: #F6F1EA; }
.section--forest a { color: var(--gold-soft); }
.section--forest .btn--gold { color: #1F2A22; }
.section--forest .btn--primary { color: #F6F1EA; }
.narrow { max-width: 720px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 234, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand small { display: block; font-family: var(--sans); font-size: 0.72rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0.01em; }
.nav { display: none; gap: 26px; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest); text-decoration: underline; }
@media (min-width: 900px) { .nav { display: flex; } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid var(--forest); transition: background .15s, color .15s; text-align: center; }
.btn--primary { background: var(--forest); color: #F6F1EA; }
.btn--primary:hover { background: var(--forest-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #F6F1EA; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #1F2A22; }
.btn--gold:hover { background: #B88F47; border-color: #B88F47; color: #1F2A22; }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .actions .btn { flex: 0 0 auto; } }

/* Первый экран */
.hero { position: relative; padding: 48px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: end; }
.hero-text { padding-bottom: 8px; }
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 22px; }
.hero-question { margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--forest); max-width: 26em; }
.ridge { display: block; width: 100%; height: 56px; margin-top: 36px; }
@media (min-width: 900px) { .ridge { height: 90px; margin-top: 40px; } }
.ridge path { fill: none; stroke: var(--gold); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ridge path.ridge-back { stroke: var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .ridge path.ridge-front { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s ease-out .2s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 56px; }
}

/* Фото и места под фото */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--sage); aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.is-empty { background: repeating-linear-gradient(135deg, #E3E8DF 0 14px, #DCE2D7 14px 28px); border: 1px dashed #B9C2B2; }
.photo.is-empty::after { content: attr(data-label); position: absolute; inset: auto 12px 12px 12px; font-size: 0.82rem; color: var(--ink-soft); background: rgba(251, 248, 243, 0.85); padding: 6px 10px; border-radius: 8px; }
.photo--wide { aspect-ratio: 16 / 10; }

/* Узнаёшь себя */
.pains { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.pains li { padding: 18px 0; border-top: 1px solid #C8D0C1; font-size: 1.08rem; }
.pains li:last-child { border-bottom: 1px solid #C8D0C1; }
@media (min-width: 900px) { .pains { grid-template-columns: 1fr 1fr; column-gap: 48px; } .pains li:nth-last-child(2) { border-bottom: 1px solid #C8D0C1; } }
.pains-after { margin-top: 28px; font-family: var(--serif); font-size: 1.25rem; color: var(--forest); max-width: 30em; }

/* История */
.story { display: grid; gap: 36px; align-items: start; }
.story-text p { font-size: 1.06rem; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 7.6rem 1fr; gap: 14px; align-items: baseline; }
.facts b { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; color: var(--forest); line-height: 1; }
@media (min-width: 900px) { .story { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }

/* Метод: путь из 5 этапов */
.path { margin-top: 36px; }
.path-track { display: none; }
.path-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; position: relative; }
.path-steps li { position: relative; padding: 0 0 26px 40px; counter-increment: step; }
.path-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--gold); color: var(--forest); font: 600 0.85rem/25px var(--sans); text-align: center; z-index: 1; }
.path-steps li::after { content: ''; position: absolute; left: 13.5px; top: 28px; bottom: 0; width: 1.5px; background: var(--gold-soft); }
.path-steps li:last-child::after { display: none; }
.path-steps h3 { font-size: 1.25rem; margin-bottom: 4px; }
.path-steps p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.path-steps li:last-child::before { background: var(--forest); color: #F6F1EA; border-color: var(--forest); }
@media (min-width: 900px) {
  .path-track { display: block; position: relative; height: 150px; }
  .path-track svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .path-track svg path { fill: none; stroke: var(--gold); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
  .path-dot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--gold); color: var(--forest); font: 600 0.88rem/27px var(--sans); text-align: center; }
  .path-dot--end { background: var(--forest); border-color: var(--forest); color: #F6F1EA; }
  .path-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-top: 22px; }
  .path-steps li { padding: 0; text-align: center; }
  .path-steps li::before, .path-steps li::after { display: none; }
}

/* Три формата */
.formats { display: grid; gap: 32px; margin-top: 36px; }
.format { padding-top: 18px; border-top: 2px solid var(--gold); }
.format .tag { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-bottom: 10px; }
.format p { margin: 0; }
@media (min-width: 900px) { .formats { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Лестница продуктов */
.ladder { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.ladder li { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ladder .step-name { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); font-weight: 500; }
.ladder .step-desc { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.ladder .step-price { font-weight: 600; white-space: nowrap; }
.ladder .step-price small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; white-space: normal; }
.ladder .step-link { margin-top: 6px; font-size: 0.95rem; }
.ladder li.is-flagship { background: var(--forest); color: #EDE6DA; border-radius: var(--radius); padding: 26px 22px; margin: 14px 0; border: 0; }
.ladder li.is-flagship .step-name { color: #F6F1EA; font-size: 1.6rem; }
.ladder li.is-flagship .step-desc, .ladder li.is-flagship small { color: #CFC7B8; }
.ladder li.is-flagship a { color: var(--gold-soft); }
@media (min-width: 760px) {
  .ladder li { grid-template-columns: 1fr 260px; column-gap: 32px; align-items: baseline; }
  .ladder .step-price { text-align: right; }
  .ladder li.is-flagship { padding: 30px 28px; }
}

/* Цитата / тёмный блок */
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.3; color: #F6F1EA; max-width: 22em; margin: 0; }
.quote-by { margin-top: 18px; color: var(--gold-soft); }

/* Отзывы-заглушка */
.reviews-empty { padding: 26px; border: 1px dashed #BDB29F; border-radius: var(--radius); background: var(--paper); max-width: 720px; }

/* Telegram */
.tg { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .tg { grid-template-columns: 1.3fr 0.7fr; } }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-family: var(--serif); font-size: 1.15rem; color: var(--forest); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--forest); border-bottom: 1.5px solid var(--forest); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 44em; }

/* Футер */
.site-footer { background: var(--forest-deep); color: #CFC7B8; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #F0E8DA; }
.footer-grid { display: grid; gap: 28px; }
.footer-grid h3 { color: #F6F1EA; font-size: 1.15rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.85rem; color: #A9A293; max-width: 60em; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Лендинги: общие блоки */
.offer-hero { padding: 48px 0 56px; }
.offer-hero h1 { max-width: 14em; }
.price-box { margin-top: 30px; display: grid; gap: 4px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-width: 460px; }
.price-box .now { font-family: var(--serif); font-size: 2.3rem; color: var(--forest); line-height: 1.1; }
.price-box .was { color: var(--ink-soft); text-decoration: line-through; }
.price-box .terms { font-size: 0.95rem; color: var(--ink-soft); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.checklist--no li::before { top: 0.8em; width: 14px; height: 0; border-left: 0; border-bottom: 2px solid #A88F84; transform: none; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; display: grid; gap: 24px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: #F6F1EA; font: 600 1rem/40px var(--sans); text-align: center; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { grid-template-columns: 1fr; } }
.map-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.map-card dl { margin: 0; display: grid; gap: 14px; }
.map-card dt { font-family: var(--serif); font-size: 1.1rem; color: var(--forest); }
.map-card dd { margin: 2px 0 0; color: var(--ink-soft); }
.deadline { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--sage); color: var(--forest); font-size: 0.92rem; font-weight: 600; }

/* Мини-расчёт */
.calc { margin-top: 28px; padding: 26px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-width: 560px; }
.calc label { display: block; font-weight: 600; margin-bottom: 8px; }
.calc .row { display: flex; flex-wrap: wrap; gap: 12px; }
.calc input { flex: 1 1 200px; min-width: 0; width: 100%; min-height: 52px; padding: 12px 16px; font: 500 1.2rem var(--sans); letter-spacing: 0.04em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.calc input:focus { outline: none; border-color: var(--forest); }
.calc .hint { margin: 10px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.calc .error { margin: 10px 0 0; color: #9A3B2E; font-size: 0.95rem; }
.result { margin-top: 28px; display: none; scroll-margin-top: 84px; }
.result.is-shown { display: block; }
.result-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.result-num { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; background: var(--forest); color: #F6F1EA; font: 500 2.4rem/76px var(--serif); text-align: center; }
.result-title { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); }
.result-calc { color: var(--ink-soft); font-size: 0.95rem; }
.result dl { display: grid; gap: 16px; margin: 0; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); max-width: 640px; }
.result dt { font-weight: 600; color: var(--forest); }
.result dd { margin: 2px 0 0; }
.result .next { margin-top: 18px; max-width: 640px; color: var(--ink-soft); }

/* Интенсив */
.days { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.days li { padding: 22px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.days .when { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 6px; }
@media (min-width: 900px) { .days { grid-template-columns: repeat(3, 1fr); } }
.notice { margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--paper); max-width: 640px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
