@font-face { font-family: "Jost"; src: url("/static/fonts/jost-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Jost"; src: url("/static/fonts/jost-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #080909; --muted: #565a58; --bg: #fff; --card: #f5f4f2; --line: #e4e2de;
  --green: #29b981; --green-deep: #0b7a53; --mint: #98e8ca; --pink: #ffbed1; --sky: #bfddfb; --danger: #b3261e;
  --r-lg: 32px; --r: 24px; --r-sm: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* иначе display: grid у карточек показывает скрытые блоки */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 19px/1.4 "Jost", "Century Gothic", Arial, sans-serif; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -.005em; }
h1 { font-size: clamp(42px, 6.1vw, 80px); line-height: 1.04; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.stack > * + * { margin-top: 16px; }
.section { margin-top: clamp(64px, 9vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.link-more { font-weight: 500; color: var(--green-deep); text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 28px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { border-bottom-color: var(--green); }
.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav + .top-actions { margin-left: 0; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 12px; font-weight: 500; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 16px; right: 16px; top: 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 2px; box-shadow: 0 16px 40px rgba(8, 9, 9, .12); }
.menu-panel a { text-decoration: none; padding: 12px; border-radius: 12px; font-weight: 500; }
.menu-panel a:hover { background: var(--card); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--green-deep); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #096544; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-lg { min-height: 64px; padding: 14px 40px; font-size: 22px; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-help { background: var(--pink); color: var(--ink); white-space: nowrap; }
.btn-sos { background: var(--green-deep); color: #fff; white-space: nowrap; }
.btn-lg.btn-sos { white-space: normal; text-align: center; }
.hero > * { min-width: 0; }
.narrow-label { display: none; }
/* Дыхание: круг растёт на вдохе и сжимается на выдохе */
.breath { display: grid; place-items: center; gap: 12px; padding: 12px 0 20px; }
.breath-circle { width: 140px; height: 140px; border-radius: 50%; background: var(--mint); transform: scale(.6); transition: transform 6s ease-in-out; }
.breath.in .breath-circle { transform: scale(1); transition-duration: 4s; }
.breath-label { font-size: 24px; font-weight: 600; }
.sos-card { border: 2px solid var(--mint); }
.btn-help:hover { background: #ffa7c1; }
.btn-ghost { background: var(--card); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Метки */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 20px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 500; font-size: 18px; text-decoration: none; }
.tag-soft { border-color: transparent; background: var(--card); font-size: 16px; min-height: 32px; padding: 2px 14px; }

/* Первый экран */
.hero { display: grid; gap: 40px; padding-top: 24px; }
.hero-text > * + * { margin-top: 24px; }
.hero-lead { font-size: clamp(21px, 2vw, 25px); max-width: 28em; }
.hero-note { font-size: 16px; color: var(--muted); max-width: 34em; }
.bento { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border-radius: var(--r-lg); padding: 24px; background: var(--card); }
:is(.tile, .card, .option).tile-pink { background: var(--pink); }
:is(.tile, .card).tile-green { background: var(--green); }
:is(.tile, .card).tile-mint { background: var(--mint); }
:is(.tile, .card).tile-sky { background: var(--sky); }
.tile-card { background: var(--card); }
.tile-num { display: block; font-size: clamp(38px, 4.4vw, 56px); font-weight: 600; line-height: 1; margin-bottom: 8px; }
.tile-chat { grid-row: span 2; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; min-height: 460px; background: var(--sky); }
.bento-badge { position: absolute; left: 20px; top: 20px; transform: rotate(-8deg); width: 128px; height: 128px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 600; font-size: 17px; line-height: 1.15; padding: 12px; }
.bubble { padding: 12px 18px; border-radius: 20px; max-width: 92%; font-size: 18px; line-height: 1.3; }
.bubble-bot { background: #fff; border-bottom-left-radius: 6px; }
.bubble-me { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.dots { display: inline-flex; gap: 5px; padding: 16px 18px; background: #fff; border-radius: 20px; border-bottom-left-radius: 6px; width: fit-content; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Карточки */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 28px; }
.card-link { text-decoration: none; display: block; transition: background .15s; }
.card-link:hover { background: var(--line); }
.card > * + * { margin-top: 12px; }
.card-white { background: #fff; border: 1.5px solid var(--line); }
.quotes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; }
.quotes a { font-size: 21px; font-weight: 500; text-decoration: none; line-height: 1.25; }
.quotes a:hover { color: var(--green-deep); }
.quote-line { font-size: 21px; font-weight: 500; line-height: 1.25; }
.num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 22px; }
.panel { border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); }
.panel-green { background: var(--green); }
.panel-ink { background: var(--ink); color: #fff; }
.facts { display: grid; gap: 12px; }
.fact { background: rgba(255, 255, 255, .9); border-radius: var(--r); padding: 22px; color: var(--ink); }
.fact h3 { font-size: 21px; margin-bottom: 6px; }
.prices { display: grid; gap: 12px; }
.price { font-size: 44px; font-weight: 600; line-height: 1; }
.price { white-space: nowrap; }
.price s { display: block; font-size: 20px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.notice { background: var(--mint); border-radius: var(--r-sm); padding: 14px 18px; font-size: 17px; }
.warn { background: var(--pink); border-radius: var(--r-sm); padding: 14px 18px; font-size: 17px; }
.page-title { padding: 32px 0 28px; }
.page-title > * + * { margin-top: 14px; }
.page-title h1 { font-size: clamp(36px, 4.8vw, 60px); line-height: 1.08; }
.page-title p { font-size: 22px; max-width: 34em; }
.breadcrumbs { font-size: 16px; color: var(--muted); }
.breadcrumbs a { color: inherit; }
.list-clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bullets { padding-left: 20px; margin: 0; display: grid; gap: 6px; }

/* Контакты помощи */
.contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; align-items: baseline; padding: 14px 18px; border-radius: var(--r-sm); background: #fff; text-decoration: none; }
.contact b { font-size: 24px; font-weight: 600; white-space: nowrap; }
.contacts { display: grid; gap: 8px; }

/* Подвал */
.foot { margin-top: clamp(64px, 9vw, 112px); padding: 48px 0 40px; background: var(--card); }
.foot-grid { display: grid; gap: 28px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { font-size: 15px; color: var(--muted); margin-top: 32px; }

/* Формы */
.field { display: grid; gap: 8px; }
.field label, .label { font-weight: 500; }
input[type=text], input[type=email], textarea, select { width: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
textarea { resize: vertical; min-height: 110px; }
input:focus, textarea:focus, select:focus { border-color: var(--green-deep); outline: none; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pick { min-height: 52px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; padding: 8px 12px; }
.pick:hover { border-color: var(--ink); }
.pick.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.options { display: grid; gap: 8px; }
.option { display: block; text-align: left; width: 100%; padding: 16px 20px; border-radius: var(--r-sm); background: var(--card); border: 1.5px solid transparent; cursor: pointer; font-size: 20px; font-weight: 500; text-decoration: none; }
.option:hover { border-color: var(--ink); }
.meter { width: 100%; height: 6px; border-radius: 3px; appearance: none; border: 0; overflow: hidden; background: var(--line); }
.meter::-webkit-progress-bar { background: var(--line); }
.meter::-webkit-progress-value { background: var(--green-deep); }
.meter::-moz-progress-bar { background: var(--green-deep); }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.step[hidden] { display: none; }

/* Кабинет */
.app-grid { display: grid; gap: 12px; }
.locked { color: var(--muted); font-size: 16px; }
.entry { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; align-items: start; }
.entry:last-child { border-bottom: 0; }
.entry-text { font-size: 17px; word-break: break-word; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 15px; padding: 4px; }
.icon-btn:hover { color: var(--danger); }
.key-box { font-size: 24px; font-weight: 600; letter-spacing: .04em; background: #fff; border-radius: var(--r-sm); padding: 14px 18px; word-break: break-all; }

/* Сессия */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 76px); max-width: 860px; margin: 0 auto; padding: 0 16px 12px; }
.chat-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.chat-head h1 { font-size: 24px; line-height: 1.2; }
.chat-head select { width: auto; max-width: 230px; padding: 8px 12px; font-size: 16px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px 2px; }
.msg { max-width: 82%; padding: 12px 18px; border-radius: 22px; white-space: pre-wrap; word-break: break-word; }
.msg-assistant { background: var(--card); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg-user { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg-note { align-self: center; background: none; color: var(--muted); font-size: 16px; text-align: center; padding: 4px 12px; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 54px; max-height: 180px; resize: none; border-radius: 26px; padding: 14px 20px; }
.composer .btn { min-height: 54px; }
.chat-note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.crisis-card { background: var(--pink); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; }
.crisis-card p { white-space: pre-wrap; }
.summary-card { background: var(--mint); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; }
.summary-card .step-line { background: #fff; border-radius: var(--r-sm); padding: 14px 18px; font-weight: 500; }

/* Диалог и подсказка */
dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: 90dvh; }
dialog::backdrop { background: rgba(8, 9, 9, .55); }
dialog .crisis-card { border-radius: 0; padding: 28px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 14px 24px; border-radius: var(--r-sm); z-index: 60; max-width: calc(100vw - 32px); white-space: pre-wrap; }
.toast[hidden] { display: none; }

/* График */
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 15px; }
.chart .value { fill: var(--ink); font-size: 18px; font-weight: 600; }
.chart .line { fill: none; stroke: var(--green-deep); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--green-deep); stroke: var(--card); stroke-width: 2; transition: r .12s; }
.chart .hit { fill: transparent; }
.chart .pt:hover .dot { r: 8; }
table.data { width: 100%; border-collapse: collapse; font-size: 17px; }
table.data td, table.data th { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }

.section-sm { margin-top: 48px; }
.faq { display: grid; gap: 12px; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; font-size: 22px; }
.faq summary::after { content: " +"; font-weight: 600; color: var(--green-deep); }
.faq details[open] summary::after { content: " –"; }
.section-xs { margin-top: 24px; }
.h-group { font-size: clamp(26px, 3vw, 36px); margin-bottom: 20px; }
.h-card { font-size: 24px; line-height: 1.2; }
.paywall { margin-top: 48px; padding-top: 8px; }
.steps { display: grid; gap: 12px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.h-question { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
.panel-green a { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card .chip { text-decoration: none; display: inline-flex; align-items: center; }
input[type=range] { width: 100%; accent-color: var(--green-deep); }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--green-deep); }

@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .scale { grid-template-columns: repeat(10, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .hero { grid-template-columns: 1fr 1.02fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1039px) {
  .nav { display: none; }
  .menu { display: block; order: 3; }
  .top-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .brand { font-size: 24px; } .brand img { width: 34px; height: 34px; }
  .top-row { gap: 8px; height: 64px; }
  .menu-panel { top: 60px; }
  .top-actions .btn { padding: 8px 14px; min-height: 42px; font-size: 16px; }
  .top-actions .btn-start { display: none; }
  .brand-name { display: none; }
  .top-actions .wide { display: none; }
  .top-actions .narrow-label { display: inline; }
  .chat { height: calc(100dvh - 64px); }
  .bento-badge { width: 96px; height: 96px; font-size: 13px; left: 12px; top: 12px; padding: 8px; }
  .tile { padding: 16px; border-radius: 24px; }
  .tile-chat { grid-column: 1 / -1; grid-row: auto; min-height: 330px; }
  .bubble { font-size: 16px; padding: 10px 14px; }
  .btn-lg { width: 100%; }
  .msg { max-width: 90%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
