/* «Мир в душе» — стили сайта, кабинета и админки.
   Палитра «сталь»: графит #35404F, глубокая ночь #161D28, латунь #B8956A, светлая сталь #EEF1F5. */

@font-face {
  font-family: "Lora";
  src: url("/static/fonts/Lora-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant";
  src: url("/static/fonts/Cormorant-Variable-subset.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/static/fonts/Cormorant-MediumItalic-subset.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/Montserrat-Variable-subset.woff2") format("woff2");
  font-weight: 100 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #232a35;
  --ink-2: #4c5563;
  --ink-3: #68727f;
  --forest: #2c3644;
  --forest-deep: #171e2a;
  --forest-night: #11161f;
  --on-forest: #e6ebf1;
  --on-forest-2: #a7b1bf;
  --gold: #b8956a;
  --gold-deep: #8a6a3c;
  --sand: #cdd4dd;
  --sand-soft: #e2e7ed;
  --paper: #eef1f5;
  --white: #ffffff;
  --danger: #9b3b2e;
  --danger-soft: #f3e2dd;
  --ok-soft: #e0e8ea;

  /* Зоны шкалы в тестах-профилях: от «низко» к «очень высоко» */
  --zone-1: #a9b0ba;
  --zone-2: #d3bd8e;
  --zone-3: #2c3644;
  --zone-4: #a87f3e;
  --zone-5: #68727f;
  --zone-6: #8a6a3c;

  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }

h1, h2 {
  font-family: var(--sans);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.8vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--forest); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }

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

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: var(--measure); }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip-link:focus { left: 8px; }

/* ── Кнопки ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 1.1em 2.3em;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(115deg, #ffffff 0%, #dfe7f0 18%, #f6efe6 36%, #ffffff 52%, #d6deea 70%, #efe9f2 86%, #ffffff 100%);
  background-size: 320% 100%;
  color: var(--ink);
  font: 500 0.88rem/1.2 var(--sans); letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(38, 46, 57, .45);
  transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease, border-color .25s ease, background-color .25s ease, color .25s ease;
}
.btn:hover { color: var(--ink); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--sand); box-shadow: none; }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--light, .btn--light:hover { color: var(--ink); }
.btn--small { min-height: 40px; padding: 0.62em 1.35em; font-size: 0.72rem; border-radius: 999px; }
.btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: none; }
.btn--danger:hover { background: #7e2e23; border-color: #7e2e23; color: #fff; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--forest); font: inherit; text-decoration: underline; cursor: pointer; }

/* ── Шапка ────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(207,214,222,.6); background: rgba(238,241,245,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand__name { font-family: var(--sans); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.3em; text-transform: uppercase; }
.brand__owner { font-size: 0.6rem; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; }
.brand:hover { color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__menu summary { list-style: none; cursor: pointer; }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__mobile { display: none; }
.nav__toggle { display: inline-flex; align-items: center; min-height: 38px; padding: 0 0.9em; border: 1.5px solid var(--sand); border-radius: var(--radius-s); font-weight: 600; }
.nav__list { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav__list a, .nav__admin { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav__list a:hover, .nav__list a[aria-current="page"], .nav__admin:hover { color: var(--forest); text-decoration: underline; }
.nav__account { font-weight: 600; text-decoration: none; padding: 0.45em 0.95em; border: 1.5px solid var(--forest); border-radius: var(--radius-s); }
.nav__account:hover { background: var(--forest); color: var(--on-forest); text-decoration: none; }

.page-dark .site-header { background: var(--forest-deep); border-bottom-color: rgba(255,255,255,.08); }
.page-dark .brand { color: var(--on-forest); }
.page-dark .brand__owner { color: var(--on-forest-2); }
.page-dark .nav__desktop a, .page-dark .nav__admin { color: var(--on-forest-2); }
.page-dark .nav__desktop a:hover { color: var(--on-forest); }
.page-dark .nav__account { color: var(--on-forest); border-color: rgba(230,235,241,.45); }
.page-dark .nav__account:hover { background: var(--on-forest); color: var(--forest-deep); }
.page-dark .nav__toggle { color: var(--on-forest); border-color: rgba(230,235,241,.45); }

@media (max-width: 860px) {
  .nav { gap: 10px; }
  .nav__desktop, .nav__admin { display: none; }
  .nav__mobile { display: block; position: relative; }
  .nav__mobile[open] .nav__list {
    display: flex; flex-direction: column; gap: 4px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
    min-width: 220px; padding: 10px; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-m);
    box-shadow: 0 12px 30px rgba(16,21,29,.12);
  }
  .nav__mobile[open] .nav__list a { display: block; padding: 10px 12px; color: var(--ink); border-radius: var(--radius-s); }
}

.flash { background: var(--ok-soft); color: var(--forest-deep); padding: 12px 0; font-weight: 500; border-bottom: 1px solid #cfdcd3; }

/* ── Первый экран главной: вопрос теста ────────────── */
.hero { background: var(--forest-deep); color: var(--on-forest); padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__label { font-family: var(--sans); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--on-forest-2); margin-bottom: 1.4rem; }
.hero__label strong { color: var(--gold); font-weight: 600; }
.hero__question { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 1.2rem + 3.3vw, 3.5rem); line-height: 1.12; margin: 0 0 1.2rem; text-wrap: balance; }
.hero__note { color: var(--on-forest-2); max-width: 30rem; }
.hero__answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px;
  border: 1px solid rgba(230,235,241,.22); border-radius: var(--radius-m);
  color: var(--on-forest); text-decoration: none; background: rgba(255,255,255,.03);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.answer__letter { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-weight: 600; font-size: .95rem; }
