/* ==========================================================================
   Светлана Федющенко - психолог. Дизайн-система.
   Палитра: песочный фон + разбеленный зелёный акцент.
   Шрифт по просьбе клиентки - Times New Roman. Веб-версия: Tinos с Google
   Fonts, метрически совместим с Times New Roman и покрывает кириллицу;
   на машинах без него подхватывается системный Times New Roman.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
  /* Шрифты - точка замены при получении фирменных */
  --font-display: "Tinos", "Times New Roman", Times, serif;
  --font-body: "Tinos", "Times New Roman", Times, serif;

  /* Песок */
  --sand: #efe6d6;
  --sand-deep: #e4d7c2;
  --sand-soft: #f7f1e6;
  --paper: #fffdf8;

  /* Зелёный */
  --green-ink: #2c4335;
  --green-deep: #3e5c48;
  --green-wash: #9db79f;
  --green-pale: #c6d6c2;

  /* Акцент и текст */
  --clay: #c08a63;
  --ink: #2a2723;
  --muted: #6e6555;

  /* Производные */
  --line: rgba(62, 92, 72, 0.22);
  --dotted: 1px dotted rgba(62, 92, 72, 0.5);
  --shadow-soft: 0 18px 46px rgba(62, 92, 72, 0.12);
  --shadow-lift: 0 26px 64px rgba(62, 92, 72, 0.18);
  --radius: 10px;
  --max: 1200px;

  /* Тайминги анимаций референса */
  --ease-zoom: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

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

/* Картинки с width/height в разметке не растягиваются по высоте. */
img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 60px);
  color: var(--green-deep);
}

h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  color: var(--green-deep);
}

h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--green-deep);
}

p {
  margin: 0 0 1em;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(192, 138, 99, 0.5);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--clay);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(62, 92, 72, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Анимации появления (три типа, как на референсе)
   -------------------------------------------------------------------------- */

[data-anim="zoomin"] {
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 1s var(--ease-zoom), transform 1s var(--ease-zoom);
}

[data-anim="fadein"] {
  opacity: 0;
  transition: opacity 3s ease;
}

[data-anim="fadeinleft"] {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s ease, transform 1s var(--ease-zoom);
}

[data-anim="fadeinright"] {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1s ease, transform 1s var(--ease-zoom);
}

[data-anim="fadeinup"] {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-zoom);
}

[data-anim].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Акварельные пятна и фоновые разводы
   -------------------------------------------------------------------------- */

.wash {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  background: radial-gradient(
    circle at 45% 40%,
    rgba(157, 183, 159, 0.5),
    rgba(157, 183, 159, 0.16) 58%,
    rgba(157, 183, 159, 0) 74%
  );
  filter: blur(18px);
}

.wash--tl {
  top: -120px;
  left: -160px;
  width: 460px;
  height: 420px;
}

.wash--br {
  right: -180px;
  bottom: -140px;
  width: 520px;
  height: 460px;
}

/* Круглая акварельная подложка под линейную иконку */
.blob-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--paper);
}

.blob-icon::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 47% 53% 51% 49% / 50% 47% 53% 50%;
  background: radial-gradient(
    circle at 40% 36%,
    var(--green-deep) 0%,
    var(--green-wash) 58%,
    rgba(157, 183, 159, 0.15) 76%,
    rgba(157, 183, 159, 0) 88%
  );
  filter: blur(1.5px);
}

