/* ============================================================
   Психолог Анна Крылова — редакционный лендинг
   Три направления переключаются через [data-theme] на <html>
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

/* Общие токены типографики для всех тем */
:root {
  --display: 'Cormorant Garamond', Georgia, serif;   /* высококонтрастный дисплейный */
  --serif: 'Spectral', Georgia, serif;                /* наборный serif */
  --sans:  'Manrope', system-ui, sans-serif;
  --h-weight: 500;
  --display-tracking: -0.012em;
  --caps-tracking: 0.26em;
  --section-pad: clamp(88px, 11.5vw, 180px);
}

/* ---------- Палитра · Латунь (по умолчанию) — слоновая кость, графит, тёплая латунь ---------- */
:root,
[data-theme="brass"] {
  --paper:        oklch(0.974 0.006 84);
  --paper-2:      oklch(0.951 0.010 82);
  --panel:        oklch(0.987 0.004 84);
  --ink:          oklch(0.225 0.011 70);
  --ink-soft:     oklch(0.420 0.013 72);
  --ink-faint:    oklch(0.605 0.013 76);
  --line:         oklch(0.882 0.011 82);
  --accent:       oklch(0.595 0.078 74);
  --accent-deep:  oklch(0.485 0.070 70);
  --accent-tint:  oklch(0.930 0.028 82);
  --dark:           oklch(0.205 0.013 64);
  --dark-2:         oklch(0.258 0.015 66);
  --dark-ink:       oklch(0.954 0.010 84);
  --dark-soft:      oklch(0.808 0.016 80);
  --dark-faint:     oklch(0.628 0.018 76);
  --dark-line:      oklch(0.360 0.016 68);
  --accent-on-dark: oklch(0.785 0.095 80);
}

/* ---------- Палитра · Бордо — тёплая кость, чёрный инк, гарнетовый акцент ---------- */
[data-theme="bordeaux"] {
  --paper:        oklch(0.971 0.006 42);
  --paper-2:      oklch(0.948 0.011 38);
  --panel:        oklch(0.985 0.004 42);
  --ink:          oklch(0.228 0.016 30);
  --ink-soft:     oklch(0.420 0.020 30);
  --ink-faint:    oklch(0.602 0.018 32);
  --line:         oklch(0.882 0.012 40);
  --accent:       oklch(0.448 0.118 24);
  --accent-deep:  oklch(0.375 0.110 23);
  --accent-tint:  oklch(0.922 0.034 32);
  --dark:           oklch(0.198 0.030 24);
  --dark-2:         oklch(0.250 0.036 24);
  --dark-ink:       oklch(0.952 0.010 42);
  --dark-soft:      oklch(0.806 0.018 36);
  --dark-faint:     oklch(0.624 0.022 30);
  --dark-line:      oklch(0.358 0.032 24);
  --accent-on-dark: oklch(0.640 0.128 30);
}

/* ---------- Палитра · Камень — тёплый грейж, графит, приглушённая бронза (тихая роскошь) ---------- */
[data-theme="stone"] {
  --paper:        oklch(0.953 0.006 78);
  --paper-2:      oklch(0.928 0.008 76);
  --panel:        oklch(0.972 0.005 78);
  --ink:          oklch(0.268 0.008 72);
  --ink-soft:     oklch(0.448 0.010 72);
  --ink-faint:    oklch(0.618 0.010 74);
  --line:         oklch(0.868 0.008 76);
  --accent:       oklch(0.520 0.040 64);
  --accent-deep:  oklch(0.430 0.038 62);
  --accent-tint:  oklch(0.910 0.018 72);
  --dark:           oklch(0.258 0.008 70);
  --dark-2:         oklch(0.312 0.009 70);
  --dark-ink:       oklch(0.942 0.008 76);
  --dark-soft:      oklch(0.792 0.010 74);
  --dark-faint:     oklch(0.608 0.012 72);
  --dark-line:      oklch(0.400 0.010 70);
  --accent-on-dark: oklch(0.728 0.046 74);
}

/* ---------- Палитра · Шалфей — слоновая кость, графит, приглушённый зелёный ---------- */
[data-theme="sage"] {
  --paper:        oklch(0.972 0.007 110);
  --paper-2:      oklch(0.949 0.011 110);
  --panel:        oklch(0.986 0.005 110);
  --ink:          oklch(0.235 0.010 150);
  --ink-soft:     oklch(0.425 0.014 150);
  --ink-faint:    oklch(0.608 0.013 150);
  --line:         oklch(0.882 0.012 130);
  --accent:       oklch(0.520 0.060 155);
  --accent-deep:  oklch(0.430 0.058 155);
  --accent-tint:  oklch(0.925 0.028 150);
  --dark:           oklch(0.225 0.028 160);
  --dark-2:         oklch(0.278 0.030 160);
  --dark-ink:       oklch(0.952 0.010 120);
  --dark-soft:      oklch(0.808 0.018 130);
  --dark-faint:     oklch(0.624 0.020 140);
  --dark-line:      oklch(0.360 0.022 158);
  --accent-on-dark: oklch(0.760 0.078 158);
}