.answer:hover { border-color: var(--gold); background: rgba(184,149,106,.10); color: var(--on-forest); text-decoration: none; }
.answer:hover .answer__letter { background: var(--gold); color: var(--forest-night); }
.hero__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--on-forest-2); font-size: .95rem; border-top: 1px solid rgba(230,235,241,.12); padding-top: 22px; margin-top: 8px; }
.hero__foot a { color: var(--on-forest); }

@media (prefers-reduced-motion: no-preference) {
  .hero__question, .hero__answers li { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero__answers li:nth-child(1) { animation-delay: .15s; }
  .hero__answers li:nth-child(2) { animation-delay: .22s; }
  .hero__answers li:nth-child(3) { animation-delay: .29s; }
  .hero__answers li:nth-child(4) { animation-delay: .36s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

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

/* ── Секции ───────────────────────────────────────── */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--sand { background: var(--sand-soft); }
.section__head { max-width: 44rem; margin-bottom: clamp(24px, 4vw, 40px); }
.section__head p { color: var(--ink-2); font-size: 1.1rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--gold); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--gold-deep); margin-bottom: 12px; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Список продуктов: строки, а не одинаковые карточки */
.offers { border-top: 1px solid var(--sand); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end; padding: 26px 0; border-bottom: 1px solid var(--sand); }
.offer__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 .25em; }
.offer__title a { color: var(--ink); text-decoration: none; }
.offer__title a:hover { color: var(--forest); text-decoration: underline; }
.offer__text { color: var(--ink-2); max-width: 38rem; margin: 0; }
.offer__side { display: flex; align-items: center; gap: 20px; }
.offer__price { font-weight: 600; white-space: nowrap; }
.offer__price small { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-3); }
@media (max-width: 700px) { .offer { grid-template-columns: 1fr; } .offer__side { justify-content: space-between; } }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 34px); }
.panel h3 { margin-bottom: .4em; }
.panel--forest { background: var(--forest-deep); color: var(--on-forest); border-color: var(--forest-deep); }
.panel--forest a:not(.btn) { color: var(--on-forest); }
.panel--forest .muted { color: var(--on-forest-2); }

/* Фотографии: скруглённые углы и мягкая тень. Размер задаёт блок, в котором фото стоит. */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); background: var(--sand); box-shadow: 0 14px 34px rgba(22, 28, 38, .16); }

/* Обо мне: слева фото, справа текст и образование */
.about { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about__quote { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.35; margin: 0 0 1.2rem; }
.credentials { list-style: none; margin: 1.6rem 0 0; padding: 0; border-left: 2px solid var(--gold); }
.credentials li { padding: 0 0 18px 20px; color: var(--ink-2); }
.credentials li:last-child { padding-bottom: 0; }
.credentials li strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 420px; } }

/* Вопросы и ответы */
.faq { max-width: 46rem; border-top: 1px solid var(--sand); }
.faq details { border-bottom: 1px solid var(--sand); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--gold-deep); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 40rem; }

.cta { text-align: left; }
.cta__title { max-width: 30rem; }

/* ── Страница продукта ────────────────────────────── */
.crumbs { font-size: .9rem; color: var(--ink-3); margin: 22px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sand); }
.crumbs a { color: var(--ink-3); }
.product-hero { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); }
.product-hero h1 { max-width: 20ch; }
/* «Статьи»: фото справа от заголовка, на телефоне — под ним, обрезанное до полосы */
.product-hero--photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(270px, 36%)); gap: 20px clamp(20px, 4vw, 56px); align-items: center; }
/* Консультация: фото справа от заголовка и описания, на телефоне — между кнопками и описанием */
.hero-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(400px, 38%)); column-gap: clamp(24px, 5vw, 64px); align-items: start; }
.hero-photo > .product-hero { grid-area: 1 / 1; }
.hero-photo > .section--tight { grid-area: 2 / 1; }
.hero-photo__img { grid-area: 1 / 2 / 3 / 3; margin-top: clamp(28px, 5vw, 56px); }
@media (max-width: 760px) {
  .product-hero--photo { grid-template-columns: 1fr; }
  .product-hero__photo { max-width: 420px; }
  .product-hero__photo img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 12%; }
  .hero-photo { display: block; }
  .hero-photo__img { margin-top: 0; max-width: 420px; }
}
.facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: var(--white); border: 1px solid var(--sand); border-radius: 999px; padding: 6px 14px; font-size: .95rem; color: var(--ink-2); }
.prose { max-width: var(--measure); font-size: 1.1rem; }
.prose p { margin-bottom: 1.1em; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
/* длинная строка без пробелов и «код» не раздвигают страницу на телефоне */
.prose { overflow-wrap: break-word; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.prose blockquote { margin: 1.2em 0; padding: 0 0 0 18px; border-left: 3px solid var(--gold); color: var(--ink-2); font-family: var(--serif); font-size: 1.15rem; }

.program { list-style: none; margin: 0; padding: 0; max-width: 46rem; counter-reset: lesson; }
.program li { counter-increment: lesson; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--sand); }
.program li::before { content: counter(lesson, decimal-leading-zero); font-family: var(--serif); color: var(--gold-deep); font-size: 1.05rem; }
.program__meta { font-size: .88rem; color: var(--ink-3); white-space: nowrap; }

.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.tariff { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-l); padding: 26px 24px; }
.tariff--featured { border: 2px solid var(--gold); position: relative; }
.tariff__badge { position: absolute; top: -13px; left: 22px; background: var(--gold); color: var(--forest-night); font-size: .82rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.tariff__title { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.tariff__price { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 0 0 4px; }
.tariff__period { font-size: .95rem; color: var(--ink-3); }
.tariff__body { color: var(--ink-2); margin: 14px 0 18px; flex: 1; }
.tariff__body ul { padding-left: 1.1em; margin: 0; }
.tariff__body li { margin-bottom: 4px; }
.tariff form { display: grid; gap: 10px; }
.tariff__state { font-weight: 600; color: var(--forest); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--forest); }

/* ── Формы ────────────────────────────────────────── */
.form { display: grid; gap: 16px; max-width: 30rem; }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .88rem; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="number"], input[type="url"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius-s);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(53,64,79,.15); }
.code-input { font-size: 1.8rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-s); padding: 12px 14px; font-weight: 500; }
.note { background: var(--sand-soft); border-radius: var(--radius-m); padding: 14px 18px; color: var(--ink-2); }
.course-note { margin-top: 18px; max-width: 46rem; }
.course-note p { margin: 0 0 .6em; }
.course-note p:last-child { margin-bottom: 0; }

