/* ═══════════════════════════════════════════════════════════
   Психолог Валерия Ковалёва — стили сайта
   Палитра: кремово-белый фон + глубокий хвойный зелёный
   ═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────
   1. Переменные
   ─────────────────────────────── */
:root {
  /* Цвета */
  --cream:      #FAF9F5;
  --cream-2:    #F3F1E9;
  --white:      #FFFFFF;

  --green-900:  #14201A;
  --green-800:  #1E2B24;
  --green-700:  #2F4F3E;
  --green-600:  #3E6650;
  --green-400:  #7FA38C;
  --green-200:  #C7D9CB;
  --green-100:  #E5EDE4;

  --sand:       #B2946A;

  --text:       var(--green-800);
  --muted:      #5E6E65;
  --muted-light: rgba(250, 249, 245, .72);
  --line:       rgba(47, 79, 62, .16);
  --line-light: rgba(250, 249, 245, .20);

  /* Шрифты */
  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
                Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Ритм */
  --container:  1180px;
  --gutter:     clamp(1.25rem, 5vw, 3rem);
  --section-y:  clamp(4.5rem, 9vw, 8.5rem);
  --radius:     18px;
  --radius-lg:  28px;

  --shadow-sm:  0 2px 10px rgba(30, 43, 36, .05);
  --shadow-md:  0 12px 34px -14px rgba(30, 43, 36, .22);
  --shadow-lg:  0 30px 70px -30px rgba(30, 43, 36, .38);

  --ease:       cubic-bezier(.22, .68, .36, 1);
}

/* ───────────────────────────────
   2. База
   ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, .35vw + .94rem, 1.0625rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--green-800);
  text-wrap: balance;
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--green-200); color: var(--green-900); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green-700);
  color: var(--cream);
  padding: .8rem 1.2rem;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ───────────────────────────────
   3. Раскладка
   ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 80px;
  position: relative;
}

.section--alt { background: var(--cream-2); }

.section--dark {
  background: var(--green-800);
  color: var(--muted-light);
}
.section--dark h2,
.section--dark h3 { color: var(--cream); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section__title { font-size: clamp(1.95rem, 3.6vw, 3rem); }

.section__intro {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.06em;
  max-width: 40rem;
}
.section__head--light .section__intro { color: var(--muted-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-600);
}
h2.eyebrow { font-family: var(--font-sans); line-height: 1.3; }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.section--dark .eyebrow { color: var(--green-200); }

/* ───────────────────────────────
   4. Кнопки
   ─────────────────────────────── */
.btn {
  --btn-py: 1rem;
  --btn-px: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .97rem;
  font-weight: 550;
  letter-spacing: .005em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease),
              box-shadow .3s var(--ease);
}

.btn--sm { --btn-py: .72rem; --btn-px: 1.35rem; font-size: .9rem; }

.btn--primary {
  background: var(--green-700);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(30, 43, 36, .45);
}

.btn--ghost {
  background: transparent;
  color: var(--green-700);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--green-600);
  background: rgba(47, 79, 62, .05);
  transform: translateY(-2px);
}

/* ───────────────────────────────
   5. Шапка
   ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(250, 249, 245, .93);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 72px;
  padding-block: .7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  color: var(--green-700);
}
/* display обязателен: у строчного <span> ширина не работает,
   и логотип раздувается на всю колонку */