/* ---------- Палитра · Глина — песочный беж, тёмно-коричневый, терракота ---------- */
[data-theme="clay"] {
  --paper:        oklch(0.965 0.012 70);
  --paper-2:      oklch(0.940 0.016 65);
  --panel:        oklch(0.981 0.009 70);
  --ink:          oklch(0.255 0.020 50);
  --ink-soft:     oklch(0.440 0.026 50);
  --ink-faint:    oklch(0.615 0.022 55);
  --line:         oklch(0.875 0.018 62);
  --accent:       oklch(0.560 0.090 50);
  --accent-deep:  oklch(0.475 0.085 48);
  --accent-tint:  oklch(0.918 0.034 60);
  --dark:           oklch(0.235 0.028 45);
  --dark-2:         oklch(0.288 0.032 45);
  --dark-ink:       oklch(0.955 0.012 70);
  --dark-soft:      oklch(0.815 0.020 60);
  --dark-faint:     oklch(0.640 0.024 55);
  --dark-line:      oklch(0.375 0.030 48);
  --accent-on-dark: oklch(0.720 0.100 58);
}

/* ---------- Палитра · Дымчатый синий — прохладная кость, уголь, сине-серый ---------- */
[data-theme="slate"] {
  --paper:        oklch(0.970 0.005 250);
  --paper-2:      oklch(0.946 0.009 250);
  --panel:        oklch(0.985 0.004 250);
  --ink:          oklch(0.240 0.014 255);
  --ink-soft:     oklch(0.435 0.018 255);
  --ink-faint:    oklch(0.615 0.016 255);
  --line:         oklch(0.882 0.012 250);
  --accent:       oklch(0.500 0.050 250);
  --accent-deep:  oklch(0.415 0.050 252);
  --accent-tint:  oklch(0.922 0.024 250);
  --dark:           oklch(0.220 0.028 256);
  --dark-2:         oklch(0.272 0.032 256);
  --dark-ink:       oklch(0.952 0.010 250);
  --dark-soft:      oklch(0.812 0.018 250);
  --dark-faint:     oklch(0.628 0.020 252);
  --dark-line:      oklch(0.365 0.026 256);
  --accent-on-dark: oklch(0.740 0.078 254);
}

/* ---------- Палитра · Еловый — слоновая кость, тёмно-зелёные секции, золотой акцент ---------- */
[data-theme="forest"] {
  --paper:        oklch(0.970 0.008 110);
  --paper-2:      oklch(0.947 0.012 110);
  --panel:        oklch(0.985 0.006 110);
  --ink:          oklch(0.235 0.012 150);
  --ink-soft:     oklch(0.425 0.016 150);
  --ink-faint:    oklch(0.608 0.014 150);
  --line:         oklch(0.880 0.013 130);
  --accent:       oklch(0.605 0.080 82);
  --accent-deep:  oklch(0.500 0.072 80);
  --accent-tint:  oklch(0.924 0.030 86);
  --dark:           oklch(0.255 0.052 158);
  --dark-2:         oklch(0.305 0.052 158);
  --dark-ink:       oklch(0.955 0.014 120);
  --dark-soft:      oklch(0.818 0.026 140);
  --dark-faint:     oklch(0.642 0.030 150);
  --dark-line:      oklch(0.388 0.044 158);
  --accent-on-dark: oklch(0.800 0.098 84);
}

/* ---------- Палитра · Эспрессо — песочный беж, тёмно-коричневые секции, карамельный акцент ---------- */
[data-theme="espresso"] {
  --paper:        oklch(0.967 0.011 70);
  --paper-2:      oklch(0.942 0.015 68);
  --panel:        oklch(0.982 0.008 70);
  --ink:          oklch(0.250 0.020 50);
  --ink-soft:     oklch(0.440 0.024 50);
  --ink-faint:    oklch(0.615 0.020 55);
  --line:         oklch(0.876 0.016 62);
  --accent:       oklch(0.530 0.080 55);
  --accent-deep:  oklch(0.450 0.075 50);
  --accent-tint:  oklch(0.916 0.030 60);
  --dark:           oklch(0.235 0.036 50);
  --dark-2:         oklch(0.288 0.040 50);
  --dark-ink:       oklch(0.955 0.012 70);
  --dark-soft:      oklch(0.815 0.022 60);
  --dark-faint:     oklch(0.642 0.026 55);
  --dark-line:      oklch(0.378 0.038 50);
  --accent-on-dark: oklch(0.768 0.098 62);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

html { background: var(--paper) !important; }
html body {
  background: var(--paper) !important;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s ease, color .5s ease;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92vw); margin-inline: auto; }

/* ---------- Типографика ---------- */
h1, h2 { font-family: var(--display); font-weight: var(--h-weight); line-height: 1.0; letter-spacing: var(--display-tracking); }
h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.004em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--caps-tracking);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow .num { color: var(--ink-faint); margin-right: 16px; font-variant-numeric: tabular-nums; }