.auth { min-height: 60vh; display: grid; place-items: center; padding-block: clamp(32px, 6vw, 72px); }  /* поля по бокам — от .container */
.auth__box { width: 100%; max-width: 30rem; }
.auth__box h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); }
/* Вход: подсказка «может быть, вы имели в виду …@gmail.com?» */
.email-check { display: grid; gap: 12px; }
.email-check p { margin: 0; overflow-wrap: anywhere; }
.email-check__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.email-check__actions form { margin: 0; }

/* ── Прохождение теста ────────────────────────────── */
.runner { max-width: 44rem; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) 64px; }
.runner__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--ink-3); font-size: .95rem; }
.progress { height: 4px; background: var(--sand); border-radius: 4px; overflow: hidden; margin-bottom: clamp(24px, 4vw, 40px); }
.progress__bar { height: 100%; background: var(--gold); width: 0; transition: width .3s ease; }
.question { border: 0; margin: 0 0 40px; padding: 0; }
.question legend { font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); line-height: 1.2; font-weight: 500; margin-bottom: 22px; padding: 0; }
.question__number { display: block; font-family: var(--sans); font-size: .95rem; color: var(--ink-3); margin-bottom: 8px; font-weight: 500; }
.question__stem { display: block; font-family: var(--sans); font-size: .95rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 10px; }
.options { display: grid; gap: 10px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 18px; background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius-m); transition: border-color .12s ease, background-color .12s ease; }
.option span::before { content: attr(data-letter); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-deep); font-weight: 600; font-size: .9rem; }
@media (hover: hover) { .option:hover span { border-color: var(--forest); } }
.option input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.option input:checked + span { border-color: var(--forest); background: var(--ok-soft); }
.option input:checked + span::before { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.runner__actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.js-stepper .question { display: none; }
.js-stepper .question.is-current { display: block; }
.js-stepper .runner__submit { display: none; }
.js-stepper.is-complete .runner__submit { display: inline-flex; }

/* ── Результат теста ──────────────────────────────── */
/* Шапка результата — светлая, как вся страница, а название итога выделено жирным (решение Юлии 02.11.2026:
   «чёрный цвет заменить, оставить как первых двух, просто выделить буквы»). До 02.11 — тёмная плашка. */
.result-hero { background: transparent; color: var(--ink); padding: clamp(32px, 6vw, 64px) 0 0; }
.result-hero__label { color: var(--ink-3); margin-bottom: 10px; }
.result-hero h1 { font-weight: 600; color: var(--ink); margin: 0; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .result-layout { grid-template-columns: 1fr; } }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars__row { display: flex; justify-content: space-between; font-size: .95rem; margin-bottom: 6px; }
.bars__track { height: 8px; background: var(--sand-soft); border-radius: 8px; overflow: hidden; }
.bars__fill { height: 100%; background: var(--sand); border-radius: 8px; }
.bars li:first-child .bars__fill { background: var(--forest); }
.disclaimer { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); border-left: 3px solid var(--gold); padding-left: 18px; margin: 32px 0; }
.share { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Рекомендация психолога в интерпретации (с 26.10.2026) ── */
.advice { margin: 28px 0; padding: clamp(22px, 3vw, 34px); background: var(--white); border: 1px solid var(--sand); border-left: 4px solid var(--gold); border-radius: var(--radius-l); }
.profile .advice { margin: 0; }
.advice__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.advice__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--sand-soft); }
.advice__title { margin: 0; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); }
.advice__who { margin: 2px 0 0; font-size: .9rem; color: var(--ink-3); }
.advice__text ol { padding-left: 1.3em; }
.advice__text li { margin-bottom: 8px; }
.advice__text li::marker { color: var(--gold-deep); font-weight: 600; }

