/* GIPNOTECH — тема сайта. Эталон: design/pages/*.html. Стиль «научное досье». */

:root {
  --paper: #F6F4EF;
  --paper-2: #EFECE5;
  --white: #FFFFFF;
  --ink: #0E1726;
  --ink-2: #3B4657;
  --muted: #4F5A6B;
  --line: #DDD8CD;
  --line-2: #CFC8B8;
  --navy: #0A1526;
  --navy-2: #12213A;
  --navy-line: #26365A;
  --navy-line-2: #3A4A66;
  --navy-text: #B7C0CF;
  --navy-muted: #9AA5B8;
  --footer: #070F1C;
  --bronze: #A87D4A;
  --bronze-light: #D4AE7B;
  --bronze-text: #8A6334;
  --f-display: 'Manrope', system-ui, sans-serif;
  --f-text: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: 80px;
  --side: 200px;  /* левая колонка досье */
  --gap: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--bronze-text); text-decoration: none; }
a:hover { color: #6E4E27; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
b, strong { font-weight: 600; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.mono { font-family: var(--f-mono); }
.display { font-family: var(--f-display); }

/* ---------- типографика ---------- */
.h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.03em; }
.h1--home { font-size: clamp(36px, 4.4vw, 62px); letter-spacing: -0.025em; }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
.h2--sm { font-size: clamp(28px, 2.7vw, 40px); }
.h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 660px; }
.text { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.text--sm { font-size: 15px; line-height: 1.6; }
.note { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--bronze-text); text-transform: uppercase; }
.sec { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--bronze-text); text-transform: uppercase; padding-top: 10px; }
.num { font-family: var(--f-mono); font-size: 13px; color: var(--bronze-text); }
.dash { color: var(--bronze); }