.brand__mark { display: block; width: 26px; flex: none; color: var(--green-600); }
.brand__mark svg { width: 100%; height: auto; display: block; }
.brand__mark--lg { width: 40px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__role {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand__name {
  font-family: var(--font-serif);
  white-space: nowrap;
  font-size: 1.14rem;
  color: var(--green-800);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 1.3vw, 1.25rem);
}
.nav__list a {
  position: relative;
  white-space: nowrap;
  font-size: .88rem;
  color: var(--muted);
  padding-block: .3rem;
  transition: color .25s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__list a:hover { color: var(--green-800); }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: var(--green-700); }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px; height: 1.5px;
  background: var(--green-700);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ───────────────────────────────
   6. Первый экран
   ─────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: .5;
}
.hero__blob--1 {
  width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px;
  top: -18%; right: -10%;
  background: radial-gradient(circle at 35% 35%, rgba(127, 163, 140, .5), transparent 68%);
}
.hero__blob--2 {
  width: 34vw; height: 34vw;
  max-width: 460px; max-height: 460px;
  bottom: -22%; left: -12%;
  background: radial-gradient(circle at 60% 40%, rgba(178, 148, 106, .28), transparent 68%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.hero__title {
  font-size: clamp(3rem, 7.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
  margin-bottom: 1.6rem;
}

.hero__lead {
  font-size: clamp(1.08rem, .55vw + .98rem, 1.28rem);
  line-height: 1.66;
  max-width: 34rem;
  color: var(--green-800);
}

.hero__sub {
  max-width: 32rem;
  color: var(--muted);
  font-size: .99rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.1rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  align-items: start;
  gap: clamp(1.25rem, 2.4vw, 2.1rem);
  margin-top: 2.9rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; gap: .15rem; }
.hero__facts strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.18;
  color: var(--green-700);
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* Факт-фраза (формат приёма) — длиннее остальных, поэтому набирается мельче,
   иначе он перетягивает на себя всю строку. */
.hero__facts .hero__fact--wide strong { font-size: 1.06rem; line-height: 1.35; }
.hero__facts span {
  font-size: .83rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* Портрет в арочной рамке */
.hero__media { position: relative; justify-self: center; width: 100%; max-width: 440px; }

.portrait {
  position: relative;
  margin: 0;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--green-100);
  aspect-ratio: 3 / 4;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

.hero__media::before {
  content: "";
  position: absolute;
  inset: -18px -18px 34px -18px;
  border: 1px solid var(--line);
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  pointer-events: none;
}

.portrait__caption {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ───────────────────────────────
   7. Подход
   ─────────────────────────────── */
.approach {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
  counter-reset: approach;
}

.approach__item {
  position: relative;
  display: flex;
  gap: 1.4rem;
  padding: clamp(1.6rem, 2.6vw, 2.3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-color .45s var(--ease);
}
.approach__item:hover {
  transform: translateY(-4px);
  border-color: var(--green-200);
  box-shadow: var(--shadow-md);
}

.approach__num {
  flex: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--sand);
  line-height: 1.2;
  padding-top: .1rem;
}

.approach__item p { color: var(--muted); }

/* ───────────────────────────────
   8. С чем работаю
   ─────────────────────────────── */
.requests {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.requests li {
  position: relative;
  padding: 1.15rem 0 1.15rem 1.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--green-800);
  transition: color .3s var(--ease), padding-left .35s var(--ease);
}
.requests li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: 1.72rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  transition: background-color .3s var(--ease), transform .35s var(--ease);
}
.requests li:hover { color: var(--green-700); padding-left: 2.2rem; }
.requests li:hover::before { background: var(--green-700); transform: scale(1.25); }

.requests__more {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 42rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* ───────────────────────────────
   9. Обо мне
   ─────────────────────────────── */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.credentials li {
  padding: 1.7rem 1.5rem;
  background: var(--green-100);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.credentials strong {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--green-700);
  line-height: 1.2;
}
.credentials span { font-size: .93rem; color: var(--muted); }

/* Документы: дипломы, сертификаты, супервизии */
.docs__title {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  margin-bottom: .55rem;
}

/* Подсказка про нажатие имеет смысл только при работающем JavaScript */
.docs__lead { display: none; }
.js .docs__lead {
  display: block;
  margin: 0 0 clamp(1.6rem, 3vw, 2.2rem);
  font-size: .95rem;
  color: var(--muted);
}

.docs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  max-width: 900px;
}

.doc-cat { margin: 0; }

/* Карточка-кнопка появляется только с JavaScript,
   без него остаётся простой список ссылок ниже */
.doc-cat__open { display: none; }
.js .doc-cat__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

/* Стопка листов за обложкой — намёк, что документов несколько */
.doc-cat__stack { position: relative; display: block; }
.doc-cat__stack::before,
.doc-cat__stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease);
}
.doc-cat__stack::before { transform: translate(9px, 9px) rotate(2.2deg); }
.doc-cat__stack::after  { transform: translate(4px, 4px) rotate(1.1deg); }

.doc-cat[data-count="1"] .doc-cat__stack::before,
.doc-cat[data-count="1"] .doc-cat__stack::after,
.doc-cat[data-count="2"] .doc-cat__stack::before { display: none; }

.doc-cat__frame {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cream-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.doc-cat__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.doc-cat__hint {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.6rem .95rem .8rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(to top, rgba(20, 32, 26, .8), rgba(20, 32, 26, 0));
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.doc-cat__open:focus-visible .doc-cat__frame {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.doc-cat__open:focus-visible .doc-cat__stack::before { transform: translate(13px, 12px) rotate(3.4deg); }
.doc-cat__open:focus-visible .doc-cat__stack::after  { transform: translate(6px, 6px) rotate(1.8deg); }
.doc-cat__open:focus-visible .doc-cat__hint { opacity: 1; }

@media (hover: hover) {
  .doc-cat__open:hover .doc-cat__frame {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
  .doc-cat__open:hover .doc-cat__stack::before { transform: translate(13px, 12px) rotate(3.4deg); }
  .doc-cat__open:hover .doc-cat__stack::after  { transform: translate(6px, 6px) rotate(1.8deg); }
  .doc-cat__open:hover .doc-cat__hint { opacity: 1; }
}

.doc-cat__open:focus-visible { outline: none; }
.doc-cat__open:focus-visible .doc-cat__frame {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
}

.doc-cat__text { display: block; margin-top: 1.15rem; }
.doc-cat__name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--green-700);
}
.doc-cat__count {
  display: block;
  margin-top: .25rem;
  font-size: .87rem;
  color: var(--muted);
}

/* Запасной вариант без JavaScript: заголовок категории и список ссылок */
.doc-cat__label {
  margin: 0 0 .7rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green-700);
}
.doc-cat__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-cat__list li + li { margin-top: .6rem; }
.doc-cat__list a {
  font-size: .92rem;
  line-height: 1.45;
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--green-200);
}
.js .doc-cat__label,
.js .doc-cat__list { display: none; }

/* ───────────────────────────────
   10. Стоимость и правила
   ─────────────────────────────── */
.terms {
  margin: 0;
  border-top: 1px solid var(--line-light);
}
.terms__row {
  display: grid;
  grid-template-columns: minmax(200px, 20rem) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.25rem, 2.4vw, 1.7rem);
  border-bottom: 1px solid var(--line-light);
  align-items: baseline;
}
.terms dt {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-200);
}
.terms dd { margin: 0; color: var(--muted-light); }
.terms__value {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  color: var(--cream);
  margin-right: .35rem;
}
/* Пояснение, которое само по себе целое предложение, — с новой строки. */
.terms__note { display: block; margin-top: .35rem; }