/* ── Интерпретация за оплату (с 26.10.2026): закрытый результат и страница теста ── */
.paywall-page { display: grid; gap: clamp(22px, 3vw, 30px); padding-block: clamp(28px, 5vw, 48px) 80px; }
.paywall { border: 2px solid var(--gold); }
.paywall h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .35em; }
.paywall__lead { color: var(--ink-2); margin: 0; }
.paywall__body { margin: 16px 0 0; }
.paywall__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 22px 0 14px; font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.paywall__price span { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--ink-3); }
.paywall__form { display: grid; gap: 12px; max-width: 460px; }
.test-start { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 32px 0 40px; }
.test-start .note { margin: 0; }
.test-page > .test-start:last-child { margin-bottom: 80px; }
.test-interp { margin-bottom: 80px; }
.test-interp h2 { font-size: 1.35rem; margin-bottom: .4em; }
.test-interp p { color: var(--ink-2); margin: 0; }
.test-interp .tariff__body { margin: 12px 0 0; }

/* ── Результат теста-профиля: шкала-прибор, сферы, точка роста ── */
/* светлая шапка (02.11.2026): цвета шкалы — общие, для светлого фона */
.result-hero--profile { padding: clamp(28px, 5vw, 56px) 0 0; }
.profile-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 56px); align-items: center; }
.profile-hero__meta { color: var(--ink-2); margin: 14px 0 0; }
.profile-hero__meta strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .profile-hero { grid-template-columns: minmax(0, 1fr); } }

.dial { margin: 0; width: 100%; max-width: 360px; justify-self: center; }
.dial svg { display: block; width: 100%; height: auto; }
.dial__zone { fill: none; stroke-width: 16; }
.dial__zone--1 { stroke: var(--zone-1); }
.dial__zone--2 { stroke: var(--zone-2); }
.dial__zone--3 { stroke: var(--zone-3); }
.dial__zone--4 { stroke: var(--zone-4); }
.dial__zone--5 { stroke: var(--zone-5); }
.dial__zone--6 { stroke: var(--zone-6); }
.dial__num { font-family: var(--serif); font-size: 68px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.dial__sub { font-family: var(--sans); font-size: 14px; fill: var(--ink-3); letter-spacing: .04em; }
.dial__marker { transform-origin: 160px 160px; }
.dial__marker circle { fill: var(--ink); stroke: var(--paper); stroke-width: 4; }
.dial__ends { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-3); margin-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .dial__marker { animation: dial-sweep 1.2s cubic-bezier(.22, .8, .24, 1) .15s both; }
}
@keyframes dial-sweep { from { transform: rotate(0deg); } }

