/* Точка перехода — mobile-first.
   Структура: фото-герой на всю ширину → светлая секция со скруглённым верхом → чередование
   графитовых и тёплых полос. Охра только в акцентах. */
:root {
  --graphite: #1E1E1E;
  --graphite-2: #282624;       /* приподнятые карточки на графите */
  --ochre: #C17F3E;            /* акцент на тёмном: 5.1:1 к графиту */
  --ochre-ink: #8A5622;        /* акцент-текст на светлом: 5.3:1 к тёплому белому */
  --paper: #F5F0E8;            /* тёплый белый */
  --paper-2: #FBF8F3;          /* светлее для «белых» секций */
  --on-dark-muted: #B9B3AA;    /* 8:1 к графиту */
  --on-light-muted: #4A4743;   /* 8:1 к тёплому белому */
  --line-dark: #3A3735;
  --line-light: #DED5C8;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1120px;
  --r: 16px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));

  /* токены секции (по умолчанию — тёмная) */
  --bg: var(--graphite);
  --fg: var(--paper);
  --muted: var(--on-dark-muted);
  --line: var(--line-dark);
  --accent: var(--ochre);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body { margin: 0; background: var(--graphite); color: var(--paper); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); color: var(--graphite); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: var(--gutter-l); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 7.4vw, 56px); }
h3 { font-size: clamp(22px, 4.6vw, 26px); font-weight: 600; line-height: 1.2; }
p, ul, ol, dl, dd { margin: 0; }

.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 17px; color: var(--muted); max-width: 58ch; }
.small { font-size: 14px; }
.center { text-align: center; justify-items: center; justify-content: center; }
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.head.center { margin-inline: auto; }
.head.center .lead { margin-inline: auto; }

/* секции */
.section { background: var(--bg); color: var(--fg); padding-block: 76px; }
.dark  { --bg: var(--graphite); }
.paper, .white {
  --fg: var(--graphite); --muted: var(--on-light-muted); --line: var(--line-light); --accent: var(--ochre-ink);
  color-scheme: light;
}
.paper { --bg: var(--paper); }
.white { --bg: var(--paper-2); }
.rounded-top { border-radius: 28px 28px 0 0; margin-top: -28px; position: relative; z-index: 2; }

/* монограмма */
.mono {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border: 1px solid var(--accent); border-radius: 50%;
  font: 500 20px/1 var(--f-display); color: var(--accent);
}
.mono-lg { width: 60px; height: 60px; font-size: 34px; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-lg { width: 72px; height: 72px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; border-radius: 8px; background: var(--ochre); color: var(--graphite);
  font: 500 15px/1.2 var(--f-body); text-decoration: none; border: 1px solid var(--ochre);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #D08F4E; border-color: #D08F4E; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 16px; }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--graphite); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-outline:hover { background: transparent; border-color: var(--accent); color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.actions.center { justify-content: center; margin-top: 40px; }

/* шапка */
.site-header {
  position: sticky; top: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(30, 30, 30, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  transition: background .3s, border-color .3s;
}
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.has-hero .site-header.scrolled { background: rgba(30, 30, 30, .94); backdrop-filter: blur(10px); border-bottom-color: var(--line-dark); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin: 0; color: var(--paper); }
.brand-name { font: 600 21px/1 var(--f-display); white-space: nowrap; }
.site-header nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.nav-links { display: flex; list-style: none; padding: 0 0 10px; gap: 24px; white-space: nowrap; }
.nav-links a { display: inline-block; padding-block: 4px; text-decoration: none; font-size: 14px; color: rgba(245, 240, 232, .78); border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--paper); }
.nav-links a[aria-current="true"] { border-bottom-color: var(--ochre); }
main [id] { scroll-margin-top: 110px; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--graphite); color: var(--paper); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
@media (min-width: 700px) { .hero-bg { object-position: 82% 50%; } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.25) 35%, rgba(20,18,16,.85) 100%),
    linear-gradient(90deg, rgba(20,18,16,.6) 0%, rgba(20,18,16,0) 70%);
}
.hero-inner {
  position: relative; z-index: 1; display: grid; gap: 28px; align-content: end;
  min-height: 640px; padding-top: 150px; padding-bottom: 72px;
}
.hero-main { display: grid; gap: 18px; min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(245, 240, 232, .85); }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); flex: none; }
.hero h1 { font-size: clamp(46px, 11vw, 96px); line-height: 1; }
.h1-accent { color: var(--ochre); font-style: italic; }
.h1-accent .arrow { font-style: normal; font-family: var(--f-body); font-weight: 300; font-size: .7em; vertical-align: .08em; }
.hero-side { display: grid; gap: 18px; justify-items: start; max-width: 360px; }
.hero-side p { font-size: 15px; color: rgba(245, 240, 232, .88); border-left: 1px solid var(--ochre); padding-left: 14px; }