/* ───────────────────────────────
   11. Запись
   ─────────────────────────────── */
.booking__inner { max-width: 960px; margin-inline: auto; text-align: center; }
.booking .eyebrow { justify-content: center; }
.booking__lead {
  margin: 1.35rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05em;
}

.booking__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: left;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease), background-color .4s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-400);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card:hover .contact-card__icon { background: var(--green-700); color: var(--cream); }

.contact-card__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.contact-card__label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__value {
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--green-800);
  overflow-wrap: anywhere;   /* длинная почта переносится, а не обрезается */
}
.contact-card__arrow {
  margin-left: auto;
  color: var(--green-400);
  font-size: 1.15rem;
  transition: transform .4s var(--ease), color .4s var(--ease);
}
.contact-card:hover .contact-card__arrow { transform: translateX(4px); color: var(--green-700); }

.booking__note {
  margin-top: 2rem;
  font-size: .92rem;
  color: var(--muted);
}

/* ───────────────────────────────
   12. Частые вопросы
   ─────────────────────────────── */
.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.25rem, 2.4vw, 1.7rem) 3rem clamp(1.25rem, 2.4vw, 1.7rem) 0;
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  line-height: 1.35;
  color: var(--green-800);
  cursor: pointer;
  list-style: none;
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green-700); }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 50%;
  width: 13px; height: 13px;
  margin-top: -6px;
  border-right: 1.5px solid var(--green-600);
  border-bottom: 1.5px solid var(--green-600);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.faq__body {
  padding: 0 3rem 1.9rem 0;
  color: var(--muted);
  animation: faqIn .45s var(--ease);
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ───────────────────────────────
   13. Подвал
   ─────────────────────────────── */
.footer {
  background: var(--green-900);
  color: var(--muted-light);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.25rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer__brand .brand__mark { color: var(--green-400); margin-bottom: 1.1rem; }
.footer__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: .45rem;
}
.footer__role { margin-bottom: .3rem; font-size: .95rem; }

.footer__label {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 1.1rem;
}

.footer__links { display: grid; gap: .65rem; }
.footer__links a {
  font-size: .97rem;
  color: var(--muted-light);
  transition: color .25s var(--ease);
}
.footer__links a:hover { color: var(--cream); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
}
.footer__disclaimer {
  margin: 0;
  max-width: 46rem;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(250, 249, 245, .42);
}
.footer__copy { margin: 0; font-size: .8rem; color: rgba(250, 249, 245, .42); }

/* ───────────────────────────────
   14. Плавающая кнопка (телефон)
   ─────────────────────────────── */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  z-index: 90;
  display: none;
  padding: .95rem 2.1rem;
  background: var(--green-700);
  color: var(--cream);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 550;
  box-shadow: 0 14px 34px -12px rgba(20, 32, 26, .6);
  transform: translate(-50%, 130%);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
  opacity: 0;
}
.floating-cta.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ───────────────────────────────
   15. Просмотр документов
   ─────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.35rem, 1.5vw, 1.25rem);
  padding: clamp(4.25rem, 10vh, 5.5rem) clamp(.6rem, 3vw, 2.5rem) clamp(1.25rem, 4vh, 2.5rem);
  background: rgba(20, 32, 26, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

/* Шапка: категория, счётчик, крестик */
.lightbox__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: clamp(.9rem, 3vw, 1.5rem) clamp(.9rem, 3vw, 1.9rem);
}
.lightbox__group {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--cream);
}
.lightbox__counter {
  margin: 0;
  font-size: .85rem;
  letter-spacing: .06em;
  color: var(--green-200);
  font-variant-numeric: tabular-nums;
}
.lightbox.is-single .lightbox__counter { display: none; }