.profile { display: grid; gap: clamp(22px, 3vw, 30px); padding-block: clamp(28px, 5vw, 48px) 80px; }
.profile-group h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .3em; }
.profile-group__note { margin-bottom: 14px; }
.zone-legend { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-3); }
.zone-legend li { display: inline-flex; align-items: center; gap: 7px; }
.zone-legend i { display: inline-block; width: 16px; height: 6px; border-radius: 999px; }
.zone-legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.zone-fill--1 { background: var(--zone-1); }
.zone-fill--2 { background: var(--zone-2); }
.zone-fill--3 { background: var(--zone-3); }
.zone-fill--4 { background: var(--zone-4); }
.zone-fill--5 { background: var(--zone-5); }
.zone-fill--6 { background: var(--zone-6); }
.zone-list { list-style: none; margin: 0; padding: 0; }
.zone-item { padding: 18px 0; border-top: 1px solid var(--sand-soft); }
.zone-item:first-child { border-top: 0; padding-top: 8px; }
.zone-item:last-child { padding-bottom: 0; }
.zone-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.zone-item__name { font-weight: 600; }
.zone-item__value { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zone-item__value small { font-weight: 400; font-size: .85rem; color: var(--ink-3); }
.zone-item__text { margin-top: 10px; color: var(--ink-2); }
.chip { display: inline-block; font-size: .82rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: var(--sand-soft); color: var(--ink-2); }
.chip--1 { background: #e3e7ec; color: #525b67; }
.chip--2 { background: #ece3d0; color: #6f5526; }
.chip--3 { background: var(--ok-soft); color: var(--forest-deep); }
.chip--4 { background: #e9ddc5; color: #654a1a; }
.zone-track { position: relative; height: 8px; margin: 12px 0 4px; }
.zone-track__seg { position: absolute; top: 0; bottom: 0; border-left: 3px solid var(--white); }
.zone-track__seg.is-first { border-left: 0; border-radius: 999px 0 0 999px; }
.zone-track__seg.is-last { border-radius: 0 999px 999px 0; }
.zone-track__dot { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--white); box-shadow: 0 0 0 1px var(--ink); }
.profile-pair { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sand); color: var(--ink-2); }
.profile-pair h3 { color: var(--ink); margin-bottom: .45em; }
.profile-focus { background: var(--sand-soft); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 34px); }
.profile-focus h3 { margin-bottom: .4em; }
.profile-focus__item + .profile-focus__item { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sand); }
.profile-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 10px; }
.profile-eyebrow--light { color: #d6bb93; }
.profile .disclaimer { margin: 0; }
.profile-cta h2 { margin-bottom: .35em; }
.profile-cta h2 a { color: var(--on-forest); text-decoration: none; }
.profile-cta h2 a:hover { text-decoration: underline; }
.profile-cta__lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: #d6bb93; }
.profile-cta__side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.profile-cta__price { font-weight: 600; color: var(--on-forest); }

/* ── Кабинет ──────────────────────────────────────── */
.cabinet-head { padding: clamp(28px, 5vw, 48px) 0 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.cabinet-head h1 { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 8px; font-weight: 500; }
.tabs a { color: var(--ink-2); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.tabs a[aria-current="page"], .tabs a:hover { color: var(--forest); border-bottom-color: var(--gold); }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.course-card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.course-card h3 { margin: 0; }
.meter { height: 6px; background: var(--sand-soft); border-radius: 6px; overflow: hidden; }
.meter__fill { height: 100%; background: var(--gold); }
.lesson-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand); }
.lesson-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--sand); }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--sand); display: grid; place-items: center; font-size: .8rem; color: transparent; }
.tick.is-done { background: var(--forest); border-color: var(--forest); color: var(--on-forest); }
.lesson { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 40px) 0 64px; align-items: start; }
@media (max-width: 900px) { .lesson { grid-template-columns: 1fr; } .lesson__aside { order: 2; } }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--forest-night); border-radius: var(--radius-m); overflow: hidden; margin-bottom: 24px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.files li { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-m); padding: 12px 16px; }
.files audio { width: 100%; margin-top: 8px; }
.lesson__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.lesson__aside ol { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.lesson__aside li { padding: 8px 0; border-bottom: 1px solid var(--sand); }
.lesson__aside li a { text-decoration: none; color: var(--ink-2); }
.lesson__aside li a[aria-current="page"] { color: var(--forest); font-weight: 600; }

.table-wrap { overflow-x: auto; border: 1px solid var(--sand); border-radius: var(--radius-m); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--sand-soft); vertical-align: top; }
.table th { font-weight: 600; color: var(--ink-2); background: #fcfaf6; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; font-size: .82rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--sand-soft); color: var(--ink-2); white-space: nowrap; }
.status--paid, .status--active { background: var(--ok-soft); color: var(--forest-deep); }
.status--pending, .status--past_due { background: #efe7d7; color: var(--gold-deep); }
.status--refunded, .status--canceled, .status--expired { background: var(--danger-soft); color: var(--danger); }

/* ── Страница заказа ──────────────────────────────── */
.order { max-width: 36rem; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter); text-align: left; }
.order__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 20px; background: var(--ok-soft); color: var(--forest); }
.order__icon--wait { background: #efe7d7; color: var(--gold-deep); }
.order__icon--fail { background: var(--danger-soft); color: var(--danger); }
/* voronka-2: вернуться к оплате и «Что помешало оплатить?» */
.order__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.order__why { margin-top: 28px; padding: 20px; }
.order__why fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.order__why legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 4px; }
.order__reasons { display: grid; gap: 8px; margin-top: 10px; }
.order__thanks { margin-top: 24px; }
.summary { list-style: none; padding: 0; margin: 20px 0 28px; border-top: 1px solid var(--sand); }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sand); }

/* ── Подвал ───────────────────────────────────────── */
.site-footer { background: var(--forest-night); color: var(--on-forest-2); padding: 48px 0 28px; margin-top: 0; font-size: .95rem; }
.site-footer a { color: var(--on-forest); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 28px; }
.site-footer__brand { font-family: var(--serif); font-size: 1.3rem; color: var(--on-forest); margin-bottom: 6px; }
.site-footer__title { color: var(--on-forest); font-weight: 600; margin-bottom: 8px; }
.site-footer__legal { border-top: 1px solid rgba(230,235,241,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; }
.site-footer__legal p { margin: 0 0 4px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 560px; margin: 0 auto; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-l); padding: 18px 20px; box-shadow: 0 18px 40px rgba(16,21,29,.18); font-size: .93rem; }
.cookie-banner__actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.error-page { padding: clamp(48px, 9vw, 120px) 0; }
.error-page__code { font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--sand); margin: 0 0 12px; }