.blob-icon svg {
  position: relative;
  width: 58%;
  height: 58%;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blob-icon--sm {
  width: 74px;
  height: 74px;
}

.blob-icon--lg {
  width: 109px;
  height: 109px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 61px;
  padding: 0 34px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

/* Пунктирная кнопка - основной приём референса */
.btn--dotted {
  color: var(--green-deep);
  background: transparent;
  border: 2px dotted var(--green-deep);
}

.btn--dotted:hover {
  background: var(--green-pale);
  border-style: solid;
}

/* Залитая плашка */
.btn--solid {
  color: var(--paper);
  background: var(--green-deep);
  border: 2px solid var(--green-deep);
}

.btn--solid:hover {
  background: var(--green-ink);
  border-color: var(--green-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn--telegram {
  color: #176d9e;
  background: #eef8fc;
  border: 2px solid #79bedf;
}

.btn--telegram svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.btn--telegram:hover {
  background: #ddf1fa;
  border-color: #176d9e;
  box-shadow: 0 10px 24px rgba(23, 109, 158, 0.15);
}

.btn--ghost {
  color: var(--green-deep);
  background: var(--paper);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--sand-soft);
}

.btn--sm {
  min-height: 51px;
  font-size: 18px;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 241, 230, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(62, 92, 72, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 89px;
  transition: min-height 0.3s ease;
}

.site-header.is-stuck .header-inner {
  min-height: 68px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-family: var(--font-display);
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--green-deep);
  transition: right 0.3s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  right: 0;
}

/* Круглый логотип-клякса по центру */
.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  flex: none;
  transition: width 0.3s ease, height 0.3s ease;
}

.site-header.is-stuck .brand-mark {
  width: 54px;
  height: 54px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(
    circle at 40% 36%,
    var(--green-deep) 0%,
    var(--green-wash) 60%,
    rgba(157, 183, 159, 0.2) 80%,
    rgba(157, 183, 159, 0) 92%
  );
  filter: blur(1px);
}

.brand-mark__icon {
  position: relative;
  width: 100%;
  height: 100%;
  fill: var(--paper);
  transition: transform 0.6s var(--ease-zoom);
}

.brand:hover .brand-mark__icon {
  transform: rotate(-18deg);
}

.brand-text {
  display: none;
}

.header-contacts {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-contacts a:hover {
  color: var(--green-deep);
  transform: translateY(-1px);
}

.contact-ico {
  width: 31px;
  height: 31px;
}

.contact-ico svg {
  width: 100%;
  height: 100%;
  stroke: var(--green-deep);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  justify-self: end;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  background: var(--green-pale);
  transform: scale(1.06);
}

.menu-toggle:active {
  transform: scale(0.94);
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px auto;
  background: var(--green-deep);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Полноэкранное мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--sand-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--green-ink);
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-menu__close:hover {
  background: var(--green-pale);
  transform: rotate(6deg) scale(1.06);
}

.mobile-menu__close:active {
  transform: scale(0.94);
}

.mobile-menu__close svg {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: 22px;
  text-decoration: none;
  color: var(--green-deep);
}

.mobile-menu__contacts {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 19px;
}

.mobile-menu__contacts a {
  color: var(--green-deep);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Секции: общая механика
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  overflow-x: clip;
  padding: 92px 0;
}

.section--tight {
  padding: 56px 0;
}

.section--sand {
  background: var(--sand-deep);
}

.section--soft {
  background: var(--sand-soft);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  margin-top: 16px;
}

.section-head--left {
  margin-left: 0;
  text-align: left;
}

.lead {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--ink);
}

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

/* --------------------------------------------------------------------------
   1. Герой
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 900px;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero__name {
  font-size: clamp(34px, 4.6vw, 56px);
  margin-bottom: 4px;
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.9vw, 40px);
  font-weight: 500;
  line-height: 1.14;
  color: var(--green-deep);
  margin: 0 0 40px;
  max-width: 784px;
}

.hero__spec-label {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 6px;
}

.hero__typed {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  min-height: 2.6em;
  color: var(--ink);
  margin: 0 0 46px;
}

.hero__typed .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--clay);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__price {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  color: var(--clay);
  white-space: nowrap;
}

.hero__media {
  position: relative;
  justify-self: end;
  align-self: end;
  width: 100%;
  max-width: 700px;
  margin-bottom: -88px;
}

.hero__media img {
  width: 100%;
  height: auto;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: -4% -14% -10% -16%;
  z-index: -1;
  border-radius: 48% 52% 44% 56% / 46% 50% 50% 54%;
  background: radial-gradient(
    circle at 52% 46%,
    rgba(157, 183, 159, 0.62),
    rgba(157, 183, 159, 0.26) 58%,
    rgba(157, 183, 159, 0) 76%
  );
  filter: blur(30px);
}

/* --------------------------------------------------------------------------
   2. Сплит-блоки (первая консультация / индивидуальная терапия)
   -------------------------------------------------------------------------- */

.split {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.split__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split__copy h2 {
  margin-bottom: 14px;
}

.split__meta {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 4px;
}

.split__meta strong {
  color: var(--ink);
  font-weight: 600;
}

.split__channels {
  display: flex;
  gap: 26px;
  margin: 34px 0 40px;
}

.split__list-title {
  margin-bottom: 14px;
}

.list-dashed {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
}

.list-dashed li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--muted);
}

.list-dashed li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-wash);
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  height: auto;
}

.split__media .line-art {
  width: 100%;
  height: auto;
  stroke: var(--green-deep);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Фото в сплит-блоке: квадрат с растушёванными краями и акварельной
   подложкой — как портрет в «Почему клиенты выбирают меня» (.photo-soft). */
.split__photo {
  max-width: 460px;
}

/* --------------------------------------------------------------------------
   3. Факт-полоса с заголовком на рамке
   -------------------------------------------------------------------------- */

.fact {
  position: relative;
  overflow-x: clip;
  padding: 46px 0;
}

.fact__frame {
  position: relative;
  border: 2px dotted rgba(62, 92, 72, 0.45);
  padding: 58px 32px 46px;
  text-align: center;
}

.fact__title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  padding: 0 28px;
  background: var(--sand);
  margin: 0;
}

.section--sand .fact__title {
  background: var(--sand-deep);
}

.section--soft .fact__title {
  background: var(--sand-soft);
}

.fact__text {
  max-width: 750px;
  margin: 0 auto;
  font-size: 20px;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. Обо мне: панель + слайдер документов + портрет
   -------------------------------------------------------------------------- */

.about {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.about__panel {
  position: relative;
  border: 2px dotted rgba(62, 92, 72, 0.45);
  padding: 56px 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: center;
}

.about__copy h2 {
  margin-bottom: 12px;
}

.about__role {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 32px;
}

.about__copy h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  margin-bottom: 8px;
}

.about__copy p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 26px;
}

/* Цифры практики: заполняют низ панели и добавляют веса блоку */
.about__facts {
  list-style: none;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 18px 26px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px dotted rgba(62, 92, 72, 0.4);
}

.about__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__facts strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.15;
  white-space: nowrap;
}

.about__facts span {
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

/* Слайдер документов */
.doc-slider {
  position: relative;
  align-self: start;
}

.doc-slider__label {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.doc-slider__all {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  text-align: center;
  color: var(--green-deep);
  text-decoration-color: rgba(62, 92, 72, 0.4);
}

/* Картина на стене: подвес со шнурами, багет, паспарту, документ.
   Размер багета задаётся --frame-molding, менять пропорции — там. */
.doc-frame {
  --frame-molding: 20px;
  --frame-hang: 58px;
  /* Багет: приглушённое дерево между --sand-deep и --clay. Правка тона — здесь. */
  --frame-wood-hi: #ded0b9;
  --frame-wood: #c9b295;
  --frame-wood-lo: #b2977a;
  position: relative;
  padding-top: var(--frame-hang);
}

.doc-frame__hanger {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--frame-hang);
  overflow: visible;
  fill: none;
  stroke: var(--green-deep);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.5;
}

/* Кольцо подвеса + шляпка гвоздя над ним. */
.doc-frame__nail {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border: 1.2px solid rgba(62, 92, 72, 0.5);
  border-radius: 50%;
  background: var(--sand);
}

.doc-frame__nail::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--green-deep);
  opacity: 0.55;
}

