/* ──────────────────────────────────────────────────────────────
   Елена Бозрикова — посадочная.
   Светлая палитра · карточная вёрстка · WCAG AA+
────────────────────────────────────────────────────────────── */

:root {
  /* — Background canvas — */
  --paper:        #FAF6EE;          /* основной фон */
  --paper-tint:   #F1E8D6;          /* чередующиеся секции — тёплый светло-коричневый */
  --card:         #FFFFFF;          /* карточки */
  --card-tint:    #FFFBF2;          /* акцентные карточки */

  /* — Text — */
  --ink:          #1B1410;          /* основной текст ~16:1 ✓ AAA */
  --ink-soft:     #4A3A2E;          /* secondary ~8:1 ✓ AAA */
  --ink-mute:     #7A6655;          /* meta ~4.7:1 */

  /* — Lines — */
  --line:         #1B1410;
  --line-soft:    #E2D5BB;          /* hairline на cream */
  --line-card:    #ECE0C7;          /* граница карточки */

  /* — Accents — */
  --brick:        #B85440;          /* кирпичный (light) */
  --brick-deep:   #8D3825;          /* кирпичный (CTA) */
  --brick-bg:     #FBE9E2;          /* tint фон */

  --emerald:      #2A6B53;          /* изумрудный */
  --emerald-deep: #185040;
  --emerald-bg:   #E6F0EA;

  --sand:         #C9A87C;          /* тёплый светло-коричневый */
  --sand-soft:    #E4D2B0;
  --sand-bg:      #F6EBD4;

  /* — Type — */
  --font-scale: 1;
  --serif: 'Newsreader', 'Source Serif Pro', Georgia, serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* — Layout — */
  --max-w: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  /* Vertical rhythm between sections — tightened ~35% */
  --section-y: clamp(36px, 5.2vw, 72px);

  /* — Radii / shadows — */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow-card:  0 1px 2px rgba(27,20,16,0.04), 0 8px 24px -16px rgba(27,20,16,0.08);
  --shadow-lift:  0 2px 4px rgba(27,20,16,0.05), 0 16px 40px -20px rgba(27,20,16,0.18);
}

/* ── Base ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(17px * var(--font-scale));
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--brick-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--brick-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

button { font-family: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--brick-deep); outline-offset: 3px; }

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

/* Default icon size for inline SVGs in buttons/links */
.btn svg,
.nav-cta svg,
.cred-foot svg,
.messenger-row svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-cta svg { width: 14px; height: 14px; }
.messenger-row .ico svg { width: 22px; height: 22px; }
.messenger-row .arrow svg { width: 18px; height: 18px; }

::selection { background: var(--brick-deep); color: var(--paper); }

