/* ==========================================================================
   Ольга Галкина — психоаналитический психотерапевт

   Тил-оранжевая палитра: глубокий бирюзово-зелёный, жжёный оранжевый, песок.
   Собрана по палитрам 306D64 / 04332D / 4C1507 / B53F0D / D77428 и 148A88 / 0B282A.

   Бирюза в палитре не случайна: кресло на портретах бирюзовое, и теперь оно
   часть гаммы, а не помеха. Поэтому фотографии почти не тонируются —
   цвет кожи и глаз остаётся настоящим.

   Вся тема собрана в :root — чтобы поменять настроение, правьте только его.
   Другие версии темы лежат в assets/themes/
   ========================================================================== */

:root {
  /* Фон и подложки */
  --bg:            #072b26;                   /* глубокий тил, между 04332D и 0B282A */
  --panel:         rgba(215, 116, 40, 0.075); /* alt-секции — тёплый оранжевый налёт */
  --card:          rgba(236, 228, 213, 0.045);/* карточки — тонкий песочный свет */
  --header-bg:     rgba(7, 43, 38, 0.86);

  /* Тёмные секции — уходят в тёплый уголь, чтобы страница не была одноцветной */
  --deep-bg:       #1d130d;
  --deep-line:     rgba(236, 228, 213, 0.17);
  --footer-bg:     #130c08;

  /* Текст */
  --text:          #d5cec1;
  --text-soft:     #b4ada0;
  --text-muted:    #9b9488;
  --text-on-deep:  #e4dbcb;
  --heading:       #ece4d5;                   /* тёплый песочный */
  --on-accent:     #06231f;                   /* текст на акцентной заливке */

  /* Акценты */
  --green:         #4e9d8e;                   /* тил 306D64, поднятый под тёмный фон */
  --green-deep:    #5eb0a0;
  --green-soft:    #2b625a;
  --green-wash:    #0c3a33;
  --terracotta:    #d77428;                   /* жжёный оранжевый из палитры */
  --terracotta-lt: #e69553;
  --terracotta-wash:#2f1a0c;

  /* Дымка — тил и оранжевый, как на референсных палитрах */
  --smoke-1:       rgba(48, 109, 100, 0.16);
  --smoke-2:       rgba(215, 116, 40, 0.09);
  --smoke-3:       rgba(20, 138, 136, 0.07);

  /* Линии */
  --line:          #17423b;
  --line-strong:   #275a51;

  /* Типографика */
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Ритм */
  --wrap: 1120px;
  --wrap-narrow: 720px;
  --gap: clamp(3.5rem, 9vw, 7.5rem);
  --radius: 3px;
}

/* --------------------------------------------------------------- Сброс -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Дымка: несколько очень мягких пятен света, закреплённых за окном.
     Слои не перехватывают клики, поэтому фон, а не оверлей. */
  background-color: var(--bg);
  background-image:
    radial-gradient(58% 42% at 18% 12%, var(--smoke-1), transparent 72%),
    radial-gradient(46% 38% at 88% 26%, var(--smoke-2), transparent 72%),
    radial-gradient(54% 42% at 60% 74%, var(--smoke-3), transparent 74%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

::selection { background: var(--green-wash); color: var(--heading); }

/* height: auto обязателен — иначе атрибуты width/height в разметке
   задают фиксированную высоту и отменяют aspect-ratio */
img { max-width: 100%; height: auto; display: block; }

/* у figure браузерный margin: 1em 40px — обнуляем, иначе съедает колонку */
figure, blockquote { margin: 0; }

a { color: var(--green); text-decoration-color: var(--green-soft); text-underline-offset: 3px; }
a:hover { color: var(--terracotta); text-decoration-color: var(--terracotta-lt); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--heading);
}

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

/* ------------------------------------------------------------ Раскладка -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--gap); }

/* Подложка alt-секций полупрозрачная — сквозь неё читается дымка фона */
.section--alt { background: var(--panel); }
.section--deep { background: var(--deep-bg); color: var(--text-on-deep); }
.section--deep h2, .section--deep h3 { color: var(--heading); }

/* Надзаголовок секции */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  max-width: 4rem;
}
.section--deep .eyebrow { color: var(--terracotta-lt); }
.section--deep .eyebrow::after { background: var(--deep-line); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
  max-width: 20ch;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-soft);
  max-width: 62ch;
}
.section--deep .lede { color: var(--text-on-deep); }

/* -------------------------------------------------------------- Шапка --- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(0,0,0,0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--heading);
  text-decoration: none;
  line-height: 1.25;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.brand:hover { color: var(--terracotta); }
.brand span {
  /* подпись под именем; на узких экранах скрывается */
  display: block;
  font-family: var(--sans);
  font-size: 0.63rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.5rem); }