.doc-frame__body {
  position: relative;
  padding: var(--frame-molding);
  background: linear-gradient(
    138deg,
    var(--frame-wood-hi) 0%,
    var(--frame-wood) 38%,
    var(--frame-wood-hi) 56%,
    var(--frame-wood-lo) 100%
  );
  box-shadow:
    /* внешний контур и фаска багета */
    inset 0 0 0 1px rgba(62, 92, 72, 0.4),
    inset 2px 2px 0 rgba(255, 253, 248, 0.6),
    inset -2px -2px 0 rgba(94, 70, 46, 0.24),
    /* тень на стене: картина висит, а не наклеена */
    0 26px 42px -22px rgba(44, 67, 53, 0.5),
    0 8px 18px -12px rgba(44, 67, 53, 0.32);
}

.doc-slider__viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  padding: 24px;
  background: var(--paper);
  box-shadow:
    /* фальц: линия, где багет переходит в паспарту */
    0 0 0 1px rgba(62, 92, 72, 0.32),
    0 2px 7px rgba(44, 67, 53, 0.2),
    inset 0 0 28px rgba(62, 92, 72, 0.07);
}

.doc-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease-zoom);
}

.doc-slider__slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.doc-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(62, 92, 72, 0.16));
}

.doc-slider__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}

.doc-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--green-pale);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.doc-slider__dots button:hover {
  background: var(--green-wash);
  transform: scale(1.2);
}

.doc-slider__dots button:active {
  transform: scale(0.9);
}

.doc-slider__dots button[aria-current="true"] {
  background: var(--green-deep);
  transform: scale(1.25);
}

.doc-slider__caption {
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  min-height: 2.8em;
}

.doc-slider__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-deep);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.doc-slider__nav:hover {
  background: var(--green-pale);
  box-shadow: var(--shadow-soft);
  transform: translateY(-50%) scale(1.08);
}

.doc-slider__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.doc-slider__nav--prev {
  left: -19px;
}

.doc-slider__nav--next {
  right: -19px;
}

.doc-slider__nav svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   5. Баннер метода
   -------------------------------------------------------------------------- */

.banner {
  position: relative;
  overflow-x: clip;
  padding: 70px 0;
}

.banner__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  align-items: center;
  min-height: 370px;
  border: 2px dotted rgba(62, 92, 72, 0.45);
  overflow: hidden;
  background: var(--sand-soft);
}

.banner__media {
  position: relative;
  height: 100%;
  min-height: 370px;
  background: var(--sand-deep);
  overflow: hidden;
}

.banner__media img,
.banner__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(247, 241, 230, 0) 58%,
      rgba(247, 241, 230, 0.86) 84%,
      var(--sand-soft) 99%
    ),
    linear-gradient(200deg, rgba(62, 92, 72, 0.24), rgba(62, 92, 72, 0) 62%);
}

/* С фотографией: квадрат по центру левой колонки, без затемнения. */
.banner__media--photo {
  min-height: 0;
  padding: 44px 24px 44px 50px;
  background: none;
  overflow: visible;
}

.banner__media--photo::after {
  display: none;
}

.banner__media--photo .photo-soft {
  max-width: 380px;
}

.banner__media--photo img {
  height: auto;
}

.banner__copy {
  padding: 40px 50px;
  text-align: right;
}

.banner__copy h2 {
  margin-bottom: 10px;
}

.banner__copy p {
  font-size: 20px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   6. «Вы сможете» - сетка иконок
   -------------------------------------------------------------------------- */

.abilities {
  position: relative;
  overflow-x: clip;
  padding: 100px 0;
}

.abilities__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px 40px;
  margin-bottom: 70px;
}

.ability {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.ability p {
  font-size: 20px;
  margin: 0;
  max-width: 300px;
  color: var(--ink);
}

.abilities__cta {
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6.5. Дыхательная практика - интерактивный блок, которого нет у референса
   -------------------------------------------------------------------------- */

.breathe {
  position: relative;
  overflow-x: clip;
  padding: 100px 0;
}

.breathe__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 60px;
  align-items: center;
}

.breathe__eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.breathe__copy h2 {
  margin-bottom: 18px;
}

.breathe__copy > p {
  max-width: 560px;
  color: var(--muted);
}

.breathe__steps {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
}

.breathe__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  color: var(--ink);
}

.breathe__steps span {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px dotted rgba(62, 92, 72, 0.5);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--green-deep);
}

.breathe__note {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 460px;
}

