/* Своим темпом – общий файл стилей. Оформление: «Сливочный» (последние слои файла главнее ранних) */

/* Шрифты лежат на сайте: Onest и Literata (SIL Open Font License 1.1), Cyrillic + сокращённая Latin, вес 400–600 */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 400 600; src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 400 600; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+2013,U+2018-201E,U+2022,U+2026,U+2192,U+2212; }
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 400 600; src: url("../fonts/literata-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 400 600; src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+2013,U+2018-201E,U+2022,U+2026,U+2192,U+2212; }
@font-face { font-family: "Literata"; font-style: italic; font-display: swap; font-weight: 400 600; src: url("../fonts/literata-cyrillic-wght-italic.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Literata"; font-style: italic; font-display: swap; font-weight: 400 600; src: url("../fonts/literata-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+2013,U+2018-201E,U+2022,U+2026,U+2192,U+2212; }


:root {
  --bg: #FBF6EC;            /* сливочный фон */
  --card: #F3EBDD;          /* песочные блоки */
  --surface: #FFFDF8;
  --text: #2A1F18;
  --muted: #5C4B3E;
  --brown: #7A4426;         /* первая часть заголовков */
  --olive: #B9A48A;         /* линии и украшения */
  --olive-strong: #2F6A3A;  /* ссылки */
  --olive-fill: #2F6A3A;    /* выбранная кнопка */
  --coral: #2F6A3A;         /* главная кнопка: зелёная */
  --coral-strong: #1F4D36;
  --coral-text: #A23D1E;
  --on-coral: #FFFFFF;
  --doodle: #E36F3A;        /* рисованные обводки – только украшение */
  --deep: #1F4D36;          /* тёмно-зелёная полоса */
  --on-deep: #F4EFE3;
  --butter: #FCE7A2; --lime: #DCEFC0; --peach: #F6DCCB; --sand: #EDE3D2; --mint: #D6EADF; --night: #1E2540;
  --rose: #C9A8A0;
  --border: #E6DACA;
  --active: #EDE2D0;
  --on-accent: #FFFFFF;
  --warm: #FBE6DC;
  --warm-text: #7E2A10;
  --hero: transparent;
  --radius: 16px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #16130F;
  --card: #221D17;
  --surface: #1C1813;
  --text: #F2EADF;
  --muted: #C7B8A6;
  --brown: #E8B48E;
  --olive: #5E5244;
  --olive-strong: #9ED0A0;
  --olive-fill: #8CC59A;
  --coral: #8CC59A;
  --coral-strong: #A8D6B3;
  --coral-text: #F0A487;
  --on-coral: #102016;
  --doodle: #F08A55;
  --deep: #183B2A;
  --on-deep: #F4EFE3;
  --butter: #4A3D18; --lime: #2C3D1F; --peach: #45291C; --sand: #2C251D; --mint: #1E3529; --night: #141A30;
  --rose: #D4B5AD;
  --border: #3A3128;
  --active: #2E271F;
  --on-accent: #102016;
  --warm: #3A2219;
  --warm-text: #F4C2AC;
  --hero: transparent;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--olive-strong); }
a:hover { color: var(--coral-strong); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.page { max-width: 1100px; margin: 0 auto; padding: 0 20px 48px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.05rem;
  color: var(--text); text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo svg { flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-tag { font-family: var(--font); font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 1000px) { .logo-tag { display: none; } }
.header-side { display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--olive-strong); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.nav-short { display: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--card); color: var(--text); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); }
.skip:focus { top: 12px; }
.theme-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 6px 12px; min-height: 40px; border-radius: 8px; cursor: pointer; font-size: .85rem; white-space: nowrap;
}

/* ---------- Типографика ---------- */
h1 { font-size: 2.2rem; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; }
/* Длинные слова и вставленные ссылки не растягивают страницу на телефоне */
body { overflow-wrap: break-word; }
h1, h2, .tool-card-main, .imsg, .plan-form, .text-page a, .rec-sum dd { overflow-wrap: anywhere; }
.rec-num { font-size: 1rem; margin: 14px 0 0; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 10px; }
h3 { font-size: 1.05rem; line-height: 1.3; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 10px 0 0;
  color: var(--olive-strong); font-size: .9rem; font-weight: 550;
}
.trust span:not(:last-child)::after { content: "\00a0·"; color: var(--muted); }
.nowrap, a[href^="tel:"] { white-space: nowrap; }
.table-scroll:focus-visible { outline: 2px solid var(--olive-strong); outline-offset: 2px; }
.noscript { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--active); }
.back { display: inline-block; margin: 14px 0 0; font-size: .9rem; }
.page-head { margin-bottom: 22px; }

/* ---------- Карточки ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tool-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; color: inherit; text-decoration: none; transition: transform .2s;
}
a.tool-card:hover { transform: translateY(-3px); color: inherit; }
.tool-card h3 { margin: 10px 0 6px; font-size: 1.08rem; }
.tool-card p { color: var(--muted); font-size: .9rem; }
.tool-card .icon { font-size: 1.7rem; line-height: 1; }
.tool-card.soon { border-style: dashed; background: transparent; }
.badge {
  display: inline-block; font-size: .75rem; color: var(--olive-strong); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 10px; margin-bottom: 8px; background: var(--bg);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--coral); color: var(--on-coral); border: 1px solid var(--coral);
  padding: 12px 24px; border-radius: 12px; font-weight: 650; font-size: 1rem; cursor: pointer;
  text-decoration: none; min-height: 48px;
}
.btn:hover { background: var(--coral-strong); border-color: var(--coral-strong); color: var(--on-coral); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--olive); }
.btn.secondary:hover { background: var(--active); color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--coral); border-color: var(--coral); }
.btn.secondary:disabled:hover { background: transparent; border-color: var(--olive); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link-btn {
  background: none; border: 0; color: var(--olive-strong); text-decoration: underline; cursor: pointer;
  font-size: .9rem; padding: 10px 0; min-height: 40px;
}
.footer-btn { color: var(--muted); font-size: inherit; padding: 6px 0; min-height: 0; }
.footer-btn[hidden] { display: none; }

/* ---------- Главная ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin: 24px 0 56px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 12px; }
.hero .lead { font-size: 1.15rem; max-width: 480px; }
.plant-wrap { display: flex; justify-content: center; align-items: center; }
.plant { width: 260px; height: auto; transform-origin: center bottom; }
.plant:hover { animation: breathe 3.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .plant:hover { animation: none; } }
/* Главная: на компьютере текст и растение рядом, на телефоне растение уходит вниз */
.home { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-areas: "text plant" "now now" "check check" "pop pop" "author author"; column-gap: 40px; }
.home .hero-text { grid-area: text; align-self: center; margin: 24px 0 40px; }
.home .hero-text h1 { font-size: 2.6rem; margin-bottom: 12px; }
.home .hero-text .lead { font-size: 1.15rem; max-width: 480px; }
.home .plant-wrap { grid-area: plant; margin: 24px 0 40px; }
.home .home-now { grid-area: now; }
.home-block { padding-top: 28px; margin-top: 8px; border-top: 1px solid var(--border); }
.home-block h2 { font-size: 1.25rem; margin-bottom: 14px; }
.home-block:nth-of-type(3) { grid-area: check; }
.home-block:nth-of-type(4) { grid-area: pop; }
.home-author { grid-area: author; margin-top: 32px; font-size: .92rem; }
.home-sos { margin-top: 16px; font-size: .95rem; }
@media (min-width: 721px) { .home-now .tools, .home-block:nth-of-type(3) .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-all { margin-top: 18px; }
@media (max-width: 720px) {
  .home { grid-template-columns: 1fr; grid-template-areas: "text" "now" "check" "pop" "author" "plant"; }
  .home .hero-text { margin: 4px 0 20px; }
  .home .hero-text h1 { font-size: 1.9rem; }
  .home .hero-text .lead { font-size: 1.02rem; }
  .home-block { padding-top: 20px; }
  .home .tools { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home .tool-card { padding: 14px; }
  .home .tool-card h3 { margin: 0 0 4px; font-size: 1rem; }
  .home .tool-card p { font-size: .85rem; }
  .home .plant { width: 160px; }
}
.preview { padding-top: 32px; border-top: 1px solid var(--border); }
.preview h2 { font-size: 1.2rem; margin-bottom: 6px; }
.preview-note { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }

/* ---------- Каталог ---------- */
.catalog { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.cats { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
.cats a {
  text-align: left; padding: 10px 14px; border-radius: 10px; color: var(--text); text-decoration: none;
  font-size: .95rem;
}
.cats a:hover { background: var(--active); color: var(--text); }
.cats a[aria-current="true"] { background: var(--active); font-weight: 650; }
.cat-section + .cat-section { margin-top: 36px; }
.js .cat-section { display: none; }
.js .cat-section.is-active { display: block; }
.cat-section h2 { font-size: 1.6rem; margin-bottom: 16px; }
.catalog-note { margin-bottom: 18px; font-size: .95rem; }

/* ---------- Кризисный блок ---------- */
.crisis { border-color: var(--coral); }
.crisis h2, .crisis h3 { font-size: 1rem; margin-bottom: 8px; }
.crisis ul { list-style: none; display: grid; gap: 8px; }
.crisis li { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.crisis a { color: var(--text); font-weight: 650; text-decoration: none; white-space: nowrap; }
.crisis a:hover { color: var(--coral-strong); }

/* ---------- Страница практики ---------- */
.practice { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.practice-side { display: grid; gap: 16px; }
.practice-side .card + .card { margin-top: 0; }
.tool-card-main { min-height: 380px; }
.state { display: none; }
.state.is-active { display: block; }
.state h2 { font-size: 1.15rem; margin-bottom: 8px; }
.hint { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }

.rating { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; margin: 14px 0 4px; max-width: 560px; }
.rating button {
  height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--card);
  font-weight: 650; cursor: pointer; font-size: .95rem; min-width: 0;
}
.rating button:hover { border-color: var(--olive); }
.rating button[aria-pressed="true"] { background: var(--olive-fill); border-color: var(--olive-fill); color: var(--on-accent); }
.rating-scale { color: var(--muted); font-size: .82rem; }

.stage { display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; }
.phase { font-size: 1.4rem; font-weight: 650; min-height: 1.6em; margin-bottom: 8px; text-align: center; }
.meta-line { color: var(--muted); font-size: .88rem; min-height: 1.4em; margin-top: 8px; text-align: center; }
.breath-svg { width: min(260px, 72vw); height: auto; overflow: visible; }
.breath-svg .track { fill: none; stroke: var(--olive); stroke-width: 4; }
.breath-svg .trail { fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; }
.breath-svg .dot { fill: var(--coral); }
.breath-svg .count { fill: var(--muted); font-size: 34px; font-weight: 600; font-family: var(--font); }
.breath-svg .circle-fill { fill: var(--olive); opacity: .18; }
.breath-svg .circle-line { fill: none; stroke: var(--olive); stroke-width: 3; }
.stage .btn { margin-top: 16px; min-width: 200px; }

.steps-progress { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.step-title { font-size: 1.35rem; font-weight: 650; line-height: 1.3; margin-bottom: 6px; }
.step-hint { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.marks { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.marks button {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--olive); background: transparent;
  cursor: pointer; font-weight: 650; color: var(--muted);
}
.marks button[aria-pressed="true"] { background: var(--olive-fill); color: var(--on-accent); }
.steps-stage { padding: 4px 0; }

.result-line { font-size: 1.6rem; font-weight: 700; margin: 6px 0 8px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--olive); stroke-width: 2.5; stroke-linejoin: round; }
.chart .pt { fill: var(--coral); }
.chart-empty { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.chart-note { margin-bottom: 4px; }
.chart.is-concealed [data-chart], .chart.is-concealed .chart-empty { display: none; }
.chart.is-concealed .chart-note::after { content: " Оценки откроются после того, как вы поставите новую."; }
.how ol, .how ul { padding-left: 20px; color: var(--muted); font-size: .92rem; display: grid; gap: 4px; }
.settings-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.settings-btns button {
  min-width: 56px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; font-weight: 600; font-size: .9rem;
}
.settings-btns button[aria-pressed="true"] { background: var(--olive-fill); border-color: var(--olive-fill); color: var(--on-accent); }
.settings-note { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.settings-sub { margin-top: 14px; }
.fade { position: fixed; inset: 0; z-index: 50; background: #000; opacity: 0; transition: opacity 8s ease; cursor: pointer; }
.fade.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fade { transition: none; } }
.tool-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: baseline; }
.h3 { font-size: 1rem; margin-bottom: 10px; }
#tool { scroll-margin-top: 100px; }
:root.night .tool-foot { border-color: #2A2420; }
:root.night .tool-foot .muted { display: none; }
:root.night .link-btn { color: #8A7F76; }

/* Ночной режим (4-7-8) */
:root.night body { background: #0E0C0B; }
:root.night .site-header,
:root.night .practice-side,
:root.night .after-tool,
:root.night .ladder,
:root.night .article,
:root.night .site-footer,
:root.night .cookie { display: none !important; }
:root.night .practice { grid-template-columns: 1fr; }
:root.night [data-state="result"] a[href="#next"] { display: none; }
/* Заголовок в ночном режиме не виден, но остаётся для экранного диктора */
:root.night .page-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root.night .tool-card-main {
  background: transparent; border-color: transparent; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center; color: #9A8E84;
}
:root.night .tool-card-main h2, :root.night .phase { color: #B5A99F; }
:root.night .breath-svg .circle-line, :root.night .breath-svg .track { stroke: #4D5844; }
:root.night .breath-svg .circle-fill { fill: #4D5844; }
:root.night .breath-svg .dot, :root.night .breath-svg .trail { fill: #8A5E4A; stroke: #8A5E4A; }
:root.night .btn { background: #3A2E28; border-color: #3A2E28; color: #B5A99F; }
:root.night .btn.secondary { background: transparent; border-color: #4D5844; }
:root.night .rating button { background: transparent; border-color: #3A332E; color: #9A8E84; }
:root.night .rating button[aria-pressed="true"] { background: #4D5844; color: #D5CCC4; }

/* ---------- Блоки после инструмента ---------- */
.after-tool { margin-top: 16px; }
.next-step { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.article { max-width: 760px; margin-top: 40px; }
.article > section { margin-top: 36px; }
.article > section:first-child { margin-top: 0; }
.article p, .article li { font-size: 1rem; }
.article p + p, .article p + ul, .article ul + p, .article p + ol, .article ol + p { margin-top: 10px; }
.article ul, .article ol { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }
.article h3 { margin-top: 20px; }
.warn { border-left: 4px solid var(--coral); padding: 14px 16px; background: var(--card); border-radius: 0 12px 12px 0; margin-top: 12px; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; list-style-position: outside; padding: 8px 0; }
.faq details p { margin-top: 8px; color: var(--muted); }
.sources ol { color: var(--muted); font-size: .9rem; }
.sources a { word-break: break-word; }
.author-box { display: flex; gap: 14px; align-items: flex-start; }
.author-box .mark { flex: none; }
.disclaimer { color: var(--muted); font-size: .9rem; margin-top: 10px; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.site-footer nav a { display: inline-block; padding: 6px 0; }

/* ---------- Простые страницы ---------- */
.text-page { max-width: 760px; }
.text-page .grid { display: grid; gap: 16px; margin-top: 24px; }
.text-page section + section { margin-top: 28px; }
.text-page p + p, .text-page p + ul, .text-page ul + p { margin-top: 10px; }
.text-page ul { padding-left: 22px; display: grid; gap: 6px; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 520px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12); display: flex; gap: 12px; align-items: center; font-size: .88rem;
}
.cookie[hidden] { display: none; }
.cookie-btns { display: flex; gap: 8px; flex: none; }
.cookie .btn { min-height: 40px; padding: 8px 16px; }
@media (max-width: 520px) { .cookie { flex-direction: column; align-items: stretch; gap: 8px; left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; font-size: .82rem; } .cookie-btns .btn { flex: 1; min-height: 40px; padding: 6px 12px; } }

/* ---------- Колесо эмоций ---------- */
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.wheel-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.wheel-side .card + .card { margin-top: 0; }
.wheel-svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }
.wheel-svg .sector { cursor: pointer; outline: none; }
.wheel-svg .sector path { stroke: var(--card); stroke-width: 2; transition: opacity .15s; }
.wheel-svg .sector:hover path, .wheel-svg .sector:focus-visible path { opacity: .82; }
.wheel-svg .sector:focus-visible path { stroke: var(--text); stroke-width: 5; stroke-dasharray: 8 4; }
.wheel-svg .sector.is-group path { opacity: .92; }
.wheel-svg .sector.is-selected path { stroke: var(--text); stroke-width: 4; }
.wheel-svg .ring-label { font: 600 15px var(--font); fill: #2A2520; pointer-events: none; }
.wheel-svg .ring-label.minor { font-size: 13.5px; font-weight: 550; }
.wheel-svg .wheel-hub { fill: var(--card); stroke: var(--border); }
.wheel-svg .hub-label { font: 600 14px var(--font); fill: var(--muted); }
.wheel-legend { text-align: center; margin-top: 8px; }
.dyads-title { margin-top: 18px; }
.dyads { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 999px;
  padding: 8px 14px; min-height: 40px; cursor: pointer; font-size: .9rem;
}
.chip:hover { border-color: var(--olive); }
.chip[aria-pressed="true"] { background: var(--olive-fill); border-color: var(--olive-fill); color: var(--on-accent); }
.emo-word { font-size: 1.6rem; margin: 6px 0 10px; }
.emo-card h3 { margin-top: 14px; margin-bottom: 4px; font-size: .95rem; }
.levels button { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 6px 12px; height: auto; min-height: 44px; }
.levels .lvl { font-size: .75rem; font-weight: 500; opacity: .9; }
.levels [aria-pressed="true"] .lvl { opacity: 1; }
.emo-help { list-style: none; display: grid; gap: 6px; margin: 12px 0 0; }
.emo-card .btn { margin-top: 16px; width: 100%; }
.mine-list { list-style: none; display: grid; gap: 10px; margin: 6px 0 0; }
.mine-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mine-word { font-weight: 650; min-width: 110px; }
.strength { margin: 0; }
.strength button { min-width: 38px; height: 34px; }
.copy-fallback { width: 100%; min-height: 90px; margin-top: 10px; font: inherit; padding: 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }

/* ---------- Таблица чувств ---------- */
.feel-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.feel-search {
  flex: 1 1 260px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font: inherit;
}
.feel-table { display: grid; gap: 10px; margin-top: 8px; }
.feel-head, .feel-row { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)); gap: 10px; }
.feel-head span { color: var(--muted); font-size: .85rem; padding: 0 12px; }
.feel-row { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; align-items: start; }
.feel-group { font-size: 1rem; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--c1, var(--active)); color: #2A2520; align-self: start; }
.feel-mixed .feel-group { color: var(--text); }
.feel-cell { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 10px; min-height: 44px; }
.feel-cell.lvl0 { background: color-mix(in srgb, var(--c0) 45%, transparent); }
.feel-cell.lvl1 { background: color-mix(in srgb, var(--c1) 45%, transparent); }
.feel-cell.lvl2 { background: color-mix(in srgb, var(--c2) 45%, transparent); }
.feel-cell.wide { grid-column: 2 / -1; background: var(--active); }
.feel-cell a, .feel-cell span[data-word] {
  display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--card); color: var(--text);
  text-decoration: none; font-size: .92rem; border: 1px solid transparent;
}
.feel-cell a:hover { border-color: var(--olive); color: var(--text); }
.feel-cell .is-hit { border-color: var(--coral); background: var(--coral); color: var(--on-coral); }
.feel-row[hidden] { display: none; }
.feel-cell::before { content: attr(data-lvl); display: none; width: 100%; font-size: .75rem; color: var(--muted); }
.print-only { display: none; }

@media print {
  @page { size: A4; margin: 12mm; }
  :root, :root[data-theme="dark"] { --bg: #fff; --card: #fff; --text: #222; --muted: #555; --border: #ccc; --active: #f2f2f2; }
  body { font-size: 11pt; }
  .site-header, .site-footer, .no-print, .back, .trust, .cookie { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .feel-head span { padding: 0 8px; font-size: 9pt; }
  .page { max-width: none; padding: 0; }
  .page-head .lead { font-size: 10pt; }
  .feel-row { break-inside: avoid; padding: 6px; border-radius: 6px; }
  .feel-row[hidden] { display: grid !important; }
  .feel-cell::before { display: none !important; }
  .feel-cell a, .feel-cell span[data-word] { padding: 1px 6px; font-size: 9.5pt; }
  .print-only { display: block; margin-top: 8px; }
  body:has([data-plan]) .plan-form,
  body:has([data-plan]) .article > section:not(#plan),
  body:has([data-plan]) .page-head .lead,
  body:has([data-plan]) .author-box,
  body:has([data-plan]) #plan > p,
  body:has([data-plan]) #plan > h2 { display: none !important; }
}

/* ---------- Отложенное беспокойство ---------- */
.worry-input, .worry-step-input {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); color: var(--text);
}
.worry-input { min-height: 130px; resize: vertical; }
.worry-step-input { margin-top: 8px; min-height: 44px; }
.worry-list { list-style: none; display: grid; gap: 14px; }
.worry-list li { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.worry-text { font-weight: 600; margin-bottom: 4px; }
.worry-list .settings-btns { margin-top: 4px; }
.worry-result { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.worry-sum { padding-left: 20px; display: grid; gap: 4px; margin-bottom: 10px; }

/* ---------- Сканирование тела ---------- */
.scan { text-align: center; padding: 8px 0; }
.scan .step-title { font-size: 1.6rem; margin: 6px 0 10px; }
.scan-text { font-size: 1.08rem; line-height: 1.55; max-width: 34em; margin: 0 auto 16px; min-height: 5em; }
.scan-bar { height: 6px; border-radius: 3px; background: var(--active); overflow: hidden; max-width: 360px; margin: 0 auto; }
.scan-bar i { display: block; height: 100%; width: 0; background: var(--olive); transition: width .25s linear; }
.scan .btn-row { justify-content: center; align-items: center; }
:root.night .scan-text { color: #b9b2a8; }
:root.night .scan-bar { background: #2a2622; }
:root.night .scan-bar i { background: #6f7d61; }

/* ---------- Как быстро успокоиться ---------- */
.situations { display: grid; gap: 22px; }
.situation { scroll-margin-top: 80px; }
.situation .h3 { font-size: 1.15rem; margin-bottom: 4px; }
.situation > p { margin-bottom: 10px; max-width: 70ch; }
.situation .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .situation .tools { grid-template-columns: 1fr; } }

/* ---------- Я-высказывания ---------- */
.imsg { margin-bottom: 28px; }
.imsg-part { margin-bottom: 16px; }
.imsg-part > label, .imsg-label { display: block; margin-bottom: 4px; }
.imsg-part .muted { font-size: .88rem; }
.imsg-out { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--active); }
.imsg-phrase { font-size: 1.1rem; line-height: 1.5; font-weight: 500; }
.imsg-phrase.is-empty { color: var(--muted); font-weight: 400; font-size: 1rem; }
.imsg-warn { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.imsg-warn li { border-left: 3px solid var(--coral); padding-left: 10px; font-size: .92rem; }

/* ---------- Когнитивные искажения ---------- */
.dist-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.dist-toc a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; text-decoration: none; color: var(--text); background: var(--card); }
.dist-toc a:hover { border-color: var(--olive); }
.dist-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.dist-list .card + .card { margin-top: 0; }
.dist { scroll-margin-top: 80px; }
.dist h2 .muted { font-weight: 500; }
.dist p { margin-bottom: 8px; }
.dist-ex { font-style: italic; }
.dist-q { border-left: 3px solid var(--olive); padding-left: 10px; }
.dist:target { border-color: var(--olive); box-shadow: 0 0 0 2px var(--olive); }
@media (max-width: 720px) { .dist-list { grid-template-columns: 1fr; } }

/* ---------- Записи мыслей ---------- */
.rec-field { display: block; margin-top: 10px; }
.rec-field .h3 { display: block; margin-bottom: 4px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.rec-chips { margin-bottom: 8px; }
.rec-q { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0; font-size: .95rem; }
.record .btn-row { flex-direction: row; }
.record [data-rec-back][hidden] { display: none; }
.rec-sum { display: grid; gap: 4px; margin: 6px 0 12px; }
.rec-sum dt { font-weight: 650; margin-top: 8px; }
.rec-sum dd { margin: 0; white-space: pre-wrap; }
@media print {
  html.print-extra body * { visibility: hidden; }
  html.print-extra [data-result-extra], html.print-extra [data-result-extra] * { visibility: visible; }
  html.print-extra [data-result-extra] { position: absolute; left: 0; top: 0; width: 100%; }
}

/* ---------- Навигатор «к кому идти» ---------- */
.navigator { margin-bottom: 28px; }
.nav-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nav-group { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 0; }
.nav-group legend { font-weight: 650; padding: 0 4px; }
.nav-group label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; line-height: 1.35; cursor: pointer; }
.nav-group input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--olive); }
.nav-result { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--active); }
.nav-result p { margin-bottom: 8px; }
.nav-result[data-level="3"], .nav-result[data-level="4"] { border-left: 4px solid var(--coral); }
.compare { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 8px 0 4px; }
.compare th, .compare td { border: 1px solid var(--border); padding: 9px 10px; text-align: left; vertical-align: top; }
.compare thead th { background: var(--active); font-size: .85rem; }
.compare tbody th { font-weight: 650; }
@media (max-width: 900px) { .nav-groups { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tr { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--card); }
  .compare tbody th, .compare td { border: 0; padding: 4px 0; }
  .compare tbody th { font-size: 1.05rem; padding-bottom: 6px; }
  .compare td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}

/* ---------- Тест GAD-7 ---------- */
.quiz-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.quiz-side { display: grid; gap: 16px; }
.quiz-q { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 0 0 12px; }
.quiz-q legend { padding: 0 4px; font-weight: 600; line-height: 1.35; float: left; width: 100%; margin-bottom: 8px; }
.quiz-q.is-missing { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.quiz-n { color: var(--muted); }
.quiz-opts { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quiz-opts label { position: relative; display: block; cursor: pointer; }
.quiz-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-opts span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; height: 100%;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; line-height: 1.2; background: var(--card);
}
.quiz-opts input:checked + span { background: var(--olive-fill); border-color: var(--olive-fill); color: var(--on-accent); font-weight: 600; }
.quiz-opts input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.quiz-alert { border: 1px solid var(--coral); border-radius: 12px; padding: 12px 14px; margin: -4px 0 12px; background: var(--card); }
.quiz-alert h3 { font-size: 1rem; margin-bottom: 6px; }
.quiz-alert p { margin-bottom: 8px; }
.quiz-result .quiz-alert { margin: 0 0 14px; }
.quiz-q-extra legend .muted { font-weight: 400; font-size: .88rem; }
.quiz-extra { list-style: none; margin-left: -20px; color: var(--muted); }
.quiz-progress { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.quiz-score { font-size: 2.4rem; font-weight: 700; line-height: 1.1; margin: 4px 0; }
.quiz-score .muted { font-size: 1.1rem; font-weight: 500; }
.quiz-band { font-size: 1.15rem; font-weight: 650; margin-bottom: 12px; }
.quiz-band[data-band="moderate"], .quiz-band[data-band="modsevere"], .quiz-band[data-band="severe"] { color: var(--coral-text); }
.quiz-scale { position: relative; display: flex; gap: 3px; margin: 6px 0 26px; height: 12px; }
.quiz-scale .seg { position: relative; border-radius: 6px; }
.quiz-scale .seg i { position: absolute; top: 15px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .75rem; color: var(--muted); }
.seg-min { background: #C9D3BE; }
.seg-mild { background: #E3D7A8; }
.seg-moderate { background: #EBC0A4; }
.seg-modsevere { background: #E2A383; }
.seg-severe { background: #D9876A; }
.quiz-marker { position: absolute; top: -5px; width: 4px; height: 22px; margin-left: -2px; border-radius: 2px; background: var(--text); }
.quiz-text p { margin-bottom: 10px; }
.quiz-sos { border-left: 3px solid var(--coral); padding-left: 10px; margin: 12px 0; }
.quiz-answers { margin: 12px 0; }
.quiz-answers summary { cursor: pointer; font-weight: 600; }
.quiz-answers ol { padding-left: 20px; margin-top: 8px; display: grid; gap: 4px; font-size: .92rem; }
@media (max-width: 900px) { .quiz-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .quiz-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print {
  body:has([data-quiz]) .article,
  body:has([data-quiz]) .page-head .lead,
  body:has([data-quiz]) .quiz-sos { display: none !important; }
  .quiz-wrap { display: block; }
  .quiz-scale .seg, .quiz-marker { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .quiz-answers ol { font-size: 10pt; }
}

/* ---------- Поведенческая активация ---------- */
.act-group { margin-bottom: 14px; }
.act-group .settings-btns button { text-align: left; }
.act-group .h3 { margin-bottom: 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.act-own { display: block; margin-top: 4px; }
.act-own .h3 { display: block; margin-bottom: 0; color: var(--muted); font-weight: 600; font-size: .9rem; }
.act-timer { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.act-clock { font-size: 1.6rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.act-plan-row { display: grid; grid-template-columns: 1fr 34%; gap: 8px; }
.act-plan-row .worry-step-input { margin-top: 8px; }

/* ---------- Дневник сна ---------- */
.table-scroll { overflow-x: auto; margin: 8px 0 14px; -webkit-overflow-scrolling: touch; }
.diary { border-collapse: collapse; min-width: 640px; width: 100%; font-size: .9rem; }
.diary th, .diary td { border: 1px solid var(--border); padding: 8px 6px; text-align: left; vertical-align: top; }
.diary th { font-weight: 600; background: var(--active); font-size: .82rem; line-height: 1.25; }
.diary td { height: 40px; }
.diary td:first-child { font-weight: 600; width: 44px; }
@media print {
  html.print-diary body * { visibility: hidden; }
  html.print-diary [data-diary], html.print-diary [data-diary] * { visibility: visible; }
  html.print-diary [data-diary] { position: absolute; left: 0; top: 0; width: 100%; }
  html.print-diary [data-diary] .no-print { display: none !important; }
  .diary { min-width: 0; font-size: 9.5pt; }
  .diary td { height: 16mm; }
}

/* ---------- Если совсем плохо ---------- */
.crisis-big { margin-bottom: 8px; }
.crisis-big h2 { font-size: 1.25rem; margin-bottom: 12px; }
.crisis-big li { font-size: 1rem; }
.crisis-big a { font-size: 1.15rem; }
.crisis-more { margin-top: 10px; font-size: .9rem; }
.crisis-more a { font-weight: 600; white-space: normal; }
.plan-form { display: grid; gap: 18px; margin-top: 16px; }
.plan-field label { font-weight: 650; display: flex; align-items: baseline; gap: 8px; }
.plan-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--olive-fill); color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: .85rem;
}
.plan-field p { margin: 4px 0 6px 34px; }
.plan-field textarea {
  width: 100%; min-height: 76px; font: inherit; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); resize: vertical;
}
.plan-print h3 { font-size: 11pt; margin: 10px 0 2px; }
.plan-print-value { min-height: 18mm; border-bottom: 1px solid #ccc; white-space: pre-wrap; }

/* ---------- Узкие экраны ---------- */
@media (max-width: 900px) {
  .practice { grid-template-columns: 1fr; }
  .wheel-layout { grid-template-columns: 1fr; }
  .wheel-side { position: static; }
  .catalog { grid-template-columns: 1fr; gap: 16px; }
  .cats { flex-direction: row; overflow-x: auto; position: static; gap: 6px; padding: 2px 2px 6px; scrollbar-width: none; }
  .cats a { white-space: nowrap; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 24px; margin-top: 8px; }
  .hero h1 { font-size: 2rem; }
  .plant { width: 220px; }
}
@media (max-width: 720px) {
  .page { padding: 0 14px 40px; }
  /* На телефоне шапка не прилипает: экран нужнее упражнению */
  .site-header { margin-bottom: 16px; padding: 10px 0 2px; position: static; gap: 4px 12px; }
  .header-side { display: contents; }
  .site-nav { order: 3; width: 100%; gap: 0 18px; flex-wrap: nowrap; }
  .site-nav a { padding: 9px 0; white-space: nowrap; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .theme-btn { order: 2; }
  h1 { font-size: 1.7rem; }
  .card { padding: 16px; }
  .tool-card-main { min-height: 0; }
  .state .btn-start, .stage .btn { width: 100%; }
  .rating { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .rating button { height: 46px; }
  .article { margin-top: 28px; }
  .wheel-card { padding: 10px; }
  .wheel-svg .ring-label { font-size: 18px; }
  .wheel-svg .ring-label.minor { font-size: 14px; }
  .wheel-svg .hub-label { font-size: 17px; }
  .feel-head { display: none; }
  .feel-row { grid-template-columns: 1fr; gap: 6px; }
  .feel-cell.wide { grid-column: auto; }
  .feel-cell::before { display: block; }
}

/* ================= Оформление в духе InnerLeaf (проба) ================= */
h1, h2, h3, .h3, .logo, .tool-card h3, .result-line, .quiz-score, .step-title, .phase { font-family: var(--serif); }
h1 { font-weight: 450; font-size: 2.5rem; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-weight: 500; font-size: 1.45rem; letter-spacing: -0.01em; }
h3, .h3 { font-weight: 550; }
h1 em, h2 em, .accent-word { font-style: italic; color: var(--olive-strong); font-weight: 400; }
.lead { color: var(--muted); }

/* Подпись с точкой и линией перед текстом */
.kicker { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive-fill); flex: none; }
.kicker::after { content: ""; order: -1; display: none; }
.kicker .ln { width: 44px; height: 1px; background: var(--olive); flex: none; }

/* Иконки */
.ic { width: 1.25em; height: 1.25em; stroke-width: 1.6; flex: none; vertical-align: -0.2em; }

/* Шапка */
.site-header { border-bottom-color: var(--border); }
.logo { font-weight: 550; font-size: 1.2rem; }
.logo .ic { color: var(--olive-fill); width: 22px; height: 22px; }

/* Карточки: мягкий зелёный блок без рамки */
.card { border-color: transparent; background: var(--card); }
.tool-card { border-color: transparent; background: var(--card); transition: background-color .2s, transform .2s; }
.tool-card:hover { background: var(--active); transform: none; }
.tool-card .icon { color: var(--olive-fill); }
.tool-card.soon { border: 1px dashed var(--border); background: transparent; }

/* Кнопки: прямоугольные, как в референсе */
.btn { border-radius: 8px; font-weight: 550; }
.btn.secondary { border-color: var(--text); }
.btn.secondary:hover { background: var(--active); }

/* Предупреждения и срочная помощь – тёплым, а не зелёным */
.crisis { background: var(--warm); border-color: transparent; }
.crisis h2, .crisis h3 { color: var(--warm-text); }
.quiz-alert { border-color: transparent; background: var(--warm); }
.quiz-alert h2, .quiz-alert h3 { color: var(--warm-text); }
.quiz-q.is-missing { border-color: var(--coral-text); box-shadow: 0 0 0 1px var(--coral-text); }
.quiz-sos { border-left-color: var(--coral-text); }

/* Шкала оценки */
.rating button { border-radius: 8px; }

/* ---------- Главная ---------- */
.home-v2 { display: grid; gap: 0; }
.hero2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center;
  background: var(--hero); border-radius: 24px; padding: 44px 44px 36px; margin-bottom: 40px; }
.hero2 h1 { font-size: 3rem; margin-bottom: 14px; }
.hero2 .lead { font-size: 1.1rem; margin-bottom: 22px; max-width: 460px; }
.hero2 .btn .ic { margin-left: 6px; }
.hero2-art { justify-self: center; width: min(320px, 100%); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; }
.facts b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.facts span { color: var(--muted); font-size: .85rem; }

.sec { margin-bottom: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-size: .92rem; white-space: nowrap; }

/* Список-строки вместо карточек */
.rows { list-style: none; border-top: 1px solid var(--border); }
.rows li { border-bottom: 1px solid var(--border); }
.rows a { display: flex; align-items: center; gap: 14px; padding: 15px 4px; color: var(--text); text-decoration: none; }
.rows a:hover { background: var(--card); }
.rows .r-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--card); display: inline-flex; align-items: center; justify-content: center; color: var(--olive-fill); flex: none; }
.rows .r-ic .ic { width: 20px; height: 20px; }
.rows .r-t { flex: 1; min-width: 0; }
.rows .r-t b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.rows .r-t > span { color: var(--muted); font-size: .88rem; }
.rows .r-go { color: var(--olive-strong); }
.rows a:hover .r-go { transform: translateX(3px); transition: transform .2s; }

.sos2 { display: flex; align-items: center; gap: 14px; background: var(--warm); color: var(--warm-text); border-radius: 14px; padding: 14px 16px; margin-top: 14px; text-decoration: none; }
.sos2:hover { color: var(--warm-text); filter: brightness(.98); }
.sos2 b { display: block; font-weight: 600; }
.sos2 span { font-size: .88rem; }
.sos2 .ic { width: 24px; height: 24px; }

.duo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.duo a { display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: 14px; padding: 18px; color: var(--text); text-decoration: none; min-height: 150px; }
.duo a:hover { background: var(--active); }
.duo .meta { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.duo b { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.duo .more { margin-top: auto; font-size: .9rem; color: var(--olive-strong); display: inline-flex; align-items: center; gap: 6px; }

.author2 { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: .92rem; }
.author2 .av { width: 44px; height: 44px; border-radius: 50%; background: var(--card); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.2rem; color: var(--olive-strong); flex: none; }

/* Растение: линейный рисунок, который «дышит» */
.plant2 { width: 100%; height: auto; overflow: visible; }
.plant2 .stem { fill: none; stroke: var(--olive-fill); stroke-width: 1.6; stroke-linecap: round; }
.plant2 .leaf path:first-child { fill: var(--leaf-fill, #E3EEDF); stroke: var(--olive-fill); stroke-width: 1.4; }
.plant2 .leaf path + path { fill: none; stroke: var(--olive-fill); stroke-width: 1; opacity: .7; }
.plant2 .pot { fill: none; stroke: var(--text); stroke-width: 1.4; }
.plant2 .soil { fill: var(--card); }
:root[data-theme="dark"] .plant2 { --leaf-fill: #1E2D20; }
.plant2 .leaf { transform-box: fill-box; transform-origin: 0% 50%; animation: sway 7s ease-in-out infinite; }
.plant2 .leaf:nth-of-type(2n) { animation-delay: -2.3s; animation-duration: 8s; }
.plant2 .leaf:nth-of-type(3n) { animation-delay: -4.1s; }
.plant2 .crown { transform-origin: 160px 330px; animation: breathe 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 3deg; } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }
@media (prefers-reduced-motion: reduce) { .plant2 .leaf, .plant2 .crown { animation: none; } }

@media (max-width: 720px) {
  .hero2 { grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; padding: 22px 18px 22px; border-radius: 18px; margin-bottom: 28px; align-items: start; }
  .hero2 h1 { font-size: 2rem; }
  .hero2 .lead { font-size: 1rem; margin-bottom: 18px; grid-column: 1 / -1; }
  .hero2-text { display: contents; }
  .hero2 .kicker { grid-column: 1 / -1; margin-bottom: 0; }
  .hero2 .h1-wrap { grid-column: 1; }
  .hero2-art { grid-column: 2; grid-row: 2; width: 104px; align-self: end; }
  .hero2 .cta { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; margin-top: 18px; gap: 6px 22px; }
  .duo { grid-template-columns: 1fr; }
  .duo a { min-height: 0; }
  .sec { margin-bottom: 30px; }
}

/* ---------- Практика ---------- */
.tool-card-main { background: var(--bg); border: 1px solid var(--border); }
.tool-card-main .stage { border-radius: 18px; padding: 18px 10px 20px; background: var(--card); transition: background-color var(--phase-dur, 1s) ease-in-out; }
.tool-card-main[data-breath="in"] .stage { background: var(--breath-in, #E4F0E0); }
.tool-card-main[data-breath="hold"] .stage { background: var(--breath-hold, #EDF3EA); }
.tool-card-main[data-breath="out"] .stage { background: var(--breath-out, #F6F1E7); }
:root[data-theme="dark"] .tool-card-main { --breath-in: #1D2E20; --breath-hold: #19241B; --breath-out: #241F18; }
.breath-svg .track, .breath-svg .circle-line { stroke: var(--olive); }
.breath-svg .trail, .breath-svg .dot { stroke: var(--olive-fill); fill: none; }
.breath-svg .dot { fill: var(--olive-fill); }
.breath-svg .circle-fill { fill: var(--olive-fill); opacity: .16; }
.breath-svg .count { font-family: var(--serif); font-weight: 500; fill: var(--text); }
.phase { font-weight: 500; font-size: 1.5rem; }
.cue-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cue-btns button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 7px 14px; min-height: 40px; cursor: pointer; font-size: .88rem; color: var(--muted); }
.cue-btns button[aria-pressed="true"] { border-color: var(--olive-fill); color: var(--olive-strong); background: var(--active); }
.cue-btns button[hidden] { display: none; }
.how ol { color: var(--text); }
/* Ночной режим: панель упражнения без светлого фона */
:root.night .tool-card-main, :root.night .tool-card-main .stage, :root.night .tool-card-main[data-breath] .stage { background: transparent; border-color: transparent; transition: none; }
:root.night .cue-btns button { background: transparent; border-color: #2A2622; color: #8C8178; }

/* ================= Проба: переключатель стилей ================= */
.skin-switch { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 4px;
  background: #141A14; color: #fff; border-radius: 999px; padding: 5px 6px 5px 14px; font: 500 13px/1 var(--font); box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.skin-switch button { border: 0; background: transparent; color: #fff; border-radius: 999px; padding: 8px 11px; cursor: pointer; font: inherit; }
.skin-switch button[aria-pressed="true"] { background: #fff; color: #141A14; }
body:has(.skin-switch) { padding-bottom: 60px; }

/* ================= Стиль InMind: шоколад, жёлтый, сливки ================= */
:root[data-skin="inmind"] {
  --bg: #FFF8E6; --card: #FBEFC9; --text: #3B1A0C; --muted: #6E4630;
  --olive: #D9B98A; --olive-strong: #8A2E10; --olive-fill: #5A200C;
  --coral: #5A200C; --coral-strong: #3E1507; --on-coral: #FCE58A; --coral-text: #A23D1E;
  --border: #EBD9B0; --active: #F6E3AE; --on-accent: #FCE58A;
  --warm: #5A200C; --warm-text: #FCE58A; --leaf-fill: #FCE58A;
  --breath-in: #FCE58A; --breath-hold: #FBEFC9; --breath-out: #F3D2B0;
}
:root[data-skin="inmind"][data-theme="dark"] {
  --bg: #2A1208; --card: #3A1B0D; --text: #FBEBC4; --muted: #E2C69A;
  --olive: #8A5A36; --olive-strong: #FCE58A; --olive-fill: #FCE58A;
  --coral: #FCE58A; --coral-strong: #FFF0A8; --on-coral: #3B1A0C; --coral-text: #F7B08E;
  --border: #4E2A16; --active: #47240F; --on-accent: #3B1A0C;
  --warm: #FCE58A; --warm-text: #3B1A0C; --leaf-fill: #5A2A10;
  --breath-in: #4A2611; --breath-hold: #3A1B0D; --breath-out: #331509;
}
[data-skin="inmind"] h1 { font-weight: 600; letter-spacing: -0.025em; }
[data-skin="inmind"] h2 { font-weight: 600; }
[data-skin="inmind"] h1 em, [data-skin="inmind"] h2 em { color: var(--olive-strong); }
[data-skin="inmind"] .hero2 { background: #5A200C; color: #FBEBC4; }
[data-skin="inmind"] .hero2 h1 { color: #FCE58A; }
[data-skin="inmind"] .hero2 h1 em { color: #FFF8E6; }
[data-skin="inmind"] .hero2 .lead, [data-skin="inmind"] .hero2 .kicker, [data-skin="inmind"] .hero2 .facts span { color: #F0D6A8; }
[data-skin="inmind"] .hero2 .kicker::before { background: #FCE58A; }
[data-skin="inmind"] .hero2 .kicker .ln { background: #B97A55; }
[data-skin="inmind"] .hero2 .btn { background: #FCE58A; border-color: #FCE58A; color: #3B1A0C; border-radius: 999px; }
[data-skin="inmind"] .hero2 .plant2 { --olive-fill: #FCE58A; --text: #FCE58A; --card: #7A3418; --leaf-fill: #6E2A10; }
[data-skin="inmind"] .btn { border-radius: 999px; }
[data-skin="inmind"] .btn.secondary { border-color: var(--olive-fill); }
/* ситуации – таблетки, как «Grow / Connect» */
[data-skin="inmind"] .home-now .rows { display: flex; flex-wrap: wrap; gap: 10px; border: 0; }
[data-skin="inmind"] .home-now .rows li { border: 0; }
[data-skin="inmind"] .home-now .rows a { border: 1px solid var(--olive); border-radius: 999px; padding: 10px 18px 10px 10px; gap: 10px; }
[data-skin="inmind"] .home-now .rows li:first-child a { background: #FCE58A; border-color: #FCE58A; color: #3B1A0C; }
[data-skin="inmind"] .home-now .rows .r-t > span, [data-skin="inmind"] .home-now .rows .r-go { display: none; }
[data-skin="inmind"] .home-now .rows .r-ic { width: 32px; height: 32px; background: var(--bg); }
[data-skin="inmind"] .rows .r-ic { background: var(--active); color: var(--olive-strong); }
[data-skin="inmind"] .duo a { background: #FCE58A; color: #3B1A0C; }
[data-skin="inmind"] .duo a:nth-child(2) { background: #F3D2B0; }
[data-skin="inmind"] .duo a:nth-child(3) { background: #5A200C; color: #FCE58A; }
[data-skin="inmind"] .duo a:nth-child(3) .meta, [data-skin="inmind"] .duo a:nth-child(3) .more { color: #F0D6A8; }
[data-skin="inmind"] .duo .meta { color: #6E4630; }
[data-skin="inmind"] .duo .more { color: #5A200C; border: 1px solid currentColor; border-radius: 999px; padding: 5px 12px; align-self: flex-start; }
[data-skin="inmind"] .sos2 .ic { color: inherit; }
[data-skin="inmind"] .tool-card-main { border-color: var(--border); }
[data-skin="inmind"] .rating button { border-radius: 999px; }
[data-skin="inmind"][data-theme="dark"] .hero2 { background: #3A1B0D; }

/* ================= Стиль Olivia: пастельные плитки с тёмной обводкой ================= */
:root[data-skin="olivia"] {
  --bg: #EEF3FA; --card: #FFFFFF; --text: #15171C; --muted: #3E434D;
  --olive: #15171C; --olive-strong: #3A3F9E; --olive-fill: #15171C;
  --coral: #15171C; --coral-strong: #2C303A; --on-coral: #FFFFFF; --coral-text: #A32D2D;
  --border: #15171C; --active: #E2E8F3; --on-accent: #FFFFFF;
  --warm: #FBD3D3; --warm-text: #5A1414; --leaf-fill: #B6E9F5;
  --serif: "Onest", system-ui, sans-serif;
  --breath-in: #B6E9F5; --breath-hold: #C4CBF5; --breath-out: #F4B6EA;
  --hero: #FFFFFF;
}
:root[data-skin="olivia"][data-theme="dark"] {
  --bg: #12141B; --card: #1C1F29; --text: #EEF1F7; --muted: #B4BAC6;
  --olive: #EEF1F7; --olive-strong: #AFB6FF; --olive-fill: #EEF1F7;
  --coral: #EEF1F7; --coral-strong: #FFFFFF; --on-coral: #12141B; --coral-text: #F59B9B;
  --border: #C9CFDA; --active: #262A36; --on-accent: #12141B;
  --warm: #3A1E22; --warm-text: #F7C6C6; --leaf-fill: #2A3A55;
  --breath-in: #1E3A44; --breath-hold: #262C4A; --breath-out: #40223C; --hero: #1C1F29;
}
[data-skin="olivia"] h1, [data-skin="olivia"] h2, [data-skin="olivia"] .rows .r-t b, [data-skin="olivia"] .duo b { font-weight: 400; letter-spacing: -0.02em; }
[data-skin="olivia"] h3, [data-skin="olivia"] .h3 { font-weight: 500; }
[data-skin="olivia"] h1 em, [data-skin="olivia"] h2 em { font-style: normal; font-weight: 600; color: var(--text); }
[data-skin="olivia"] .hero2 { border: 1.5px solid var(--border); }
[data-skin="olivia"] .btn { border-radius: 999px; }
[data-skin="olivia"] .card, [data-skin="olivia"] .tool-card-main, [data-skin="olivia"] .tool-card { border: 1.5px solid var(--border); border-radius: 18px; }
[data-skin="olivia"] .tool-card-main .stage { border: 1.5px solid var(--border); }
/* ситуации – пастельные плитки */
[data-skin="olivia"] .rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; }
[data-skin="olivia"] .rows li { border: 0; }
[data-skin="olivia"] .rows a { flex-direction: column; align-items: flex-start; gap: 14px; border: 1.5px solid var(--border); border-radius: 18px; padding: 16px; height: 100%; color: #15171C; background: #F4B6EA; }
[data-skin="olivia"] .rows li:nth-child(6n+2) a { background: #C4CBF5; }
[data-skin="olivia"] .rows li:nth-child(6n+3) a { background: #B6E9F5; }
[data-skin="olivia"] .rows li:nth-child(6n+4) a { background: #FBDF7E; }
[data-skin="olivia"] .rows li:nth-child(6n+5) a { background: #C9EFA8; }
[data-skin="olivia"] .rows li:nth-child(6n) a { background: #FFD1B3; }
[data-skin="olivia"] .rows a:hover { filter: brightness(1.03); background-image: none; }
[data-skin="olivia"] .rows .r-ic { background: #FFFFFF; color: #15171C; }
[data-skin="olivia"] .rows .r-t > span { color: #2C303A; }
[data-skin="olivia"] .rows .r-go { display: none; }
[data-skin="olivia"] .duo a { border: 1.5px solid var(--border); background: var(--card); }
[data-skin="olivia"] .sos2 { border: 1.5px solid var(--border); }
[data-skin="olivia"] .rating button { border: 1.5px solid var(--border); border-radius: 12px; }
[data-skin="olivia"] .cue-btns button { border: 1.5px solid var(--border); color: var(--text); }
[data-skin="olivia"] .plant2 .leaf path:first-child { stroke: #15171C; }
[data-skin="olivia"] .plant2 .stem, [data-skin="olivia"] .plant2 .pot { stroke: #15171C; }
[data-skin="olivia"][data-theme="dark"] .plant2 .leaf path:first-child, [data-skin="olivia"][data-theme="dark"] .plant2 .stem, [data-skin="olivia"][data-theme="dark"] .plant2 .pot { stroke: #EEF1F7; }
@media (max-width: 720px) {
  [data-skin="olivia"] .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  [data-skin="olivia"] .rows a { padding: 14px; gap: 10px; }
  [data-skin="olivia"] .rows .r-t b { font-size: 1.02rem; }
  [data-skin="inmind"] .home-now .rows a { padding: 8px 16px 8px 8px; }
}
[data-skin="olivia"] .breath-svg .track, [data-skin="olivia"] .breath-svg .circle-line { stroke: #B8C0D0; }
[data-skin="olivia"] .breath-svg .trail { stroke: #5A5FD6; }
[data-skin="olivia"] .breath-svg .dot { fill: #5A5FD6; stroke: #5A5FD6; }
[data-skin="olivia"][data-theme="dark"] .breath-svg .track, [data-skin="olivia"][data-theme="dark"] .breath-svg .circle-line { stroke: #3A4050; }
[data-skin="olivia"][data-theme="dark"] .breath-svg .trail { stroke: #AFB6FF; }
[data-skin="olivia"][data-theme="dark"] .breath-svg .dot { fill: #AFB6FF; stroke: #AFB6FF; }
/* Срочная помощь: весь текст блока – цветом блока, в любом стиле */
.crisis li, .crisis a, .crisis-more a, .crisis p { color: var(--warm-text); }
.crisis li { opacity: .92; }

/* ================= Сливочный: главная (прототип) ================= */
h1, h2 { font-weight: 600; letter-spacing: -0.02em; }
.h-brown { color: var(--brown); }
.tag { display: inline-block; border: 1px solid currentColor; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; margin-bottom: 14px; color: var(--text); }
.tag-light { color: #CFE3D6; border-color: #6E9A80; }
.btn { border-radius: 999px; }
.btn.secondary { border-color: var(--text); }

/* Слово «от руки» */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark svg { position: absolute; overflow: visible; pointer-events: none; }
.mark path { fill: none; stroke: var(--doodle); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out .35s forwards; }
.mark-circle svg { left: -10px; top: -6px; width: calc(100% + 20px); height: calc(100% + 12px); }
.mark-line svg { left: 0; bottom: -.18em; width: 100%; height: .4em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mark path { animation: none; stroke-dashoffset: 0; } }

.home3 { display: block; }
.h3-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; margin: 8px 0 48px; }
.h3-hero h1 { font-size: 3.1rem; line-height: 1.08; margin-bottom: 16px; }
.h3-hero .lead { font-size: 1.1rem; max-width: 470px; margin-bottom: 22px; }
.h3-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* Дышащая форма */
.breath-hero { position: relative; width: min(360px, 100%); aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.bh-blob { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bh-ring { fill: none; stroke: var(--olive); stroke-width: 1.2; stroke-dasharray: 3 6; }
.bh-shape { fill: var(--lime); transform-origin: 100px 100px; transform: scale(.72); transition: transform 6s ease-in-out, fill 1.2s; }
.breath-hero.is-in .bh-shape { transform: scale(.98); }
.breath-hero.is-guided .bh-shape { fill: var(--butter); }
.bh-label { position: relative; text-align: center; display: grid; gap: 2px; }
.bh-label b { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; color: var(--deep); }
.bh-label span { font-size: .88rem; color: var(--muted); }
:root[data-theme="dark"] .bh-label b { color: var(--text); }
.spark { position: absolute; width: 26px; height: 26px; fill: var(--doodle); }
.spark.s1 { top: 6%; right: 12%; animation: twinkle 3.2s ease-in-out infinite; }
.spark.s2 { bottom: 12%; left: 4%; width: 18px; height: 18px; fill: var(--olive-strong); animation: twinkle 4s ease-in-out -1.5s infinite; }
.squiggle { position: absolute; bottom: 2%; right: -2%; width: 90px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
@keyframes twinkle { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1.05; } }

/* Ситуации */
.sit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.sit { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 128px; padding: 18px 18px 46px; border-radius: 20px; color: var(--text); text-decoration: none; overflow: hidden; transition: transform .2s; }
.sit:hover { transform: translateY(-2px); color: var(--text); }
.sit b { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }
.sit span { font-size: .88rem; color: var(--muted); }
.sit .stk { position: absolute; right: 14px; bottom: 12px; width: 30px; height: 30px; stroke-width: 1.5; color: var(--brown); }
.c-butter { background: var(--butter); } .c-peach { background: var(--peach); } .c-sand { background: var(--sand); }
.c-lime { background: var(--lime); } .c-mint { background: var(--mint); }
.sit-night { background: var(--night); color: #EEF0FA; }
.sit-night:hover { color: #EEF0FA; }
.sit-night span { color: #C9CDE6; }
.sit-night .stk { color: #FCE7A2; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #FFF6D0; animation: twinkle 3s ease-in-out infinite; }
.stars i:nth-child(1) { top: 18%; left: 62%; } .stars i:nth-child(2) { top: 34%; left: 82%; animation-delay: -1s; }
.stars i:nth-child(3) { top: 60%; left: 70%; animation-delay: -2s; width: 2px; height: 2px; } .stars i:nth-child(4) { top: 12%; left: 88%; animation-delay: -.5s; }
.stars i:nth-child(5) { top: 48%; left: 92%; animation-delay: -2.4s; width: 2px; height: 2px; } .stars i:nth-child(6) { top: 26%; left: 48%; animation-delay: -1.7s; width: 2px; height: 2px; }

/* Тёмно-зелёная полоса во всю ширину */
.band { position: relative; background: var(--deep); color: var(--on-deep); box-shadow: 0 0 0 100vmax var(--deep); clip-path: inset(0 -100vmax); padding: 44px 0; margin: 8px 0 48px; }
.band h2 { color: var(--on-deep); font-size: 2rem; max-width: 620px; margin-bottom: 10px; }
.band .mark path { stroke: #FCE7A2; }
.band-text { color: #CFE3D6; margin-bottom: 18px; }
.band-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.band-btn { background: #FCE7A2; border-color: #FCE7A2; color: #2A1F18; }
.band-btn:hover { background: #FFF0B8; border-color: #FFF0B8; color: #2A1F18; }
.band-btn.ghost { background: transparent; color: var(--on-deep); border-color: #6E9A80; }
.band-btn .ic { margin-right: 6px; }
.band-link { color: #FCE7A2; display: inline-flex; align-items: center; gap: 6px; }
.band-link:hover { color: #FFF0B8; }

/* Пузыри чувств */
.feel .muted { margin-bottom: 14px; }
.feel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feel-chips button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 9px 16px; min-height: 42px; cursor: pointer; font-size: .95rem; }
.feel-chips button[aria-pressed="true"] { border-color: var(--text); background: var(--active); font-weight: 600; }
.feel-chips button[data-level="2"]::after { content: " ··"; } .feel-chips button[data-level="1"]::after { content: " ·"; } .feel-chips button[data-level="3"]::after { content: " ···"; }
.bubbles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; min-height: 0; transition: min-height .3s; margin: 14px 0 4px; }
.bubbles.has { min-height: 150px; }
.bubble { display: grid; place-items: center; border-radius: 50%; font-family: var(--serif); font-weight: 600; color: var(--text); text-align: center; padding: 6px; transition: width .35s, height .35s; animation: float 6s ease-in-out infinite; }
.bubble.lv1 { width: 86px; height: 86px; font-size: .72rem; } .bubble.lv2 { width: 104px; height: 104px; font-size: .9rem; } .bubble.lv3 { width: 136px; height: 136px; font-size: 1.05rem; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.feel-note { color: var(--muted); font-size: .92rem; }

/* Тесты */
.test-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tcard { display: flex; flex-direction: column; gap: 10px; min-height: 160px; padding: 18px; border-radius: 20px; color: var(--text); text-decoration: none; }
.tcard:hover { color: var(--text); filter: brightness(.98); }
.tcard .meta { font-size: .8rem; color: var(--muted); }
.tcard b { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.tcard .go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--text); border-radius: 999px; padding: 5px 12px; font-size: .88rem; }

/* Живые значки техник */
.live { position: relative; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--card); }
.live-square::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--olive-strong); border-radius: 3px; }
.live-square i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--doodle); top: 7px; left: 7px; animation: sq 8s linear infinite; }
@keyframes sq { 0% { translate: 0 0; } 25% { translate: 20px 0; } 50% { translate: 20px 20px; } 75% { translate: 0 20px; } 100% { translate: 0 0; } }
.live-circle i { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--olive-strong); opacity: .3; animation: grow478 19s ease-in-out infinite; }
@keyframes grow478 { 0% { scale: .5; } 21% { scale: 1.2; } 58% { scale: 1.2; } 100% { scale: .5; } }
.live-wave { overflow: hidden; }
.live-wave svg { position: absolute; left: 0; top: 10px; width: 60px; height: 20px; fill: none; stroke: var(--olive-strong); stroke-width: 1.8; stroke-linecap: round; animation: wave 5s linear infinite; }
@keyframes wave { from { translate: 0 0; } to { translate: -20px 0; } }
.live-dots { display: flex; align-items: center; justify-content: center; gap: 3px; }
.live-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--olive-strong); opacity: .25; animation: dot 5s linear infinite; }
.live-dots i:nth-child(2) { animation-delay: 1s; } .live-dots i:nth-child(3) { animation-delay: 2s; } .live-dots i:nth-child(4) { animation-delay: 3s; } .live-dots i:nth-child(5) { animation-delay: 4s; }
@keyframes dot { 0%, 100% { opacity: .25; } 10%, 30% { opacity: 1; } }
.live-rows .r-ic { display: none; }
@media (prefers-reduced-motion: reduce) { .live i, .live svg, .stars i, .spark, .bubble { animation: none !important; } }

/* Автор */
.author3 { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--card); border-radius: 24px; padding: 24px 28px; }
.author3-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin-bottom: 6px; }
.author3 .muted { margin-bottom: 10px; }
.author3 a { display: inline-flex; align-items: center; gap: 6px; }
.author3 .plant2 { --leaf-fill: var(--lime); }

@media (max-width: 720px) {
  .h3-hero { grid-template-columns: 1fr; gap: 6px; margin-bottom: 32px; }
  .h3-hero h1 { font-size: 2.15rem; }
  .h3-hero .lead { font-size: 1rem; margin-bottom: 16px; }
  .breath-hero { width: min(260px, 78vw); order: 2; margin-top: 6px; }
  .h3-hero-text { order: 1; }
  .bh-label b { font-size: 1.6rem; }
  .sit-grid, .test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .test-grid .tcard:last-child { grid-column: 1 / -1; min-height: 0; }
  .sit { min-height: 118px; padding: 14px 14px 42px; border-radius: 18px; }
  .sit b { font-size: 1.02rem; }
  .sit span { font-size: .8rem; }
  .sit .stk { width: 26px; height: 26px; right: 12px; bottom: 10px; }
  .band { padding: 32px 0; margin-bottom: 36px; }
  .band h2 { font-size: 1.55rem; }
  .tcard { min-height: 140px; padding: 14px; }
  .tcard b { font-size: 1.02rem; }
  .author3 { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px; }
}

/* ================= Сливочный: внутренние страницы ================= */
/* Шапка страницы: подпись, крупный заголовок, «таблетки» доверия */
.page-head { margin: 4px 0 30px; }
.page-head .tag { margin-bottom: 12px; }
.page-head h1 { font-size: 2.7rem; line-height: 1.08; margin-bottom: 12px; max-width: 860px; }
.page-head .lead { font-size: 1.1rem; max-width: 660px; }
.trust { gap: 8px; margin-top: 16px; color: var(--text); font-weight: 500; font-size: .84rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--card); }
.trust span::before { content: ""; width: 14px; height: 14px; flex: none; background: var(--olive-strong);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / contain no-repeat; }
.trust span:not(:last-child)::after { content: none; }
.back { margin-top: 16px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--olive-strong); text-decoration: underline; }

/* Кнопки: мягкое нажатие */
.btn { transition: background-color .2s, border-color .2s, color .2s, scale .15s; }
.btn:active:not(:disabled) { scale: .97; }
:root.night .btn { transition: none; }

/* Упражнение: светлая карточка, сцена дышит цветом */
.tool-card-main { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 28px; min-height: 400px; }
.state h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 6px; }
.rating { gap: 8px; max-width: 600px; margin-top: 18px; }
.rating button { border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-family: var(--serif); font-weight: 600; font-size: 1rem; transition: background-color .2s, border-color .2s, scale .15s; }
.rating button:hover { border-color: var(--text); }
.rating button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--on-deep); scale: 1.06; }
.tool-card-main .stage { border-radius: 24px; padding: 22px 12px 24px; background: var(--card); }
.tool-card-main { --breath-in: var(--lime); --breath-hold: var(--butter); --breath-out: var(--peach); }
:root[data-theme="dark"] .tool-card-main { --breath-in: var(--lime); --breath-hold: var(--butter); --breath-out: var(--peach); }
.breath-svg .circle-fill { fill: var(--deep); opacity: .14; }
:root[data-theme="dark"] .breath-svg .circle-fill { fill: var(--olive-fill); opacity: .2; }
.breath-svg .circle-line, .breath-svg .track { stroke: var(--text); opacity: .35; stroke-width: 1.6; }
.breath-svg .trail, .breath-svg .dot { stroke: var(--deep); }
.breath-svg .dot { fill: var(--deep); }
:root[data-theme="dark"] .breath-svg .trail, :root[data-theme="dark"] .breath-svg .dot { stroke: var(--olive-fill); fill: var(--olive-fill); }
:root[data-theme="dark"] .breath-svg .trail { fill: none; }
.phase { font-weight: 600; font-size: 1.7rem; }
.cue-btns button { background: var(--surface); }
.step-title { font-weight: 600; }
.marks button { border-color: var(--text); border-width: 1.5px; font-family: var(--serif); }
.marks button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.result-line { font-weight: 600; font-size: 2rem; }
.settings-btns button { border-radius: 999px; background: var(--bg); }
.settings-btns button[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.tool-foot { border-top-color: var(--border); }

@media (min-width: 901px) {
  /* Пока выбирается оценка, содержимое стоит по центру карточки, а не прилипает к верху */
  .tool-card-main { display: flex; flex-direction: column; justify-content: center; }
  .tool-card-main > .state.is-active { width: 100%; }
}

/* Боковые карточки */
.practice-side .card, .quiz-side .card { border-radius: 22px; padding: 20px 22px; }
.practice-side .how { background: var(--mint); }
.practice-side .chart { background: var(--surface); border: 1px solid var(--border); }
.how ol { list-style: none; padding-left: 0; counter-reset: how; gap: 8px; }
.how ol > li { counter-increment: how; position: relative; padding-left: 32px; line-height: 1.4; }
.how ol > li::before { content: counter(how); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-family: var(--serif); font-weight: 600; font-size: .8rem; display: grid; place-items: center; }
.chart .line { stroke: var(--deep); }
:root[data-theme="dark"] .chart .line { stroke: var(--olive-fill); }
.chart .pt { fill: var(--doodle); }

/* Срочная помощь: тёмно-зелёная карточка, как полоса на главной */
.crisis { background: var(--deep); color: var(--on-deep); border: 0; border-radius: 22px; }
.crisis h2, .crisis h3, .cat-section .crisis h2 { color: var(--on-deep); font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.crisis li, .crisis p { color: #CFE3D6; opacity: 1; }
.crisis a, .crisis-more a { color: #FCE7A2; }
.crisis a:hover, .crisis-more a:hover { color: #FFF0B8; }
.crisis :focus-visible { outline-color: #FCE7A2; }

/* Статья под упражнением */
.after-tool { border-radius: 22px; }
.next-step { background: var(--butter); }
.article { max-width: 720px; margin-top: 60px; }
.article > section { margin-top: 48px; }
.article h2 { font-size: 1.75rem; margin-bottom: 12px; }
.article p, .article li { font-size: 1.04rem; line-height: 1.65; }
.article > section > ul:not(.rows):not(.help-who):not(.spec-list) { list-style: none; padding-left: 0; gap: 8px; }
.article > section > ul:not(.rows):not(.help-who):not(.spec-list) > li { position: relative; padding-left: 24px; }
.article > section > ul:not(.rows):not(.help-who):not(.spec-list) > li::before { content: ""; position: absolute; left: 5px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--doodle); }
.a-steps ol { list-style: none; padding-left: 0; counter-reset: st; gap: 14px; margin-top: 14px; }
.a-steps ol > li { counter-increment: st; position: relative; padding-left: 50px; min-height: 34px; padding-top: 3px; }
.a-steps ol > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); font-family: var(--serif); font-weight: 600; display: grid; place-items: center; }
.a-warn, .a-care, .a-next { border-radius: 24px; padding: 24px 26px; }
.a-warn { background: var(--peach); }
.a-care, .a-next { background: var(--mint); }
.a-warn h2, .a-care h2, .a-next h2 { font-size: 1.45rem; }
.a-warn > ul > li::before { background: var(--text); }
.a-next .partner { margin-top: 16px; background: var(--surface); }
.faq details, .faq details:first-of-type { border-top: 0; border-bottom: 1px solid var(--border); padding: 0; }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--olive-strong); }
.faq summary::after { content: ""; width: 20px; height: 20px; flex: none; background: var(--olive-strong); transition: rotate .25s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq details[open] > summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 0 18px; }
.sources ol { padding-left: 20px; display: grid; gap: 6px; }
.more .rows { margin-top: 12px; }
.more .r-ic { border-radius: 12px; font-size: 1.15rem; color: var(--olive-strong); }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: 24px; padding: 22px 24px; margin-top: 48px; }
.author-box .av { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--deep); color: var(--on-deep); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; }
.author-name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.author-box .disclaimer { margin-top: 4px; }

/* Каталог: пастельные плитки по разделам */
.cats a { border-radius: 999px; padding: 10px 16px; }
.cats a[aria-current="true"] { background: var(--deep); color: var(--on-deep); font-weight: 600; }
.cats a[aria-current="true"]:hover { background: var(--deep); color: var(--on-deep); }
.cat-section h2 { font-size: 2.1rem; }
.tools { gap: 12px; }
.tool-card { border-radius: 20px; padding: 18px 20px 20px; min-height: 116px; transition: transform .2s; }
.tool-card:hover { transform: translateY(-2px); }
.tool-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; line-height: 1.25; margin: 0 0 6px; }
.tool-card p { color: var(--muted); }
.cat-section[data-cat="trevoga"] a.tool-card { background: var(--butter); }
.cat-section[data-cat="son"] a.tool-card { background: var(--night); color: #EEF0FA; }
.cat-section[data-cat="son"] a.tool-card p { color: #C9CDE6; }
.cat-section[data-cat="napryazhenie"] a.tool-card { background: var(--peach); }
.cat-section[data-cat="emocii"] a.tool-card { background: var(--mint); }
.cat-section[data-cat="nastroenie"] a.tool-card, .cat-section[data-cat="telo"] a.tool-card { background: var(--lime); }
.cat-section[data-cat="mysli"] a.tool-card, .cat-section[data-cat="otnosheniya"] a.tool-card { background: var(--sand); }
a.tool-card:hover { filter: brightness(.98); }
.tool-card.soon { border-radius: 20px; }
.badge { background: var(--surface); }

/* Тесты */
.quiz { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 26px; }
.quiz-q { border: 0; border-radius: 20px; background: var(--bg); padding: 16px 16px 14px; }
.quiz-q legend { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.quiz-n { color: var(--brown); }
.quiz-opts span { border-radius: 999px; background: var(--surface); transition: background-color .2s, border-color .2s; }
.quiz-opts label:hover span { border-color: var(--text); }
.quiz-opts input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.quiz-score { font-family: var(--serif); font-weight: 600; font-size: 3rem; }
.quiz-band { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.quiz-alert { border-radius: 18px; }

/* Простые страницы */
.text-page h2 { margin-top: 8px; }

@media (max-width: 720px) {
  .page-head { margin-bottom: 22px; }
  .page-head h1 { font-size: 2.05rem; }
  .page-head .lead { font-size: 1.02rem; }
  .trust { margin-top: 12px; gap: 6px; }
  .tool-card-main { border-radius: 22px; padding: 18px 14px; min-height: 0; }
  .tool-card-main .stage { border-radius: 18px; }
  .state h2 { font-size: 1.22rem; }
  .article { margin-top: 36px; }
  .article > section { margin-top: 36px; }
  .article h2 { font-size: 1.45rem; }
  .a-warn, .a-care, .a-next { padding: 20px 18px; border-radius: 20px; }
  .a-warn h2, .a-care h2, .a-next h2 { font-size: 1.28rem; }
  .author-box { padding: 18px; border-radius: 20px; align-items: flex-start; }
  .cat-section h2 { font-size: 1.7rem; }
  .cat-section .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tool-card { min-height: 0; padding: 14px 14px 16px; border-radius: 18px; }
  .tool-card h3 { font-size: 1.02rem; }
  .tool-card p { font-size: .82rem; }
  .quiz { padding: 16px 12px; border-radius: 22px; }
  .quiz-q { padding: 14px 12px 12px; }
  .result-line { font-size: 1.7rem; }
}

/* ================= «Что дальше»: три ступени после упражнения ================= */
.ladder { max-width: 860px; margin: 44px 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 28px 30px 6px; scroll-margin-top: 90px; }
.ladder > h2 { font-size: 1.9rem; margin-bottom: 20px; }
.ladder-steps { list-style: none; padding: 0; margin: 0; counter-reset: lad; }
.l-step { counter-increment: lad; position: relative; padding: 0 0 26px 60px; }
.l-step::before { content: counter(lad); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; background: var(--lime); color: var(--text); }
.l-repeat::before { background: var(--butter); }
.l-hard::before { background: var(--deep); color: var(--on-deep); }
.l-step:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 48px; bottom: 8px; border-left: 2px dashed var(--border); }
.l-k { margin-bottom: 8px; }
.l-step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; line-height: 1.25; margin: 0 0 6px; }
.l-step p { margin: 0; line-height: 1.6; }
.l-act { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 14px; }
.l-link { font-weight: 600; color: var(--olive-strong); }
.remind { display: grid; gap: 10px; justify-items: start; }
.remind[hidden] { display: none; }
.remind-opts { background: var(--bg); border-radius: 18px; padding: 12px 14px 14px; max-width: 460px; }
.remind-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.remind-btns .btn { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.remind-note:empty { display: none; }
.remind-note { color: var(--olive-strong); font-weight: 500; max-width: 460px; }

/* «Помощь специалиста» */
.help-who { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-who li { border-radius: 20px; padding: 18px 18px 20px; display: grid; gap: 6px; align-content: start; }
.help-who b { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.help-who span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.c-butter { background: var(--butter); } .c-mint { background: var(--mint); } .c-lime { background: var(--lime); }
.ph-card { border: 1.5px dashed var(--border); border-radius: 22px; padding: 18px 22px 20px; margin-top: 12px; }
.ph-card .badge { margin-bottom: 8px; }
.ph-card p { color: var(--muted); }
.spec-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.spec-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border-radius: 22px; padding: 20px 22px; margin-top: 12px; }
.spec-card .av { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--deep); color: var(--on-deep); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.spec-name { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.help .partner { margin-top: 12px; }
.help-hard .crisis { padding: 22px 24px; }
.help-hard .crisis h2 { font-size: 1.3rem; margin-bottom: 8px; }

@media (max-width: 720px) {
  .ladder { margin-top: 32px; border-radius: 22px; padding: 20px 16px 2px; }
  .ladder > h2 { font-size: 1.5rem; margin-bottom: 16px; }
  .l-step { padding: 0 0 22px 50px; }
  .l-step::before { width: 34px; height: 34px; font-size: .95rem; }
  .l-step:not(:last-child)::after { left: 16px; top: 42px; }
  .l-step h3 { font-size: 1.1rem; }
  .help-who { grid-template-columns: 1fr; }
}

/* «От врача» */
.doc-note { display: flex; gap: 16px; align-items: flex-start; background: var(--butter); border-radius: 24px; padding: 22px 24px; margin: 0 0 8px; }
.doc-note .av { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--deep); color: var(--on-deep); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; }
.doc-k { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--brown); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
:root[data-theme="dark"] .doc-k { color: var(--text); }
.doc-note blockquote { margin: 6px 0 8px; padding: 0; border: 0; }
.doc-note blockquote p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; margin: 0; }
.doc-sign { font-size: .9rem; color: var(--muted); }
.badge.draft { text-transform: none; letter-spacing: 0; background: var(--peach); color: var(--text); }
@media (max-width: 720px) { .doc-note { padding: 18px; border-radius: 20px; gap: 12px; } .doc-note .av { width: 40px; height: 40px; font-size: .9rem; } .doc-note blockquote p { font-size: 1.04rem; } }

/* Установка на экран и страница «нет связи» */
.install { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--mint); border-radius: 20px; padding: 16px 20px; margin-bottom: 22px; }
.install[hidden], .btn[hidden] { display: none; }
.install p { margin: 0; max-width: 620px; color: var(--text); }
.install b { font-family: var(--serif); font-weight: 600; }
.offline-page .rows { margin: 20px 0 24px; max-width: 640px; }
.offline-crisis { max-width: 640px; }

/* ================= Движение: переходы между страницами и появление при прокрутке ================= */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  @media (min-width: 721px) { .site-header { view-transition-name: site-header; } }
  ::view-transition-old(root) { animation: vt-out .16s ease-in both; }
  ::view-transition-new(root) { animation: vt-in .36s cubic-bezier(.2, .7, .2, 1) both; }
  ::view-transition-group(vt-title) { animation-duration: .44s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 14px; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home3 > .sec, .home3 > .band, .home3 > .author3, .article > section, .author-box, .ladder, .doc-note {
      animation: reveal both cubic-bezier(.2, .7, .2, 1);
      animation-timeline: view();
      animation-range: entry 0% cover 18%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 24px; } }
@media print { .home3 > .sec, .article > section, .author-box { animation: none !important; } }

/* ================= Время суток на главной ================= */
.dp-hint { margin: -6px 0 18px; max-width: 470px; font-family: var(--serif); font-style: italic; color: var(--brown); }
:root[data-daypart="morning"] .home3 [data-dp]:not([data-dp="morning"]),
:root[data-daypart="day"] .home3 [data-dp]:not([data-dp="day"]),
:root[data-daypart="evening"] .home3 [data-dp]:not([data-dp="evening"]),
:root[data-daypart="night"] .home3 [data-dp]:not([data-dp="night"]),
:root:not([data-daypart]) .home3 [data-dp]:not([data-dp="day"]) { display: none; }

/* ================= Итог практики: тёплые слова и мягкая подсказка ================= */
.warm-words { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--brown); margin: 2px 0 6px; max-width: 560px; }
.warm-words[hidden], .result-help[hidden] { display: none; }
.result-help { background: var(--mint); color: var(--text); border-radius: 18px; padding: 14px 18px; margin: 14px 0 6px; max-width: 600px; }
.result-help p { margin: 0 0 8px; }
.result-help a { color: var(--deep); font-weight: 600; }
.result-help-link { display: inline-block; }
:root[data-theme="dark"] .result-help { background: #233A2E; color: #E4EFE7; }
:root[data-theme="dark"] .result-help a { color: #FCE7A2; }
:root.night .warm-words { color: #B5A99F; }
:root.night .tool-card-main .hint { color: #9A8E84; }
:root.night .result-help { background: transparent; border: 1px solid #3A332E; color: #B5A99F; }
:root.night .result-help a { color: #D9C9A0; }

/* ================= Карточка поддержки ================= */
.sc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "controls preview" "controls save"; gap: 20px 32px; align-items: start; margin-bottom: 36px; }
.sc-controls { grid-area: controls; background: var(--surface); border-radius: 28px; padding: 22px 24px; }
.sc-preview { grid-area: preview; text-align: center; }
.sc-save { grid-area: save; display: grid; justify-items: center; gap: 8px; text-align: center; }
.sc-save .settings-note { margin: 0; max-width: 300px; }
.sc-group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.sc-group legend { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 10px; padding: 0; }
.sc-phrases { display: grid; gap: 8px; }
.sc-phrase { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 16px; cursor: pointer; background: var(--bg); }
.sc-phrase > span { display: grid; gap: 2px; }
.sc-phrase b { font-family: var(--serif); font-weight: 600; }
.sc-phrase > span > span { color: var(--muted); font-size: .92rem; }
.sc-phrase input, .sc-color input, .sc-check input { accent-color: var(--olive-fill); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.sc-phrase:has(input:checked) { border-color: var(--olive-fill); background: var(--lime); }
.sc-phrase:has(input:focus-visible), .sc-color:has(input:focus-visible) { outline: 3px solid var(--olive-strong); outline-offset: 2px; }
.sc-own { margin-top: 12px; }
.sc-own[hidden] { display: none; }
.sc-own label { display: block; font-weight: 600; margin-bottom: 6px; }
.sc-own textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text); resize: vertical; }
.sc-own .small { margin: 6px 0 0; }
.sc-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sc-color { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--bg); }
.sc-color i { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.sc-color:has(input:checked) { border-color: var(--olive-fill); }
.sc-color input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sc-color:has(input:checked) i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--olive-fill); }
.sc-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.sc-phone { position: relative; width: 100%; max-width: 270px; margin: 0 auto; border-radius: 34px; overflow: hidden; box-shadow: 0 0 0 8px #2A1F18, 0 18px 40px rgba(42, 31, 24, .25); container-type: inline-size; }
.sc-phone canvas { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 2340; }
.sc-clock { position: absolute; left: 0; right: 0; top: 9%; font-family: var(--font); font-weight: 600; font-size: 3.6rem; font-size: 21cqi; line-height: 1; letter-spacing: -.02em; opacity: .9; pointer-events: none; }
.sc-caption { margin: 16px 0 0; }
:root[data-theme="dark"] .sc-phone { box-shadow: 0 0 0 8px #3A322A, 0 18px 40px rgba(0, 0, 0, .4); }
@media (max-width: 860px) {
  .sc { grid-template-columns: 1fr; grid-template-areas: "preview" "controls" "save"; }
  .sc-phone { max-width: 200px; }
  .sc-controls { padding: 18px 16px; border-radius: 22px; }
  .sc-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= Своя форма у техники: волна ритма ================= */
.breath-wave .wave-base { fill: none; stroke: var(--olive); stroke-width: 2; stroke-dasharray: 2 9; opacity: .6; }
.breath-wave .track, .breath-wave .trail { stroke-linecap: round; stroke-linejoin: round; }
.breath-wave .trail { stroke-width: 5; }
:root.night .breath-wave .wave-base { stroke: #3A4134; }

/* ================= Пузыри чувств («Мои чувства сейчас») ================= */
.bubbles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; min-height: 128px; padding: 10px 4px 4px; }
.bubbles[hidden] { display: none; }
.bubble { display: grid; place-items: center; border-radius: 50%; color: #2A1F18; font-weight: 650; line-height: 1.15; text-align: center; padding: 8px;
  box-shadow: inset 0 -6px 14px rgba(42, 31, 24, .08), 0 6px 16px rgba(42, 31, 24, .1); overflow-wrap: anywhere; transition: width .35s ease, height .35s ease; }
.bubble.s1 { width: 76px; height: 76px; font-size: .78rem; }
.bubble.s2 { width: 98px; height: 98px; font-size: .86rem; }
.bubble.s3 { width: 120px; height: 120px; font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: bubble-float 6s ease-in-out infinite alternate; }
  @keyframes bubble-float { from { transform: translateY(-4px); } to { transform: translateY(4px); } }
}
@media print { .bubbles { display: none; } }

/* ================= Ночное небо в разделе сна ================= */
/* Звёзды – радиальные градиенты, луна – тень круга; картинок нет */
.sky .page-head { position: relative; overflow: hidden; isolation: isolate; color: #EEF0FA; border-radius: 28px; padding: 30px 30px 28px;
  background:
    radial-gradient(1.6px 1.6px at 8% 18%, #FFF8E1 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 21% 64%, #FFFFFF 60%, transparent 100%),
    radial-gradient(1.8px 1.8px at 34% 12%, #FFF8E1 60%, transparent 100%),
    radial-gradient(1.1px 1.1px at 47% 82%, #FFFFFF 60%, transparent 100%),
    radial-gradient(1.4px 1.4px at 58% 30%, #FFFFFF 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 66% 70%, #FFF8E1 60%, transparent 100%),
    radial-gradient(1.7px 1.7px at 74% 46%, #FFFFFF 60%, transparent 100%),
    radial-gradient(1.1px 1.1px at 88% 78%, #FFFFFF 60%, transparent 100%),
    radial-gradient(1.3px 1.3px at 94% 40%, #FFF8E1 60%, transparent 100%),
    radial-gradient(120% 90% at 85% 0%, #343E6E 0%, transparent 60%),
    linear-gradient(180deg, #1E2540 0%, #232B4C 100%); }
.sky .page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.4px 1.4px at 15% 40%, #FFFFFF 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 40% 52%, #FFF8E1 60%, transparent 100%),
    radial-gradient(1.6px 1.6px at 52% 14%, #FFFFFF 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 81% 22%, #FFFFFF 60%, transparent 100%),
    radial-gradient(1.3px 1.3px at 70% 90%, #FFF8E1 60%, transparent 100%); }
.sky .page-head::after { content: ""; position: absolute; z-index: -1; top: 24px; right: 30px; width: 52px; height: 52px; border-radius: 50%;
  box-shadow: inset -13px 7px 0 0 #F3E7C4; transform: rotate(-12deg); opacity: .95; pointer-events: none; }
.sky .page-head h1, .sky .page-head .lead { color: #EEF0FA; }
.sky .page-head h1 { padding-right: 64px; }
.sky .page-head .lead { color: #C9CDE6; }
.sky .page-head .tag { color: #EEF0FA; }
.sky .page-head .trust span { background: rgba(255, 255, 255, .1); color: #EEF0FA; }
.sky .page-head .trust span::before { background: #CFE3A8; }
.sky .page-head .back { color: #C9CDE6; }
.sky .page-head .back:hover { color: #FFFFFF; }
@media (prefers-reduced-motion: no-preference) {
  .sky .page-head::before { animation: twinkle 5s ease-in-out infinite alternate; }
  @keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
}
@media (max-width: 720px) { .sky .page-head { padding: 24px 20px 22px; border-radius: 22px; } .sky .page-head::after { top: 18px; right: 18px; width: 42px; height: 42px; } }
@media print { .sky .page-head { background: none; color: inherit; padding: 0; } .sky .page-head::before, .sky .page-head::after { display: none; } .sky .page-head h1, .sky .page-head .lead { color: #000; } }
/* В ночном режиме – редкие тусклые звёзды по экрану: не добавляют света */
:root.night body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background:
    radial-gradient(1.3px 1.3px at 10% 14%, #D9D2C3 60%, transparent 100%),
    radial-gradient(1px 1px at 28% 72%, #D9D2C3 60%, transparent 100%),
    radial-gradient(1.4px 1.4px at 46% 8%, #D9D2C3 60%, transparent 100%),
    radial-gradient(1px 1px at 63% 58%, #D9D2C3 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 82% 26%, #D9D2C3 60%, transparent 100%),
    radial-gradient(1px 1px at 91% 84%, #D9D2C3 60%, transparent 100%),
    radial-gradient(1.2px 1.2px at 18% 92%, #D9D2C3 60%, transparent 100%); }
:root.night .breath-wave .trail, :root.night .breath-wave .track { fill: none; }
.bubble { hyphens: auto; }
.bubble.long { font-size: .72rem; }
.bubble.s3.long { font-size: .84rem; }

/* ================= Баланс жизни ================= */
.bal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; background: var(--surface); border-radius: 28px; padding: 26px 28px; margin-bottom: 36px; }
.bal-shape { position: sticky; top: 16px; text-align: center; }
.bal-svg { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.bal-grid { fill: none; stroke: var(--border); stroke-width: 1.5; }
.bal-even { fill: none; stroke: var(--olive); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .7; }
.bal-axis { stroke: var(--border); stroke-width: 1; }
.bal-now { fill: var(--olive-fill); fill-opacity: .22; stroke: var(--olive-fill); stroke-width: 3; stroke-linejoin: round; }
.bal-want { fill: none; stroke: var(--want-line); stroke-width: 2.5; stroke-dasharray: 7 6; stroke-linejoin: round; }
.bal-want[hidden] { display: none; }
.bal-label { font-family: var(--font); fill: var(--text); }
.bal-name { font-size: 15px; font-weight: 600; }
.bal-pct { font-size: 14px; fill: var(--muted); }
.bal-legend { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 6px 0 0; }
.bal-legend[hidden] { display: none; }
.bal-legend span { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--olive-fill); margin-left: 8px; }
.bal-legend .lg-want { border-top: 3px dashed var(--want-line); }
.bal-main .state h2 { margin-bottom: 6px; }
.bal-rows { display: grid; gap: 10px; margin: 16px 0 6px; }
.bal-row { border-radius: 18px; padding: 12px 14px 10px; background: var(--bg); border-left: 6px solid var(--c); }
.bal-row.c-body { --c: var(--lime); } .bal-row.c-work { --c: var(--butter); } .bal-row.c-contacts { --c: var(--peach); } .bal-row.c-meaning { --c: var(--mint); }
:root[data-theme="dark"] .bal-row.c-body { --c: #8DB26A; } :root[data-theme="dark"] .bal-row.c-work { --c: #D9B54C; }
:root[data-theme="dark"] .bal-row.c-contacts { --c: #D08A68; } :root[data-theme="dark"] .bal-row.c-meaning { --c: #6FA88A; }
.bal-row label { display: grid; gap: 1px; cursor: pointer; }
.bal-row label b { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.bal-row label span { color: var(--muted); font-size: .88rem; }
.bal-ctl { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.bal-ctl output { min-width: 3.2em; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.bal-ctl input[type="range"] { flex: 1; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.bal-ctl input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--olive-fill) var(--fill, 0%), var(--border) var(--fill, 0%)); }
.bal-ctl input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--border); }
.bal-ctl input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--olive-fill); }
.bal-ctl input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--card, #fff); border: 3px solid var(--olive-fill); box-shadow: 0 2px 6px rgba(42, 31, 24, .2); }
.bal-ctl input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card, #fff); border: 3px solid var(--olive-fill); }
.bal-ctl input[type="range"]:focus-visible { outline: 3px solid var(--olive-strong); outline-offset: 4px; border-radius: 99px; }
.bal-left { font-weight: 600; margin: 8px 0 4px; color: var(--brown); }
.bal-left.is-done { color: var(--olive-strong); }
.bal-notes p { margin: 0 0 10px; }
.bal-step-box { background: var(--mint); border-radius: 18px; padding: 14px 18px; margin: 12px 0; }
.bal-step-box[hidden] { display: none; }
.bal-step-box h3 { margin: 0 0 6px; }
.bal-ideas { margin: 0; padding-left: 1.1em; }
.bal-ideas li { margin: 4px 0; }
:root[data-theme="dark"] .bal-step-box { background: #1E3529; }
[data-bal-step="result"]:focus { outline: none; }
@media (max-width: 860px) {
  .bal { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; border-radius: 22px; gap: 10px; }
  .bal-shape { position: static; }
  .bal-svg { max-width: 260px; }
}
@media print { .bal { display: none; } }
.bal { --want-line: #B8573A; }
:root[data-theme="dark"] .bal { --want-line: #E39A79; }

/* ================= Одиночество: круги общения ================= */
.cr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: start; background: var(--surface); border-radius: 28px; padding: 26px 28px; margin-bottom: 36px; }
.cr-shape { position: sticky; top: 16px; text-align: center; }
.cr-svg { width: 100%; max-width: 340px; height: auto; }
.cr-ring { fill: none; stroke-width: 26; }
.cr-ring.r1 { stroke: var(--peach); } .cr-ring.r2 { stroke: var(--butter); } .cr-ring.r3 { stroke: var(--mint); }
.cr-me { fill: var(--olive-fill); }
.cr-me-t { fill: #FFFFFF; font: 700 15px var(--font); }
.cr-dot circle { stroke: var(--surface); stroke-width: 3; }
.cr-dot.c1 circle { fill: #C9765F; } .cr-dot.c2 circle { fill: #B8912F; } .cr-dot.c3 circle { fill: #4E8C6C; }
.cr-dot text { fill: #FFFFFF; font: 700 13px var(--font); }
:root[data-theme="dark"] .cr-ring.r1 { stroke: #45291C; } :root[data-theme="dark"] .cr-ring.r2 { stroke: #4A3D18; } :root[data-theme="dark"] .cr-ring.r3 { stroke: #1E3529; }
.cr-ring-box { border-radius: 18px; padding: 12px 14px; background: var(--bg); border-left: 6px solid var(--c); margin: 10px 0; }
.cr-ring-box.c1 { --c: var(--peach); } .cr-ring-box.c2 { --c: var(--butter); } .cr-ring-box.c3 { --c: var(--mint); }
:root[data-theme="dark"] .cr-ring-box.c1 { --c: #D08A68; } :root[data-theme="dark"] .cr-ring-box.c2 { --c: #D9B54C; } :root[data-theme="dark"] .cr-ring-box.c3 { --c: #6FA88A; }
.cr-add label { display: grid; gap: 1px; margin-bottom: 8px; }
.cr-add label b { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; }
.cr-add label span { color: var(--muted); font-size: .88rem; }
.cr-add-row { display: flex; gap: 8px; }
.cr-add-row input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); }
.cr-add-row .btn { padding-inline: 16px; }
.cr-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; }
.cr-chips:empty { display: none; }
.cr-chips li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.cr-chips button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.cr-chips button:hover { background: var(--card); color: var(--text); }
.cr-few { background: var(--mint); border-radius: 18px; padding: 14px 18px; margin: 12px 0; }
.cr-few[hidden], .cr-group[hidden] { display: none; }
.cr-few p { margin: 0 0 8px; } .cr-few p:last-child { margin: 0; }
:root[data-theme="dark"] .cr-few { background: #1E3529; }
.cr-group { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.cr-group legend { font-weight: 650; margin-bottom: 8px; padding: 0; }
.cr-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-opt { position: relative; display: inline-flex; cursor: pointer; }
.cr-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cr-opt span { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); font-weight: 500; }
.cr-opt input:checked + span { background: var(--deep); border-color: var(--deep); color: #FFFFFF; }
.cr-opt input:focus-visible + span { outline: 3px solid var(--olive-strong); outline-offset: 2px; }
.cr-draft-label { display: block; font-weight: 650; margin: 16px 0 6px; }
.cr-draft { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--text); resize: vertical; }
[data-cr-step="msg"]:focus { outline: none; }
@media (max-width: 860px) {
  .cr { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; border-radius: 22px; gap: 8px; }
  .cr-shape { position: static; }
  .cr-svg { max-width: 230px; }
}
@media print { .cr { display: none; } }
.cr > *, .bal > * { min-width: 0; }

/* ================= ИИ как собеседник ================= */
.ai-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ai-card { border-radius: 22px; padding: 16px 18px 12px; border-top: 6px solid var(--c); background: var(--surface); }
.ai-card.ai-ok { --c: #6FA36B; background: #EEF5E6; } .ai-card.ai-warn { --c: #D9A93A; background: #FBF1D6; } .ai-card.ai-stop { --c: #C2553A; background: #F8E3DA; }
:root[data-theme="dark"] .ai-card.ai-ok { background: #1F2E1D; } :root[data-theme="dark"] .ai-card.ai-warn { background: #33291A; } :root[data-theme="dark"] .ai-card.ai-stop { background: #3A221B; }
.article .ai-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.article .ai-card ul { margin: 0; }
.article .ai-card li { margin: 6px 0; }
.ai-stop-help { margin: 10px 0 4px; font-weight: 600; }
.ai-prompt-box { white-space: pre-wrap; background: var(--surface); border: 1.5px dashed var(--olive); border-radius: 18px; padding: 16px 18px; font-size: .98rem; line-height: 1.55; margin: 10px 0 12px; }
@media (max-width: 860px) { .ai-cards { grid-template-columns: minmax(0, 1fr); } }
@media print { .ai-prompt .btn-row { display: none; } }
