/* Анна Жукова — схема-терапевт. Основные стили */
:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece3;
  --surface: #ffffff;
  --text: #2b2a28;
  --muted: #625e57;
  --accent: #2f6b62;
  --accent-dark: #22524b;
  --accent-soft: #e3eeea;
  --border: #e2dbcf;
  --tg: #1a7fc4;
  --wa: #128c5a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 42, 40, .08);
  --serif: Georgia, "Times New Roman", "PT Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; color: #1f1e1c; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.3rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.logo span { display: block; font-family: var(--sans); font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a.btn { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; color: var(--text);
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: transform .15s, background .15s; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-tg { background: var(--tg); }
.btn-tg:hover { background: #136aa6; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #0d7048; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Первый экран */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: .85rem; margin-bottom: 12px; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--accent-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 24px 0 28px; color: var(--muted); font-size: .98rem; }
.facts li::before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* Страницы */
.page-head { padding: 40px 0 8px; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs a { color: var(--muted); }
.summary {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 32px; font-size: 1.08rem;
}
.summary p:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.byline { font-size: .92rem; color: var(--muted); margin-bottom: 24px; }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: var(--text); display: block; transition: transform .15s; }
a.card:hover { transform: translateY(-3px); color: var(--text); }
a.card .more { color: var(--accent); font-weight: 600; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.timeline { list-style: none; padding: 0; border-left: 2px solid var(--border); margin-left: 6px; }
.timeline li { padding: 0 0 18px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .year { display: block; font-weight: 700; color: var(--accent); font-size: .95rem; }

.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.certs figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.certs figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* Таблицы */
.table-wrap { overflow-x: auto; margin-bottom: 1.4em; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--accent-soft); font-weight: 600; }

/* Цена */
.price-card { text-align: center; max-width: 440px; margin: 0 auto; }
.price { font-family: var(--serif); font-size: 3rem; color: var(--accent); line-height: 1; margin: 8px 0; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; padding: 0 22px;
}
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding-bottom: 18px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Призыв к действию */
.cta { background: var(--accent); color: #fff; padding: 56px 0; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e6f0ed; max-width: 640px; margin: 0 auto 26px; }
.cta .buttons { justify-content: center; }
.cta .btn-tg, .cta .btn-wa { box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }

/* Подвал */
.site-footer { background: #24302d; color: #cfd8d5; padding: 48px 0 110px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; }
.disclaimer { border-top: 1px solid #3b4a46; margin-top: 32px; padding-top: 20px; font-size: .88rem; color: #a9b6b2; }

/* Нижняя панель на мобильных */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .hero-photo { max-width: 420px; order: -1; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a.btn { margin-top: 12px; border: 0; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 247, 242, .97); border-top: 1px solid var(--border);
  }
  .mobile-bar .btn { padding: 12px 10px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .section { padding: 48px 0; }
  .hero { padding: 32px 0 48px; }
  .buttons .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