.section-title { font-size: clamp(42px, 5.8vw, 78px); line-height: 0.98; }
.lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
.serif-accent { font-family: var(--serif); font-style: italic; color: var(--accent-deep); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; filter: grayscale(0.15); }
.brand-mark { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 2px; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1; color: var(--accent-deep); letter-spacing: 0.04em; flex-shrink: 0; transition: background .25s, color .25s; }
.brand:hover .brand-mark { background: var(--accent); color: var(--paper); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.brand-text .b1 { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.brand-text .b2 { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: var(--sans); font-size: 14px; letter-spacing: 0.01em; color: var(--ink-soft); transition: color .2s; position: relative; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1.5px; background: var(--accent); }
.nav-phone { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; padding-left: 30px; border-left: 1px solid var(--line); transition: color .2s; }
.nav-phone:hover { color: var(--accent-deep); }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
  .nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 4vw 26px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 8px 0; font-size: 17px; }
  .nav.open .nav-phone { display: block; padding: 10px 4vw 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 132px; padding-bottom: var(--section-pad); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.03; margin-bottom: 26px; letter-spacing: -0.018em; }
.hero-kicker { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-kicker span:last-child { color: var(--ink-soft); font-weight: 500; }
.hero-kicker .hk-dot { color: var(--accent); }
.hero h1 em { font-style: italic; color: var(--accent-deep); font-weight: 500; }
.hero-sub { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.6vw, 29px); color: var(--ink-soft); margin-bottom: 38px; line-height: 1.3; }
.hero-sub .dot { color: var(--accent); font-style: normal; }
.hero p { max-width: 52ch; margin-bottom: 18px; color: var(--ink-soft); }
.hero .hero-intro { font-size: clamp(18px, 1.55vw, 20px); line-height: 1.62; max-width: 46ch; color: var(--ink-soft); }
.hero .cyprus { color: var(--ink); }

/* Вступление-манифест */
.intro-manifesto { padding-top: clamp(72px, 9vw, 130px); padding-bottom: clamp(72px, 9vw, 130px); }
.manifesto { max-width: 880px; margin-inline: auto; text-align: center; }
.manifesto p { font-family: var(--serif); font-size: clamp(20px, 2.3vw, 27px); line-height: 1.5; color: var(--ink); margin-bottom: 24px; text-wrap: pretty; }
.manifesto p:last-child { margin-bottom: 0; }
.manifesto .manifesto-turn { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(25px, 3.1vw, 36px); line-height: 1.3; color: var(--accent-deep); margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }

/* Преимущества — единая полоса регалий (опыт → объём → школа) */
.hero-creds { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 4px; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.hero-creds li { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border-right: 1px solid var(--line); }
.hero-creds li:last-child { border-right: none; }
.hero-creds b { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.5vw, 30px); line-height: 1; color: var(--accent-deep); letter-spacing: -0.01em; }
.hero-creds span { font-size: 12.5px; line-height: 1.35; color: var(--ink-faint); letter-spacing: 0.01em; }
@media (max-width: 560px) { .hero-creds { grid-template-columns: 1fr; } .hero-creds li { border-right: none; border-bottom: 1px solid var(--line); } .hero-creds li:last-child { border-bottom: none; } }

/* Блок записи */
.hero-book { margin-top: 30px; }
.hero-book .cta-lead { margin-top: 16px; margin-bottom: 0; }
.steps .book-title { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.dark .steps .book-title { border-top-color: var(--dark-line); }
.book-title { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 27px); font-weight: 500; margin-bottom: 6px; color: var(--ink); }

.hero-photo { position: relative; }
.hero-photo .frame { aspect-ratio: 3/4; overflow: hidden; border-radius: 2px; box-shadow: 0 44px 96px -52px rgba(24,18,10,.6); }
.hero-photo .frame { position: relative; }
.hero-photo .frame::after { content: ""; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .cap { position: absolute; bottom: 20px; left: -22px; background: var(--accent); color: var(--paper); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; padding: 11px 18px; border-radius: 1px; box-shadow: 0 14px 32px -14px rgba(0,0,0,.5); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 360px; }
}

/* ---------- CTA / кнопки ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px; border-radius: 1px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; font-family: var(--sans); cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
/* Мессенджеры — равноправный набор, ни один не выделен как приоритетный */
.btn-msgr { background: var(--accent-tint); color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-msgr:hover { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn .ic { width: 17px; height: 17px; }
.btn .bw { font-size: 15px; opacity: .6; transition: transform .2s, opacity .2s; }
.btn:hover .bw { opacity: 1; transform: translate(2px, -2px); }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-lg .bw { font-size: 17px; }
.btn-primary.btn-lg:hover .bw { transform: translateY(3px); }
#format { scroll-margin-top: 84px; }
.price-line { margin-top: 18px; font-size: 14.5px; color: var(--ink-soft); }
.price-line b { color: var(--ink); font-weight: 600; }

/* Тарифы в hero — две читаемые карточки */
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; max-width: 460px; }
.price-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 2px; background: var(--panel); }
.price-card .pc-label { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.price-card .pc-price { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); line-height: 1; color: var(--accent-deep); letter-spacing: -0.01em; }
.price-card .pc-price i { font-style: normal; font-size: 0.62em; color: var(--ink-soft); font-family: var(--sans); font-weight: 500; }
.price-card .pc-meta { font-size: 12.5px; color: var(--ink-faint); }
@media (max-width: 460px) { .price-cards { grid-template-columns: 1fr; max-width: none; } }

/* ============================================================
   Универсальные секции
   ============================================================ */
section { scroll-margin-top: 84px; }
.section { padding-block: var(--section-pad); border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin-top: 22px; }

/* ---------- С чем я работаю ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.work-col { padding: clamp(26px, 3vw, 40px); border-right: 1px solid var(--line); background: var(--panel); }
.work-col:last-child { border-right: none; }
.work-col h3 { font-size: 25px; margin-bottom: 10px; }
.work-col .col-lead { font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.45; color: var(--ink); margin-bottom: 18px; }
.work-col .col-tag { width: 34px; height: 2px; background: var(--accent); margin-bottom: 22px; }
.work-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.work-col li { font-size: 16px; color: var(--ink-soft); padding-left: 18px; position: relative; line-height: 1.4; }
.work-col li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .65; }
.work-note { margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } .work-col { border-right: none; border-bottom: 1px solid var(--line); } .work-col:last-child { border-bottom: none; } }

/* ---------- Как устроена работа ---------- */
.method { display: grid; grid-template-columns: 1fr 0.78fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.method-text p { margin-bottom: 18px; color: var(--ink-soft); }
.method-text p strong { color: var(--ink); font-weight: 600; }
.method-photo { position: sticky; top: 100px; }
.method-photo .frame { aspect-ratio: 3/4; overflow: hidden; border-radius: 2px; box-shadow: 0 32px 72px -44px rgba(24,18,10,.55); position: relative; }
.method-photo .frame::after { content: ""; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); pointer-events: none; }
.method-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .method { grid-template-columns: 1fr; } .method-photo { position: static; max-width: 360px; } }