.breathe__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.breathe__circle {
  position: relative;
  width: min(320px, 68vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 50%;
  color: var(--paper);
  text-align: center;
  background: radial-gradient(
    circle at 42% 36%,
    var(--green-deep) 0%,
    #6d8d74 46%,
    var(--green-wash) 74%,
    rgba(157, 183, 159, 0.35) 88%,
    rgba(157, 183, 159, 0) 97%
  );
  transform: scale(0.64);
  transition: transform 4s cubic-bezier(0.45, 0, 0.35, 1);
}

/* Внешнее кольцо-ориентир: показывает, до какого объёма расширяется дыхание */
.breathe__ring {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  border: 1px dotted rgba(62, 92, 72, 0.4);
  pointer-events: none;
}

.breathe__phase {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
}

.breathe__count {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  min-height: 1em;
}

.breathe__cycles {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.breathe.is-running .breathe__circle {
  box-shadow: 0 30px 70px rgba(62, 92, 72, 0.22);
}

@media (max-width: 959px) {
  .breathe__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .breathe__stage {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breathe__circle {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   7. Тарифы
   -------------------------------------------------------------------------- */

.prices {
  position: relative;
  overflow-x: clip;
  padding: 92px 0;
}

.prices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding-bottom: 34px;
}

.price-card {
  position: relative;
  border: 2px dotted rgba(62, 92, 72, 0.45);
  background: transparent;
  min-height: 189px;
  padding: 44px 28px 56px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.price-card h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
}

.price-card__duration {
  margin: 0;
  font-size: 19px;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* Плашка наезжает на нижнюю границу карточки - приём референса */
.price-card__action {
  position: absolute;
  left: 50%;
  bottom: -25px;
  transform: translateX(-50%);
  width: min(268px, calc(100% - 40px));
}

.price-card__action .btn {
  width: 100%;
}

.prices__note {
  margin-top: 44px;
  text-align: center;
  font-size: 17px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   8. Документы: плитка + лайтбокс
   -------------------------------------------------------------------------- */

.docs {
  position: relative;
  overflow-x: clip;
  padding: 92px 0;
}

.docs__frame {
  position: relative;
  border: 2px dotted rgba(62, 92, 72, 0.45);
  padding: 74px 44px 52px;
}

.docs__title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  margin: 0;
  padding: 0 28px;
  background: var(--sand-soft);
  white-space: nowrap;
}

.docs__intro {
  max-width: 640px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

.docs__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.docs__filters button {
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--green-deep);
  background: transparent;
  border: 1px dotted rgba(62, 92, 72, 0.5);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, border-style 0.2s ease,
    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.docs__filters button:hover {
  background: var(--green-pale);
  border-style: solid;
  border-color: var(--green-wash);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(62, 92, 72, 0.12);
}

.docs__filters button:active {
  transform: translateY(1px) scale(0.97);
}

.docs__filters button[aria-pressed="true"] {
  background: var(--green-deep);
  border-style: solid;
  border-color: var(--green-deep);
  color: var(--paper);
}

.docs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}

.doc-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
}

.doc-tile[hidden] {
  display: none;
}

.doc-tile__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 12px;
  background: var(--sand-soft);
  border: 1px dotted rgba(62, 92, 72, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.doc-tile:hover .doc-tile__frame,
.doc-tile:focus-visible .doc-tile__frame {
  transform: translateY(-4px);
  border-color: var(--green-deep);
  border-style: solid;
  box-shadow: var(--shadow-soft);
}

.doc-tile:active .doc-tile__frame {
  transform: translateY(-1px) scale(0.985);
}

.doc-tile__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(62, 92, 72, 0.18));
}

.doc-tile figcaption,
.doc-tile__caption {
  font-size: 16px;
  line-height: 1.4;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 56px 24px;
  background: rgba(44, 67, 53, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 170px);
  object-fit: contain;
  background: var(--sand-soft);
  padding: 10px;
  box-shadow: var(--shadow-lift);
}

.lightbox__caption {
  color: var(--sand-soft);
  font-size: 18px;
  text-align: center;
  max-width: 720px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 241, 230, 0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--sand-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(247, 241, 230, 0.16);
  border-color: var(--sand-soft);
  transform: scale(1.08);
}

.lightbox__nav:hover {
  background: rgba(247, 241, 230, 0.16);
  border-color: var(--sand-soft);
  transform: translateY(-50%) scale(1.08);
}

.lightbox__close:active {
  transform: scale(0.94);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__nav--prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   9. Отзывы
   -------------------------------------------------------------------------- */

.reviews {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
}

.reviews__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}

.reviews h2 {
  margin-bottom: 34px;
}

.reviews__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reviews__list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.5;
}

.reviews__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-wash);
}

.reviews__art {
  justify-self: end;
  width: 100%;
  max-width: 520px;
  margin-right: -60px;
}

.reviews__art svg {
  width: 100%;
  height: auto;
  stroke: var(--green-deep);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   10. Блог / «Это интересно…»
   -------------------------------------------------------------------------- */

.blog-teaser {
  position: relative;
  overflow-x: clip;
  padding: 80px 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.post-card__date {
  font-size: 16px;
  color: var(--muted);
}

.post-card h3 {
  font-size: 22px;
}

.post-card p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.blog-teaser__cta {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* --------------------------------------------------------------------------
   11. Формы
   -------------------------------------------------------------------------- */

.form-grid {
  display: grid;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green-deep);
  outline: none;
  box-shadow: 0 0 0 3px rgba(62, 92, 72, 0.15);
}

.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--muted);
}

.check-field input {
  margin-top: 4px;
  accent-color: var(--green-deep);
}

/* Поле-ловушка для автоматических отправок: для людей оно недоступно. */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-status {
  font-size: 17px;
  color: var(--green-deep);
  min-height: 1.5em;
}

.form-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. Футер
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow-x: clip;
  --wave-h: 240px;
  margin-top: 60px;
  padding: calc(var(--wave-h) + 46px) 0 40px;
  color: var(--sand-soft);
  /* жёсткий стык ровно под нижней кромкой волны */
  background:
    linear-gradient(
      180deg,
      var(--sand) 0,
      var(--sand) var(--wave-h),
      var(--green-deep) var(--wave-h),
      var(--green-ink) 100%
    );
}

/* Акварельная кромка: три волны разной плотности с размытием */
.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--wave-h);
  display: block;
  pointer-events: none;
}

.footer-wave__far {
  fill: rgba(62, 92, 72, 0.18);
  filter: blur(7px);
}

.footer-wave__mid {
  fill: rgba(62, 92, 72, 0.36);
  filter: blur(3px);
}

.footer-wave__near {
  fill: var(--green-deep);
  filter: blur(0.6px);
}