.skip-link {
  position: absolute; left: -9999px; top: 12px;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; font-weight: 600; z-index: 9999; text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ── Typography ───────────────────────────────────────────── */

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: calc(12px * var(--font-scale));
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 14px;
  display: inline-block;
}
.eyebrow-accent { color: var(--brick-deep); }
.eyebrow-row { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow-row::before {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(36px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
h4 {
  font-family: var(--sans); font-weight: 600;
  font-size: calc(15px * var(--font-scale));
  letter-spacing: 0; text-transform: none;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.4;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.body-l { font-size: calc(18px * var(--font-scale)); }
.body-s { font-size: calc(15px * var(--font-scale)); color: var(--ink-soft); }
.meta   { font-size: calc(14px * var(--font-scale)); color: var(--ink-mute); }

/* ── Layout ───────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }
section.s-default { background: var(--paper); }
section.s-tint    { background: var(--paper-tint); }

.section-body {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: calc(13px * var(--font-scale));
  letter-spacing: 0.18em;
  color: var(--brick-deep);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.section-num::after {
  content: "";
  flex: 1 1 0;
  min-width: 0;
  height: 1px;
  background: var(--line-soft);
  max-width: 220px;
}

/* ── Header / Nav ─────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,246,238,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  min-height: 68px;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-brand {
  font-family: var(--serif);
  font-size: calc(20px * var(--font-scale));
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.15;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: calc(11px * var(--font-scale));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-top: 2px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  font-size: calc(14px * var(--font-scale));
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--brick-deep); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--brick-deep);
  color: #fff;
  font-size: calc(14px * var(--font-scale));
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--ink); }

.menu-btn {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: calc(13px * var(--font-scale));
  font-weight: 600;
  color: var(--ink);
}
.menu-btn-icon {
  display: flex; flex-direction: column; gap: 3px; width: 16px;
}
.menu-btn-icon span { height: 2px; background: currentColor; width: 100%; }

/* Two header CTAs (Telegram + MAX) grouped on the right */
.nav-cta-group { display: none; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-cta-max { background: #000; }
.nav-cta-max:hover { background: #1f1f1f; }
.nav-cta-max img { width: 16px; height: 16px; display: block; }

/* On narrow viewports the burger is the only CTA — header CTAs hide */
@media (min-width: 920px) {
  .nav-links     { display: inline-flex; gap: 22px; }
  .nav-cta-group { display: inline-flex; }
  .menu-btn      { display: none; }
}

@media (max-width: 419px) {
  .nav { gap: 8px; }
  .nav-brand { font-size: calc(17px * var(--font-scale)); }
  .nav-brand .brand-sub { font-size: 10px; letter-spacing: 0.14em; }
  .menu-btn { padding: 8px 12px; }
  .menu-btn span:not(.menu-btn-icon) { display: none; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 8px 0 16px;
  background: var(--paper);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column;
}
.mobile-menu ul a {
  display: block;
  padding: 14px var(--gutter);
  color: var(--ink);
  text-decoration: none;
  font-size: calc(16px * var(--font-scale));
  font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu ul a:hover { background: var(--card-tint); }
.mobile-menu-cta {
  display: flex;
  gap: 10px;
  padding: 16px var(--gutter) 4px;
}
.mobile-menu-cta .btn { flex: 1; padding-left: 16px; padding-right: 16px; }
.mobile-menu-cta .btn img { width: 20px; height: 20px; display: block; flex-shrink: 0; }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: calc(15px * var(--font-scale));
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  line-height: 1.2;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brick-deep);
  color: #fff;
  border-color: var(--brick-deep);
}
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-soft);
}
.btn-ghost:hover { background: var(--card-tint); border-color: var(--ink); }
.btn-emerald {
  background: var(--emerald);
  color: #fff;
  border-color: var(--emerald);
}
.btn-emerald:hover { background: var(--emerald-deep); border-color: var(--emerald-deep); }
.btn-max {
  background: #000;
  color: #fff;
  border-color: #000;
}
.btn-max:hover { background: #1f1f1f; border-color: #1f1f1f; }
.btn-max img { width: 20px; height: 20px; display: block; flex-shrink: 0; }

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 560px) {
  .btn-stack { flex-direction: row; align-items: center; flex-wrap: wrap; }
}

/* ── Pills / badges ───────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: calc(13px * var(--font-scale));
  font-weight: 500;
  border: 1px solid var(--line-card);
  background: var(--card);
  color: var(--ink);
  white-space: nowrap;
  line-height: 1.3;
}
.pill-emerald { background: var(--emerald-bg); color: var(--emerald-deep); border-color: transparent; }
.pill-brick   { background: var(--brick-bg);   color: var(--brick-deep);   border-color: transparent; }
.pill-sand    { background: var(--sand-bg);    color: #6F4A1F;             border-color: transparent; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Generic card ─────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero { padding-top: clamp(28px, 4vw, 58px); padding-bottom: clamp(32px, 4.6vw, 72px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}
.hero h1 { margin-bottom: 22px; }
.hero .hero-name {
  display: block;
  font-size: clamp(36px, 5.6vw, 68px);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero .hero-role {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 32px);
  color: var(--ink-soft);
  line-height: 1.25;
}
.hero-lede { max-width: 56ch; margin: 0 0 32px; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 32px 0 0;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.hero-stat:last-child { border-bottom: 0; }
.hero-stat .num {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1;
  font-weight: 500;
  color: var(--brick-deep);
}
.hero-stat .label {
  font-size: calc(12px * var(--font-scale));
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 520px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 28px);
    padding: 24px 28px;
  }
  .hero-stat {
    padding: 0;
    border-bottom: 0;
    border-right: 1px solid var(--line-soft);
    padding-right: clamp(12px, 2vw, 28px);
  }
  .hero-stat:last-child { border-right: 0; padding-right: 0; }
}

/* Hero portrait */
.hero-portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--sand-bg);
  box-shadow: var(--shadow-lift);
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-portrait .credentials-stamp {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(250,246,238,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: calc(12px * var(--font-scale));
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  border-radius: 999px;
  z-index: 3;
}

/* ── Problem categories (cards) ───────────────────────────── */

.cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cats { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.cat {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.cat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brick-bg);
  color: var(--brick-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.cat-icon.emerald { background: var(--emerald-bg); color: var(--emerald-deep); }
.cat-icon.sand    { background: var(--sand-bg); color: #6F4A1F; }
.cat-icon.brick   { background: var(--brick-bg); color: var(--brick-deep); }
.cat-title {
  font-family: var(--serif);
  font-size: calc(22px * var(--font-scale));
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.cat ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.cat li {
  font-size: calc(15px * var(--font-scale));
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.cat li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1.5px;
  background: var(--brick-deep);
  opacity: 0.6;
}

/* ── Two-column section pattern ───────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: 1fr 1.15fr; }
}
/* Contacts block: the intro text needs far less width than the two cards.
   On desktop the old 1 : 1.15 split squeezed «Записаться» / «Где ещё найти»
   into narrow tall columns. Give the cards the bulk of the row. */
@media (min-width: 880px) {
  #contacts .two-col { grid-template-columns: 0.72fr 1.55fr; align-items: start; }
}
@media (min-width: 1120px) {
  #contacts .two-col { grid-template-columns: 0.66fr 1.6fr; }
}

/* ── Decision callout (когда обращаться / когда нет) ──────── */

.decision {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 780px) { .decision { grid-template-columns: 1fr 1fr; gap: 24px; } }
.decision-card {
  padding: 28px 28px 32px;
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
}
.decision-card.affirm { border-top: 4px solid var(--emerald); }
.decision-card.warn   { border-top: 4px solid var(--brick-deep); }
.decision-card h3 { margin-bottom: 16px; }
.decision-card .marker {
  display: inline-block;
  padding: 5px 12px;
  font-size: calc(12px * var(--font-scale));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-family: var(--sans);
  border-radius: 999px;
}
.decision-card.affirm .marker { color: var(--emerald-deep); background: var(--emerald-bg); }
.decision-card.warn   .marker { color: var(--brick-deep);   background: var(--brick-bg); }
.decision-card ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.decision-card li {
  position: relative;
  padding-left: 24px;
  font-size: calc(16px * var(--font-scale));
  line-height: 1.5;
}
.decision-card li::before {
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  display: block;
}
.decision-card.affirm li::before {
  content: "";
  background: var(--emerald);
  clip-path: polygon(20% 50%, 45% 75%, 90% 15%, 100% 30%, 45% 95%, 5% 60%);
}
.decision-card.warn li::before {
  content: "";
  background: var(--brick-deep);
  clip-path: polygon(15% 0%, 50% 35%, 85% 0%, 100% 15%, 65% 50%, 100% 85%, 85% 100%, 50% 65%, 15% 100%, 0% 85%, 35% 50%, 0% 15%);
}

.urgent-callout {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--brick-bg);
  border: 1px solid #F2C9BC;
  border-left: 6px solid var(--brick-deep);
  border-radius: var(--r-m);
  color: var(--ink);
}
.urgent-callout strong { color: var(--brick-deep); font-weight: 700; }
.urgent-callout p { margin: 4px 0; }

/* ── Directions ──────────────────────────────────────────── */

.directions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 880px) { .directions { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.direction {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  min-height: 100%;
}
.direction-num {
  font-family: var(--serif);
  font-size: calc(22px * var(--font-scale));
  color: var(--brick-deep);
  margin-bottom: 12px;
  font-weight: 500;
}
.direction h3 { margin-bottom: 14px; }
.direction-body { color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.direction-methods {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.direction-methods .label {
  font-size: calc(11px * var(--font-scale));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
  font-weight: 600;
}

.special {
  margin-top: 28px;
  padding: 32px;
  background: var(--emerald);
  color: #fff;
  border-radius: var(--r-l);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 880px) { .special { grid-template-columns: 1fr 1.2fr; gap: 56px; padding: 40px 48px; } }
.special h3 { color: #fff; margin-bottom: 8px; }
.special p { color: rgba(255,255,255,0.88); margin: 0; }
.special-tag {
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

/* ── EMDR phases ──────────────────────────────────────────── */

.emdr-phases {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 720px) { .emdr-phases { grid-template-columns: repeat(2, 1fr); } }
.emdr-phase {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-m);
}
.emdr-phase .num {
  font-family: var(--serif);
  font-size: calc(24px * var(--font-scale));
  color: var(--brick-deep);
  min-width: 28px;
  font-weight: 500;
  line-height: 1;
}
.emdr-phase strong { display: block; font-weight: 600; margin-bottom: 4px; }
.emdr-phase span   { color: var(--ink-soft); font-size: calc(14px * var(--font-scale)); }

/* ── Methods (cards by default) ───────────────────────────── */

.method-card {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.method-card .kind {
  font-size: calc(11px * var(--font-scale));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brick-deep);
  margin-bottom: 10px;
}
.method-card .name {
  font-family: var(--serif);
  font-size: calc(24px * var(--font-scale));
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  line-height: 1.15;
}
.method-card .when {
  padding: 12px 14px;
  border-radius: var(--r-s);
  font-size: calc(14px * var(--font-scale));
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 10px;
}
.method-card .when:last-child { margin-bottom: 0; }
.method-card .when.fit   { background: var(--emerald-bg); }
.method-card .when.unfit { background: var(--brick-bg); }
.method-card .when .label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.method-card .when.fit .label { color: var(--emerald-deep); }
.method-card .when.unfit .label { color: var(--brick-deep); }

/* Desktop/tablet: reserve two lines for the title so the "Когда подходит"
   blocks start at the same height and line up across each row. */
@media (min-width: 640px) {
  .method-card .name { min-height: 2.3em; }
}

/* ── Process steps ────────────────────────────────────────── */

.process-steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 880px) { .process-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; } }

.step {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.step-num {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  color: var(--brick-deep);
  line-height: 1;
}
.step h3 { font-size: clamp(18px, 2vw, 22px); margin: 0; }
.step p { color: var(--ink-soft); margin: 0; font-size: calc(15px * var(--font-scale)); }
.step .step-meta {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  font-size: calc(12px * var(--font-scale));
  color: var(--emerald-deep);
  background: var(--emerald-bg);
  letter-spacing: 0.04em;
  border-radius: 999px;
  width: fit-content;
  font-weight: 600;
}

/* ── Self-check quiz ──────────────────────────────────────── */

.quiz {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  max-width: 760px;
  margin-top: 32px;
}
.quiz-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.quiz-progress .label {
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}
.quiz-progress .bar {
  flex: 1; min-width: 0;
  height: 4px;
  background: var(--line-soft);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.quiz-progress .bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--brick-deep);
  border-radius: 999px;
  transition: width .35s cubic-bezier(.2,.7,.3,1);
}
.quiz-question {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.quiz-options { display: grid; grid-template-columns: 1fr; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line-card);
  background: var(--paper);
  text-align: left;
  font-size: calc(15px * var(--font-scale));
  font-weight: 500;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  min-height: 48px;
  border-radius: 999px;
}
.quiz-option:hover { background: var(--card-tint); border-color: var(--ink-mute); }
.quiz-option[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.quiz-option .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  position: relative;
}
.quiz-option[aria-pressed="true"] .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
}
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-disclaimer { margin-top: 16px; font-size: calc(13px * var(--font-scale)); color: var(--ink-mute); line-height: 1.5; }
.quiz-result { display: flex; flex-direction: column; gap: 14px; }
.quiz-result-score {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  font-weight: 500;
  margin: 0;
  color: var(--brick-deep);
}
.quiz-result-title { font-family: var(--serif); font-size: clamp(22px, 2.8vw, 30px); margin: 0; font-weight: 500; }
.quiz-result-band {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: calc(12px * var(--font-scale));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  width: fit-content;
}
.band-low  { background: var(--emerald-bg); color: var(--emerald-deep); }
.band-mid  { background: var(--sand-bg); color: #6F4A1F; }
.band-high { background: var(--brick-bg); color: var(--brick-deep); }
.quiz-result-body { color: var(--ink-soft); font-size: calc(16px * var(--font-scale)); max-width: 56ch; }
.quiz-restart {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: calc(14px * var(--font-scale));
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  align-self: flex-start;
  font-family: var(--sans);
}

/* ── Pricing ──────────────────────────────────────────────── */

.pricing {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) { .pricing { grid-template-columns: 1fr 0.8fr; align-items: start; } }

.price-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 18px;
}
.price-card.feat {
  background: linear-gradient(160deg, #FFFBF2 0%, #FBE9E2 100%);
  border-color: transparent;
  box-shadow: var(--shadow-lift);
}
.price-tag {
  font-size: calc(12px * var(--font-scale));
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brick-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.price-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-bg);
}
.price-num {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-num .currency { font-size: 0.5em; vertical-align: super; margin-left: 6px; opacity: 0.75; }
.price-num .from {
  font-family: var(--sans); font-style: normal;
  font-size: 0.32em; vertical-align: super;
  font-weight: 500; color: var(--ink-mute);
  margin-right: 8px;
  letter-spacing: 0.04em;
}
.price-meta { color: var(--ink-mute); font-size: calc(15px * var(--font-scale)); margin: 0; }
.price-list {
  list-style: none;
  margin: 8px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.price-list li {
  padding-left: 26px;
  position: relative;
  font-size: calc(15px * var(--font-scale));
  color: var(--ink-soft);
  line-height: 1.5;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  background: var(--emerald);
  clip-path: polygon(20% 50%, 45% 75%, 90% 15%, 100% 30%, 45% 95%, 5% 60%);
}

.price-aside {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}
.price-aside h3 { font-size: calc(20px * var(--font-scale)); margin-bottom: 14px; }
.price-aside .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: calc(14px * var(--font-scale));
}
.price-aside .row:last-child { border-bottom: 0; }
.price-aside .row .l { color: var(--ink-mute); }
.price-aside .row .r { color: var(--ink); font-weight: 600; text-align: right; }

/* ── Credentials (PDF previews) ───────────────────────────── */

.cred-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 40px);
  align-items: end;
}
.cred-head-text { max-width: 56ch; }
@media (min-width: 720px) {
  .cred-head { grid-template-columns: 1fr auto; gap: 32px; }
}

.cred-slider-controls {
  display: flex;
  gap: 10px;
  justify-self: start;
}
@media (min-width: 720px) { .cred-slider-controls { justify-self: end; } }
.cred-slider-controls .ctrl {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-card);
  background: var(--card);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
}
.cred-slider-controls .ctrl:hover:not(:disabled) {
  background: var(--brick-deep); border-color: var(--brick-deep); color: #fff;
}
.cred-slider-controls .ctrl:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.cred-slider-controls .ctrl svg { width: 18px; height: 18px; }

.cred-slider {
  position: relative;
  /* Bleed slightly past the container on small screens so cards can extend to the edge */
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
}
.cred-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 220px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
  padding: 4px var(--gutter) 12px;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .cred-slider-track { grid-auto-columns: 240px; gap: 20px; }
}
.cred-slider-track::-webkit-scrollbar { height: 8px; }
.cred-slider-track::-webkit-scrollbar-track { background: transparent; }
.cred-slider-track::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 999px; }

.cred-slider-edge {
  position: absolute;
  top: 0; bottom: 16px;
  width: clamp(32px, 5vw, 56px);
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1;
}
.cred-slider-edge.left  { left: 0;  background: linear-gradient(to right, var(--paper) 30%, rgba(250,246,238,0) 100%); }
.cred-slider-edge.right { right: 0; background: linear-gradient(to left,  var(--paper) 30%, rgba(250,246,238,0) 100%); }
.cred-slider-edge.is-hidden { opacity: 0; }

.cred {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  scroll-snap-align: start;
  text-align: left;
  font: inherit;
  appearance: none;
  cursor: pointer;
}
.cred:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--line-soft); }
.cred:hover .pdf-preview { background-color: #fff; }

.pdf-preview {
  position: relative;
  aspect-ratio: 1 / 1.32;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FCF8EF 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 18px 16px;
  font-family: var(--serif);
  color: var(--ink);
}
.pdf-preview::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 28px; height: 28px;
  background: linear-gradient(225deg, var(--paper-tint) 50%, transparent 50%);
}
.pdf-preview-org {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 8px;
}
.pdf-preview-kind {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brick-deep);
  font-weight: 700;
}
.pdf-preview-title {
  font-family: var(--serif);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: auto 0;
  letter-spacing: -0.01em;
}
.pdf-preview-stamp {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 56px; height: 56px;
  border: 1.5px solid var(--brick-deep);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brick-deep);
  opacity: 0.8;
  transform: rotate(-12deg);
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
  padding: 4px;
}
.pdf-preview-year {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.cred-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
}
.cred-foot .name {
  font-family: var(--sans);
  font-size: calc(13px * var(--font-scale));
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.cred-foot .open {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brick-deep);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  white-space: nowrap;
  flex-shrink: 0;
}
.cred-foot .open svg { width: 14px; height: 14px; }

/* ── FAQ ──────────────────────────────────────────────────── */

.faq {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details.faq-item {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-m);
  padding: 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 26px;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  margin-top: 2px;
  background: var(--paper);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq-toggle::before { width: 12px; height: 1.5px; }
.faq-toggle::after  { width: 1.5px; height: 12px; transition: transform .2s; }
details[open] .faq-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
details[open] summary { color: var(--brick-deep); }
.faq-answer {
  padding: 0 26px 22px;
  color: var(--ink-soft);
  font-size: calc(16px * var(--font-scale));
  line-height: 1.65;
  max-width: 72ch;
}
.faq-answer p { margin-bottom: 0.8em; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── Glossary ─────────────────────────────────────────────── */

.glossary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 720px) { .glossary { grid-template-columns: 1fr 1fr; gap: 20px; } }
.term {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-m);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.term dt {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--brick-deep);
}
.term dt small {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 8px;
  font-weight: 500;
}
.term dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: calc(15px * var(--font-scale));
  line-height: 1.6;
}

