/* =========================================================
   Ксения Щипунова — лендинг
   Десктоп свёрстан по фрейму 1440, мобильная — по фрейму 375 (1200 / 3.2)
   ========================================================= */

:root {
  --gold: #dfca80;
  --gold-text: #e3ce86;
  --ink: #4c4b49;
  --cream: #faf7f3;
  --sand: #f0eae1;
  --sand-line: #e8ddb6;
  --story-card: #eadac0;
  --olive: #9c8e62;
  --dark: #292723;
  --gray: #b2b2b2;

  --f-display: "Playfair Display", Georgia, serif;
  --f-script: "Corinthia", cursive;
  --f-sans: "Montserrat", Arial, sans-serif;
  --f-body: "Open Sans", Arial, sans-serif;
  --f-serif: "Iowan Old Style", "PT Serif", Georgia, serif;
  --f-lora: "Lora", Georgia, serif;

  --container: 1240px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
/* Переход по якорям меню останавливается под закреплённой шапкой, а не под ней */
html { scroll-behavior: smooth; scroll-padding-top: 105px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, h4, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
section { position: relative; overflow: hidden; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 901px) { .m-only { display: none !important; } }
@media (max-width: 900px) { .d-only { display: none !important; } }

/* ---------- Заголовки с буквицей ---------- */
.title {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  text-align: left;
  color: var(--ink);
}
.title em { font-style: italic; }
.title--light { color: #fff; }
/* Пропорции буквиц к тексту заголовка взяты из Figma (размер буквицы / размер текста) */
.cap {
  font-family: var(--f-script);
  font-weight: 400;
  font-style: normal;
  font-size: var(--cap, 3.45em);
  line-height: .86; /* в Figma первая строка ≈ 0.86 от кегля буквицы */
  vertical-align: baseline;
}
/* Corinthia без кириллицы, поэтому буквица — латинский двойник из data-cap.
   Он выводится через ::before и не попадает в текст страницы; в DOM лежит настоящая
   кириллическая буква (.cap__real) — её читают поисковики и скринридеры. */
.cap::before {
  content: attr(data-cap);
  content: attr(data-cap) / "";
}
.cap__real {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.cap-ru {
  font-style: italic;
  font-size: var(--cap, 2.3em);
  line-height: .86;
  vertical-align: baseline;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  border: 1px solid rgba(223, 202, 128, .77);
  border-radius: 999px;
  padding: 20px 52px;
  min-height: 70px;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(140, 115, 40, .55); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn--gold { background: var(--gold); }
.btn--gold:hover { background: #e7d595; }
.btn--white { background: #fff; border-color: var(--gold); }
.btn--outline { border-color: #392c00; }
.btn--sm { min-height: 60px; padding: 14px 26px; }
.btn--lg { font-size: 25px; min-height: 96px; padding: 24px 72px; }
.btn--block { width: 100%; font-size: 27px; min-height: 72px; }

.link {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 21px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
.link:hover { color: #000; }

/* =========================================================
   Шапка
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ebe8e2;
}
.header__inner {
  display: flex;
  align-items: center;
  height: 105px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 34px 0 69px;
}
.header__logo,
.header__nav a:not(.btn) {
  font-family: var(--f-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .3em; /* трекинг 30% из макета */
  white-space: nowrap;
  color: var(--ink);
}
.header__logo { margin-right: auto; }
.header__nav { display: flex; gap: 0 clamp(14px, 3.05vw, 44px); margin: 0 clamp(18px, 2.7vw, 39px) 0 24px; }
.header__nav a:not(.btn) { position: relative; }
.header__nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: .3em; bottom: -4px; /* без хвостового трекинга */
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.header__nav a:not(.btn):hover::after { transform: scaleX(1); }
.header__nav-btn { display: none; }
.burger { display: none; }

/* =========================================================
   Главный экран
   ========================================================= */
.hero {
  background: #000;
  color: #fff;
  min-height: 725px;
  display: flex;
  align-items: center;
}
.hero__bg { position: absolute; inset: 0 0 0 12.2%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #000 0%, #000 12%, rgba(0,0,0,.55) 35%, rgba(0,0,0,0) 62%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.hero__inner { max-width: 1440px; padding-left: 94px; }

.hero__name { font-family: var(--f-display); font-weight: 400; font-size: 83px; line-height: 1; }
.hero__first { display: block; text-transform: uppercase; }
.hero__last { display: block; color: var(--gold); font-style: italic; margin: -.2em 0 0 .88em; }
.hero__role {
  margin-top: 26px;
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.35;
  color: rgba(255,255,255,.6);
}
.hero__slogan {
  margin-top: 90px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 36px;
  color: var(--gold);
}
.hero__slogan-a { text-transform: lowercase; }
.hero__desc { margin-top: 14px; max-width: 610px; font-family: var(--f-sans); font-size: 17px; line-height: 1.5; color: var(--gray); }
.hero__btn { margin-top: 30px; min-width: 394px; }

/* =========================================================
   Обо мне
   ========================================================= */
.about { background: var(--cream); padding: 50px 0 120px; }
.about::before {
  content: "";
  position: absolute;
  width: 978px; height: 1022px;
  left: -422px; top: 374px;
  border-radius: 50%;
  background: #fff;
}
.about__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 550px) minmax(0, 1fr);
  grid-template-areas:
    "photo  title"
    "photo  name"
    "photo  role"
    "photo  stats"
    "letter cards"
    "letter btn";
  grid-template-rows: auto auto auto 1fr auto auto;
  column-gap: 40px;
  max-width: 1440px;
  padding: 0 75px 0 0;
}
.about__title { grid-area: title; font-size: 65px; margin: 0 0 30px 0; --cap: 2.34em; }
.about__name { grid-area: name; font-family: var(--f-display); font-size: 86px; line-height: 1; color: var(--ink); padding-left: 30px; }
.about__first { display: block; text-transform: uppercase; }
.about__last { display: block; font-style: italic; font-size: 83px; margin: -.1em 0 0 2.8em; }
.about__photo { grid-area: photo; align-self: end; position: relative; margin-bottom: -33px; }
.about__photo img { width: 100%; }
.about__role {
  grid-area: role;
  margin: 26px 0 0 42px;
  padding-bottom: 20px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,.14);
}
.about__letter-btn { display: none; }

.about__stats { grid-area: stats; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 4px 0 30px 42px; }
.stat__value { font-family: var(--f-display); line-height: 1; }
.stat__num { font-size: 120px; font-style: italic; }
.stat__unit { font-size: 50px; font-style: italic; margin-left: .2em; vertical-align: .25em; }
.stat__text { margin-top: 10px; font-size: 23px; line-height: 1.45; }

.about__cards { grid-area: cards; display: flex; flex-direction: column; gap: 26px; }
.note {
  background: var(--sand);
  border: 1px solid var(--sand-line);
  border-radius: 13px;
  padding: 26px 40px;
  font-size: 23px;
  line-height: 1.45;
}
.note__title { font-weight: 600; font-style: italic; margin-bottom: 4px; }
.note--author { order: 1; }
.note--coach { order: 2; }
.note--empath { order: 3; }

.about__letter {
  grid-area: letter;
  align-self: start;
  margin: 0 0 0 36px;
  position: relative;
  z-index: 1;
  background: #f1ebe1;
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 40px 50px 30px 53px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
}
.about__letter p + p { margin-top: 1.3em; }
.about__letter-title { font-family: var(--f-body); font-weight: 400; font-style: italic; font-size: 27px; margin-bottom: 32px; }
.about__letter .link { margin-top: 28px; font-size: 22px; }
.about__btn { grid-area: btn; justify-self: center; margin-top: 80px; min-width: 541px; }

/* =========================================================
   Бегущая строка
   ========================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  border-bottom: 1px solid #2b2a27;
  padding: 18px 0 20px;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__track span {
  flex: none;
  padding-right: 110px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  color: #2b2a27;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Почему здесь
   ========================================================= */
.why { background: #0c0c0c; color: #fff; padding: 120px 0 170px; }
.why__img {
  position: absolute;
  top: 24px; right: -36px;
  width: 447px;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 55% 40%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 55% at 55% 40%, #000 45%, transparent 100%);
}
.why__inner { position: relative; z-index: 1; }
.why__title {
  max-width: 560px;
  margin: 0 auto;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.33;
  text-align: center;
  color: #faf7f3;
}
.why__title em { color: #fff; }
.why__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 110px;
  margin-top: 70px;
}
.why__item { border-top: 1px solid rgba(223, 202, 128, .77); padding-top: 4px; }
.why__head {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 25px;
  color: var(--gold-text);
  text-align: center;
  margin-bottom: 22px;
}
.why__num { display: none; }
.why__item p { font-family: var(--f-sans); font-weight: 500; font-size: 19px; line-height: 1.4; color: var(--gray); padding: 0 30px 0 32px; }

/* =========================================================
   Истории
   ========================================================= */
.stories { background: #faf8f6; padding: 0 0 100px; }
.stories__head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-right: 120px; }
.stories__chandelier { width: 301px; height: 301px; }
.stories__title { margin-top: 30px; }
.stories__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 365px));
  justify-content: center;
  gap: 46px;
  margin-top: 15px;
}
.story {
  display: flex;
  flex-direction: column;
  background: var(--story-card);
  border: 1px solid rgba(223, 202, 128, .64);
  border-radius: 14px;
  padding: 34px 34px 40px;
  min-height: 724px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.story:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(110, 85, 40, .45); }
.story__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-style: italic;
  font-size: 35px;
  line-height: 1.27;
  min-height: 3.3em;
}
.story__lead { margin-top: 30px; font-weight: 500; font-size: 18px; line-height: 1.5; flex: 1 0 auto; }
.story__more { align-self: flex-start; margin-top: 30px; padding-bottom: 14px; }
.story__outcome { border-top: 1px solid rgba(0,0,0,.14); padding-top: 22px; font-size: 18px; line-height: 1.45; }
.story__outcome p + p { margin-top: 1.2em; }
.story__outcome p:first-child + p { margin-top: 0; }
.dots { display: none; }

/* =========================================================
   Как работает терапия
   ========================================================= */
.therapy { background: #f2ede6; padding: 50px 0 95px; }
.therapy__inner { display: flex; flex-direction: column; align-items: center; }
.therapy__title { margin-top: 0; }
.accordion { width: 100%; max-width: 989px; margin-top: 90px; display: flex; flex-direction: column; gap: 17px; }
.acc {
  background: #fff;
  border: 1px solid rgba(223, 202, 128, .77);
  border-radius: 18px;
  transition: box-shadow .3s ease;
}
.acc.is-open { box-shadow: 0 14px 40px rgba(170, 140, 80, .22); }
.acc__head {
  position: relative;
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 18px 90px 18px 42px;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.25;
  color: rgba(76, 75, 73, .91);
}
.acc__head:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 18px; }
.acc__icon { position: absolute; right: 40px; top: 50%; width: 24px; height: 24px; margin-top: -12px; }
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 1.5px;
  background: rgba(0,0,0,.45);
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__content { overflow: hidden; }
.acc__content p { padding: 0 70px 34px 42px; margin-top: -4px; font-weight: 300; font-size: 19px; line-height: 1.5; }
.therapy__quote {
  margin: 40px 0 50px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 51px;
  line-height: 1.4;
  text-align: center;
  color: var(--olive);
}
.therapy .btn--lg { min-width: 541px; }

/* =========================================================
   На чём строится трансформация
   ========================================================= */
.transform { background: #000; color: #fff; padding: 110px 0 120px; min-height: 1132px; }
.transform__left { position: absolute; left: 0; top: 0; height: 100%; width: 28%; object-fit: cover; object-position: right center; -webkit-mask-image: linear-gradient(to right, #000 45%, transparent); mask-image: linear-gradient(to right, #000 45%, transparent); }
.transform__bg { position: absolute; top: 0; bottom: 0; right: 0; width: 53.4%; }
.transform__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; }
.transform::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0) 7%, rgba(0,0,0,.98) 30%, #000 44%, #000 50%, rgba(0,0,0,.95) 56%, rgba(0,0,0,0) 78%);
}
.transform__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.transform__title { font-size: 44px; line-height: 1.15; }
.transform__title em { color: var(--gold); }
.transform__lead { margin-top: 12px; font-weight: 300; font-size: 23px; line-height: 1.4; text-align: center; }
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 12px;
  max-width: 1010px;
  margin-top: 30px;
}
.pills li {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 20px;
  color: rgba(255,255,255,.87);
  background: rgba(223, 202, 128, .15);
  border: 1px solid rgba(223, 202, 128, .77);
  border-radius: 999px;
  padding: 17px 34px;
  transition: background-color .25s ease;
}
.pills li:hover { background: rgba(223, 202, 128, .32); }
.transform__quote {
  max-width: 792px;
  margin-top: 140px;
  font-family: var(--f-lora);
  font-style: italic;
  font-size: 36px;
  line-height: 1.4;
  text-align: center;
  color: var(--gold);
}

/* =========================================================
   Форматы
   ========================================================= */
.formats { background: #f7efda; padding: 40px 0 110px; }
.formats__title { font-size: 44px; }
.formats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 632px));
  grid-template-areas: "gold dark" "light dark";
  justify-content: center;
  gap: 40px 66px;
  margin-top: 70px;
}
.plan { border-radius: 39px; padding: 30px 52px 52px; }
.plan--gold { grid-area: gold; background: rgba(223, 202, 128, .64); border: 1px solid var(--gold-text); box-shadow: 0 20px 50px -20px rgba(150, 120, 50, .35); }
.plan--light { grid-area: light; background: rgba(255,255,255,.48); border: 1px solid #fff; padding-top: 60px; box-shadow: 0 20px 50px -20px rgba(150, 120, 50, .25); }
.plan--dark { grid-area: dark; background: var(--dark); color: #fff; border: 1px solid #000; }
.plan__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 34px;
  text-align: center;
  line-height: 1.6;
}
.plan__title { --cap: 3.26em; }
.plan--dark .plan__title { --cap: 4.09em; }
.plan__title + .plan__desc { margin-top: 26px; }
.plan__title--plain em { font-style: italic; }
.plan__desc { margin: 4px auto 0; max-width: 490px; font-family: var(--f-sans); font-size: 18px; line-height: 1.5; text-align: center; }
.plan--dark .plan__desc { font-size: 19px; }
.prices { margin: 34px 0 44px; }
.prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0 20px;
}
.plan--gold .prices li + li { border-top: 1px solid rgba(0,0,0,.59); }
.prices__name { font-family: var(--f-sans); font-weight: 600; font-size: 26px; }
.prices__name small { display: block; margin-top: 8px; font-weight: 400; font-size: 22px; }
.prices__val { flex: none; font-family: var(--f-display); font-size: 36px; }
.plan--light .prices__name, .plan--dark .prices__name { font-weight: 500; }
.plan--dark .prices__val { color: var(--gold-text); }
.plan--dark .prices { margin: 60px 0 40px; }
.plan--dark .prices__name { font-size: 24px; }
.plan--dark .btn--gold { border-color: #392c00; }
.plan--light .prices { margin: 40px 0 34px; }
.plan__sub { margin: 48px 0 18px 20px; font-family: var(--f-sans); font-weight: 600; font-size: 26px; }
.diamonds { padding-left: 20px; font-family: var(--f-sans); font-size: 19px; line-height: 1.35; }
.diamonds li { position: relative; padding-left: 1.1em; }
.diamonds li::before { content: "◆"; position: absolute; left: 0; font-size: .8em; top: .2em; }

/* =========================================================
   Отзывы
   ========================================================= */
.reviews { background: #010101; color: #fff; padding: 40px 0 190px; }
.reviews__title { line-height: 1.1; }
.reviews__title em { color: var(--gold); }
.reviews__sub { margin-top: 16px; font-family: var(--f-display); font-size: 26px; text-align: center; }
.reviews__slider { position: relative; display: flex; align-items: center; justify-content: center; gap: 56px; margin-top: 40px; }
.phone { position: relative; width: 332px; flex: none; }
.phone__frame { width: 100%; pointer-events: none; user-select: none; }
.phone__screen {
  position: absolute;
  left: 5.72%; top: 10.1%;
  width: 88.25%; height: 79.8%;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  touch-action: pan-y;
}
.phone__screen:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.phone__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.phone__slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; object-position: top; user-select: none; -webkit-user-drag: none; }
.reviews__slider .reviews__arrow { position: relative; top: auto; left: auto; right: auto; margin: 0; flex: none; }

/* =========================================================
   Связь + футер
   ========================================================= */
.cta { background: #000; color: #fff; padding-top: 610px; }
.cta__bg { position: absolute; left: 0; right: 0; top: 0; height: 84%; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.cta::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.4) 60%, #000 85%);
}
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta__title { font-family: var(--f-display); font-weight: 400; font-size: 54px; color: var(--gold); }
.cta__text { max-width: 848px; margin-top: 10px; font-family: var(--f-display); font-size: 25px; line-height: 1.3; }
.cta .btn { margin-top: 60px; min-width: 541px; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 40px; }
.contacts__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 213px; min-height: 90px; padding: 0 32px;
  border: 1px solid #f8f1d8; border-radius: 999px;
  font-family: var(--f-display); font-style: italic; font-size: 30px;
  color: #f8f1d8;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.contacts__btn:hover { background: #f8f1d8; color: var(--ink); }
.contacts__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.contacts__btn--phone.is-revealed { font-style: normal; font-size: 24px; letter-spacing: .02em; }
.footer {
  position: relative; z-index: 2;
  padding-top: 100px;
  padding-bottom: 70px;
  font-family: var(--f-display);
  font-size: 23px;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 251, 251, .64);
}
.footer p:first-child { text-transform: uppercase; margin-bottom: 1.3em; }

/* =========================================================
   Модалки
   ========================================================= */
.modal, .lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(20, 18, 14, .72);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal.is-visible, .lightbox.is-visible { opacity: 1; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f1ebe1;
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 56px 60px 50px;
  transform: translateY(20px);
  transition: transform .3s ease;
}
.modal.is-visible .modal__box { transform: none; }
.modal__close, .lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
}
.modal__close::before, .modal__close::after,
.lightbox__close::before, .lightbox__close::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal__close::after, .lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal__close:hover { background: rgba(0,0,0,.06); }
.modal__title { font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 32px; line-height: 1.25; margin-bottom: 26px; padding-right: 30px; }
.modal__body { font-size: 18px; line-height: 1.6; }
.modal__body p + p, .modal__body ul + p, .modal__body p + ul { margin-top: 1em; }
.modal__body h4 { margin: 1.6em 0 .6em; font-family: var(--f-serif); font-size: 21px; }
.modal__body ul li { position: relative; padding-left: 1.2em; }
.modal__body ul li + li { margin-top: .6em; }
.modal__body ul li::before { content: "◆"; position: absolute; left: 0; top: .35em; font-size: .6em; color: var(--olive); }
.modal__body--letter { font-family: var(--f-display); font-style: italic; font-size: 21px; line-height: 1.5; }