.steps { margin-top: 56px; }
.steps h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { border-top: 2px solid var(--accent); padding-top: 18px; }
.step .n { font-family: var(--serif); font-size: 40px; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.step .t { font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---------- Обо мне ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.about-photo .frame { aspect-ratio: 3/4; overflow: hidden; border-radius: 2px; box-shadow: 0 32px 72px -44px rgba(24,18,10,.55); position: relative; }
.about-photo .frame::after { content: ""; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); pointer-events: none; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .kicker { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--accent-deep); margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; color: var(--ink-soft); }
.about-text p strong { color: var(--ink); font-weight: 600; }
.about-text .about-warm { font-family: var(--serif); font-size: 17.5px; line-height: 1.55; color: var(--ink); border-left: 2px solid var(--accent); padding-left: 20px; margin: 22px 0; }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 340px; } }

/* ---------- Формат работы ---------- */
.format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.format-card { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 2px; padding: clamp(32px, 3.6vw, 52px); display: flex; flex-direction: column; }
.format-card h3 { font-size: 27px; margin-bottom: 22px; }
.format-card .pr { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5.2vw, 60px); line-height: 1; color: var(--accent-deep); margin-bottom: 8px; letter-spacing: -0.01em; }
.format-card .meta { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.format-card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 0; flex: 1; }
.format-prepay { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); }
@media (max-width: 720px) { .format-grid { grid-template-columns: 1fr; } }

/* ---------- Этика работы ---------- */
.ethics { background: var(--paper-2); }
.ethics-body { max-width: 760px; }
.ethics-body p { color: var(--ink-soft); margin-bottom: 18px; }
.ethics-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.ethics-list li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.ethics-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.ethics-list li strong { color: var(--ink); font-weight: 600; }
.ethics-journey { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.ethics-journey h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 14px; color: var(--ink); }
.ethics-journey p { font-size: 17px; line-height: 1.62; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Сертификаты ---------- */
.cert-grid { columns: 4 220px; column-gap: 16px; }
.cert-grid figure { break-inside: avoid; margin-bottom: 16px; cursor: zoom-in; overflow: hidden; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); position: relative; }
.cert-grid img { width: 100%; height: auto; transition: transform .5s ease, filter .4s; filter: saturate(0.92); }
.cert-grid figure:hover img { transform: scale(1.04); filter: saturate(1); }
.cert-grid figure::after { content: "↗"; position: absolute; top: 10px; right: 12px; color: #fff; font-size: 15px; opacity: 0; transition: opacity .3s; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.cert-grid figure:hover::after { opacity: 1; }
.cert-more { display: flex; justify-content: center; margin-top: 36px; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(28,22,16,.92); display: none; align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,.26); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox .lb-nav { width: 40px; height: 40px; } }