/* ── Contacts ─────────────────────────────────────────────── */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 880px) { .contacts-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

.contact-card {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  gap: 18px;
}
.contact-card h3 { font-size: clamp(20px, 2vw, 24px); margin: 0; }

.messenger-stack {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.messenger-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line-card);
  border-radius: var(--r-m);
  text-decoration: none;
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.messenger-row:hover {
  background: var(--card-tint);
  border-color: var(--ink-mute);
  transform: translateY(-1px);
}
.messenger-row .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.messenger-row .ico.tg  { background: #229ED9; }
.messenger-row .ico.max { background: #000; }
.messenger-row .ico svg { width: 22px; height: 22px; }
.messenger-row .ico img { width: 24px; height: 24px; display: block; }
.messenger-row .meta-col { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.messenger-row .label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 2px;
}
.messenger-row .value {
  display: block;
  font-family: var(--serif);
  font-size: calc(18px * var(--font-scale));
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.messenger-row .arrow {
  margin-left: auto;
  color: var(--ink-mute);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: calc(15px * var(--font-scale));
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .label {
  width: 96px;
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.contact-row a { color: var(--ink); border-bottom: 1px solid var(--sand); text-decoration: none; padding-bottom: 1px; word-break: break-word; }
.contact-row a:hover { color: var(--brick-deep); }

.address-card {
  background: var(--card-tint);
  border: 1px solid var(--line-card);
  border-radius: var(--r-m);
  padding: 22px;
}
.map-placeholder {
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, var(--line-soft) 0 1px, transparent 1px 12px),
    var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-s);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
a.map-placeholder:hover {
  color: var(--brick-deep);
  border-color: var(--brick-deep);
  background:
    repeating-linear-gradient(45deg, rgba(141,56,37,0.18) 0 1px, transparent 1px 12px),
    var(--paper);
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  background: var(--paper-tint);
  color: var(--ink-soft);
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  font-size: calc(13px * var(--font-scale));
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
}

/* ── PDF Modal ────────────────────────────────────────────── */

.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(27,20,16,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: fadeIn 0.18s ease-out;
}
.pdf-modal[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pdf-modal-card {
  background: var(--card);
  border-radius: var(--r-l);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  padding: clamp(24px, 3vw, 36px);
  position: relative;
  box-shadow: 0 24px 80px rgba(27,20,16,0.4);
}
.pdf-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-card);
  background: var(--paper);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.pdf-modal-doc {
  background: linear-gradient(180deg, #fff 0%, #FCF8EF 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  padding: clamp(20px, 3vw, 36px);
  margin-top: 22px;
  font-family: var(--serif);
  color: var(--ink);
  position: relative;
  min-height: 420px;
}
.pdf-modal-doc::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 44px; height: 44px;
  background: linear-gradient(225deg, var(--paper-tint) 50%, transparent 50%);
  border-top-right-radius: var(--r-m);
}
.pdf-modal-doc-org {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  margin-bottom: 24px;
}
.pdf-modal-doc h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-transform: none;
}
.pdf-modal-doc .row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-family: var(--sans);
  font-size: 14px;
}
.pdf-modal-doc .row .k {
  flex-shrink: 0;
  width: 110px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 11px;
  font-weight: 600;
  padding-top: 2px;
}
.pdf-modal-doc .row .v { color: var(--ink); }
.pdf-modal-doc .stamp {
  position: absolute;
  right: 24px; bottom: 24px;
  width: 110px; height: 110px;
  border: 2px solid var(--brick-deep);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--brick-deep);
  opacity: 0.85;
  transform: rotate(-12deg);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.25;
  padding: 10px;
}

/* ── Utility ──────────────────────────────────────────────── */

/* ── Reveal animations ─────────────────────────────────── */

/* Hide elements only while they're waiting to be revealed. Once .is-visible
   is added, the static hiding rule no longer matches, so even if the keyframe
   animation can't run (e.g. paused document timeline), content stays visible. */
.reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  animation: revealIn 0.7s cubic-bezier(.22,.8,.24,1);
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── Floating CTA ──────────────────────────────────────── */

.floating-cta-group {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.94);
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,.8,.24,1);
  pointer-events: none;
}
.floating-cta-group.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.floating-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 18px;
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(141,56,37,0.5), 0 4px 12px -4px rgba(27,20,16,0.2);
  transition: background .15s ease, transform .15s ease;
  line-height: 1.2;
}
.floating-cta.cta-tg  { background: var(--brick-deep); }
.floating-cta.cta-tg:hover  { background: var(--ink); transform: translateY(-2px); }
.floating-cta.cta-max { background: #000; box-shadow: 0 8px 24px -8px rgba(0,0,0,0.5), 0 4px 12px -4px rgba(27,20,16,0.25); }
.floating-cta.cta-max:hover { background: #1f1f1f; transform: translateY(-2px); }
.floating-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.floating-cta img { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.floating-cta-group.is-shown .cta-tg { animation: fcta-pulse 2.4s ease-in-out 0.6s 2; }

@keyframes fcta-pulse {
  0%, 100% { box-shadow: 0 8px 24px -8px rgba(141,56,37,0.5), 0 4px 12px -4px rgba(27,20,16,0.2), 0 0 0 0 rgba(141,56,37,0.0); }
  25%      { box-shadow: 0 8px 24px -8px rgba(141,56,37,0.6), 0 4px 12px -4px rgba(27,20,16,0.25), 0 0 0 6px rgba(141,56,37,0.20); }
  50%      { box-shadow: 0 8px 24px -8px rgba(141,56,37,0.6), 0 4px 12px -4px rgba(27,20,16,0.25), 0 0 0 14px rgba(141,56,37,0.0); }
}
@media (max-width: 520px) {
  .floating-cta-group { gap: 12px; }
  .floating-cta { font-size: 14px; }
  .floating-cta span { display: none; }
  .floating-cta { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .floating-cta svg { width: 22px; height: 22px; }
  .floating-cta img { width: 24px; height: 24px; }
}

/* ── Inline Term tooltip ──────────────────────────────── */

.term-inline { position: relative; display: inline-block; }
.term-inline-trigger {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  border-bottom: 1.5px dotted var(--brick-deep);
  cursor: help;
  line-height: inherit;
  transition: color .15s ease;
}
.term-inline-trigger:hover,
.term-inline.open .term-inline-trigger { color: var(--brick-deep); }
.term-inline-trigger:focus-visible { outline: 2px solid var(--brick-deep); outline-offset: 2px; border-radius: 2px; }

.term-inline-pop {
  position: fixed;
  z-index: 2147483000;          /* above everything: header, modal, floating CTA */
  top: 0;
  left: 0;
  width: var(--pop-w, 320px);
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  box-shadow: 0 12px 36px -12px rgba(27,20,16,0.45), 0 4px 12px -6px rgba(27,20,16,0.3);
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  /* Position is driven by --pop-x/--pop-y and is NOT transitioned —
     transitioning transform was what made the popup slide in from the
     corner and lag/jitter while scrolling. Only the fade is animated. */
  transform: translate(var(--pop-x, 0px), var(--pop-y, 0px));
  transition: opacity .15s ease, visibility .15s;
  pointer-events: none;
  text-align: left;
  letter-spacing: 0;
  will-change: opacity;
}
.term-inline-pop::before {
  content: "";
  position: absolute;
  top: -5px;
  /* arrow position is set via --pop-arrow (px from the popup's own left edge) */
  left: var(--pop-arrow, 18px);
  width: 10px; height: 10px;
  background: var(--ink);
  transform: rotate(45deg) translateX(-50%);
  transform-origin: top left;
  border-radius: 2px;
}
/* Flip arrow above when popup sits above the trigger */
.term-inline-pop.above::before {
  top: auto;
  bottom: -5px;
  transform: rotate(45deg) translateX(-50%);
}
.term-inline.open .term-inline-pop {
  opacity: 1; visibility: visible;
  pointer-events: auto;
}
.term-inline-key {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 4px;
}
.term-inline-def { display: block; color: rgba(250,246,238,0.92); }

/* ── Sticky header shadow on scroll ───────────────────── */

.site-header { transition: box-shadow .25s ease, background .25s ease; }
.site-header.is-scrolled {
  box-shadow: 0 4px 16px -8px rgba(27,20,16,0.12);
  background: rgba(250,246,238,0.96);
}

/* ── Big button (hero CTA) ────────────────────────────── */

.btn-big { padding: 18px 30px; font-size: calc(16px * var(--font-scale)); min-height: 56px; }

/* ── EMDR phases slider ───────────────────────────────── */

.emdr-slider {
  margin-top: clamp(32px, 5vw, 56px);
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.emdr-slider-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.emdr-slider-head h3 { margin-top: 4px; max-width: 28ch; }
.emdr-slider-controls { display: flex; gap: 10px; }
.emdr-slider-controls .ctrl {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-card);
  background: var(--paper);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.emdr-slider-controls .ctrl:hover {
  background: var(--brick-deep); border-color: var(--brick-deep); color: #fff;
}
.emdr-slider-controls .ctrl svg { width: 18px; height: 18px; }

.emdr-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.emdr-slider-track::-webkit-scrollbar { height: 8px; }
.emdr-slider-track::-webkit-scrollbar-track { background: transparent; }
.emdr-slider-track::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 999px; }

.emdr-slide {
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line-card);
  border-radius: var(--r-m);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
}
.emdr-slide-num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  font-weight: 500;
  color: var(--brick-deep);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.emdr-slide-num span { font-size: 14px; color: var(--ink-mute); font-weight: 500; }
.emdr-slide h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  color: var(--ink);
  text-transform: none;
}
.emdr-slide p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0; }

/* ── Step CTA (process step 1) ────────────────────────── */

.step.has-cta {
  border: 1px solid var(--brick-bg);
  background: linear-gradient(160deg, #FFFBF2 0%, #FBE9E2 100%);
}
.step .step-cta {
  margin-top: 8px;
  align-self: flex-start;
  padding: 11px 18px;
  min-height: 44px;
  font-size: 14px;
}

/* ── Pricing aside — clean key/value grid ─────────────── */

.terms-list { margin: 0; padding: 0; }
.terms-list .term-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.terms-list .term-row:last-child { border-bottom: 0; }
.terms-list dt {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  font-weight: 500;
}
.terms-list dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}
@media (min-width: 480px) {
  .terms-list dd { white-space: nowrap; }
}

/* ── Credentials cards — equal-height footer ───────────── */

.cred-foot { min-height: 54px; align-items: flex-start; }
.cred-foot .name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.pdf-preview-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Phone links in callouts ──────────────────────────── */

.urgent-callout a.urgent-link {
  color: var(--brick-deep);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.urgent-callout a.urgent-link:hover { color: var(--ink); }
.footer-tel { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.footer-tel:hover { color: var(--brick-deep); }

.text-mute { color: var(--ink-mute); }
.mt-l { margin-top: clamp(16px, 2.6vw, 32px); }
.mt-m { margin-top: 14px; }
.mt-s { margin-top: 12px; }
.mb-s { margin-bottom: 16px; }

/* ── Telegram channel block ─────────────────────────────── */

.tg-channel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(135deg, #FFFBF2 0%, #F6EBD4 100%);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.tg-channel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 56, 37, 0.08), transparent 70%);
  pointer-events: none;
}
.tg-channel-text { position: relative; min-width: 0; }
.tg-channel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brick-deep);
  margin-bottom: 14px;
}
.tg-channel-eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--brick-deep);
}
.tg-channel h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}
.tg-channel p {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 56ch;
}
.tg-channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.tg-channel-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tg-channel-meta span::before {
  content: "·";
  color: var(--sand);
}
.tg-channel-meta span:first-child::before { display: none; }
.tg-channel-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.tg-channel-handle {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-mute);
}
.tg-channel-handle a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.tg-channel-handle a:hover { color: var(--brick-deep); }