/* что вы получаете */
.gains-grid { display: grid; gap: 40px; }
.gain-card { display: grid; gap: 16px; justify-items: center; text-align: center; align-content: start; min-width: 0; }
.check { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ochre-ink); color: var(--paper); }
.check svg { width: 20px; height: 20px; }
.gain-card h3 { font-size: 24px; }
.gain-card p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.rounded-img { border-radius: var(--r); overflow: hidden; background: var(--line); width: 100%; aspect-ratio: 4 / 3; }
.rounded-img img { width: 100%; height: 100%; object-fit: cover; }

/* факты */
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts li { display: grid; gap: 8px; align-content: start; justify-items: center; text-align: center; padding: 28px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts b { font: 500 clamp(34px, 8vw, 48px)/1 var(--f-display); color: var(--ochre); font-variant-numeric: lining-nums; }
.facts span { font-size: 14px; color: var(--muted); max-width: 22ch; }



/* запросы */
.req-grid { display: grid; gap: 16px; }
.req-card {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--graphite-2); border: 1px solid var(--line-dark);
  min-height: 260px; display: flex; align-items: flex-end;
}
.req-body { position: relative; z-index: 1; display: grid; gap: 14px; padding: 26px 24px; }
.req-body h3 { font-size: 26px; }
.req-body ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.req-body li { position: relative; padding-left: 20px; font-size: 15px; color: var(--on-dark-muted); }
.req-body li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--ochre); }
.req-photo { min-height: 360px; border-color: transparent; }
.req-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.req-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.1) 20%, rgba(20,18,16,.9) 100%); }
.req-photo li { color: rgba(245, 240, 232, .88); }

/* как проходит сессия */
.approach { display: grid; gap: 48px; }
.approach .head { margin-bottom: 32px; }
.steps { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.steps li > div { display: grid; gap: 6px; }
.step-n { font: 500 30px/1 var(--f-display); color: var(--ochre-ink); font-variant-numeric: lining-nums; }
.steps p { color: var(--muted); font-size: 15px; }
.steps .step-gain { color: var(--fg); border-left: 1px solid var(--ochre); padding-left: 12px; margin-top: 4px; }
.approach-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.approach-photos .rounded-img { aspect-ratio: 3 / 4; }
.approach-photos .rounded-img.tall { margin-top: 40px; }

/* чек-лист */
.pains-layout { display: grid; gap: 32px; align-items: start; max-width: 1040px; margin: 0 auto; }
.pains-photo { aspect-ratio: 4 / 5; max-width: 420px; }
.pains { list-style: none; padding: 0; display: grid; gap: 0; min-width: 0; border-top: 1px solid var(--line); }
.pains li {
  position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line);
  font: 500 clamp(19px, 4.4vw, 22px)/1.35 var(--f-display);
}
.pains li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 16px; height: 16px; border: 1px solid var(--accent); border-radius: 4px; }
.pains-foot { margin: 40px auto 0; text-align: center; font: italic 500 clamp(22px, 5vw, 30px)/1.3 var(--f-display); max-width: 30ch; }