.nav__links { display: flex; gap: clamp(0.8rem, 1.5vw, 1.2rem); }

.nav__links a {
  font-size: 0.81rem;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding-block: 0.25rem;
  white-space: nowrap;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width 0.28s ease;
}
.nav__links a:hover { color: var(--heading); }
.nav__links a:hover::after { width: 100%; }

/* Переключатель языка */
.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang a {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  color: var(--text-muted);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang a:hover { color: var(--heading); background: var(--green-wash); }
.lang a[aria-current='true'] {
  background: var(--green);
  color: var(--on-accent);
}

/* Бургер */
.burger {
  display: none;
  width: 2.4rem; height: 2.4rem;
  border: none; background: none; cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--heading);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero -- */

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -18%; right: -12%;
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(141,156,110,0.14) 0%, rgba(141,156,110,0) 68%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  position: relative;
}

.hero__title {
  font-size: clamp(2.1rem, 5.6vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero__role {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero__text {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* Фото в hero */
.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  /* фотографии приглушены, чтобы не выбиваться из полумрака */
  filter: brightness(0.93);
}
.hero__figure::after {
  content: '';
  position: absolute;
  inset: auto -1rem -1rem auto;
  width: 55%; height: 55%;
  border: 1px solid var(--green-soft);
  border-radius: var(--radius);
  z-index: -1;
}

/* Полоса с ключевыми фактами */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.facts__item {
  background: var(--card);
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1rem, 2.5vw, 2rem);
  text-align: center;
}
.facts__num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--terracotta);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.facts__label {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

/* -------------------------------------------------------------- Кнопки -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

/* Тёмный текст на светлой заливке — на тёмном фоне так читается лучше всего */
.btn--primary { background: var(--green); color: var(--on-accent); }
.btn--primary:hover { background: var(--green-deep); color: var(--on-accent); }

.btn--outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--terracotta); color: var(--terracotta-lt); background: var(--terracotta-wash); }

.btn--light { background: var(--terracotta); color: var(--on-accent); }
.btn--light:hover { background: var(--terracotta-lt); color: var(--on-accent); }

/* --------------------------------------------------------------- Обо мне */

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.about__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.9) saturate(0.96);
}
/* :not(.eyebrow) — иначе это правило перебивает цвет надзаголовка секции */
.about__body p:not(.eyebrow) { color: var(--text-soft); }
.about__intro {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  line-height: 1.55;
  color: var(--heading);
}

/* Цитата */
.quote {
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 2px solid var(--terracotta);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--heading);
}

/* ------------------------------------------------------- С чем работаю -- */

/* Заголовок секции и фото рядом с ним — общий блок для нескольких секций */
.section-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
/* Зеркальный вариант: фото слева — чтобы соседние секции не повторяли друг друга */
.section-head--flip { grid-template-columns: 0.8fr 1.2fr; }
.section-head--flip .section-head__figure { order: -1; }

.section-head__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.88) saturate(0.96);
}

.topics {
  display: grid;
  /* 300px даёт три колонки на десктопе — девять карточек ложатся ровно 3×3 */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.topic {
  background: var(--card);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  transition: background 0.3s ease;
}
.topic:hover { background: var(--green-wash); }
.topic__mark {
  font-family: var(--serif);
  font-size: 0.78rem;
  color: var(--terracotta);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.85rem;
}
.topic h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}
.topic p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ------------------------------------------------------------- Подход --- */

.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.approach__figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  /* оранжевый на снимке заметно ярче полумрака — гасим сильнее прочих */
  filter: brightness(0.86) saturate(0.95);
}

/* ---------------------------------------------------------- Как работаю -- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin-top: 3rem;
}
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--terracotta);
  line-height: 1.2;
}
.step h3 { font-size: 1.22rem; margin-bottom: 0.6rem; }
.step p { color: var(--text-soft); max-width: 62ch; }

/* ------------------------------------------------------------ Обучение -- */

.credentials { margin-top: 2.75rem; display: grid; gap: 0; }
.credential {
  display: grid;
  grid-template-columns: minmax(6rem, 9rem) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.credential:last-child { border-bottom: 1px solid var(--line); }
.credential__year {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--terracotta);
  letter-spacing: 0.03em;
}
.credential__body strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.08rem;
  color: var(--heading);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.credential__body span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* --------------------------------------------------------------- Цены --- */