/* ── Юридические документы ────────────────────────── */
.legal { padding: clamp(28px, 5vw, 56px) 0 72px; }
.legal .prose { font-size: 1rem; }
.legal h2 { font-size: 1.3rem; }
.legal-draft { background: #efe7d7; color: var(--gold-deep); border-radius: var(--radius-m); padding: 14px 18px; margin-bottom: 28px; max-width: var(--measure); }

/* ── Админка ──────────────────────────────────────── */
.admin { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; background: #e9edf2; }
.admin__side { background: var(--forest-night); color: var(--on-forest-2); padding: 22px 16px; }
.admin__side .brand__name { color: var(--on-forest); }
.admin__side nav { display: grid; gap: 2px; margin-top: 26px; }
.admin__side nav a { color: var(--on-forest-2); text-decoration: none; padding: 9px 12px; border-radius: var(--radius-s); font-weight: 500; }
.admin__side nav a:hover, .admin__side nav a[aria-current="page"] { background: rgba(230,235,241,.08); color: var(--on-forest); }
.admin__main { padding: 28px clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.admin__main h1 { font-size: 1.9rem; }
.admin__main h2 { font-size: 1.35rem; margin-top: 32px; }
.admin__foot { margin-top: 26px; font-size: .88rem; }
.admin__foot a { color: var(--on-forest-2); }
@media (max-width: 860px) { .admin { grid-template-columns: minmax(0, 1fr); } .admin__side { min-width: 0; } .admin__side nav { grid-auto-flow: column; justify-content: start; overflow-x: auto; margin-top: 12px; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-m); padding: 16px 18px; }
.kpi__value { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.kpi__label { color: var(--ink-3); font-size: .9rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.admin-form { display: grid; gap: 14px; max-width: 900px; }
.admin-form .field { align-content: start; }
.admin-card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-m); padding: 18px 20px; margin-bottom: 14px; }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li::before { content: "○"; margin-right: 8px; color: var(--gold-deep); }
.checklist li.is-done::before { content: "●"; color: var(--forest); }
.tariff-row { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 10px; }
.tariff-flags { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 760px) { .tariff-row { grid-template-columns: 1fr; } }

/* Конструктор теста */
.builder { display: grid; gap: 18px; }
.builder__q { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-m); padding: 16px 18px; }
.builder__q header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.builder__opt { display: grid; grid-template-columns: minmax(0, 1fr) 190px 80px 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.builder__scale { display: grid; grid-template-columns: 110px minmax(0, 1fr) 36px; gap: 8px; margin-bottom: 8px; }
.builder__result { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-m); padding: 16px 18px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--sand); border-radius: var(--radius-s); background: var(--white); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.icon-btn:hover { border-color: var(--danger); color: var(--danger); }
.sticky-save { position: sticky; bottom: 0; background: #e9edf2; padding: 14px 0; border-top: 1px solid var(--sand); display: flex; gap: 12px; align-items: center; }
@media (max-width: 760px) { .builder__opt { grid-template-columns: 1fr 1fr; } }

/* ── Статьи ───────────────────────────────────────── */
.article-meta { font-size: .9rem; color: var(--ink-3); margin: 0 0 .6em; }
.article-cards { display: grid; gap: 28px; padding-bottom: 24px; }
.article-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-l); padding: clamp(14px, 2vw, 20px); }
.article-card__cover img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); }
.article-card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.article-card__title a { color: var(--ink); text-decoration: none; }
.article-card__title a:hover { color: var(--forest); text-decoration: underline; }
.article-card__lead { color: var(--ink-2); }
@media (max-width: 760px) { .article-card { grid-template-columns: 1fr; } }