.tg-channel-visual {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 24px;
  background: var(--brick-deep);
  display: grid;
  place-items: center;
  color: #FAF6EE;
  box-shadow: 0 12px 32px -8px rgba(141, 56, 37, 0.45),
              0 2px 6px rgba(27, 20, 16, 0.08);
  flex-shrink: 0;
}
.tg-channel-visual svg { width: 80px; height: 80px; }
.tg-channel-visual::after {
  content: "@psychologyinspb";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: var(--paper);
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-card);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .tg-channel { grid-template-columns: 1fr; }
  .tg-channel-visual {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    order: -1;
  }
  .tg-channel-visual svg { width: 60px; height: 60px; }
}

/* ── Hidden microdata helper ────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Clinical note (block 01) ─────────────────────────────── */
.cat-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-card);
  font-size: calc(13.5px * var(--font-scale));
  line-height: 1.45;
  color: var(--ink-mute);
  font-style: italic;
}

/* ── Education list (block 03) ────────────────────────────── */
.edu-intro { max-width: 60ch; }
.edu-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: edu;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 880px) { .edu-list { grid-template-columns: repeat(2, 1fr); gap: 16px 32px; } }
.edu-list li {
  position: relative;
  padding: 18px 20px 18px 56px;
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-card);
  font-size: calc(15px * var(--font-scale));
  line-height: 1.55;
  color: var(--ink-soft);
}
.edu-list li::before {
  counter-increment: edu;
  content: counter(edu, decimal-leading-zero);
  position: absolute;
  left: 18px; top: 16px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--brick-deep);
}

/* ── Ethics principles (block 06) ─────────────────────────── */
.principle-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px)  { .principle-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .principle-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.principle {
  background: var(--card);
  border: 1px solid var(--line-card);
  border-radius: var(--r-l);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.principle h3 {
  font-family: var(--serif);
  font-size: calc(20px * var(--font-scale));
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.principle p {
  margin: 0;
  font-size: calc(15px * var(--font-scale));
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Footer offer link ────────────────────────────────────── */
.footer-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.footer-link:hover { color: var(--brick-deep); }