.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 3rem;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.price-card:hover { border-color: var(--green-soft); transform: translateY(-3px); }
.price-card--accent { border-color: var(--terracotta-lt); background: var(--terracotta-wash); }

.price-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.price-card__meta {
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.price-card__amount {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  color: var(--heading);
  line-height: 1;
  margin-bottom: 0.4rem;
}
/* «По договорённости» вместо суммы — текст длиннее, кегль меньше */
.price-card__amount--text {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.25;
}

.price-card__amount small {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.price-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-top: 1rem;
}

.pricing-note {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 66ch;
}

/* -------------------------------------------------------------- Вопросы -- */

/* Тот же приём, что в .credentials и .steps: список, разделённый линиями,
   без карточек — вопросов немного, и рамки утяжелили бы конец страницы. */
.faq { margin-top: 2.75rem; display: grid; gap: 0; }

.faq__item {
  padding: clamp(1.4rem, 2.5vw, 1.9rem) 0;
  border-top: 1px solid var(--line);
}
.faq__item:last-child { border-bottom: 1px solid var(--line); }

.faq__item h3 {
  font-size: 1.18rem;
  line-height: 1.35;
  margin-bottom: 0.7rem;
}
.faq__item p { color: var(--text-soft); max-width: 68ch; }

/* ------------------------------------------------------------ Контакты -- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; }
.contact-list li { border-top: 1px solid var(--deep-line); }
.contact-list li:last-child { border-bottom: 1px solid var(--deep-line); }
.contact-list a, .contact-list span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  text-decoration: none;
  color: var(--text-on-deep);
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.contact-list a:hover { color: var(--terracotta-lt); padding-left: 0.5rem; }
.contact-list .label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220,203,164,0.6);
  flex-shrink: 0;
}
.contact-list .value {
  font-family: var(--serif);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  text-align: right;
  word-break: break-word;
}

.contact__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.89) saturate(0.97);
}

/* --------------------------------------------------------------- Подвал */

.footer {
  background: var(--footer-bg);
  color: rgba(220,203,164,0.62);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 2.5rem;
  font-size: 0.84rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.footer__legal { letter-spacing: 0.04em; color: rgba(220,203,164,0.48); }
.footer a { color: rgba(220,203,164,0.82); text-decoration: none; }
.footer a:hover { color: var(--terracotta-lt); }

/* ------------------------------------------------------------ Анимация -- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ Адаптив --- */

@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .approach__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid { gap: 2.75rem; }
  .hero__figure { max-width: 340px; }
  .hero__figure::after { display: none; }

  .about__figure { max-width: 380px; }
  .approach__figure { order: -1; max-width: 460px; }
  .contact__figure { display: none; }

  .section-head,
  .section-head--flip { grid-template-columns: 1fr; gap: 2.25rem; }
  .section-head__figure { max-width: 380px; }
  /* в одну колонку фото всегда под текстом */
  .section-head--flip .section-head__figure { order: 0; }
}

/* Меню сворачивается раньше, чем меняются сетки: восемь пунктов плюс
   переключатель языка перестают помещаться в шапку около 1180px */
@media (max-width: 1200px) {
  .burger { display: flex; }

  .nav__links {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
    box-shadow: 0 12px 30px rgba(47,56,47,0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__links a {
    padding: 0.85rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links a::after { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  /* Шапка: освобождаем место под бургер */
  .header__inner { gap: 0.75rem; }
  .brand { font-size: 0.95rem; min-width: 0; }
  .brand span { display: none; }
  .nav { gap: 0.6rem; }
  .lang a { padding: 0.32rem 0.6rem; }

  .facts__grid { grid-template-columns: 1fr; }

  .step { grid-template-columns: 1fr; gap: 0.5rem; }
  .step::before { font-size: 1.15rem; }

  .credential { grid-template-columns: 1fr; gap: 0.35rem; }

  .contact-list a, .contact-list span {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .contact-list .value { text-align: left; }

  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------- Печать */

@media print {
  .header, .burger, .hero__actions, .footer { display: none; }

  /* на бумаге тема инвертируется обратно в светлую, иначе текст не виден */
  body { background: #fff; background-image: none; color: #22261f; font-size: 12pt; }
  h1, h2, h3, h4, .about__intro, .quote,
  .credential__body strong, .price-card__amount { color: #22261f; }
  p, .lede, .step p, .topic p { color: #3c423a; }
  .section--alt, .section--deep, .facts, .facts__item,
  .topic, .price-card { background: transparent; color: #22261f; }
  img { filter: none; }
  .section { padding-block: 1.5rem; }
}

/* ------------------------------------------------------------- Доступ. -- */

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: var(--on-accent); }