.soon-list { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.soon-item { background: var(--sand-soft); border-radius: var(--radius-m); padding: 16px 18px; }
.soon-item__title { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.25; margin: .4em 0 .3em; }
.soon-item__lead { color: var(--ink-2); font-size: .95rem; }
.soon-badge { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--forest-night); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); padding: clamp(20px, 4vw, 40px) 0 80px; align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }
.article__head { margin-bottom: 28px; }
.article__head h1 { max-width: 22ch; }
.article__body { max-width: 44rem; }
.article-intro { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }
.article-tag { display: inline-block; margin: 2.4em 0 .5em; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.prose .article-tag + h2 { margin-top: 0; }
.article-fig { margin: 1.6em 0; }
.article-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); box-shadow: 0 10px 30px rgba(22, 28, 38, .14); }
.article-fig figcaption { margin-top: 10px; font-size: .92rem; color: var(--ink-3); text-align: center; }
.formula { margin: 1.4em 0; padding: 18px 20px; background: var(--white); border: 1px solid var(--sand); border-left: 4px solid var(--forest); border-radius: var(--radius-m); text-align: center; }
.formula__expr { font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.6rem); margin: 0 0 .3em; }
.formula__note { font-size: .9rem; color: var(--ink-3); margin: 0; }
.punch { margin: 1.3em 0; padding: 14px 18px; background: var(--sand-soft); border-left: 4px solid var(--gold); border-radius: 0 var(--radius-m) var(--radius-m) 0; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.myth { margin: 2.4em 0 1em; padding: 18px 22px; border: 1.5px dashed var(--ink-3); border-radius: var(--radius-m); background: #f3efe8; }
.myth__title { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.article-cta { margin: 2.6em 0 1.6em; padding: clamp(22px, 4vw, 34px); background: var(--forest); color: var(--on-forest); border-radius: var(--radius-l); }
.article-cta h2 { color: var(--on-forest); margin-top: 0; }
.article-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2em; }
.btn--ghost-light { background: transparent; border-color: var(--on-forest-2); color: var(--on-forest); }
.btn--ghost-light:hover { background: var(--forest-deep); border-color: var(--on-forest); color: var(--on-forest); }
/* Блок «что дальше» в конце статьи: бесплатный тест, платные тесты и практикум. Стоит внутри .article-cta.
   Селекторы с «.next-steps» впереди, чтобы отступы текста статьи (.prose p, .prose h3, .prose ul) сюда не попадали. */
.next-steps { display: grid; gap: 14px; margin: 1.5em 0 1.6em; }
.next-steps p, .next-steps h3 { margin: 0; }
.next-steps .next-step { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; overflow-wrap: anywhere; padding: 18px 20px; background: var(--paper); color: var(--ink); border-radius: var(--radius-m); }
.next-steps .next-step--main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 28px; align-items: center; padding: 22px 24px; }
.next-steps .next-step__part { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.next-steps .next-step__part + .next-step__part { gap: 14px; }
.next-steps .next-kicker { padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--forest-night); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.next-steps .next-more { margin-top: 8px; color: var(--on-forest); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.next-steps .next-price { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.1; color: var(--forest-deep); }
.next-steps .next-step--main .next-price { font-size: 2.5rem; }
.next-steps .next-price small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .82rem; font-weight: 500; line-height: 1.3; color: var(--ink-3); }
.next-steps .next-title { font-family: var(--sans); font-weight: 600; font-size: 1.06rem; line-height: 1.3; letter-spacing: 0; color: var(--ink); text-wrap: wrap; }
.next-steps .next-step--main .next-title { font-size: 1.2rem; }
.next-steps .next-text { font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.next-steps .next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.next-steps .next-grid > .next-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
.next-steps .next-go { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .95rem; }
@media (max-width: 640px) { .next-steps .next-step--main, .next-steps .next-grid { grid-template-columns: 1fr; } }
/* Партнёрская реклама внизу статьи (app/partners.py): после текста и блока «что дальше»,
   отделена линией, подпись «Реклама. Рекламодатель. erid» над баннером. */
.partner-ad { margin: 2.4em 0 0; padding-top: 1.1em; border-top: 1px solid var(--sand); max-width: var(--measure); }
.partner-ad__label { margin: 0 0 .7em; font-size: .78rem; line-height: 1.4; color: var(--ink-3); overflow-wrap: anywhere; }
.partner-ad__link { display: inline-block; max-width: 100%; vertical-align: top; }
.partner-ad__img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-m); }
.partner-ad-wrap { padding-bottom: 2em; }
/* «Ещё статьи» под статьёй во всю ширину */
.article-more { padding: 8px 0 72px; }
.final { font-family: var(--serif); font-size: 1.4rem; text-align: center; margin-top: 1.6em; }
.sign { text-align: center; font-family: var(--serif); font-style: italic; }
.article-note { font-size: .9rem; color: var(--ink-3); border-top: 1px solid var(--sand); padding-top: 14px; margin-top: 2em; }
.sources { font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.sources li { margin-bottom: .5em; }

.article-aside__sticky { position: sticky; top: 24px; display: grid; gap: 18px; }
.article-aside__title { font-size: 1.3rem; margin: 0; }
.related { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand); }
.related__item { padding: 14px 0; border-bottom: 1px solid var(--sand); }
.related__title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--ink); margin: .35em 0 .25em; text-decoration: none; }
a.related__title:hover { color: var(--forest); text-decoration: underline; }
.related__lead { font-size: .9rem; color: var(--ink-3); margin: 0; }
.related__all { font-weight: 600; text-decoration: none; }
.aside-card { background: var(--forest); color: var(--on-forest); border-radius: var(--radius-m); padding: 18px; }
.aside-card__title { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: .3em; }
.aside-card__text { color: var(--on-forest-2); font-size: .93rem; }
@media (max-width: 960px) { .article-aside__sticky { position: static; } }

/* ── Кнопка «Написать мне» (Telegram-бот) ───────────────────── */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; background: var(--forest); color: var(--on-forest); text-decoration: none; border-radius: 999px; padding: 13px 20px; font-weight: 600; font-size: .97rem; box-shadow: 0 10px 28px rgba(16, 21, 29, .22); }
.chat-fab:hover { background: var(--forest-deep); }
.chat-fab:focus-visible { outline: 3px solid var(--forest-deep); outline-offset: 2px; }
.chat-fab__icon { width: 20px; height: 20px; flex: none; }
@media (max-width: 760px) {
  .chat-fab { right: 14px; bottom: 14px; padding: 15px; }
  .chat-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat-fab__icon { width: 24px; height: 24px; }
}
@media print { .chat-fab { display: none; } }

/* ── Отзывы на странице консультации ───────────────────── */
.reviews__note { color: var(--ink-3); font-size: .93rem; margin: -6px 0 18px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-m); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.review__text { margin: 0; color: var(--ink-2); }
.review__text::before { content: "\201C"; display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--forest); margin-bottom: 2px; }
.review__author { font-weight: 600; color: var(--ink); }
.review__author::before { content: "\2014\00a0"; color: var(--ink-3); }

