/* Стили сайта «Выдох» (/psychology/ и статьи). Меняя файл, поднимите ?v= во всех страницах. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Палитра «Выдох» — docs/COPY.md §8.1 (репозиторий controlbot-psy).
   Янтарь на глубокой ночи выбран осознанно: весь wellness-сегмент сидит в
   пастельно-лавандовом, и тёплый свет в темноте буквально отыгрывает обещание
   «я здесь в 2 ночи». Вёрстка и сетка при этом общие с calculator.html. */
:root {
  --night: #101E28;
  --night-2: #172A36;
  --amber: #F0A868;
  --peach: #F6C89A;
  --warm-white: #F4EFE9;
  --text: #E4DDD5;
  --muted: #9AA9B3;
  --muted-2: #75858F;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--night);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(16, 30, 40, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240,168,104,.15);
}
.logo {
  font-size: 20px; font-weight: 800; letter-spacing: -.5px;
  color: var(--warm-white);
}
.logo span { color: var(--amber); }
.nav-note { font-size: 13px; color: var(--muted-2); }

/* ── SHARED ── */
section { padding: 88px 20px; }
.container { max-width: 1060px; margin: 0 auto; }
.section-label {
  text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--amber); text-transform: uppercase; margin-bottom: 14px;
}
h2 {
  text-align: center; font-size: clamp(26px, 4vw, 44px);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 14px;
  color: var(--warm-white);
}
.section-sub {
  text-align: center; color: var(--muted); font-size: 18px;
  max-width: 620px; margin: 0 auto 56px; line-height: 1.7;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--peach));
  color: #0F1B24; text-decoration: none; padding: 16px 36px;
  border-radius: 12px; font-size: 16px; font-weight: 700;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 30px rgba(240,168,104,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(240,168,104,.42); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 20px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(240,168,104,.16) 0%, transparent 70%);
  pointer-events: none;
}
h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 24px; max-width: 820px; color: var(--warm-white);
  position: relative;
}
h1 span {
  background: linear-gradient(135deg, var(--amber) 0%, var(--peach) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-problem {
  font-size: clamp(17px, 2.5vw, 22px); color: var(--text);
  max-width: 640px; margin-bottom: 16px; line-height: 1.6; position: relative;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 17px); color: var(--muted);
  max-width: 560px; margin-bottom: 32px; line-height: 1.7; position: relative;
}

/* ── С ЧЕМ ПРИХОДЯТ ── */
.topics { background: var(--night-2); }
.topics-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.topic-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 40px;
}
.topic-list li {
  font-size: 17px; color: var(--text); padding: 12px 22px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(240,168,104,.16);
  border-radius: 999px;
}
.normalize {
  font-size: clamp(19px, 3vw, 26px); color: var(--warm-white); line-height: 1.6;
  max-width: 620px; margin: 0 auto; font-weight: 600;
}
.normalize small {
  display: block; margin-top: 14px; font-size: 16px;
  color: var(--muted); font-weight: 400; line-height: 1.7;
}

/* ── МАКЕТ ПЕРЕПИСКИ ── */
.chat { background: var(--night); }
.chat-window {
  max-width: 560px; margin: 0 auto;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(240,168,104,.16);
  border-radius: 20px; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.bubble {
  max-width: 85%; padding: 14px 18px; border-radius: 18px;
  font-size: 16px; line-height: 1.6;
}
.bubble.them {
  align-self: flex-start;
  background: rgba(240,168,104,.12);
  border: 1px solid rgba(240,168,104,.22);
  color: var(--text);
  border-bottom-left-radius: 6px;
}
.bubble.me {
  align-self: flex-end;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--text);
  border-bottom-right-radius: 6px;
}
.chat-note {
  text-align: center; color: var(--muted-2); font-size: 14px;
  margin-top: 20px; line-height: 1.7;
}

/* ── КАЧЕСТВО ── */
.quality { background: var(--night-2); }
.quality-inner { max-width: 640px; margin: 0 auto; }
.quality-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.quality-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 17px; color: var(--text); padding: 16px 20px;
  background: rgba(240,168,104,.06);
  border: 1px solid rgba(240,168,104,.15);
  border-radius: 12px; line-height: 1.65;
}
.quality-list .feat-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.limits {
  margin-top: 28px; padding: 20px 24px; border-radius: 14px;
  background: rgba(255,255,255,.04); border-left: 3px solid var(--amber);
  color: var(--muted); font-size: 16px; line-height: 1.7;
}
.limits strong { color: var(--text); }

/* ── ПРИВАТНОСТЬ ── */
.privacy-inner { max-width: 640px; margin: 0 auto; }