/* Светлая дымка поверх стыка - эффект размытого акварельного края */
.site-footer::after {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 230px;
  background:
    radial-gradient(
      ellipse 44% 58% at 24% 62%,
      rgba(247, 241, 230, 0.4),
      rgba(247, 241, 230, 0) 72%
    ),
    radial-gradient(
      ellipse 38% 50% at 72% 70%,
      rgba(247, 241, 230, 0.3),
      rgba(247, 241, 230, 0) 74%
    );
  filter: blur(26px);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 380px);
  gap: 46px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-brand .brand-mark::before {
  background: radial-gradient(
    circle at 40% 36%,
    rgba(247, 241, 230, 0.35) 0%,
    rgba(247, 241, 230, 0.12) 60%,
    rgba(247, 241, 230, 0) 88%
  );
  border: 1px solid rgba(247, 241, 230, 0.55);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  display: block;
}

.footer-brand__role {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(247, 241, 230, 0.4);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: rgba(247, 241, 230, 0.8);
}

.site-footer p {
  font-size: 16px;
  color: rgba(247, 241, 230, 0.72);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  text-decoration: none;
  color: var(--sand-soft);
}

.footer-contacts a:hover {
  color: var(--paper);
}

.footer-contacts .contact-ico svg {
  stroke: var(--sand-soft);
}

.footer-form .field input,
.footer-form .field textarea,
.footer-form .field select {
  background: var(--paper);
  border-color: transparent;
  color: var(--ink);
}

.footer-form .field label {
  color: rgba(247, 241, 230, 0.75);
}

.footer-form .check-field {
  color: rgba(247, 241, 230, 0.75);
}

.footer-form .form-status {
  color: var(--sand-soft);
}

.footer-form .btn--solid {
  background: transparent;
  border-color: rgba(247, 241, 230, 0.6);
  color: var(--sand-soft);
  width: 100%;
}

.footer-form .btn--solid:hover {
  background: rgba(247, 241, 230, 0.14);
  border-color: var(--sand-soft);
}

.footer-legal {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  font-size: 16px;
}

.footer-legal a {
  color: rgba(247, 241, 230, 0.75);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--paper);
}

.disclaimer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(247, 241, 230, 0.55);
  text-align: center;
}

/* --------------------------------------------------------------------------
   13. Плавающая кнопка, модалка, cookie
   -------------------------------------------------------------------------- */

.floating-cta {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-cta__label {
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 17px;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.floating-cta__btn {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--paper);
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.floating-cta__btn:hover {
  background: var(--green-ink);
  transform: translateY(-2px);
}

/* Кнопка изредка «дышит»: расходящееся кольцо раз в 7 секунд */
.floating-cta__btn::before,
.floating-cta__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--green-deep);
  opacity: 0;
  animation: cta-pulse 7s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  pointer-events: none;
}

.floating-cta__btn::after {
  animation-delay: 0.6s;
}

.floating-cta__btn:hover::before,
.floating-cta__btn:hover::after {
  animation-play-state: paused;
}

@keyframes cta-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  16% {
    transform: scale(1.75);
    opacity: 0;
  }

  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.floating-cta__btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(44, 67, 53, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  overflow-y: auto;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__dialog {
  position: relative;
  width: min(100%, 560px);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  transform: translateY(14px);
  transition: transform 0.3s var(--ease-zoom);
}

.modal.is-open .modal__dialog {
  transform: none;
}

.modal__banner {
  position: relative;
  min-height: 170px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 32px;
  background: linear-gradient(120deg, var(--green-deep), var(--green-ink));
  overflow: hidden;
}

.modal__banner .brand-mark {
  width: 96px;
  height: 96px;
}

.modal__banner .brand-mark::before {
  background: var(--paper);
  filter: none;
}

.modal__banner .brand-mark__icon {
  fill: var(--green-deep);
}

.modal__banner svg {
  flex: 1;
  max-width: 300px;
  height: auto;
  stroke: rgba(247, 241, 230, 0.85);
  stroke-width: 1.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal__body {
  padding: 34px 32px 38px;
}

.modal__body h2 {
  text-align: center;
  margin-bottom: 10px;
}

.modal__body > p {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 26px;
}

.modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--sand-soft);
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal__close:hover {
  background: rgba(247, 241, 230, 0.16);
  transform: rotate(6deg) scale(1.06);
}

.modal__close:active {
  transform: scale(0.94);
}

.modal__close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 75;
  width: min(100% - 40px, 380px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--sand-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  transform: translateY(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.cookie.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cookie button {
  flex: none;
  padding: 10px 22px;
  background: var(--green-deep);
  border: 0;
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie button:hover {
  background: var(--green-ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 67, 53, 0.25);
}

.cookie button:active {
  transform: translateY(1px) scale(0.97);
}

/* --------------------------------------------------------------------------
   14. Внутренние страницы
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow-x: clip;
  padding: 78px 0 64px;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-hero p {
  margin-top: 18px;
  font-size: 20px;
  color: var(--muted);
}

.breadcrumbs {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.step-number {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.step h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.step p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 19px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.faq details:hover,
.faq details:focus-within {
  border-color: rgba(62, 92, 72, 0.4);
  box-shadow: 0 5px 16px rgba(62, 92, 72, 0.09);
}

.faq summary:hover,
.faq details[open] summary {
  background: var(--green-pale);
  color: var(--green-deep);
}

.faq summary:active {
  background: var(--sand-deep);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--green-deep);
  border-bottom: 2px solid var(--green-deep);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq-answer {
  overflow: hidden;
  transition: height 0.3s ease;
}

.faq-answer > div {
  padding: 0 26px 24px;
  font-size: 18px;
  color: var(--muted);
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 44px 0 14px;
}

.prose h3 {
  margin: 30px 0 10px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  color: var(--muted);
}

.prose li {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
}

table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
}

table.pricing th,
table.pricing td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

table.pricing th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--green-deep);
  background: var(--sand-soft);
}

table.pricing tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. Адаптив: 1200 / 960 / 640 / 480
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
  .hero {
    min-height: 780px;
  }

  .about__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 40px;
    padding: 44px 34px;
  }

  .doc-frame {
    --frame-molding: 16px;
    --frame-hang: 50px;
  }

  /* прячем только подписи, иконки остаются */
  .header-contacts a span:not(.contact-ico) {
    display: none;
  }

  .nav {
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-form {
    grid-column: 1 / -1;
    max-width: 480px;
  }
}

@media (max-width: 959px) {
  /* Панель «Обо мне» складывается в колонку: рамке нужна ширина, а тексту — строка. */
  .about__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .doc-slider {
    max-width: 330px;
    margin: 0 auto;
  }

  .doc-frame {
    --frame-molding: 14px;
    --frame-hang: 46px;
  }

  body {
    font-size: 18px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 72px;
  }

  .nav {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .header-contacts {
    gap: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 64px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero__media {
    justify-self: center;
    align-self: center;
    max-width: 460px;
    margin-bottom: -40px;
    order: 2;
  }

  .hero__typed {
    min-height: 3.2em;
    margin-bottom: 32px;
  }

  .split {
    min-height: auto;
    padding: 64px 0;
  }

  .split__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__media {
    max-width: 480px;
    margin: 0 auto;
  }

  .abilities__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px 24px;
  }

  .prices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 16px;
    row-gap: 52px;
  }

  /* Три тарифа в две колонки: одинокую третью карточку ставим по центру. */
  .prices__grid > .price-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 16px) / 2);
  }

  .banner__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner__media {
    min-height: 240px;
  }

  .banner__media::after {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0) 55%, var(--paper) 98%);
  }

  .banner__media--photo {
    padding: 32px 28px 0;
  }

  .banner__media--photo .photo-soft {
    max-width: 320px;
  }

  .split__photo {
    max-width: 400px;
  }

  .banner__copy {
    text-align: center;
    padding: 24px 28px 36px;
  }

  .reviews__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reviews__art {
    justify-self: center;
    max-width: 320px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    --wave-h: 150px;
  }
}