.lightbox { background: rgba(0,0,0,.9); }
.lightbox__img { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); max-width: min(560px, calc(100vw - 140px)); border-radius: 24px; }
.lightbox__close { color: #fff; }
.lightbox__arrow,
.reviews__arrow {
  position: absolute; top: 50%;
  width: 52px; height: 72px;
  margin-top: -36px;
  opacity: .6;
  transition: opacity .2s;
}
.lightbox__arrow:hover, .reviews__arrow:hover { opacity: 1; }
.lightbox__arrow::before, .reviews__arrow::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  border-style: solid;
  transform: translate(-50%, -50%);
}
.lightbox__arrow--prev, .reviews__arrow--prev { left: 8px; }
.lightbox__arrow--next, .reviews__arrow--next { right: 8px; }
.lightbox__arrow--prev::before, .reviews__arrow--prev::before { border-width: 16px 22px 16px 0; border-color: transparent #fff transparent transparent; }
.lightbox__arrow--next::before, .reviews__arrow--next::before { border-width: 16px 0 16px 22px; border-color: transparent transparent transparent #fff; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .8s ease, transform .35s ease, box-shadow .35s ease; }
.reveal.is-in { opacity: 1; translate: none; }

/* =========================================================
   Планшеты / небольшие ноутбуки
   ========================================================= */
@media (max-width: 1300px) {
  .header__inner { padding-left: 32px; }
  .header__logo, .header__nav a:not(.btn) { font-size: 16px; letter-spacing: .2em; }
  .hero__inner { padding-left: var(--gutter); }

  .about__grid { padding-right: 32px; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .about__name { font-size: 68px; padding-left: 0; }
  .about__last { font-size: 66px; margin-left: 2em; }
  .about__role, .about__stats { margin-left: 0; padding-left: 0; }
  .stat__num { font-size: 96px; }
  .stat__unit { font-size: 40px; }
  .stat__text, .note { font-size: 19px; }
  .about__letter { font-size: 19px; padding: 32px 34px; }
  .about__btn { min-width: 0; }

  .why__list { gap: 50px; }
  .why__img { width: 360px; }

  .stories__track { gap: 24px; }
  .story { padding: 28px 26px 32px; }
  .story__title { font-size: 30px; }

  .formats__grid { gap: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { padding: 30px 36px 40px; }
  .prices__name { font-size: 21px; }
  .prices__name small { font-size: 17px; }
  .prices__val { font-size: 30px; }
  .btn--block { font-size: 23px; }

}

@media (max-width: 1240px) {
  .header__nav { gap: 12px; margin-right: 16px; }
  .header__logo, .header__nav a:not(.btn) { font-size: 13px; letter-spacing: .14em; }
}

@media (max-width: 1100px) {
  .acc__head { font-size: 23px; }
  .therapy__quote { font-size: 40px; }
  .transform__left { display: none; }
  .transform::before { background: linear-gradient(90deg, #000 0%, #000 45%, rgba(0,0,0,.9) 55%, rgba(0,0,0,0) 80%); }
}

/* =========================================================
   Мобильная версия (макет 375px)
   ========================================================= */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 0; } /* на мобильной шапки нет, только плавающий бургер */

  .title { font-size: 26px; }
  .title { --cap: 2.54em; }
  .formats__title { --cap: 1.35em; }
  .btn { font-size: 15px; min-height: 48px; padding: 12px 28px; }
  .btn--lg { font-size: 15px; min-height: 48px; padding: 12px 16px; width: 100%; max-width: 270px; min-width: 0 !important; }
  .link { font-size: 15px; }

  /* Шапка → плавающий бургер поверх hero */
  .header { position: fixed; top: 0; left: 0; right: 0; background: none; pointer-events: none; }
  .header__inner { height: auto; padding: 14px 16px; justify-content: flex-end; }
  .header__logo, .header__btn { display: none; }
  .burger {
    pointer-events: auto;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; padding: 0 12px;
    border-radius: 50%;
    background: rgba(20, 18, 14, .55);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    position: relative; z-index: 2;
  }
  .burger span { display: block; height: 1.5px; background: #fff; transition: transform .3s ease, opacity .3s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .header__nav {
    pointer-events: auto;
    position: fixed; inset: 0;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 26px; margin: 0;
    background: rgba(235, 232, 226, .98);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .header__nav.is-open { opacity: 1; visibility: visible; }
  .header__nav a:not(.btn) { font-size: 22px; letter-spacing: .2em; }
  .header__nav-btn { display: inline-flex; margin-top: 12px; }

  /* Hero */
  .hero { min-height: 0; aspect-ratio: 1200 / 2340; max-height: 900px; align-items: stretch; }
  .hero__bg { inset: 0; }
  .hero__bg img { object-position: center top; }
  .hero::before {
    background:
      linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 28%),
      linear-gradient(to top, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 30%);
  }
  .hero__inner { display: flex; flex-direction: column; padding: 70px 20px 40px; }
  .hero__slogan { order: 1; margin: 0; text-align: center; font-size: 28px; line-height: 1.2; }
  .hero__slogan-a { display: block; text-transform: uppercase; font-style: italic; font-weight: 400; color: #fff; }
  .hero__desc { order: 2; margin: 14px auto 0; max-width: 320px; text-align: center; font-size: 10px; color: #fff8f8; }
  .hero__name { order: 3; margin-top: auto; font-size: 38px; padding-left: 4px; }
  .hero__last { font-size: 36px; margin: -.18em 0 0 2.6em; }
  .hero__role { order: 4; margin: 2px 0 0 calc(100% - 214px); max-width: 200px; font-family: var(--f-sans); font-size: 8.5px; color: #fff8f8; }
  .hero__btn { order: 5; margin: 26px auto 0; min-width: 0; width: 100%; max-width: 270px; padding: 12px 16px; }

  /* Обо мне */
  .about { background: #fff; padding: 36px 0 28px; }
  .about::before { width: 300px; height: 320px; left: -130px; top: 118px; }
  .about__grid {
    padding: 0 0 0 0;
    grid-template-columns: 52% 48%;
    grid-template-areas:
      "title  title"
      "name   name"
      ".      role"
      "photo  letter"
      "photo  stats"
      "cards  cards"
      "btn    btn";
    grid-template-rows: auto auto auto auto 1fr auto auto;
    column-gap: 0;
  }
  .about__title { font-size: 26px; margin: 0 auto 12px; --cap: 2.45em; }
  .about__name { font-size: 33px; padding: 0 20px 0 40px; }
  .about__last { font-size: 33px; margin-left: 3.5em; }
  .about__photo { grid-row: 3 / 6; margin: 0 0 0 -20px; align-self: start; padding-top: 34px; }
  .about__photo img { border-radius: 0 0 28px 0; }
  .about__role { margin: 12px 20px 0 0; padding-bottom: 8px; font-size: 9px; line-height: 1.5; }
  .about__letter { display: none; }
  .about__letter-btn {
    grid-area: letter;
    display: flex; justify-content: space-between; align-items: center;
    margin: 10px 20px 0 0;
    padding: 7px 10px 7px 18px;
    background: var(--sand);
    border: 1px solid var(--sand-line);
    border-radius: 4px;
    font-style: italic; font-weight: 500; font-size: 8.5px;
    text-align: left;
  }
  .about__letter-btn span { font-family: var(--f-display); font-size: 19px; line-height: 1; color: rgba(0,0,0,.45); }
  .about__stats { grid-template-columns: 1fr; gap: 6px; padding: 14px 20px 14px 4px; }
  .stat__num { font-size: 35px; }
  .stat__unit { font-size: 16px; }
  .stat__text { margin-top: 4px; font-size: 9.7px; }
  .about__cards { flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 8px 20px 0; }
  .note { flex: 1 1 calc(50% - 4px); padding: 10px 8px 12px 8px; border-radius: 4px; font-size: 9.7px; }
  .note__title { margin-bottom: 8px; }
  .note--coach { order: 1; }
  .note--author { order: 2; }
  .note--empath { order: 3; flex-basis: 100%; }
  .about__btn { margin-top: 30px; }

  /* Бегущая строка */
  .marquee { padding: 8px 0 9px; }
  .marquee__track { animation-duration: 25s; }
  .marquee__track span { font-size: 20px; padding-right: 50px; }

  /* Почему здесь */
  .why { background: #000; padding: 46px 0 60px; }
  .why__img { top: auto; bottom: 0; right: 0; width: 37%; opacity: .95; -webkit-mask-image: linear-gradient(to left, #000 60%, transparent), linear-gradient(to top, #000 70%, transparent); mask-image: linear-gradient(to left, #000 60%, transparent); }
  .why__title { max-width: 250px; font-size: 23px; line-height: 1.3; text-indent: 0; padding: 0; color: #fff; }
  .why__title em { color: var(--gold-text); }
  .why__list { grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
  .why__item { border: 0; padding: 0; }
  .why__head { display: flex; align-items: baseline; gap: 10px; text-align: left; font-size: 20px; margin-bottom: 8px; }
  .why__num { display: inline; width: 48px; flex: none; font-size: 39px; line-height: .9; }
  .why__item p { padding: 0 20px 0 48px; max-width: 290px; font-size: 12px; color: #fff; }

  /* Истории */
  .stories { background: linear-gradient(170deg, #fff 0%, #f1ebe3 100%); padding-bottom: 40px; }
  .stories .container { padding: 0; }
  .stories__head { flex-direction: column; gap: 0; margin: 0; }
  .stories__chandelier { width: 139px; height: 139px; }
  .stories__title { margin: 4px auto 0; font-size: 26px; line-height: 1.15; }
  .stories__track {
    display: flex;
    justify-content: flex-start; /* center от десктопной сетки уводит первую карточку за левый край прокрутки */
    gap: 12px;
    margin-top: 6px;
    padding: 0 24px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    scrollbar-width: none;
  }
  .stories__track::-webkit-scrollbar { display: none; }
  .story { flex: 0 0 100%; scroll-snap-align: center; min-height: 0; padding: 18px 18px 22px; border-radius: 4px; background: rgba(229, 206, 169, .7); }
  .story:hover { transform: none; box-shadow: none; }
  .story__title { min-height: 0; font-size: 18.5px; }
  .story__lead { margin-top: 14px; max-height: none; font-size: 12.2px; flex: 0 0 auto; }
  .story__more { margin-top: 10px; padding-bottom: 8px; }
  .story__outcome { padding-top: 8px; font-size: 12.2px; }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(76, 75, 73, .25); transition: background-color .2s, transform .2s; }
  .dots button.is-active { background: var(--ink); transform: scale(1.2); }

  /* Терапия */
  .therapy { background: linear-gradient(170deg, #fff 0%, #f0eae1 100%); padding: 22px 0 40px; }
  .therapy__title { margin: 0 auto; font-size: 26px; line-height: 1.15; }
  .accordion { margin-top: 26px; gap: 10px; }
  .acc { border-radius: 6px; }
  .acc.is-open { box-shadow: 0 8px 20px rgba(170, 140, 80, .2); }
  .acc__head { min-height: 42px; padding: 10px 44px 10px 14px; font-size: 12px; }
  .acc__icon { right: 14px; width: 14px; height: 14px; margin-top: -7px; }
  .acc__icon::before, .acc__icon::after { width: 12px; height: 1px; }
  .acc__content p { padding: 0 20px 14px 14px; margin-top: 0; font-size: 9.2px; }
  .therapy__quote { margin: 24px 0 18px; font-size: 17px; }

  /* Трансформация */
  .transform { min-height: 0; padding: 30px 0 0; }
  .transform__left { display: none; }
  .transform__bg { top: 18%; width: 100%; }
  .transform__bg img { object-position: center top; }
  .transform::before { background: linear-gradient(to bottom, #000 0%, #000 22%, rgba(0,0,0,.6) 38%, rgba(0,0,0,0) 55%); }
  .transform__title { font-size: 26px; text-align: center; }
  .transform__lead { font-weight: 600; font-size: 11.2px; margin-top: 10px; }
  .pills { gap: 10px 6px; margin-top: 16px; }
  .pills li { font-size: 9px; padding: 7px 14px; }
  .transform__quote {
    align-self: flex-end;
    max-width: 205px;
    margin: 360px 0 30px;
    font-size: 11.3px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
  }

  /* Форматы */
  .formats { background: linear-gradient(170deg, #fff 0%, #f7efda 100%); padding: 60px 0 40px; }
  .formats__title { font-size: 26px; line-height: 1.15; }
  .formats__title em { margin-left: 1.9em; }
  .formats__grid { grid-template-columns: 1fr; grid-template-areas: "gold" "light" "dark"; gap: 28px; margin-top: 30px; }
  .plan { border-radius: 21px; padding: 10px 28px 32px; }
  .plan--light { padding-top: 34px; }
  .plan__title { font-size: 19px; }
  .plan__title, .plan--dark .plan__title { --cap: 3.4em; }
  .plan__desc { font-size: 9.2px; max-width: 200px; }
  .plan--dark .plan__desc { font-size: 9.2px; text-align: center; }
  .prices { margin: 20px 0 30px; }
  .prices li { padding: 12px 0; }
  .prices__name { font-size: 12.5px; }
  .prices__name small { font-size: 11.5px; margin-top: 6px; }
  .prices__val { font-size: 19.5px; }
  .plan--dark .prices { margin: 16px 0 20px; }
  .plan--dark .prices__name { font-size: 12.5px; }
  .btn--block { font-size: 15px; min-height: 38px; }
  .plan__sub { margin: 30px 0 8px; font-size: 12.5px; }
  .diamonds { padding-left: 0; font-size: 9.2px; }

  /* Отзывы */
  .reviews { padding: 46px 0 50px; background: #000 url("../assets/img/galaxy.webp") center / cover no-repeat; }
  .reviews::before { content: ""; position: absolute; inset: 0 0 auto; height: 25%; background: linear-gradient(to bottom, #000, rgba(0,0,0,0)); }
  .reviews .container { position: relative; }
  .reviews__title { font-size: 26px; line-height: 1.15; --cap: 2.66em; }
  .reviews__title em { margin-left: 1.25em; }
  .reviews__sub { margin-top: 10px; font-size: 11.3px; }
  .reviews__slider { gap: 0; justify-content: space-between; margin: 24px -14px 0; }
  .phone { width: 212px; }
  .reviews__arrow { width: 40px; height: 56px; opacity: .46; }
  .reviews__arrow--prev::before { border-width: 14px 20px 14px 0; }
  .reviews__arrow--next::before { border-width: 14px 0 14px 20px; }

  /* CTA */
  .cta { padding-top: 120%; }
  .cta__bg { height: 100%; }
  .cta::before { background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,.35) 80%, rgba(0,0,0,.6) 100%); }
  .cta__title { font-size: 26px; }
  .cta__text { font-size: 11.3px; max-width: 270px; }
  .cta .btn { margin-top: 14px; }
  .contacts { gap: 8px; margin-top: 16px; }
  .contacts__btn { min-width: 92px; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .contacts__btn--phone.is-revealed { font-size: 13px; }
  .footer { padding-top: 40px; padding-bottom: 20px; font-size: 7.2px; }

  /* Модалки */
  .modal { padding: 12px; align-items: flex-end; }
  .modal__box { padding: 40px 22px 30px; border-radius: 14px; max-height: calc(100dvh - 24px); }
  .modal__title { font-size: 22px; }
  .modal__body { font-size: 15px; }
  .modal__body--letter { font-size: 16px; }
  .modal__body h4 { font-size: 17px; }
  .lightbox__img { max-width: calc(100vw - 100px); }
}

/* Узкие телефоны: шрифты в макете очень мелкие — поднимаем до читаемых */
@media (max-width: 900px) and (min-width: 0) {
  .hero__desc { font-size: 12px; }
  .hero__role { font-size: 10px; margin-left: 97px; max-width: 220px; }
  .about__role, .about__letter-btn { font-size: 11px; }
  .stat__text, .note { font-size: 11.5px; }
  .acc__head { font-size: 14px; }
  .acc__content p { font-size: 12.5px; }
  .pills li { font-size: 11px; }
  .transform__lead { font-size: 13px; }
  .transform__quote { font-size: 13px; }
  .plan__desc, .plan--dark .plan__desc, .diamonds { font-size: 12px; max-width: none; }
  .reviews__sub, .cta__text { font-size: 13px; }
  .footer { font-size: 10px; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .container { max-width: 600px; }
  .hero { max-height: none; aspect-ratio: auto; min-height: 100vh; }
  .stories .container { max-width: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; }
}