/* ── ЦЕНА ── */
.pricing { background: var(--night-2); }
.price-anchor {
  text-align: center; font-size: clamp(18px, 2.6vw, 22px);
  color: var(--warm-white); max-width: 620px; margin: 0 auto 40px; line-height: 1.7;
}
.price-anchor strong { color: var(--amber); }
.plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px; max-width: 760px; margin: 0 auto 32px;
}
.plan {
  text-align: center; padding: 28px 20px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.plan.best { border-color: rgba(240,168,104,.45); background: rgba(240,168,104,.08); }
.plan-name { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.plan-price { font-size: 30px; font-weight: 800; color: var(--warm-white); }
.plan-tag { font-size: 13px; color: var(--amber); margin-top: 8px; min-height: 18px; }
.price-note {
  text-align: center; color: var(--muted); font-size: 16px;
  max-width: 620px; margin: 0 auto; line-height: 1.7;
}

/* ── CTA ── */
.cta-block {
  background: linear-gradient(135deg, rgba(240,168,104,.14) 0%, rgba(246,200,154,.10) 100%);
  border: 1px solid rgba(240,168,104,.25); border-radius: 24px;
  padding: 80px 40px; text-align: center;
}
.cta-block h2 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 48px); }
.cta-block .cta-sub { color: var(--muted); font-size: 18px; margin-bottom: 12px; line-height: 1.7; }
.cta-block .cta-note { color: var(--muted-2); font-size: 14px; margin-bottom: 40px; }

.start-hint {
  margin-top: 14px; font-size: 15px; color: var(--text);
  background: rgba(240,168,104,.10); border: 1px solid rgba(240,168,104,.28);
  border-radius: 10px; padding: 10px 20px; display: inline-block;
}
.start-hint strong { color: var(--peach); }

/* ── FOOTER ── */
footer {
  background: var(--night-2); border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 20px;
}
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-disclaimer {
  color: var(--muted-2); font-size: 14px; line-height: 1.8;
  max-width: 760px; margin: 0 auto 28px; text-align: center;
}
.footer-disclaimer strong { color: var(--muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px;
}
.footer-logo { font-size: 18px; font-weight: 800; color: var(--warm-white); }
.footer-logo span { color: var(--amber); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted-2); font-size: 13px; }

@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  .hero { min-height: auto; }
  section { padding: 64px 16px; }
  .cta-block { padding: 48px 20px; }
  .bubble { max-width: 92%; }
}

/* ── Статьи (SEO-тексты) ── */
.article { max-width: 720px; margin: 0 auto; }
.article h2 { text-align: left; font-size: clamp(22px, 3.4vw, 30px); margin: 40px 0 14px; letter-spacing: -.5px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 18px; font-weight: 700; color: var(--warm-white); margin: 24px 0 8px; }
.article p, .article li { font-size: 16.5px; color: var(--text); line-height: 1.75; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 14px; }
.article li { margin-bottom: 6px; }
.article a { color: var(--peach); }
.article strong { color: var(--warm-white); }
.steps-box {
  background: rgba(240,168,104,.07); border: 1px solid rgba(240,168,104,.22);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 16px;
}
.steps-box p:last-child, .steps-box ol:last-child { margin-bottom: 0; }

/* Блок срочной помощи — на каждой статье */
.crisis {
  max-width: 720px; margin: 0 auto 8px; padding: 14px 18px; border-radius: 12px;
  background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3);
  font-size: 15px; line-height: 1.6; color: var(--text);
}
.crisis strong { color: var(--warm-white); }
.crisis a { color: var(--peach); }

/* Службы помощи */
.help-list { list-style: none; padding: 0 !important; }
.help-list li {
  background: var(--night-2); border: 1px solid rgba(255,255,255,.08); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 10px;
}
.help-list .phone { font-size: 19px; font-weight: 800; color: var(--warm-white); white-space: nowrap; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; background: rgba(255,255,255,.02);
}
.faq summary { cursor: pointer; font-size: 16.5px; font-weight: 700; color: var(--warm-white); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--amber); font-weight: 800; }
.faq details[open] summary::after { content: '−'; }
.faq details p { font-size: 15.5px; color: var(--text); line-height: 1.7; margin-top: 10px; }

/* Другие статьи */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 720px; margin: 0 auto; }
.tools a {
  display: block; padding: 16px 18px; border-radius: 12px; text-decoration: none;
  background: var(--night-2); border: 1px solid rgba(240,168,104,.2); color: var(--warm-white); font-weight: 700;
}
.tools a span { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.tools a[aria-current="page"] { display: none; }