@media (max-width: 639px) {
  .section,
  .abilities,
  .prices,
  .docs,
  .reviews,
  .about {
    padding: 56px 0;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__price {
    text-align: center;
  }

  .about__panel {
    padding: 34px 20px;
  }

  .doc-frame {
    --frame-molding: 11px;
    --frame-hang: 38px;
  }

  .about__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .doc-slider__nav--prev {
    left: -6px;
  }

  .doc-slider__nav--next {
    right: -6px;
  }

  .abilities__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 14px;
  }

  .ability p {
    font-size: 18px;
  }

  .blob-icon--lg {
    width: 86px;
    height: 86px;
  }

  .prices__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 52px;
  }

  .prices__grid > .price-card:last-child:nth-child(odd) {
    width: auto;
    justify-self: stretch;
  }

  .docs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .fact__frame {
    padding: 46px 18px 32px;
  }

  .docs__frame {
    padding: 56px 16px 32px;
  }

  .docs__title {
    font-size: 24px;
    padding: 0 12px;
    white-space: normal;
    width: calc(100% - 40px);
    text-align: center;
  }

  .fact__title {
    padding: 0 14px;
    font-size: 26px;
  }

  .floating-cta__label {
    display: none;
  }

  .floating-cta {
    right: 16px;
    bottom: 16px;
  }

  .site-footer {
    --wave-h: 110px;
  }

  .cookie {
    left: 16px;
    right: 16px;
    bottom: 96px;
    width: auto;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .step {
    flex-direction: column;
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   16. Уважение к prefers-reduced-motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .speaker-card,
  .speaker-card__badge,
  .speaker-card__arrow {
    transition: none;
  }

  .speaker-card:hover,
  .speaker-card:hover .speaker-card__badge {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {
  .site-header,
  .floating-cta,
  .cookie,
  .modal,
  .lightbox {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   17. Раскладки внутренних страниц
   -------------------------------------------------------------------------- */

.section.alt {
  background: var(--sand-deep);
}

.section-head.single {
  max-width: 820px;
  margin-left: 0;
  text-align: left;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: start;
}

.text-block {
  max-width: 780px;
}

.text-block > h2:first-child {
  margin-top: 0;
}

.text-block h2 {
  margin: 42px 0 12px;
}

.text-block h3 {
  margin: 28px 0 10px;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.grid .card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--muted);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-wash);
}

.direction {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 36px;
  padding: 38px 0;
  border-top: 1px dotted rgba(62, 92, 72, 0.4);
}

.direction:first-child {
  border-top: 0;
  padding-top: 0;
}

.direction h2 {
  font-size: clamp(24px, 2.4vw, 32px);
}

.direction p {
  color: var(--muted);
  margin-bottom: 22px;
}

.blog-list {
  display: grid;
}

.post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px dotted rgba(62, 92, 72, 0.4);
}

.post-row:first-child {
  padding-top: 0;
}

.post-row h2 {
  font-size: clamp(21px, 2vw, 26px);
  margin-bottom: 8px;
}

.post-row h2 a {
  text-decoration: none;
}

.post-row p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.post-meta {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.notice {
  padding: 30px;
  background: var(--sand-soft);
  border: 1px solid var(--line);
}

.notice strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--green-deep);
  margin-bottom: 10px;
}

.notice p {
  font-size: 17px;
  color: var(--muted);
}

.notice .btn {
  margin-top: 18px;
}

/* Пометка о демонстрационном контенте — снять вместе с вымышленными записями блога. */
.notice__warn {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.notice__warn strong {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  color: var(--clay);
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 48px;
  align-items: start;
}

.contact-meta {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.contact-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-meta strong {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.contact-meta span,
.contact-meta a {
  font-size: 18px;
}

.form-card {
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.form-card .btn {
  width: 100%;
  margin-top: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.check-field.full {
  grid-column: 1 / -1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

@media (max-width: 959px) {
  .two-column,
  .contact-layout,
  .direction {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .post-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .post-meta {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   14. Почему выбирают: портрет, развёрнутое УТП и пять причин
   -------------------------------------------------------------------------- */

.why {
  position: relative;
  overflow-x: clip;
  padding: 92px 0;
}

.why__panel {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.why__media,
.photo-soft {
  position: relative;
  margin: 0;
}

/* Акварельная подложка под портретом - та же логика, что у героя. */
.why__media::before,
.photo-soft::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  z-index: 0;
  border-radius: 48% 52% 44% 56% / 46% 50% 50% 54%;
  background: radial-gradient(
    circle at 52% 46%,
    rgba(157, 183, 159, 0.42),
    rgba(157, 183, 159, 0.18) 58%,
    rgba(157, 183, 159, 0) 76%
  );
  filter: blur(26px);
}

/* Без белого багета: края фотографии растушёваны и уходят в фон. */
.why__media img,
.photo-soft img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 9%, #000 91%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #000 8%, #000 92%, rgba(0, 0, 0, 0) 100%);
  mask-image:
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 9%, #000 91%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0) 0%, #000 8%, #000 92%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

/* Квадратные фото из архива от 27.09: один формат на всех трёх блоках. */
.photo-soft {
  margin: 0 auto;
}

.photo-soft img {
  aspect-ratio: 1;
  object-fit: cover;
}

.why__copy h2 {
  margin-bottom: 22px;
}

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

.why__copy p:first-of-type {
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
}

/* Значок спикера конгресса: ведёт в Telegram-канал. Пунктир и бумага - как у
   тарифов, круглый бейдж сидит в песочном кольце и чуть поворачивается при
   наведении. */
.speaker-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 18px 26px 18px 18px;
  border: 2px dotted rgba(62, 92, 72, 0.45);
  border-radius: 999px 18px 18px 999px;
  background: rgba(255, 253, 248, 0.72);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease-zoom), box-shadow 0.35s var(--ease-zoom), border-color 0.35s ease;
}

.speaker-card:hover,
.speaker-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--green-deep);
  box-shadow: var(--shadow-soft);
}

.speaker-card:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 4px;
}

.speaker-card__badge {
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  padding: 5px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(30, 50, 110, 0.18);
  transition: transform 0.5s var(--ease-zoom);
}

.speaker-card__badge img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.speaker-card:hover .speaker-card__badge {
  transform: rotate(-6deg) scale(1.04);
}

.speaker-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.speaker-card__kicker {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.speaker-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green-deep);
}

.speaker-card__cta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  font-size: 16px;
  color: var(--green-deep);
}

.speaker-card__cta svg {
  flex: 0 0 auto;
  align-self: center;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.speaker-card__arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-zoom);
}

.speaker-card:hover .speaker-card__arrow {
  transform: translateX(4px);
}

.why__reasons-title {
  margin: 72px 0 8px;
  text-align: center;
}

/* Тонкая черта под заголовком - тот же приём, что у секционных заголовков. */
.why__reasons-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--green-wash);
}