/* ---------- Контакты / футер ---------- */
.contacts { background: var(--paper-2); }
.contacts-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; }
.contact-row { display: flex; gap: 18px; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.c-label { width: 110px; flex-shrink: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.contact-row a, .contact-row .v { font-size: 19px; font-family: var(--serif); color: var(--ink); transition: color .2s; }
.contact-row a:hover { color: var(--accent-deep); }
.contact-photo .frame { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; box-shadow: 0 28px 64px -40px rgba(24,18,10,.55); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }
.socials { display: flex; gap: 14px; margin-top: 30px; }
.socials a { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); border: 1px solid var(--line); padding: 9px 14px; border-radius: 40px; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent-deep); }
@media (max-width: 820px) { .contacts-grid { grid-template-columns: 1fr; } .contact-photo { order: -1; max-width: 420px; } }

.footer { border-top: 1px solid var(--line); padding-block: 30px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-faint); }
.footer a:hover { color: var(--accent-deep); }

/* ============================================================
   Переключатель направлений
   ============================================================ */
.dir-switch { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 2px; padding: 7px 8px 7px 16px; box-shadow: 0 16px 44px -20px rgba(24,18,10,.5); font-size: 12px; }
.dir-switch .ds-label { color: var(--ink-faint); letter-spacing: 0.14em; text-transform: uppercase; font-size: 10.5px; margin-right: 6px; }
.dir-switch button { border: none; background: transparent; color: var(--ink-soft); font-family: var(--sans); font-size: 13px; cursor: pointer; padding: 7px 14px; border-radius: 1px; transition: background .2s, color .2s; }
.dir-switch button.active { background: var(--accent); color: var(--paper); }
.dir-switch button:not(.active):hover { color: var(--accent-deep); }
@media (max-width: 600px) { .dir-switch .ds-label { display: none; } .dir-switch { padding: 6px; left: 12px; bottom: 12px; } }

.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================================================
   Внутренние страницы — шапка раздела
   ============================================================ */
.page-hero { padding-top: 132px; padding-bottom: clamp(46px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(40px, 6.5vw, 78px); line-height: 1.0; margin-bottom: 24px; }
.page-hero h1 em { font-style: italic; color: var(--accent-deep); }
.page-hero .lead { max-width: 60ch; }
.page-section { padding-block: clamp(56px, 8vw, 110px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-faint); margin-bottom: 30px; transition: color .2s; }
.back-link:hover { color: var(--accent-deep); }

/* ---------- Обо мне (страница) ---------- */
.about-page { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(40px, 6vw, 84px); align-items: start; }
.about-page .about-photo { position: sticky; top: 100px; }
@media (max-width: 820px) { .about-page { grid-template-columns: 1fr; } .about-page .about-photo { position: static; max-width: 340px; } }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; margin-top: 14px; }
.cred-grid .cell { background: var(--panel); padding: 26px 24px; }
.cred-grid .cell .big { font-family: var(--display); font-weight: 500; font-size: 46px; color: var(--accent-deep); line-height: 1; margin-bottom: 8px; }
.cred-grid .cell .lbl { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Научная деятельность ---------- */
.research-intro p { color: var(--ink-soft); margin-bottom: 18px; max-width: 68ch; }
.research-intro p strong { color: var(--ink); font-weight: 600; }
.survey-note { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); color: var(--accent-deep); margin: 8px 0 4px; line-height: 1.35; }
.survey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
.survey-card { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; padding: 32px 28px; display: flex; flex-direction: column; }
.survey-card .sn { font-family: var(--serif); font-size: 46px; color: var(--accent); line-height: 1; margin-bottom: 20px; }
.survey-card h3 { font-size: 21px; line-height: 1.22; margin-bottom: 24px; flex: 1; font-weight: 400; }
.survey-card .btn { align-self: flex-start; }
@media (max-width: 820px) { .survey-grid { grid-template-columns: 1fr; } }

/* ---------- Диагностические тесты ---------- */
.tests-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.test-row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(26px, 3.4vw, 40px) 4px; border-bottom: 1px solid var(--line); transition: background .25s; }
.test-row:hover { background: var(--panel); }
.test-row .t-code { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.test-row .t-desc { color: var(--ink-soft); font-size: 17px; max-width: 56ch; }
.test-row .t-action { justify-self: end; }
.t-soon { display: inline-flex; align-items: center; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); border: 1px dashed var(--line); border-radius: 40px; padding: 10px 18px; white-space: nowrap; }
@media (max-width: 680px) { .test-row { grid-template-columns: 1fr; gap: 14px; align-items: start; } .test-row .t-action { justify-self: start; } }

/* ---------- Квалификация — хронология ---------- */
.qual-range { font-family: var(--serif); font-size: clamp(46px, 8vw, 100px); line-height: 0.95; color: var(--accent-deep); letter-spacing: -0.02em; }
.qual-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.qual-grid .qual-aside { position: sticky; top: 100px; }
.qual-aside p { color: var(--ink-soft); margin-top: 22px; max-width: 40ch; }
.qual-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.qual-list li { padding: 22px 0 22px 28px; border-top: 1px solid var(--line); position: relative; color: var(--ink-soft); line-height: 1.5; }
.qual-list li:first-child { border-top: none; }
.qual-list li::before { content: ""; position: absolute; left: 0; top: 30px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.qual-list li a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.qual-list li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .qual-grid { grid-template-columns: 1fr; } .qual-grid .qual-aside { position: static; } }