/* цены */
.rings { position: relative; overflow: hidden; }
.rings::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 1400px; height: 1400px; transform: translateX(-50%);
  background: repeating-radial-gradient(circle, transparent 0 139px, rgba(138, 86, 34, .14) 139px 140px);
  pointer-events: none;
}
.rings > .wrap { position: relative; }
.prices { display: grid; gap: 16px; }
.price-card {
  background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--r);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
}
.price-card .meta { font-size: 14px; color: var(--on-light-muted); }
.amount { font: 600 32px/1.15 var(--f-display); margin-top: 8px; font-variant-numeric: lining-nums; }
.amount span { font-size: 20px; color: var(--on-light-muted); font-weight: 500; }
.price-card .desc { font-size: 14px; color: var(--on-light-muted); flex: 1; margin-bottom: 12px; }
.price-card .btn { width: 100%; }
.price-card .btn-outline { --fg: var(--graphite); --line: var(--line-light); }
.price-card.featured { background: var(--graphite); border-color: var(--graphite); color: var(--paper); --fg: var(--paper); }
.price-card.featured .meta, .price-card.featured .desc, .price-card.featured .amount span { color: var(--on-dark-muted); }
.tag { align-self: flex-start; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; background: var(--ochre); color: var(--graphite); padding: 6px 10px; border-radius: 6px; margin-bottom: 6px; }
.terms { margin: 36px auto 0; max-width: 760px; display: grid; gap: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.terms a { color: var(--fg); }
.disclaimer { font-size: 13px; }

/* отзывы (скрыто) */
.reviews { display: grid; gap: 24px; }
.review { border-left: 1px solid var(--ochre); padding-left: 20px; display: grid; gap: 10px; }
.review blockquote { margin: 0; font: italic 500 22px/1.4 var(--f-display); }
.review figcaption { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); border-top: 2px solid transparent; }
.faq details[open] { border-top-color: var(--ochre-ink); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font: 500 16px/1.4 var(--f-body);
}
.faq details[open] summary { color: var(--ochre-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 26px/1 var(--f-body); color: var(--muted); }
.faq details[open] summary::after { content: "−"; color: var(--ochre-ink); }
.faq details p { padding-bottom: 22px; color: var(--muted); font-size: 15px; max-width: 70ch; }
.faq a { color: var(--fg); }

/* финальный CTA */
.final-wrap { padding-top: 0; }
.final {
  position: relative; overflow: hidden; border-radius: 24px; background: var(--graphite); color: var(--paper);
  padding: 72px 24px; display: grid; gap: 18px; justify-items: center; text-align: center;
  --fg: var(--paper); --muted: var(--on-dark-muted); --line: var(--line-dark); --accent: var(--ochre);
}
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 1200px; height: 1200px; transform: translate(-50%, -50%);
  background: repeating-radial-gradient(circle, transparent 0 119px, rgba(193, 127, 62, .16) 119px 120px);
  pointer-events: none;
}
.final > * { position: relative; }
.final .lead { margin-inline: auto; }
.final .actions.center { margin-top: 8px; }
.final .small { color: var(--on-dark-muted); }

/* футер */
.site-footer { background: var(--graphite); padding-block: 56px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--on-dark-muted); }
.footer-grid { display: grid; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-grid .brand { margin-bottom: 14px; }
.foot-tagline { font: 500 26px/1.15 var(--f-display); color: var(--paper); }
.foot-tagline span { color: var(--ochre); font-style: italic; }
.foot-h { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); margin-bottom: 12px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* юридические страницы и 404 */
.legal-page main { padding-block: 56px 96px; }
.legal { max-width: 720px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.legal h1 { font-size: clamp(34px, 7vw, 48px); margin-bottom: 12px; }
.legal .updated { color: var(--on-dark-muted); font-size: 14px; margin-bottom: 40px; }
.legal ol { padding-left: 22px; display: grid; gap: 28px; }
.legal ol li::marker { color: var(--ochre); font-weight: 500; }
.legal h2 { font: 600 20px/1.4 var(--f-body); margin-bottom: 8px; }
.legal p { color: var(--on-dark-muted); }
.placeholder { border: 1px dashed var(--ochre); border-radius: 8px; padding: 16px; color: var(--paper) !important; }
.back { display: inline-block; margin-bottom: 32px; font-size: 14px; color: var(--on-dark-muted); }
.final-inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.final-inner .lead { margin-inline: auto; }
.tagline { font: italic 500 clamp(44px, 10vw, 80px)/1.02 var(--f-display); }

/* ≥ 600px */
@media (min-width: 600px) {
  .section { padding-block: 100px; }
  .final-wrap { padding-top: 0; }
  .gains-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr 1fr; }
  .final { padding: 96px 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ≥ 900px */
@media (min-width: 900px) {
  .site-header nav { order: 0; width: auto; overflow: visible; }
  .nav-links { padding: 0; gap: 32px; }
  main [id] { scroll-margin-top: 76px; }
  .hero-inner { grid-template-columns: 1fr 340px; align-items: end; min-height: 720px; padding-top: 160px; padding-bottom: 104px; }
  .hero-side { justify-self: end; }
  .rounded-top { border-radius: 40px 40px 0 0; margin-top: -40px; }
  .gains-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .req-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .req-card { min-height: 380px; }
  .approach { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
  .approach-photos { position: sticky; top: 100px; }
  .pains-layout { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .pains-photo { position: sticky; top: 100px; max-width: none; }
  .prices { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; }
}