.reasons {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.reason {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Зелёная засечка в левом верхнем углу - собирает карточки в общий ритм. */
.reason::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--green-deep);
  transition: width 0.35s var(--ease-zoom);
}

.reason:hover {
  transform: translateY(-3px);
  border-color: rgba(62, 92, 72, 0.4);
  box-shadow: var(--shadow-soft);
}

.reason:hover::before {
  width: 100%;
}

/* Номер крупной цифрой-водяным знаком в правом верхнем углу. */
.reason__num {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  font-style: italic;
  color: rgba(192, 138, 99, 0.22);
  pointer-events: none;
}

.reason h4 {
  margin: 0 56px 10px 0;
  font-size: 22px;
  line-height: 1.3;
  color: var(--green-deep);
}

.reason p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   15. С чем я работаю: список направлений с раскрытием
   -------------------------------------------------------------------------- */

.directions {
  padding: 92px 0;
}

.directions__hint {
  margin-top: 10px;
  font-size: 18px;
  color: var(--muted);
}

.directions__list {
  max-width: 900px;
  margin: 0 auto;
}

.direction-item__num {
  flex: none;
  margin-right: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--clay);
}

.direction-item__title {
  flex: 1 1 auto;
}

.direction-item .faq-answer h4 {
  margin: 24px 0 10px;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.direction-item .faq-answer > div > h4:first-child {
  margin-top: 0;
}

.direction-item .faq-answer .list-dashed {
  font-size: 18px;
}

.direction-item__more {
  margin-top: 22px;
}

.direction-item__more a {
  color: var(--green-deep);
  text-decoration-color: var(--clay);
}

.directions__cta {
  margin-top: 42px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   16. Стоимость: что входит, оплата, условия
   -------------------------------------------------------------------------- */

.prices__details {
  margin-top: 42px;
  align-items: start;
}

.prices__details .card h3 {
  margin-bottom: 16px;
  font-size: 23px;
}

.prices__details .card .list-dashed {
  font-size: 18px;
}

.prices__details .card .list-dashed strong {
  color: var(--ink);
}

.card .card__note {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted);
}

.prices__cta {
  margin-top: 42px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   17. Отзывы: подложка секции и галерея скриншотов
   -------------------------------------------------------------------------- */

/* Отзывы стоят на собственном песочном слое: он прозрачен по краям, поэтому
   стыкуется с любой соседней секцией, и уплотняется к середине - белые
   карточки за счёт этого читаются как объекты, а не висят в пустоте. */
.reviews-stage {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(130% 72% at 50% -8%, rgba(157, 183, 159, 0.26), rgba(157, 183, 159, 0) 64%),
    linear-gradient(
      180deg,
      rgba(228, 215, 194, 0) 0%,
      rgba(228, 215, 194, 0.9) 18%,
      rgba(228, 215, 194, 0.9) 82%,
      rgba(228, 215, 194, 0) 100%
    );
}

.reviews-stage .wash {
  z-index: 0;
  opacity: 0.75;
}

.reviews-stage .wash--tl {
  top: 40px;
  left: -180px;
}

.reviews-stage .wash--br {
  right: -200px;
  bottom: 20px;
}

.reviews-stage .container {
  position: relative;
  z-index: 1;
}

.reviews .section-head h2 {
  margin-bottom: 14px;
}

/* Сетка на флексе, а не на grid: последний неполный ряд центрируется,
   иначе 14 отзывов оставляют дыру в правом нижнем углу. */
.reviews__gallery {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.reviews__gallery > .review-tile {
  flex: 0 1 calc((100% - 24px) / 2);
}

@media (min-width: 640px) {
  .reviews__gallery > .review-tile {
    flex-basis: calc((100% - 48px) / 3);
  }
}

@media (min-width: 1080px) {
  .reviews__gallery > .review-tile {
    flex-basis: calc((100% - 72px) / 4);
  }
}

/* Карточка отзыва: скриншот, растворяющийся книзу, подпись и намёк на клик.
   Высота выравнивается по ряду, подпись прижата к низу. */
.review-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.review-tile:hover,
.review-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(62, 92, 72, 0.4);
  box-shadow: var(--shadow-soft);
}

.review-tile__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

/* Скриншот не обрезается ножом: низ уходит в цвет карточки. */
.review-tile__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(
    to top,
    var(--paper) 12%,
    rgba(255, 253, 248, 0.82) 42%,
    rgba(255, 253, 248, 0) 100%
  );
  pointer-events: none;
}

.review-tile__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-zoom);
}