/* ── Сталь: перелив кнопок, парение карточек, зерно плёнки ── */
@keyframes btn-sheen {
  0% { background-position: 120% 50%; }
  100% { background-position: -120% 50%; }
}
.btn:not(.btn--ghost):not(.btn--danger):not([disabled]) {
  animation: btn-sheen 7s linear infinite;
}
.btn--ghost { position: relative; overflow: hidden; }
.btn--ghost::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .5; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.85) 50%, transparent 70%);
  background-size: 280% 100%;
  animation: btn-sheen 6s linear infinite;
}
.btn:not(.btn--ghost):not(.btn--danger):not([disabled]):hover { animation-duration: 2.6s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(38, 46, 57, .5); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(16,21,29,.22); }
.chat-fab { transition: transform .25s ease, box-shadow .25s ease; }
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(16, 21, 29, .3); }
.tariff, .article-card, .course-card, .panel { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.tariff:hover, .article-card:hover, .course-card:hover, .panel:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(16,21,29,.14); border-color: var(--gold); }
body::after {
  content: "";
  position: fixed;
  inset: -40%;
  z-index: 90;
  pointer-events: none;
  opacity: .045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.4s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-2%, -4%); }
  100% { transform: translate(0, 0); }
}
@media print {
  body::after { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn--ghost::after, .chat-fab, body::after { animation: none; }
  .btn:hover, .chat-fab:hover, .tariff:hover, .article-card:hover, .course-card:hover, .panel:hover { transform: none; }
}

/* ── Киноплёнка для фото: мягкий рисунок, виньетка, медленный наезд ── */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-l); }
.photo img { filter: saturate(.88) contrast(1.04) sepia(.06); transition: transform 6s cubic-bezier(.2, .6, .2, 1), filter 1.2s ease; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 120% at 50% 38%, rgba(17, 22, 31, 0) 58%, rgba(17, 22, 31, .28) 100%); }
.photo:hover img { transform: scale(1.045); filter: saturate(.95) contrast(1.05) sepia(.03); }
@media (prefers-reduced-motion: reduce) {
  .photo:hover img { transform: none; }
}

/* ── Блок безопасности клинического теста (bezopasnost-testov-1): телефоны помощи сразу после теста ── */
.safety-wrap { padding-top: clamp(18px, 3vw, 28px); }
.safety-alert { background: var(--danger-soft); border: 1px solid var(--danger); border-left-width: 6px; border-radius: var(--radius-m); padding: 18px 20px; color: var(--ink); margin: 0 0 22px; }
.safety-alert__title { font-family: var(--sans); font-size: 1.1rem; line-height: 1.35; font-weight: 600; color: var(--danger); margin: 0 0 8px; }
.safety-alert__text p { margin: 0 0 8px; }
.safety-alert__text p:last-child { margin-bottom: 0; }
.safety-alert__text strong { white-space: nowrap; }
.result-notice { margin: 0 0 22px; color: var(--ink); }
.result-notice p { margin: 0 0 6px; }
.result-notice p:last-child { margin-bottom: 0; }
.result-notice strong { white-space: nowrap; }

/* ── Разбор теста: следующий шаг по ситуации (rezultat-shag-1, 02.11.2026) ───────── */
.result-page { padding-block: clamp(28px, 5vw, 56px); }
.result-page > .prose { max-width: none; }
.result-bars { margin: 40px 0 8px; }
.result-bars h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); margin-bottom: 16px; }
.result-primer-cta { margin-top: 32px; }
.next-step { margin: 44px 0 36px; padding-top: 32px; border-top: 1px solid var(--sand); }
.next-step h2 { margin-bottom: .35em; }
.next-step__lead { color: var(--ink); font-weight: 500; font-size: 1.08rem; margin-bottom: 18px; } /* без заголовка над выбором (02.11) — строка-вступление чуть заметнее */
.situations { display: grid; gap: 10px; }
.situation { background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius-m); transition: border-color .12s ease; }
.situation[open] { border-color: var(--forest); }
.situation__label { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 18px; cursor: pointer; font-weight: 500; line-height: 1.4; list-style: none; }
.situation__label::-webkit-details-marker { display: none; }
.situation__label::after { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 0; border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.situation[open] > .situation__label::after { transform: rotate(-135deg); margin-top: 4px; }
.situation__label:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-m); }
@media (hover: hover) { .situation:hover { border-color: var(--forest); } }
.situation > .step-card { border: 0; border-top: 1px solid var(--sand-soft); border-radius: 0 0 var(--radius-m) var(--radius-m); }
.step-card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 28px); }
.step-card__title { font-size: 1.2rem; margin-bottom: .45em; }
.step-card__title a { color: var(--ink); text-decoration: none; }
.step-card__title a:hover { text-decoration: underline; }
.step-card__why { color: var(--ink-2); margin-bottom: 0; }
.step-card__head { margin: 18px 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
.step-card__list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.step-card__list li::marker { color: var(--gold-deep); }
.step-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.step-card__price { font-size: 1.3rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.step-card__free { margin: 14px 0 0; font-size: .95rem; color: var(--ink-2); }
.next-step__others { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.next-step__alt { margin: 22px 0 0; color: var(--ink-2); }
.share-block { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--sand); }
.share-block__title { margin: 0 0 4px; font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.result-saved { margin-top: 22px; }
.paywall-page .share-block { margin-bottom: 18px; }
/* Телефон: мелкий текст темнее, маленькие кнопки крупнее, главная кнопка — во всю ширину;
   внизу подвала запас, чтобы кнопка «Написать мне» и кружок с видео не закрывали последние строки */
@media (max-width: 760px) {
  .result-page .muted, .paywall-page .muted, .container.profile .muted { color: var(--ink-2); }
  .result-page .btn--small, .paywall-page .btn--small, .container.profile .btn--small { min-height: 44px; padding: .7em 1.15em; font-size: .8rem; }
  .step-card__foot .btn { width: 100%; }
  .site-footer { padding-bottom: 104px; }
}