/* CTA-полоса в конце страниц */
.cta-band { border-top: 1px solid var(--line); background: var(--paper-2); padding-block: clamp(54px, 7vw, 96px); text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 14px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 30px; }
.cta-band .cta-row { justify-content: center; }

/* Ведущая микрокопия над рядом мессенджеров */
.cta-lead { font-size: 15px; color: var(--ink-faint); margin: 0 0 14px; letter-spacing: 0.01em; }
.cta-band .cta-lead { margin-top: -14px; }
.dark .cta-lead { color: var(--dark-faint); }

/* FAQ */
.faq { background: var(--paper-2); }
.faq-list { max-width: 820px; display: flex; flex-direction: column; }
.faq-item { padding: 28px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 12px; color: var(--ink); }
.faq-item p { color: var(--ink-soft); line-height: 1.55; max-width: 64ch; }

/* Тесты — строка «скоро» */
.tests-soon { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-faint); }

/* ---------- Интерактивный опросник ---------- */
.quiz-host { margin-top: 40px; }
.quiz { border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 2px; background: var(--panel); padding: clamp(26px, 4vw, 48px); }
.quiz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
.quiz-head h3 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.01em; }
.quiz-close { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--ink-faint); letter-spacing: 0.04em; }
.quiz-close:hover { color: var(--accent-deep); }
.quiz-lead { color: var(--ink-soft); max-width: 64ch; margin-bottom: 8px; }
.quiz-scaleinfo { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 28px; }
.quiz-progress { position: sticky; top: 80px; z-index: 5; height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 30px; overflow: hidden; }
.quiz-progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.quiz-q { padding: 22px 0; border-top: 1px solid var(--line); }
.quiz-q:first-of-type { border-top: none; }
.quiz-q .q-text { font-size: 18px; color: var(--ink); margin-bottom: 16px; display: flex; gap: 12px; }
.quiz-q .q-num { color: var(--accent-deep); font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.q-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.q-opt { position: relative; }
.q-opt input { position: absolute; opacity: 0; pointer-events: none; }
.q-opt label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 8px 10px; font-size: 14px; line-height: 1.25; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.q-opt label:hover { border-color: var(--accent); }
.q-opt input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--paper); font-weight: 600; }
.q-opt input:focus-visible + label { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
@media (max-width: 600px) { .q-opts { grid-template-columns: 1fr; } .q-opt label { min-height: 0; justify-content: flex-start; } }
.quiz-actions { margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz-hint { font-size: 14px; color: var(--ink-faint); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.quiz-disclaimer { margin-top: 22px; font-size: 13.5px; color: var(--ink-faint); line-height: 1.5; }

/* результат */
.quiz-result { text-align: center; padding: 8px 0 4px; }
.result-band-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.result-score { font-family: var(--display); font-weight: 600; font-size: clamp(64px, 12vw, 120px); line-height: 0.9; color: var(--accent-deep); letter-spacing: -0.02em; }
.result-score span { font-size: 0.4em; color: var(--ink-faint); }
.result-band { font-family: var(--display); font-style: italic; font-size: clamp(24px, 3.4vw, 34px); color: var(--ink); margin-top: 10px; }
.result-bar { display: flex; gap: 4px; max-width: 520px; margin: 28px auto 0; }
.result-bar > i { flex: 1; height: 6px; border-radius: 2px; background: var(--line); }
.result-bar > i.on { background: var(--accent); }
.result-text { max-width: 60ch; margin: 26px auto 0; color: var(--ink-soft); line-height: 1.6; text-align: left; }
.result-care { max-width: 60ch; margin: 22px auto 0; padding: 18px 22px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent-tint); color: var(--ink); font-size: 15px; line-height: 1.55; text-align: left; }
.result-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.result-cta { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.result-cta-title { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 25px); font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.result-cta-lead { font-size: 14.5px; color: var(--ink-faint); margin-bottom: 20px; }
.result-msgr { justify-content: center; }
.result-send-link { margin-top: 20px; background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--accent-deep); letter-spacing: 0.01em; transition: color .2s; }
.result-send-link:hover { color: var(--accent); }
.result-disclaimer { max-width: 60ch; margin: 24px auto 0; font-size: 13px; color: var(--ink-faint); line-height: 1.5; }
.result-symptoms { max-width: 60ch; margin: 18px auto 0; text-align: left; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.result-symptoms strong { color: var(--ink); }
.result-foot { margin-top: 24px; }

/* согласие на обработку ПД */
.quiz-consent { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper-2); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.consent-check.small { font-size: 13.5px; margin-top: 14px; }
.consent-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.consent-check a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* чек-лист симптомов */
.symptom-block { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.symptom-block h4 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.symptom-note { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 18px; line-height: 1.5; }
.symptom-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.symptom-opt input { position: absolute; opacity: 0; pointer-events: none; }
.symptom-opt label { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 14px; line-height: 1.3; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.symptom-opt label::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border: 1px solid var(--ink-faint); border-radius: 1px; transition: background .15s, border-color .15s; }
.symptom-opt label:hover { border-color: var(--accent); }
.symptom-opt input:checked + label { border-color: var(--accent); color: var(--ink); }
.symptom-opt input:checked + label::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--paper); }
@media (max-width: 600px) { .symptom-grid { grid-template-columns: 1fr; } }

/* варианты ответа в столбик (длинные формулировки) */
.q-opts-stack { display: flex; flex-direction: column; gap: 8px; }
.q-opts-stack .q-opt label { justify-content: flex-start; text-align: left; min-height: 0; gap: 12px; padding: 13px 16px; line-height: 1.4; align-items: flex-start; }
.q-opts-stack .q-optnum { font-family: var(--display); font-weight: 600; color: var(--accent-deep); flex-shrink: 0; min-width: 14px; }
.q-opts-stack .q-opt input:checked + label .q-optnum { color: var(--paper); }

/* форма отправки результата */
.send-form { max-width: 460px; margin: 24px auto 0; text-align: left; padding: 24px; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 2px; background: var(--paper-2); }
.send-title { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 16px; color: var(--ink); }
.send-field { margin-bottom: 14px; }
.send-field label { display: block; font-size: 13px; color: var(--ink-faint); margin-bottom: 6px; }
.send-field input { width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.send-field input:focus { outline: none; border-color: var(--accent); }
.send-form button[type="submit"] { margin-top: 8px; }
.send-status { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.send-status.ok { color: var(--accent-deep); }

/* Публикации */
.pub-list { list-style: none; max-width: 820px; display: flex; flex-direction: column; }
.pub-list li { padding: 24px 0 24px 30px; border-top: 1px solid var(--line); position: relative; color: var(--ink-soft); line-height: 1.5; }
.pub-list li:last-child { border-bottom: 1px solid var(--line); }
.pub-list li::before { content: "↳"; position: absolute; left: 0; top: 24px; color: var(--accent); }
.pub-list li a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.pub-list li strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Тёмные секции — контраст тёмный/светлый
   ============================================================ */
.dark { background: var(--dark); color: var(--dark-soft); }
.dark h1, .dark h2, .dark h3, .dark h4, .dark .section-title { color: var(--dark-ink); }
.dark h1 em { color: var(--accent-on-dark); }
.dark p, .dark .lead, .dark li { color: var(--dark-soft); }
.dark strong { color: var(--dark-ink); }
.dark .eyebrow { color: var(--accent-on-dark); }
.dark .eyebrow .num { color: var(--dark-faint); }
.dark.section { border-top-color: var(--dark-line); }
.dark .back-link { color: var(--dark-faint); }
.dark .back-link:hover { color: var(--accent-on-dark); }

/* hero на тёмном */
.dark .hero-kicker { color: var(--accent-on-dark); }
.dark .hero-kicker span:last-child { color: var(--dark-soft); }
.dark .hero-kicker .hk-dot { color: var(--accent-on-dark); }
.dark .hero-sub { color: var(--dark-soft); }
.dark .hero-sub .dot { color: var(--accent-on-dark); }
.dark .cyprus { color: var(--dark-ink); }
.dark .hero-intro { color: var(--dark-soft); }
.dark .price-line { color: var(--dark-soft); }
.dark .price-line b { color: var(--dark-ink); }
.dark .price-card { background: color-mix(in srgb, var(--dark-2) 70%, transparent); border-color: var(--dark-line); }
.dark .price-card .pc-label { color: var(--dark-faint); }
.dark .price-card .pc-price { color: var(--accent-on-dark); }
.dark .price-card .pc-price i { color: var(--dark-soft); }
.dark .price-card .pc-meta { color: var(--dark-faint); }
.dark .hero-creds { border-color: var(--dark-line); }
.dark .hero-creds li { border-right-color: var(--dark-line); border-bottom-color: var(--dark-line); }
.dark .hero-creds b { color: var(--accent-on-dark); }
.dark .hero-creds span { color: var(--dark-soft); }
.dark .book-title { color: var(--dark-ink); }

/* кнопки на тёмном */
.dark .btn-primary { background: var(--accent-on-dark); color: var(--dark); }
.dark .btn-primary:hover { background: var(--dark-ink); color: var(--dark); }
.dark .btn-ghost { border-color: var(--dark-line); color: var(--dark-ink); }
.dark .btn-ghost:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }
.dark .btn-msgr { background: color-mix(in srgb, var(--accent-on-dark) 22%, transparent); color: var(--dark-ink); border-color: color-mix(in srgb, var(--accent-on-dark) 50%, transparent); }
.dark .btn-msgr:hover { background: var(--accent-on-dark); color: var(--dark); border-color: var(--accent-on-dark); }
.dark .btn-msgr .bw { color: var(--accent-on-dark); opacity: .9; }
.dark .btn-msgr:hover .bw { color: var(--dark); }

/* «С чем я работаю» */
.dark .work-grid { border-color: var(--dark-line); }
.dark .work-col { background: var(--dark-2); border-right-color: var(--dark-line); border-bottom-color: var(--dark-line); }
.dark .work-col h3 { color: var(--dark-ink); }
.dark .work-col li { color: var(--dark-soft); }
.dark .work-col li::before { background: var(--accent-on-dark); opacity: .9; }
.dark .col-tag { background: var(--accent-on-dark); }
.dark .work-note { color: var(--dark-soft); }

/* шаги */
.dark .steps h4 { color: var(--dark-faint); }
.dark .step { border-top-color: var(--accent-on-dark); }
.dark .step .n { color: var(--accent-on-dark); }
.dark .step .t { color: var(--dark-ink); }
.dark .step p { color: var(--dark-soft); }

/* формат */
.dark .format-card { background: var(--dark-2); border-color: var(--dark-line); }
.dark .format-card .pr { color: var(--accent-on-dark); }
.dark .format-card .meta { color: var(--dark-faint); }
.dark .format-card p { color: var(--dark-soft); }
.dark .format-prepay { color: var(--dark-soft); }

/* этика */
.dark .ethics-body p { color: var(--dark-soft); }
.dark .ethics-list li { color: var(--dark-soft); }
.dark .ethics-list li::before { color: var(--accent-on-dark); }

/* обо мне */
.dark .about-text .kicker { color: var(--accent-on-dark); }
.dark .about-text p { color: var(--dark-soft); }
.dark .about-text .about-warm { color: var(--dark-ink); border-left-color: var(--accent-on-dark); }
.dark .cred-grid { background: var(--dark-line); border-color: var(--dark-line); }
.dark .cred-grid .cell { background: var(--dark-2); }
.dark .cred-grid .cell .big { color: var(--accent-on-dark); }
.dark .cred-grid .cell .lbl { color: var(--dark-soft); }

/* научная деятельность */
.dark .research-intro p { color: var(--dark-soft); }
.dark .survey-note { color: var(--accent-on-dark); }
.dark .survey-card { background: var(--dark-2); border-color: var(--dark-line); }
.dark .survey-card .sn { color: var(--accent-on-dark); }
.dark .survey-card h3 { color: var(--dark-ink); }

/* тесты */
.dark .tests-list { border-top-color: var(--dark-line); }
.dark .test-row { border-bottom-color: var(--dark-line); }
.dark .test-row:hover { background: var(--dark-2); }
.dark .test-row .t-code { color: var(--dark-ink); }
.dark .test-row .t-desc { color: var(--dark-soft); }
.dark .t-soon { border-color: var(--dark-line); color: var(--dark-faint); }

/* квалификация */
.dark .qual-range { color: var(--accent-on-dark); }
.dark .qual-aside p { color: var(--dark-soft); }
.dark .qual-list li { border-top-color: var(--dark-line); color: var(--dark-soft); }
.dark .qual-list li::before { background: var(--accent-on-dark); }
.dark .qual-list li a { color: var(--accent-on-dark); }
.dark .cert-grid figure { background: var(--dark-2); border-color: var(--dark-line); }

/* контакты */
.dark .contact-row { border-bottom-color: var(--dark-line); }
.dark .c-label { color: var(--dark-faint); }
.dark .contact-row a, .dark .contact-row .v { color: var(--dark-ink); }
.dark .contact-row a:hover { color: var(--accent-on-dark); }
.dark .socials a { border-color: var(--dark-line); color: var(--dark-soft); }
.dark .socials a:hover { border-color: var(--accent-on-dark); color: var(--accent-on-dark); }

/* шапка раздела на тёмном */
.dark.page-hero { border-bottom-color: var(--dark-line); }

/* ---------- Правовая страница ---------- */
.legal { max-width: 760px; }
.legal-upd { font-size: 14px; color: var(--ink-faint); margin-bottom: 28px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2.4vw, 26px); margin: 38px 0 12px; color: var(--ink); }
.legal p { color: var(--ink-soft); line-height: 1.62; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { color: var(--ink-soft); line-height: 1.6; margin-bottom: 9px; }
.legal a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---------- Cookie-баннер ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  justify-content: space-between;
  background: var(--panel); border: 1px solid var(--line);
  border-top: 2px solid var(--accent); border-radius: 2px;
  padding: 16px 20px;
  box-shadow: 0 18px 50px -22px rgba(24,18,10,.5);
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-bar.in { opacity: 1; transform: none; }
.cookie-text { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); flex: 1 1 320px; margin: 0; }
.cookie-text a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; padding: 11px 18px; border-radius: 1px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.cookie-accept { background: var(--accent); color: var(--paper); }
.cookie-accept:hover { background: var(--accent-deep); }
.cookie-deny { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.cookie-deny:hover { border-color: var(--accent); color: var(--accent-deep); }
@media (max-width: 520px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