.lightbox__close {
  margin-left: auto;
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(250, 249, 245, .25);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.lightbox__close:hover { background: rgba(250, 249, 245, .12); transform: rotate(90deg); }

/* Стрелки */
.lightbox__nav {
  width: 52px; height: 52px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(250, 249, 245, .25);
  border-radius: 50%;
  background: no-repeat center / 40% 40%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FAF9F5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4 7 12l8 8'/%3E%3C/svg%3E");
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__nav--next { transform: scaleX(-1); }
.lightbox__nav:hover { background-color: rgba(250, 249, 245, .12); border-color: rgba(250, 249, 245, .5); }
.lightbox.is-single .lightbox__nav { visibility: hidden; }

/* Сам документ */
.lightbox__stage {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  margin: 0;
}
.lightbox__frame {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.lightbox__img.is-ready { opacity: 1; }

.lightbox__caption {
  flex: none;
  max-width: 62ch;
  margin: clamp(.9rem, 2.5vh, 1.4rem) auto 0;
  text-align: center;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted-light);
}

@media (max-width: 760px) {
  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    row-gap: clamp(1rem, 3vh, 1.5rem);
  }
  .lightbox__stage { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-column: 1; grid-row: 2; justify-self: end; }
  .lightbox__nav--next { grid-column: 2; grid-row: 2; justify-self: start; }
  .lightbox.is-single .lightbox__nav { display: none; }
}

/* ───────────────────────────────
   16. Появление при прокрутке
   ─────────────────────────────── */
/* Прячем блоки до появления только если JavaScript работает.
   Иначе (скрипт не загрузился, отключён, старый браузер)
   страница показывает всё сразу, а не остаётся пустой. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────────────────────────────
   17. Адаптив
   ─────────────────────────────── */
@media (max-width: 1300px) {
  .nav__list { gap: .85rem; }
  .nav__list a { font-size: .84rem; }
  .brand__name { font-size: 1.05rem; }
}

@media (max-width: 1180px) {
  .site-header__cta { display: none; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding: 6rem var(--gutter) 2.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-102%);
    transition: transform .5s var(--ease);
    z-index: -1;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list li:last-child { border-bottom: none; }
  .nav__list a { display: block; padding: 1rem 0; font-size: 1.05rem; }
  .nav__list a::after { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__facts { grid-template-columns: 1fr; justify-items: center; }
  .hero__facts .hero__fact--wide strong { font-size: 1.18rem; }
  .hero__media { order: -1; max-width: 290px; }
  .hero__text { text-align: center; }
  .hero__title { margin-inline: auto; }
  .hero .eyebrow { justify-content: center; }
  .hero__lead, .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__facts { justify-content: center; text-align: center; }
  .hero__facts li { align-items: center; }

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

  .terms__row { grid-template-columns: 1fr; gap: .4rem; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .floating-cta { display: block; }
}

@media (max-width: 640px) {
  .booking__actions { grid-template-columns: 1fr; }

  /* На телефоне карточки документов становятся строками списка */
  .docs__grid { grid-template-columns: 1fr; gap: .85rem; max-width: none; }
  .js .doc-cat__open {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 11px;
    align-items: center;
    gap: 1rem;
    padding: .8rem 1.1rem .8rem .8rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
  }
  /* стрелка «открыть» справа */
  .js .doc-cat__open::after {
    content: "";
    width: 10px; height: 10px;
    border-top: 1.6px solid var(--green-400);
    border-right: 1.6px solid var(--green-400);
    transform: rotate(45deg);
    justify-self: end;
  }
  .doc-cat__stack::before,
  .doc-cat__stack::after { display: none; }
  .doc-cat__frame { border-radius: 12px; box-shadow: none; }
  .doc-cat__hint { display: none; }
  .doc-cat__text { margin-top: 0; }
  .doc-cat__name { font-size: 1.1rem; }
}

@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 1.25rem 2rem; }
  .hero__facts strong { font-size: 1.3rem; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .approach__item { flex-direction: column; gap: .6rem; }
}

/* ───────────────────────────────
   18. Уважение к настройкам движения
   ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────────────────────────────
   19. Печать
   ─────────────────────────────── */
@media print {
  .site-header, .floating-cta, .lightbox, .hero__blob { display: none !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
  .section--dark { background: #fff; color: #000; }
  .section--dark h2, .terms__value, .terms dt { color: #000; }
}