/* ---------- кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--navy); color: var(--paper); font-family: var(--f-text); font-size: 16px; font-weight: 600; border: 0; cursor: pointer; text-align: center; }
.btn:hover { background: #16263F; color: var(--paper); }
.btn--sm { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn--bronze { background: var(--bronze-light); color: var(--navy); }
.btn--bronze:hover { background: #DFBC8D; color: var(--navy); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--line-light { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--navy-line-2); font-size: 15px; }
.btn--line-light:hover { background: var(--navy-line); color: var(--paper); }
.btn svg { flex-shrink: 0; }
.link-under { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.link-under:hover { color: var(--bronze-text); border-color: var(--bronze-text); }
.pill { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--f-mono); font-size: 13px; color: var(--ink-2); }
.pill--accent { border-color: var(--bronze); color: var(--bronze-text); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header__in { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo { display: flex; align-items: center; gap: 14px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 78px; height: 56px; }
.logo__text { display: flex; flex-direction: column; gap: 3px; }
.logo__word { font-family: var(--f-display); font-size: 22px; font-weight: 800; letter-spacing: 0.06em; line-height: 1; }
.logo__word em { font-style: normal; color: var(--bronze); }
.logo__tag { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.logo--light { color: var(--paper); }
.logo--light:hover { color: var(--paper); }
.logo--light .logo__mark { width: 61px; height: 44px; }
.logo--light .logo__word { font-size: 20px; }
.logo--light .logo__word em { color: var(--bronze-light); }
.nav { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); padding: 6px 0; }
.nav a:hover { color: var(--bronze-text); }
[data-page="about"] .nav [data-nav="about"],
[data-page="psychotherapy"] .nav [data-nav="psychotherapy"],
[data-page="coaching"] .nav [data-nav="coaching"],
[data-page="method"] .nav [data-nav="method"],
[data-page="diplomas"] .nav [data-nav="diplomas"],
[data-page="pricing"] .nav [data-nav="pricing"] { box-shadow: inset 0 -2px 0 var(--bronze); }
.mnav { display: none; }

/* строка-метаданные документа */
.docstrip { border-bottom: 1px solid var(--line); }
.docstrip .wrap { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.docstrip a { color: var(--muted); }

/* ---------- раскладка досье ---------- */
.d-hero { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) 380px; gap: var(--gap); align-items: start; padding-top: 80px; padding-bottom: 88px; }
.d-hero--end { align-items: end; }
.d-hero__label { padding-top: 14px; border-top: 1px solid var(--ink); }
.d-hero__main { display: flex; flex-direction: column; gap: 28px; }
.d-hero__aside { padding-top: 14px; border-top: 1px solid var(--ink); }
.d-row { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: var(--gap); }
.d-row--3 { grid-template-columns: var(--side) minmax(0, 1fr) 420px; }
.d-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.d-head .note { max-width: 320px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.stack { display: flex; flex-direction: column; }
.stack--12 { gap: 12px; } .stack--18 { gap: 18px; } .stack--24 { gap: 24px; } .stack--36 { gap: 36px; } .stack--48 { gap: 48px; }

.is-dark { background: var(--navy); color: var(--paper); }
.is-dark .text, .is-dark .lead { color: var(--navy-text); }
.is-dark .note { color: var(--navy-muted); }
.is-dark .sec, .is-dark .eyebrow { color: var(--bronze-light); }
.is-dark a:not(.btn) { color: var(--bronze-light); }

/* картотека (психотерапия): № | запрос | сбой | протокол */
.casefile__grid { display: grid; grid-template-columns: var(--side) minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 1fr); gap: 0 32px; }
.casefile__head { padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.casefile__row { padding: 32px 0; border-bottom: 1px solid var(--line); }
.casefile__row:last-of-type { border-bottom-color: var(--ink); }
.casefile__n { font-family: var(--f-display); font-size: 56px; font-weight: 800; color: var(--line); line-height: 0.9; letter-spacing: -0.03em; }
.casefile__cell { font-size: 15px; line-height: 1.7; color: var(--ink); }
.casefile__cell[data-label]::before { content: none; }
.footnotes { display: flex; gap: 40px; }

/* реестр дипломов (media-catalog) */
.ledger { counter-reset: ledger; }
.ledger__row { counter-increment: ledger; }
.num--counter::before { content: "№ 0" counter(ledger, decimal-leading-zero); }
.ledger__row { display: grid; grid-template-columns: 110px 180px minmax(0, 1fr) 200px; gap: 36px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.ledger__row:last-child { border-bottom-color: var(--ink); }
.ledger__scan { width: 150px; aspect-ratio: 3 / 4; border: 1px solid var(--line-2); background: repeating-linear-gradient(135deg, #EFECE5 0 8px, #E7E3DA 8px 16px); box-shadow: 6px 6px 0 #E3DED3; overflow: hidden; }
.ledger__scan img { width: 100%; height: 100%; object-fit: contain; background: #F1EEE7; }
.ledger__meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--bronze-text); text-transform: uppercase; }
.ledger__org { font-size: 16px; font-weight: 500; }
.ledger__details { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.ledger__details p + p { margin-top: 8px; }
.ledger__docs { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.btn-open { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-open:hover { background: var(--ink); color: var(--paper); }
.empty-note { padding: 40px 0; border-bottom: 1px solid var(--ink); }

/* прайс-лист */
.price-group { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.price-group + .price-row { }
.price-group--next { padding-top: 56px; }
.price-group__title { font-family: var(--f-display); font-size: 28px; font-weight: 800; }
.price-row { display: flex; align-items: baseline; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.price-row--last { border-bottom-color: var(--ink); }
.price-row--hl { background: var(--paper-2); margin: 0 -24px; padding: 26px 24px; border-bottom: 0; }
.price-row__name { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; max-width: 60%; }
.price-row__title { font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.3; }
.price-row__dots { flex-grow: 1; border-bottom: 1px dotted var(--bronze); transform: translateY(-6px); min-width: 24px; }
.price-row__price { font-family: var(--f-display); font-size: 26px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.price-row__price--accent { color: var(--bronze-text); }
.price-row__old { font-family: var(--f-mono); font-size: 14px; color: var(--muted); text-decoration: line-through; margin-right: 12px; }

/* строки с линейками: FAQ, мифы, глоссарий, принципы */
.rule-top { border-top: 1px solid var(--ink); }
.rule-list > * { padding: 24px 0; border-top: 1px solid var(--line); }
.rule-list > *:first-child { border-top-color: var(--ink); }
.rule-list > *:last-child { border-bottom: 1px solid var(--ink); }
.qa { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.qa__q { font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.35; }
.myth { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--gap); }
.myth__m { font-family: var(--f-display); font-size: 20px; font-weight: 600; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--bronze); }
.gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.gloss > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.gloss > div:nth-child(-n+2) { border-top-color: var(--ink); }
.gloss > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.gloss dt, .gloss__t { font-family: var(--f-display); font-size: 18px; font-weight: 700; }
.gloss__d { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.item-n { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 26px 0; border-top: 1px solid var(--line); }
.two-col > .item-n:nth-child(-n+2) { border-top-color: var(--ink); }

/* уровни метода */
.level { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) 300px; gap: var(--gap); padding: 36px 0; border-top: 1px solid var(--line); }
.level:first-of-type { border-top-color: var(--ink); }
.level:last-of-type { border-bottom: 1px solid var(--ink); }
.level__icon { width: 96px; height: 96px; }
.tools { display: flex; flex-direction: column; }
.tools span:not(.note) { font-family: var(--f-mono); font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }

/* шкала курса */
.scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.scale span { height: 44px; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; background: var(--navy-line); }
.scale span:first-child { background: var(--bronze-light); color: var(--navy); }
.scale span:nth-child(n+7) { background: #1A2A47; }
.scale span:last-child { background: transparent; box-shadow: inset 0 0 0 1px var(--bronze-light); }
.phases { display: grid; grid-template-columns: 1fr 5fr 3fr 1fr; gap: 6px; }
.phases > div { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; border-left: 1px solid var(--navy-line-2); }
.phases > div:first-child { padding-left: 0; border-left: 0; }
.phases > div:last-child { padding-right: 0; border-left-color: var(--bronze-light); }
.phases b { font-family: var(--f-display); font-size: 17px; }
.phases span { font-size: 14px; line-height: 1.55; color: var(--navy-text); }

/* список с тире */
.dashlist { display: flex; flex-direction: column; gap: 10px; }
.dashlist li { display: flex; gap: 12px; }
.dashlist li::before { content: "—"; color: var(--bronze); flex-shrink: 0; }
.is-dark .dashlist li::before { color: var(--bronze-light); }

/* большие цифры */
.bignum { font-family: var(--f-display); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; }

/* фигуры и подписи */
figure figcaption { margin-top: 12px; }
.fig-svg { width: 100%; height: auto; display: block; }

/* ---------- главная ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 72px; padding-top: 72px; padding-bottom: 64px; }
.home-hero__main { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.home-hero__eyebrow { display: flex; align-items: center; gap: 12px; }
.home-hero__eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--bronze); flex-shrink: 0; }
.home-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 8px; }
.portrait { position: relative; display: flex; align-items: center; justify-content: center; }
.portrait__rings { position: absolute; width: 640px; height: 640px; left: -60px; top: 0; pointer-events: none; }
.portrait figure { position: relative; width: 460px; }
.portrait__frame { position: relative; }
.portrait__frame img { width: 460px; aspect-ratio: 460 / 580; object-fit: cover; object-position: 50% 18%; border-radius: 4px; }
.corner { position: absolute; width: 28px; height: 28px; border: 0 solid var(--bronze); }
.corner--tl { left: -12px; top: -12px; border-left-width: 1.5px; border-top-width: 1.5px; }
.corner--tr { right: -12px; top: -12px; border-right-width: 1.5px; border-top-width: 1.5px; }
.corner--bl { left: -12px; bottom: -12px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.corner--br { right: -12px; bottom: -12px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.portrait__card { position: absolute; left: -56px; bottom: 44px; width: 270px; padding: 18px 20px; background: var(--navy); color: var(--paper); border-radius: 6px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(10, 21, 38, 0.22); }
.portrait__card .mono:first-child { font-size: 11px; letter-spacing: 0.1em; color: var(--bronze-light); }
.portrait__card p { font-size: 14px; line-height: 1.45; }
.portrait__card .mono:last-child { font-size: 12px; color: var(--navy-text); padding-top: 10px; border-top: 1px solid var(--navy-line); }
.figcap { display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: 14px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.metrics > div { padding: 30px 32px 30px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.metrics > div:first-child { padding-left: 0; border-left: 0; }
.metrics b { font-family: var(--f-display); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.metrics b small { font-size: 22px; color: var(--bronze-text); }
.metrics span { font-size: 14px; line-height: 1.45; color: var(--muted); }

.split-head { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 64px; align-items: end; }
.dir-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dir-card { padding: 40px; border-radius: 8px; display: flex; flex-direction: column; gap: 22px; }
.dir-card--dark { background: var(--navy); color: var(--paper); }
.dir-card--light { background: var(--white); border: 1px solid var(--line); }
.dir-card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--f-mono); font-size: 12px; }
.dir-card__title { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1.2; }
.dir-card .dashlist { font-size: 16px; flex-grow: 1; }
.dir-card--dark .dashlist { color: #C9D0DB; }
.dir-card--light .dashlist { color: var(--ink-2); }
.dir-card__foot { display: flex; align-items: center; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--muted); }
.dir-card--dark .dir-card__foot { border-top-color: var(--navy-line-2); color: var(--navy-text); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 1px; background: var(--navy-line-2); }
.timeline > div { position: relative; display: flex; flex-direction: column; gap: 14px; }
.timeline__year { font-family: var(--f-display); font-size: 40px; font-weight: 600; color: var(--bronze-light); letter-spacing: -0.02em; }
.timeline__dot { width: 11px; height: 11px; border: 1.5px solid var(--bronze-light); background: var(--navy); transform: rotate(45deg); margin: 2px 0 10px 1px; }
.timeline__t { font-size: 17px; font-weight: 600; }
.timeline > div > span:last-child { font-size: 14px; line-height: 1.6; color: var(--navy-text); }
.timeline .is-muted .timeline__year { color: #5C6B85; }
.timeline .is-muted .timeline__dot { border-color: #5C6B85; }
.timeline .is-muted .timeline__t { color: #C9D0DB; }
.timeline .is-muted > span:last-child { color: var(--navy-muted); }
.grid-bg { position: relative; overflow: hidden; }
.grid-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#16243D 1px, transparent 1px), linear-gradient(90deg, #16243D 1px, transparent 1px); background-size: 240px 120px; opacity: 0.9; pointer-events: none; }
.grid-bg > * { position: relative; }

.levels-home { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 88px; }
.lvl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.lvl:first-child { border-top-color: var(--ink); }
.lvl:last-child { border-bottom: 1px solid var(--line); }
.lvl__t { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.lvl__t small { font-family: var(--f-mono); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 64px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.matrix th { text-align: left; padding: 0 24px 14px 0; font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.matrix td { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.matrix td:first-child { font-family: var(--f-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.matrix th:last-child, .matrix td:last-child { padding-right: 0; }
.notice { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--paper); border-radius: 6px; font-size: 14px; color: var(--ink-2); }

.ans { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 72px; }
.side-notes > div { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid var(--navy-line-2); }
.side-notes b { font-size: 15px; }
.side-notes span { font-size: 14px; line-height: 1.55; color: var(--navy-text); }

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 16px; }
.card--dark { background: var(--navy); color: var(--paper); border-color: var(--navy); box-shadow: 0 0 0 1px var(--bronze), 0 24px 48px rgba(10, 21, 38, 0.18); position: relative; }
.card__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.card--dark .card__kicker { color: var(--navy-text); }
.card__title { font-family: var(--f-display); font-size: 24px; font-weight: 700; line-height: 1.25; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--ink-2); flex-grow: 1; }
.card--dark .card__text { color: var(--navy-text); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.card--dark .card__foot { border-top-color: var(--navy-line-2); }
.card__price { font-family: var(--f-display); font-size: 26px; font-weight: 700; white-space: nowrap; }
.badge { position: absolute; right: 24px; top: -13px; padding: 5px 12px; background: var(--bronze-light); color: var(--navy); border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; font-weight: 500; }
.sub-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.sub-head b { font-family: var(--f-display); font-size: 22px; }
.strip { padding: 24px 32px; border: 1px dashed var(--bronze); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.strip__lead { display: flex; align-items: center; gap: 28px; }
.soft { padding: 22px 28px; background: var(--paper-2); border-radius: 8px; display: flex; gap: 18px; align-items: center; }

.diploma-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dp { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; }
.dp__scan { aspect-ratio: 3 / 4; border-radius: 3px; background: repeating-linear-gradient(135deg, #EFECE5 0 8px, #E7E3DA 8px 16px); border: 1px solid var(--line); overflow: hidden; }
.dp__scan img { width: 100%; height: 100%; object-fit: contain; background: #F1EEE7; }
.dp__tile { padding: 32px; background: var(--navy); color: var(--paper); border-radius: 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }

/* линейки на тёмном фоне */
.is-dark .rule-list > * { border-top-color: var(--navy-line); }
.is-dark .rule-list > *:first-child { border-top-color: var(--navy-line-2); }
.is-dark .rule-list > *:last-child { border-bottom-color: var(--navy-line-2); }

/* «Путь» (обо мне) */
.path__row { display: grid; grid-template-columns: 220px 280px minmax(0, 1fr); gap: 40px; padding: 28px 0; }
.path__y { font-family: var(--f-display); font-size: 36px; font-weight: 600; color: var(--bronze-light); line-height: 1.1; }
.path__row b { font-size: 18px; font-weight: 600; }
.path__row.is-muted .path__y { color: #5C6B85; }
.path__row.is-muted b { color: #C9D0DB; }
.path__row.is-muted .text { color: var(--navy-muted); }

/* сравнение психотерапия / коучинг */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.compare thead th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); font-weight: 400; text-align: left; padding: 0 12px 10px 0; text-transform: uppercase; }
.compare thead th:last-child { color: var(--bronze-text); }
.compare tbody th { font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; color: var(--muted); text-align: left; width: 80px; }
.compare tbody th, .compare td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.compare td:nth-child(2) { color: var(--muted); }
.compare tbody tr:last-child > * { border-bottom: 1px solid var(--ink); }

/* три шага записи */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps3 > div { display: flex; flex-direction: column; gap: 12px; padding: 0 32px; border-left: 1px solid var(--navy-line); }
.steps3 > div:first-child { padding-left: 0; border-left: 0; }

/* ---------- форма ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--navy-muted); text-transform: uppercase; }
.form input[type=text], .form input[type=email], .form select, .form textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--navy-line-2); border-radius: 4px; background: #0F1D35; color: var(--paper); font-family: var(--f-text); font-size: 16px; text-transform: none; letter-spacing: 0; }
.form textarea { padding: 14px 16px; min-height: 104px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #6B7890; }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-family: var(--f-text); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--navy-text); line-height: 1.5; }
.form .check input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--bronze-light); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form--light label { color: var(--muted); }
.form--light input[type=text], .form--light select { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.form--light .check { color: var(--muted); }

/* ---------- CTA внизу внутренних страниц ---------- */
.cta { border-top: 1px solid var(--ink); }
.cta .wrap { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) auto; gap: var(--gap); align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cta__photo { width: 120px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 16%; border-radius: 2px; }
.cta__title { font-family: var(--f-display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.cta.is-dark { border-top: 0; }

/* ---------- подвал ---------- */
.site-footer { background: var(--footer); color: var(--navy-muted); font-size: 14px; padding: 48px 0; }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: flex-start; }
.site-footer a { color: #C9D0DB; }
.site-footer a:hover { color: var(--bronze-light); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #1B2840; padding-top: 24px; margin-top: 32px; }
.site-footer__bottom a { color: var(--navy-muted); }
.contacts { display: flex; flex-direction: column; gap: 6px; }
.contacts li { display: flex; gap: 16px; }
.contacts span { width: 72px; color: var(--navy-muted); }
.contacts--big .contacts { font-family: var(--f-mono); font-size: 15px; gap: 12px; }
.contacts--big .contacts span { width: 96px; }
.is-dark .contacts a { color: var(--paper); }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 48px; --side: 160px; --gap: 40px; }
  .nav { gap: 22px; font-size: 14px; }
  .home-hero { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; }
  .portrait figure, .portrait__frame img { width: 400px; }
  .portrait__rings { width: 540px; height: 540px; }
  .levels-home { grid-template-columns: 420px minmax(0, 1fr); gap: 56px; }
  .ans { grid-template-columns: 360px minmax(0, 1fr); gap: 48px; }
  .d-hero { grid-template-columns: var(--side) minmax(0, 1fr) 320px; }
}

@media (max-width: 1080px) {
  .nav, .site-header__cta { display: none; }
  .mnav { display: block; position: relative; }
  .mnav summary { list-style: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
  .mnav summary::-webkit-details-marker { display: none; }
  .mnav summary span { width: 18px; height: 1.6px; background: var(--ink); display: block; }
  .mnav__panel { position: absolute; right: 0; top: 60px; z-index: 20; width: min(320px, 86vw); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 18px 40px rgba(10, 21, 38, 0.14); }
  .mnav__panel .nav { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
  .mnav__panel .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }

  .d-hero, .d-row, .d-row--3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .d-hero { padding-top: 48px; padding-bottom: 64px; }
  .d-hero__label { display: none; }
  .d-row > .sec:empty { display: none; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .casefile__grid { grid-template-columns: 64px minmax(0, 1fr); }
  .casefile__head { display: none; }
  .casefile__n { font-size: 40px; grid-row: span 3; }
  .casefile__cell[data-label] { padding-top: 12px; }
  .casefile__cell[data-label]::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 2px; }
  .footnotes { flex-direction: column; gap: 8px; }
  .ledger__row { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; }
  .ledger__row > .num { grid-column: 1 / -1; }
  .ledger__docs { grid-column: 2; }
  .level { grid-template-columns: 96px minmax(0, 1fr); gap: 24px; }
  .level .tools { grid-column: 2; }
  .myth { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 16px; }
  .myth > p { grid-column: 2; }
  .gloss, .two-col { grid-template-columns: minmax(0, 1fr); }
  .gloss > div:nth-child(2) { border-top-color: var(--line); }
  .two-col > .item-n:nth-child(2) { border-top-color: var(--line); }
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .portrait { order: -1; }
  .portrait__rings { display: none; }
  .portrait figure, .portrait__frame img { width: min(460px, 100%); }
  .portrait__card { left: 16px; bottom: 16px; width: auto; max-width: 280px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics > div { padding: 22px 20px; border-bottom: 1px solid var(--line); }
  .metrics > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .split-head, .levels-home, .ans { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .levels-home > figure { max-width: 480px; }
  .dir-cards, .cards-2, .cards-3, .diploma-preview { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .timeline::before { display: none; }
  .strip { flex-direction: column; align-items: flex-start; }
  .panel { padding: 32px 24px; }
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr, .matrix td { display: block; width: 100%; }
  .matrix tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .matrix td { border: 0; padding: 4px 0; }
  .matrix td[data-label]::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 8px; }
  .cta .wrap { grid-template-columns: 96px minmax(0, 1fr); }
  .cta .wrap > .btn { grid-column: 1 / -1; justify-self: start; }
  .cta__photo { width: 96px; }
  .cta__title { font-size: 26px; }
  .path__row { grid-template-columns: 120px minmax(0, 1fr); gap: 8px 24px; }
  .path__row .text { grid-column: 2; }
  .steps3 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps3 > div { padding: 0 0 0 16px; border-left: 1px solid var(--navy-line); }
  .steps3 > div:first-child { padding-left: 16px; border-left: 1px solid var(--navy-line); }
  .phases { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .phases > div { padding: 0 0 0 16px; border-left: 1px solid var(--navy-line-2); }
  .phases > div:first-child { padding-left: 16px; border-left: 1px solid var(--bronze-light); }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --gap: 24px; }
  body { font-size: 15px; }
  .site-header__in { min-height: 64px; }
  .logo__mark { width: 56px; height: 40px; }
  .logo__word { font-size: 18px; }
  .logo__tag { display: none; }
  .docstrip .wrap > span:nth-child(2) { display: none; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .d-hero { padding-top: 32px; padding-bottom: 48px; }
  .d-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .d-hero__aside > .bignum { font-size: 88px !important; }
  .metrics .bignum { font-size: 32px !important; }
  .lvl > div { min-width: 0; }
  .lvl__t small { display: block; margin: 4px 0 0; }
  .casefile__grid { grid-template-columns: minmax(0, 1fr); }
  .casefile__n { grid-row: auto; font-size: 32px; }
  .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .ledger__scan { width: 120px; }
  .ledger__docs { grid-column: 1; }
  .level { grid-template-columns: minmax(0, 1fr); }
  .level__icon { width: 64px; height: 64px; }
  .level .tools { grid-column: 1; }
  .qa { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gloss > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .price-row { flex-wrap: wrap; }
  .price-row__name { max-width: 100%; flex-shrink: 1; }
  .price-row__dots { display: none; }
  .price-row__price { width: 100%; }
  .price-row--hl { margin: 0 -16px; padding: 20px 16px; }
  .price-group { flex-direction: column; gap: 4px; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .metrics b { font-size: 32px; }
  .dir-card, .card, .dp__tile { padding: 24px; }
  .dp { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 18px; }
  .strip__lead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .scale span { height: 32px; font-size: 11px; }
  .site-footer__top, .site-footer__bottom { flex-direction: column; }
  .cta .wrap { grid-template-columns: minmax(0, 1fr); }
  .cta__photo { display: none; }
  .home-hero__ctas .btn { width: 100%; }
  .footnotes { font-size: 11px; }
  .path__row { grid-template-columns: minmax(0, 1fr); }
  .path__row .text { grid-column: 1; }
  .path__y { font-size: 28px; }
}

/* модификаторы сеток (вместо инлайновых grid-template — иначе ломается мобильная раскладка) */
@media (min-width: 1081px) {
  .d-hero--fig { grid-template-columns: var(--side) minmax(0, 1fr) minmax(0, 480px); align-items: center; }
  .d-row--ans { grid-template-columns: var(--side) minmax(0, 400px) minmax(0, 1fr); }
  .d-row--form { grid-template-columns: var(--side) minmax(0, 1fr) minmax(0, 600px); }
  .d-row--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 96px; }
  .d-row--ledger-note { grid-template-columns: 110px minmax(0, 1fr); gap: 36px; }
  .cards-2--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}
.d-row--ledger-note { padding-top: 24px; }
.metrics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
.metrics--2 > div { padding: 16px 16px 0 0; border-bottom: 0 !important; }
.metrics--2 > div + div { padding-left: 20px; border-left: 1px solid var(--line) !important; }
.card__foot, .strip > div:last-child { flex-wrap: wrap; }
@media (max-width: 720px) {
  .metrics b { font-size: 28px; }
  .metrics > div { padding: 18px 12px; min-width: 0; }
  .docstrip .wrap { font-size: 10px; letter-spacing: 0.06em; }
  .d-row--ledger-note > span:first-child { display: none; }
}

/* ошибка формы (показывает /js/forms.js после возврата с ?field=) */
.form__error { padding: 12px 16px; border: 1px solid var(--bronze-light); border-radius: 4px; color: var(--bronze-light); font-size: 14px; }
.form [aria-invalid="true"] { border-color: var(--bronze-light); box-shadow: 0 0 0 1px var(--bronze-light); }