.review-tile:hover .review-tile__frame img,
.review-tile:focus-visible .review-tile__frame img {
  transform: scale(1.03);
}

.review-tile__caption {
  position: relative;
  flex: 1 1 auto;
  margin-top: -26px;
  padding: 0 22px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}

/* Кавычка-лапка перед именем - маркер прямой речи. */
.review-tile__caption strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--green-deep);
}

/* Подсказка про клик живёт в CSS, чтобы не дублировать её в разметке. */
.review-tile::after {
  content: "Читать целиком →";
  margin: 16px 22px 0;
  padding-top: 14px;
  border-top: var(--dotted);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--clay);
  transition: color 0.3s ease;
}

.review-tile:hover::after,
.review-tile:focus-visible::after {
  color: var(--green-deep);
}

/* На главной шесть отзывов: ровно 3 + 3, без «хвоста» из двух карточек.
   На странице «Все отзывы» сетка остаётся адаптивной (там плиток больше). */
/* Карточки на главной шире - кадр делаем квадратным, иначе секция вырастает вдвое. */
@media (min-width: 900px) {
  .reviews .review-tile__frame {
    aspect-ratio: 1 / 1;
  }
}

.reviews__cta {
  margin-top: 42px;
  text-align: center;
}

/* Страница «Отзывы»: шапка и подсказка над галереей. */
.page-hero--reviews {
  padding-bottom: 18px;
}

.reviews-page__hint {
  max-width: 640px;
  margin: 0 0 30px;
  padding-left: 18px;
  border-left: 2px solid var(--green-pale);
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 959px) {
  .why,
  .directions {
    padding: 66px 0;
  }

  .why__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .why__media {
    max-width: 420px;
    margin: 0 auto;
  }

  .why__copy p:first-of-type {
    font-size: 20px;
  }

  .why__reasons-title {
    margin-top: 48px;
  }

  .direction-item__num {
    margin-right: 12px;
  }
}

@media (max-width: 639px) {
  .speaker-card {
    gap: 16px;
    padding: 14px 16px 14px 12px;
    border-radius: 56px 16px 16px 56px;
  }

  .speaker-card__badge {
    width: 84px;
    height: 84px;
    padding: 4px;
  }

  .speaker-card__kicker {
    font-size: 12px;
  }

  .speaker-card__title {
    font-size: 17px;
  }

  .speaker-card__cta {
    font-size: 15px;
  }

  .reviews__gallery {
    gap: 16px;
  }

  .reviews__gallery > .review-tile {
    flex-basis: calc((100% - 16px) / 2);
  }

  .review-tile__caption {
    padding: 0 14px;
    font-size: 15px;
  }

  .review-tile::after {
    margin: 12px 14px 0;
    padding-top: 10px;
    font-size: 14px;
  }

  .reason {
    padding: 26px 22px 24px;
  }
}

/* Направления на странице услуг: подзаголовки внутри карточки направления. */
.direction > div > h3 {
  margin: 26px 0 10px;
  font-size: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.direction > div > h3:first-child {
  margin-top: 0;
}

.direction .list-dashed {
  font-size: 18px;
  margin-bottom: 4px;
}

.direction .btn {
  margin-top: 24px;
}

/* Пять причин: на широком экране 3 сверху и 2 по центру - иначе пятая
   карточка висит в углу и ряд выглядит обрубленным. */
@media (min-width: 960px) {
  .reasons {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .reason {
    grid-column: span 2;
  }

  .reason:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .reason:nth-child(5) {
    grid-column: 4 / span 2;
  }
}
