/* Посадочные страницы фобий (men/<slug>/, women/<slug>/).
   Базовые токены, шапка, FAQ, подвал и модальные окна — из style.css,
   здесь только блоки, которых нет на главной. Размеры и отступы — по макету
   «Страница фобий» (ПК 1440, моб 375). */

.page-phobia {
  --green-deep: #269253;
  --green-dark: #21422e;
  --green-tint: #ecf6ef;
  --green-100: #d3f1d9;
  --marker-border: #c9cfca;
  background: var(--bg);
}

.page-phobia .header,
.page-phobia .nav {
  background: var(--bg);
}

.page-phobia main {
  overflow-x: clip;
}

.ph-h2 {
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--black);
}

.ph-h2 span {
  color: var(--green);
}

.ph-br-desktop {
  display: inline;
}

.ph-btn-outline {
  height: 56px;
  padding: 0 32px;
  background: #f6f6f7;
  color: var(--black);
  border: 1px solid var(--green-soft);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.ph-btn-outline:hover {
  background: #fff;
  border-color: var(--green);
}

/* Фото с зелёной подложкой, смещённой вправо-вниз */
.ph-photo-stack {
  position: relative;
}

.ph-photo-stack::before {
  content: "";
  position: absolute;
  inset: 30px -34px -30px 34px;
  background: var(--green-100);
  border-radius: 14px;
}

.ph-photo-stack img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- 01. Первый экран ---------- */
.ph-hero {
  position: relative;
  display: grid;
  grid-template-columns: 475px minmax(0, 1fr);
  column-gap: 93px;
  padding: 40px 50px 40px 20px;
  min-height: 724px;
}

.ph-hero__photo img {
  width: 100%;
  height: 644px;
  object-fit: cover;
  border-radius: 10px;
}

.ph-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 49px;
  /* Заголовок в макете шириной до 796 px: «Что такое повышенная
     тревожность» и «…страх выступлений» идут в две строки. */
  max-width: 800px;
}

.ph-hero__sub,
.ph-hero__lead {
  max-width: 560px;
}

.ph-hero__label {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--green);
}

.ph-hero__title {
  margin-top: 23px;
  font-family: var(--oswald);
  font-weight: 400;
  font-size: 80px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--black);
}

.ph-hero__title span {
  display: block;
  color: var(--green);
}

.ph-hero__sub {
  margin-top: 32px;
  font-family: var(--oswald);
  font-weight: 300;
  font-size: 30px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--black);
}

.ph-hero__actions {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ph-hero__actions .btn--green {
  height: 56px;
  padding: 0 24px;
}

.ph-hero__lead {
  margin-top: 104px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.ph-hero__video {
  position: absolute;
  right: 22px;
  bottom: 44px;
  width: 156px;
  height: 206px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.ph-hero__video > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  filter: brightness(0.8);
  transition: filter 0.25s ease;
}

.ph-hero__video:hover > img {
  filter: brightness(0.92);
}

.ph-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-hero__play img {
  width: 10px;
  height: 10px;
  margin-left: 2px;
}

/* ---------- 02. Обычное волнение и фобия ---------- */
.compare {
  padding: 80px 50px 50px;
}

.compare__mtitle {
  display: none;
}

.compare__stage {
  position: relative;
  width: 1340px;
  height: 680px;
  margin: 0 auto;
}

.compare__arcs {
  position: absolute;
  inset: 0;
  width: 1340px;
  height: 680px;
}

.compare__orbit {
  position: absolute;
  left: 390px;
  top: 60px;
  width: 560px;
  height: 560px;
}

.compare__ring {
  position: absolute;
}

.compare__ring--outer {
  inset: 0;
  width: 560px;
  height: 560px;
}

.compare__ring--inner {
  left: 45px;
  top: 45px;
  width: 470px;
  height: 470px;
}

.compare__art {
  position: absolute;
  left: 90px;
  top: 82px;
  width: 380px;
  height: 366px;
  object-fit: contain;
  opacity: 0.85;
}

.compare__col h3 {
  position: absolute;
  top: 39px;
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 34px;
  line-height: 34px;
  text-transform: uppercase;
  white-space: nowrap;
}

.compare__col--normal h3 {
  right: calc(1340px - 382px);
  color: var(--ink);
}

.compare__col--phobia h3 {
  left: 958px;
  color: #2b7548;
}

.compare__list {
  list-style: none;
}

.compare__item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 24px;
  width: 346px;
}

.compare__item p {
  flex: 1;
  font-size: 16px;
  line-height: 24px;
}

.compare__num {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--oswald);
  font-size: 17px;
  line-height: 1;
}

.compare__col--normal .compare__item {
  flex-direction: row-reverse;
}

.compare__col--normal .compare__item p {
  text-align: right;
  color: var(--text-mid);
}

.compare__col--normal .compare__num {
  background: #fff;
  border: 1.4px solid var(--marker-border);
  color: var(--text-mid);
}

.compare__col--phobia .compare__item p {
  color: var(--ink);
}

.compare__col--phobia .compare__num {
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(42, 178, 99, 0.12);
}

/* Точки на дугах: крайние пункты ближе к кругу, средние — дальше */
.compare__col--normal .compare__item--1 { left: 62px; top: 134px; }
.compare__col--normal .compare__item--2 { left: 15px; top: 254px; }
.compare__col--normal .compare__item--3 { left: 15px; top: 374px; }
.compare__col--normal .compare__item--4 { left: 62px; top: 494px; }
.compare__col--phobia .compare__item--1 { left: 932px; top: 134px; }
.compare__col--phobia .compare__item--2 { left: 979px; top: 254px; }
.compare__col--phobia .compare__item--3 { left: 979px; top: 374px; }
.compare__col--phobia .compare__item--4 { left: 932px; top: 494px; }

/* ---------- 03. Из чего складывается страх ---------- */
.causes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 820px;
  column-gap: 40px;
  padding: 60px 20px 58px 50px;
}

.causes__aside {
  display: flex;
  flex-direction: column;
  gap: 69px;
  padding-top: 40px;
}

.causes__photo {
  margin-left: -68px;
  width: 455px;
  height: 593px;
}

.causes__photo img {
  border-radius: 0 14px 14px 0;
}

.causes__group + .causes__group {
  margin-top: 40px;
}

.causes__group-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 6px;
  font-family: var(--oswald);
  font-weight: 400;
  font-size: 32px;
  color: var(--black);
  text-transform: uppercase;
}

.causes__group-title span {
  font-size: 40px;
  color: var(--green);
}

.causes__cells {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 400px);
  gap: 16px 20px;
}

.causes__cell {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 16px 16px 18px;
  border-left: 1px solid var(--line);
}

.causes__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.causes__cell h4 {
  font-family: var(--oswald);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--black);
}

.causes__cell p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-mid);
}

/* ---------- 04. Механизм ---------- */
.mechanism {
  padding: 60px 50px 80px;
}

.mechanism__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.mechanism__title {
  font-size: 56px;
  line-height: 1.25;
}

.mechanism__title span {
  display: block;
}

.mechanism__lead {
  width: 498px;
  margin-top: 58px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-mid);
}

.mechanism__body {
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.mechanism__scheme {
  display: none;
}

.mechanism__grid {
  position: relative;
  flex: 0 0 880px;
  display: grid;
  grid-template-columns: 440px 440px;
  grid-template-rows: 270px 270px;
  grid-template-areas:
    "trigger thought"
    "avoid body";
}

/* Крест из линий: горизонталь на всю ширину, вертикаль чуть короче */
.mechanism__grid::before,
.mechanism__grid::after {
  content: "";
  position: absolute;
  background: #d9e3db;
}

.mechanism__grid::before {
  left: 0;
  right: 0;
  top: 270px;
  height: 1px;
}

.mechanism__grid::after {
  left: 440px;
  top: 0;
  bottom: 0;
  width: 1px;
}

.mechanism__cell {
  padding-top: 85px;
}

.mechanism__cell--trigger { grid-area: trigger; }
.mechanism__cell--thought { grid-area: thought; padding-left: 56px; }
.mechanism__cell--avoid { grid-area: avoid; }
.mechanism__cell--body { grid-area: body; padding-left: 56px; }

.mechanism__cell h3 {
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 28px;
  line-height: 33.6px;
  text-transform: uppercase;
  color: var(--black);
}

.mechanism__cell h3 span {
  display: none;
}

.mechanism__cell p {
  margin-top: 11px;
  max-width: 320px;
  font-size: 16px;
  line-height: 27.2px;
  color: var(--text-mid);
}

.mechanism__hub {
  position: absolute;
  left: 384.8px;
  top: 214.8px;
  width: 110.4px;
  height: 110.4px;
  background: var(--bg);
  border-radius: 50%;
  z-index: 1;
}

.mechanism__relief {
  flex: 0 0 400px;
  margin-top: 109px;
  padding: 40px;
  border-radius: 20px;
  background: var(--green-tint);
}

.mechanism__relief h3 {
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 26px;
  line-height: 30px;
  text-transform: uppercase;
  color: var(--green-dark);
}

.mechanism__relief p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 27.2px;
  color: #383d38;
}

.mechanism__relief .mechanism__accent {
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 21px;
  line-height: 30px;
  text-transform: uppercase;
  color: #269154;
}

/* ---------- 05. Как проходит работа ---------- */
.work {
  display: flex;
  gap: 169px;
  padding: 100px 50px;
}

.work__card {
  position: relative;
  flex: 0 0 430px;
  height: 584px;
  border-radius: 24px;
  overflow: hidden;
}

.work__card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0) 35%, rgba(23, 23, 23, 0.7));
}

.work__note {
  position: absolute;
  z-index: 1;
  left: 25px;
  right: 43px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 15px;
  border-radius: 13px;
  background: rgba(158, 158, 158, 0.3);
  backdrop-filter: blur(8.6px);
  -webkit-backdrop-filter: blur(8.6px);
}

.work__note p {
  font-size: 16px;
  line-height: 1.2;
  color: #fff;
}

.work__note .btn {
  width: 100%;
  padding: 20px 9px;
}

.work__content {
  flex: 1;
  min-width: 0;
}

.work__content .ph-h2 {
  line-height: 1.08;
}

.work__lead {
  margin-top: 20px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-mid);
}

.work-steps {
  list-style: none;
  margin: 80px 0 0 31px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 310px));
  gap: 76px 59px;
}

.work-steps__head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.work-steps__num {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--oswald);
  font-size: 22px;
}

.work-steps h3 {
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--black);
}

.work-steps p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ---------- 06. Что помогает ---------- */
.help {
  padding: 79px 50px 70px;
}

.help__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.help__title {
  font-size: 65px;
}

.help__title span {
  display: block;
}

.help__lead {
  width: 473px;
  margin-top: 49px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-mid);
}

.help__cards {
  margin-top: 68px;
  height: 640px;
  display: flex;
  gap: 12px;
}

.help-card {
  position: relative;
  /* Узкие карточки в макете 203.75 px и не растут на широких экранах —
     вся лишняя ширина уходит большой карточке. */
  flex: 0 1 203.75px;
  min-width: 0;
}

.help-card:first-child {
  flex: 1 1 auto;
}

.help-card__img,
.help-card::after {
  position: absolute;
  inset: 0;
  border-radius: 28px;
}

.help-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--green-dark);
}

.help-card::after {
  content: "";
  background: linear-gradient(
    180deg,
    rgba(15, 31, 20, 0.15) 0%,
    rgba(15, 31, 20, 0) 30%,
    rgba(15, 31, 20, 0.88) 100%
  );
}

.help-card__body {
  position: absolute;
  z-index: 1;
  left: 40px;
  right: 40px;
  bottom: 38px;
  color: #fff;
}

.help-card__body h3 {
  max-width: 543px;
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.02;
  text-transform: uppercase;
}

.help-card__body p {
  margin-top: 16px;
  max-width: 453px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.help-card:not(:first-child) .help-card__body {
  display: none;
}

.help-card__vt {
  position: absolute;
  z-index: 1;
  left: 26px;
  bottom: 28px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--oswald);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.help-card:first-child .help-card__vt {
  display: none;
}

.help-card__plus {
  position: absolute;
  z-index: 2;
  left: -29px;
  top: 297px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #29b263;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-card__plus img {
  width: 18px;
  height: 18px;
}

/* ---------- 07. Результат ---------- */
.result {
  display: grid;
  grid-template-columns: 452px minmax(0, 1fr);
  column-gap: 100px;
  padding: 60px 50px 60px 0;
}

.result__photo {
  height: 801px;
}

.result__photo::before {
  inset: 27px -30px -27px 30px;
  border-radius: 0 10px 10px 0;
}

.result__photo img {
  border-radius: 0 10px 10px 0;
}

.result__label {
  font-family: var(--oswald);
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.result__title {
  margin-top: 10px;
}

.result__quote {
  margin-top: 94px;
  font-family: var(--oswald);
  font-weight: 300;
  font-size: 34px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--black);
}

.result__quote span {
  color: var(--green);
}

.result__p1,
.result__p2 {
  max-width: 455px;
  font-size: 16px;
  color: var(--ink);
}

.result__p1 {
  margin: 113px 0 0 47px;
  line-height: 24px;
}

.result__p2 {
  margin: 73px 0 0 134px;
  line-height: 1.6;
}

/* ---------- 08. FAQ ----------
   В макете страниц фобий это отдельный компонент, не FAQ главной:
   карточки 64 px со скруглением 10, вопрос 16 px обычным начертанием,
   иконки плюс/минус 18 px. */
.ph-faq {
  padding-top: 59px;
  padding-bottom: 61px;
}

.ph-faq .faq-item {
  padding: 0 22px 0 24px;
  border-radius: 10px;
}

.ph-faq .faq-item__q {
  flex-basis: 64px;
  height: 64px;
}

.ph-faq .faq-item__q span:first-child {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.ph-faq .faq-item__toggle,
.ph-faq .faq-item__q img {
  width: 18px;
  height: 18px;
}

/* Открытый вопрос: 22 сверху, 12 до ответа, 24 снизу. */
.ph-faq .faq-item__a-inner > :first-child {
  padding-top: 0;
  margin-top: -6px;
}

.ph-faq .faq-item__a p {
  max-width: none;
  padding-bottom: 24px;
  font-size: 16px;
  line-height: 24px;
}

/* ---------- 09. Запись ---------- */
.booking {
  padding: 30px 50px 60px;
}

.booking__card {
  min-height: 268px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 40px;
  border-radius: 10px;
  background: var(--bg-faq);
}

.booking__title {
  max-width: 734px;
  font-family: var(--oswald);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--black);
}

.booking__title span {
  display: block;
  color: var(--green);
}

.booking__side {
  flex: 0 0 450px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.booking__hint {
  font-size: 16px;
  line-height: 1.2;
  color: var(--text-mid);
  text-align: center;
}

.booking__messengers {
  display: flex;
  gap: 12px;
}

.booking__messenger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  font-size: 15px;
  color: var(--green-soft);
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.booking__messenger:hover {
  background: var(--green-tint);
  color: var(--green-deep);
}

.booking__messenger img {
  width: 24px;
  height: 24px;
}

.booking__cta {
  height: 56px;
  font-size: 20px;
}

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

/* Между 1100 и 1440 точечные схемы (орбита, механизм) масштабируем целиком:
   они построены абсолютным позиционированием по макету и при сжатии
   ломаются, а мобильная раскладка на таких ширинах выглядит пустой. */
/* В макете карточки «Что помогает» стоят на фиксированной высоте от верха
   блока, даже когда подводка справа в четыре строки и длиннее заголовка. */
@media (min-width: 1101px) {
  .help__head {
    height: 136px;
  }
}

@media (max-width: 1440px) and (min-width: 1101px) {
  .compare__stage {
    zoom: calc(var(--zoom, 1));
  }
}

@media (max-width: 1400px) and (min-width: 1101px) {
  .compare__stage { --zoom: 0.92; }
  .causes { grid-template-columns: minmax(0, 1fr) 740px; }
  .causes__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mechanism__grid { flex-basis: 760px; grid-template-columns: 380px 380px; }
  .mechanism__grid::after { left: 380px; }
  .mechanism__hub { left: 324.8px; }
  .mechanism__relief { flex-basis: 340px; padding: 32px; }
  .work { gap: 80px; }
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .compare__stage { --zoom: 0.8; }
  .ph-hero { grid-template-columns: 420px minmax(0, 1fr); column-gap: 60px; }
  .ph-hero__title { font-size: 68px; }
  .causes { grid-template-columns: minmax(0, 1fr) 640px; }
  .mechanism__grid { flex-basis: 640px; grid-template-columns: 320px 320px; }
  .mechanism__grid::after { left: 320px; }
  .mechanism__hub { left: 264.8px; }
  .mechanism__cell--thought,
  .mechanism__cell--body { padding-left: 40px; }
  .help__title { font-size: 56px; }
  .help-card__body h3 { font-size: 38px; }
  .result { grid-template-columns: 400px minmax(0, 1fr); column-gap: 70px; }
  .result__quote { font-size: 30px; }
  .booking__title { font-size: 30px; }
}

@media (max-width: 1100px) {
  .ph-br-desktop {
    display: none;
  }

  .ph-h2,
  .help__title,
  .mechanism__title {
    font-size: 44px;
    line-height: 1.05;
  }

  /* Первый экран: фото сверху, карточка с текстом наезжает на него */
  .ph-hero {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .ph-hero__photo img {
    height: 460px;
    border-radius: 0;
  }

  .ph-hero__content {
    position: relative;
    max-width: none;
    margin-top: -24px;
    padding: 30px 24px 40px;
    border-radius: 20px 20px 0 0;
    background: var(--bg);
  }

  .ph-hero__title {
    margin-top: 20px;
    font-size: 56px;
  }

  .ph-hero__sub {
    order: 1;
    margin-top: 14px;
    font-weight: 400;
    font-size: 22px;
  }

  .ph-hero__lead {
    order: 2;
    margin-top: 24px;
    padding-top: 0;
    max-width: 640px;
  }

  .ph-hero__actions {
    order: 3;
    margin-top: 28px;
  }

  .ph-hero__video {
    display: none;
  }

  /* Сравнение: круг сверху, два списка друг под другом */
  .compare {
    padding: 50px 24px;
  }

  .compare__mtitle {
    display: block;
    font-family: var(--oswald);
    font-weight: 500;
    font-size: 44px;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    color: var(--black);
  }

  .compare__mtitle span {
    display: block;
    color: var(--green);
  }

  .compare__stage {
    width: auto;
    height: auto;
    max-width: 640px;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .compare__arcs {
    display: none;
  }

  .compare__orbit {
    position: relative;
    left: auto;
    top: auto;
    width: 343px;
    height: 343px;
    margin: 0 auto;
  }

  .compare__ring--outer {
    width: 343px;
    height: 343px;
  }

  .compare__ring--inner {
    left: 34.3px;
    top: 34.3px;
    width: 274.4px;
    height: 274.4px;
  }

  .compare__art {
    left: 40.6px;
    top: 56px;
    width: 247px;
    height: 238px;
  }

  .compare__col h3 {
    position: static;
    font-size: 22px;
    line-height: 1.3;
    white-space: normal;
  }

  .compare__col--normal h3 {
    color: var(--black);
  }

  .compare__col--phobia {
    padding: 25px 15px;
    border-radius: 20px;
    background: var(--green-tint);
  }

  .compare__col--phobia h3 {
    color: var(--green-deep);
  }

  .compare__list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .compare__item,
  .compare__col--normal .compare__item,
  .compare__col--phobia .compare__item {
    position: static;
    width: auto;
    flex-direction: row;
    gap: 15px;
  }

  .compare__col--normal .compare__item p {
    text-align: left;
  }

  .compare__num {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .compare__col--phobia .compare__num {
    box-shadow: none;
  }

  /* Причины: фото под заголовком, ячейки в одну колонку */
  .causes {
    display: block;
    padding: 50px 24px;
  }

  .causes__aside {
    gap: 20px;
    padding-top: 0;
  }

  .causes__photo {
    margin-left: 0;
    width: calc(100% - 20px);
    max-width: 560px;
    height: auto;
    aspect-ratio: 323 / 220;
  }

  .causes__photo::before {
    inset: 12px -14px -12px 14px;
  }

  .causes__photo img,
  .result__photo img {
    position: absolute;
    inset: 0;
    border-radius: 14px;
  }

  .causes__grid {
    margin-top: 50px;
  }

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

  /* Механизм: кольцо со схемой, расшифровка списком */
  .mechanism {
    padding: 50px 24px;
  }

  .mechanism__head {
    display: block;
  }

  .mechanism__title span {
    display: block;
  }

  .mechanism__lead {
    width: auto;
    max-width: 640px;
    margin-top: 20px;
    color: var(--ink);
  }

  .mechanism__body {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .mechanism__scheme {
    position: relative;
    display: block;
    width: 345px;
    height: 330px;
    margin: 0 auto;
    font-family: var(--oswald);
    text-transform: uppercase;
  }

  .mechanism__ring {
    position: absolute;
    left: 1px;
    top: 0;
    width: 343px;
    height: 330px;
  }

  .mechanism__core {
    position: absolute;
    left: 117.5px;
    top: 110px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #eaf4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.15;
    color: var(--green-deep);
  }

  .mechanism__pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mechanism__pin b {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green-deep);
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mechanism__pin em {
    font-style: normal;
    font-size: 15px;
    line-height: 1.15;
    color: var(--black);
    max-width: 80px;
  }

  .mechanism__pin--1,
  .mechanism__pin--4 {
    flex-direction: row-reverse;
    right: calc(345px - 115.25px);
  }

  .mechanism__pin--1 em,
  .mechanism__pin--4 em {
    text-align: right;
  }

  .mechanism__pin--2,
  .mechanism__pin--3 {
    left: 229.75px;
  }

  .mechanism__pin--1,
  .mechanism__pin--2 {
    top: 73.75px;
  }

  .mechanism__pin--3,
  .mechanism__pin--4 {
    top: 222.25px;
  }

  .mechanism__grid {
    display: flex;
    flex-direction: column;
    flex-basis: auto;
  }

  .mechanism__grid::before,
  .mechanism__grid::after,
  .mechanism__hub {
    display: none;
  }

  .mechanism__cell,
  .mechanism__cell--thought,
  .mechanism__cell--body {
    padding: 15px 0;
    border-top: 1px solid var(--line);
  }

  /* В списке — порядок круга: триггер, мысль, тело, избегание */
  .mechanism__cell--body { order: 3; }
  .mechanism__cell--avoid { order: 4; }

  .mechanism__cell h3 {
    display: flex;
    align-items: baseline;
    gap: 15px;
    font-size: 18px;
    line-height: 1.25;
  }

  .mechanism__cell h3 span {
    display: inline;
    font-weight: 400;
    font-size: 16px;
    color: var(--green);
  }

  .mechanism__cell p {
    margin: 5px 0 0 33px;
    max-width: none;
    font-size: 14px;
    line-height: 20px;
  }

  .mechanism__relief {
    flex: none;
    margin-top: 0;
    padding: 25px;
  }

  .mechanism__relief h3 {
    font-size: 24px;
    line-height: 1.15;
  }

  .mechanism__relief p {
    margin-top: 10px;
    line-height: 24px;
  }

  .mechanism__relief .mechanism__accent {
    display: none;
  }

  /* Работа */
  .work {
    flex-direction: column-reverse;
    gap: 40px;
    padding: 50px 24px;
  }

  .work__card {
    flex: none;
    width: 100%;
    max-width: 430px;
    height: auto;
    aspect-ratio: 430 / 584;
  }

  .work__card > img {
    position: absolute;
    inset: 0;
  }

  .work-steps {
    margin: 40px 0 0;
    gap: 40px 30px;
  }

  /* Что помогает: большая карточка и три полосы под ней */
  .help {
    padding: 40px 24px;
  }

  .help__head {
    display: block;
  }

  .help__lead {
    width: auto;
    max-width: 640px;
    margin-top: 15px;
    font-size: 16px;
    line-height: 24px;
  }

  .help__cards {
    margin-top: 25px;
    height: auto;
    flex-direction: column;
    gap: 5px;
  }

  .help-card,
  .help-card:first-child {
    flex: none;
    height: 100px;
  }

  .help-card:first-child {
    height: 360px;
  }

  .help-card__img,
  .help-card::after {
    border-radius: 16px;
  }

  .help-card:first-child .help-card__img,
  .help-card:first-child::after {
    border-radius: 20px;
  }

  .help-card:not(:first-child)::after {
    background: rgba(13, 20, 15, 0.45);
  }

  .help-card:first-child::after {
    background: linear-gradient(180deg, rgba(13, 20, 15, 0), rgba(13, 20, 15, 0.85));
  }

  .help-card__body,
  .help-card:not(:first-child) .help-card__body {
    display: block;
    left: 20px;
    right: 16px;
    bottom: auto;
    top: 25.8px;
  }

  .help-card:first-child .help-card__body {
    top: auto;
    bottom: 25px;
  }

  .help-card__body h3 {
    font-size: 26px;
    line-height: 1.05;
  }

  .help-card:not(:first-child) .help-card__body h3 {
    font-size: 20px;
    line-height: 1.1;
  }

  .help-card__body p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
  }

  .help-card__vt {
    display: none;
  }

  .help-card__plus {
    left: 50%;
    top: -18.5px;
    width: 32px;
    height: 32px;
    margin-left: -16px;
  }

  .help-card__plus img {
    width: 12.5px;
    height: 12.5px;
  }

  /* Результат */
  .result {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
    padding: 50px 24px;
  }

  .result__photo {
    width: calc(100% - 20px);
    max-width: 496px;
    height: auto;
    aspect-ratio: 496 / 600;
  }

  .result__photo::before {
    inset: 14px -14px -14px 14px;
    border-radius: 10px;
  }

  .result__photo img {
    border-radius: 10px;
  }

  .result__quote {
    margin-top: 30px;
    font-size: 26px;
  }

  .result__quote br {
    display: none;
  }

  .result__p1,
  .result__p2 {
    margin: 24px 0 0;
  }

  /* Запись */
  .booking {
    padding: 20px 24px 50px;
  }

  .booking__card {
    flex-direction: column;
    align-items: stretch;
    padding: 30px 20px;
  }

  .booking__title {
    font-size: 30px;
  }

  .booking__side {
    flex: none;
  }
}

@media (max-width: 640px) {
  .ph-h2,
  .help__title,
  .mechanism__title,
  .compare__mtitle {
    font-size: 36px;
  }

  .ph-hero__photo img {
    height: 400px;
  }

  .ph-hero__content {
    padding: 25px 15px 40px;
  }

  .ph-hero__title {
    font-size: 48px;
  }

  .ph-hero__sub {
    font-size: 20px;
  }

  .ph-hero__actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .ph-hero__actions .btn {
    width: 100%;
  }

  .compare,
  .causes,
  .mechanism,
  .work,
  .help,
  .result {
    padding-left: 15px;
    padding-right: 15px;
  }

  .causes__group-title {
    font-size: 22px;
  }

  .causes__group-title span {
    font-size: 32px;
  }

  .causes__cells {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .causes__cell {
    min-height: 0;
    gap: 40px;
  }

  .causes__cell h4 {
    font-size: 18px;
  }

  .causes__cell p {
    font-size: 14px;
    line-height: 20px;
  }

  .work__content .ph-h2 span {
    display: inline;
  }

  .work__lead {
    font-size: 16px;
  }

  .work-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .work-steps p {
    margin-top: 12px;
  }

  .work__note {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  .result__quote {
    font-size: 22px;
  }

  .booking {
    padding-left: 15px;
    padding-right: 15px;
  }

  .booking__title {
    font-size: 26px;
  }

  .booking__messengers {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 374px) {
  .mechanism__scheme {
    transform: scale(0.86);
    transform-origin: top left;
    margin-bottom: -46px;
  }
}

.causes__title span {
  display: block;
}

/* ================= Шрифты по макету =================
   В макете мужских страниц часть текстов набрана Manrope и Inter, женские
   версии и мобильный макет — целиком Tilda Sans и Oswald. Класс на <body>
   ставит генератор по полю fontProfile в JSON:
   ph-fonts-a — мужская «Аэрофобия»: пункты сравнения и тексты «Что помогает»;
   ph-fonts-b — остальные мужские страницы: ещё первый экран, механизм,
   этапы работы и результат. Кегли из макета — только на десктопе, на
   мобильных остаются размеры мобильного макета. */
.ph-fonts-a .compare__item p,
.ph-fonts-b .compare__item p {
  font-family: "Manrope", var(--tilda);
  font-weight: 400;
  line-height: 24px;
}

.ph-fonts-a .help__lead,
.ph-fonts-a .help-card__body p,
.ph-fonts-b .help__lead,
.ph-fonts-b .help-card__body p {
  font-family: "Inter", var(--tilda);
  font-weight: 400;
}

.ph-fonts-b .ph-hero__label,
.ph-fonts-b .ph-hero__actions .btn,
.ph-fonts-b .work__note .btn {
  font-family: "Manrope", var(--tilda);
  font-weight: 500;
}

.ph-fonts-b .ph-hero__lead,
.ph-fonts-b .work__note p,
.ph-fonts-b .work-steps p,
.ph-fonts-b .result__p1,
.ph-fonts-b .result__p2 {
  font-family: "Manrope", var(--tilda);
  font-weight: 400;
}

.ph-fonts-b .mechanism__lead,
.ph-fonts-b .work__lead {
  font-family: "Manrope", var(--tilda);
  font-weight: 500;
}

.ph-fonts-b .mechanism__cell p,
.ph-fonts-b .mechanism__relief p:not(.mechanism__accent) {
  font-family: "Inter", var(--tilda);
  font-weight: 400;
}

@media (min-width: 1101px) {
  .ph-fonts-b .mechanism__lead {
    font-size: 20px;
    line-height: 1.3;
  }

  .ph-fonts-b .mechanism__cell p,
  .ph-fonts-b .mechanism__relief p:not(.mechanism__accent) {
    font-size: 17px;
    line-height: 27.2px;
  }

  .ph-fonts-b .result__p1 {
    line-height: 1.6;
  }
}

/* ================= Телефон: блоки по мобильному макету =================
   «Аэрофобия (Моб)», 375. Там, где у блока своя разметка (результат,
   строка «кто» в записи), генератор выводит её рядом с десктопной. */
@media (max-width: 640px) {
  /* 05. Как проходит работа: плитки 44 px, соединённые линией-маршрутом */
  .work {
    gap: 25px;
    padding: 40px 15px;
  }

  .work__lead {
    margin-top: 25px;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
  }

  .work-steps {
    position: relative;
    margin-top: 25px;
    gap: 25px;
  }

  .work-steps::before {
    content: "";
    position: absolute;
    left: 21.25px;
    top: 22px;
    bottom: 22px;
    width: 1.5px;
    background: var(--marker-border);
  }

  .work-steps__item {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 15px;
  }

  .work-steps__head {
    display: contents;
  }

  .work-steps__num {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
    font-size: 18px;
  }

  .work-steps h3 {
    padding-top: 10px;
    font-size: 20px;
  }

  .work-steps p {
    grid-column: 2;
    margin-top: 5px;
    font-size: 16px;
    line-height: 24px;
  }

  .work__card {
    max-width: none;
    height: 460px;
    aspect-ratio: auto;
    border-radius: 16px;
  }

  .work__card::after {
    background: linear-gradient(180deg, rgba(13, 20, 15, 0), rgba(13, 20, 15, 0.85));
  }

  .work__note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    gap: 15px;
    padding: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .work__note p {
    font-size: 14px;
    line-height: 20px;
  }

  .work__note .btn {
    height: 56px;
    padding: 0 24px;
  }

  /* 07. Результат: на телефоне вместо десктопного блока — свой */
  .result {
    display: none;
  }

  .result-m {
    display: block;
  }

  .result-m__head {
    padding: 40px 15px 25px;
  }

  .result-m__label {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--green);
  }

  .result-m__head .ph-h2 {
    margin-top: 10px;
    font-size: 36px;
  }

  .result-m__head .ph-h2 span {
    display: block;
  }

  .result-m__photo {
    position: relative;
    height: 560px;
    overflow: hidden;
  }

  .result-m__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .result-m__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 23, 23, 0) 30%, rgba(23, 23, 23, 0.78));
  }

  .result-m__quote {
    position: absolute;
    z-index: 1;
    left: 16px;
    right: 16px;
    bottom: 32px;
    font-weight: 500;
    font-size: 26px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
  }

  .result-m__quote span {
    color: #78da95;
  }

  .result-m__text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 35px 15px 40px;
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
  }

  .result-m__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 25px 20px;
    border-radius: 20px;
    background: var(--green-tint);
  }

  .result-m__mark {
    font-family: var(--oswald);
    font-weight: 300;
    font-size: 44px;
    line-height: 30px;
    color: var(--green);
  }

  .result-m__lead {
    font-weight: 500;
    color: var(--black);
  }

  /* 08. FAQ */
  .ph-faq {
    gap: 36px;
    padding: 40px 15px;
  }

  .ph-faq h2 {
    font-size: 32px;
  }

  .ph-faq .faq-item {
    padding: 20px;
    border-radius: 15px;
  }

  .ph-faq .faq-item__q {
    flex-basis: auto;
    height: auto;
    min-height: 24px;
    gap: 10px;
  }

  .ph-faq .faq-item__toggle,
  .ph-faq .faq-item__q img {
    width: 24px;
    height: 24px;
  }

  .ph-faq .faq-item__a-inner > :first-child {
    margin-top: 0;
    padding-top: 10px;
  }

  .ph-faq .faq-item__a p {
    padding-bottom: 0;
    font-size: 14px;
    line-height: 20px;
  }

  /* 09. Запись: строка «кто», заголовок 24 px, кнопки столбиком */
  .booking {
    padding: 40px 15px;
  }

  .booking__card {
    min-height: 0;
    gap: 20px;
    padding: 30px 20px;
    border-radius: 16px;
  }

  .booking__who {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--marker-border);
  }

  .booking__avatar {
    position: relative;
    flex: 0 0 64px;
    height: 64px;
  }

  .booking__avatar img:first-child {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
  }

  .booking__online {
    position: absolute;
    left: 45.5px;
    top: 45.5px;
    width: 19px;
    height: 19px;
  }

  .booking__who-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .booking__who-name {
    font-family: var(--oswald);
    font-size: 18px;
    text-transform: uppercase;
    color: var(--black);
  }

  .booking__who-role {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-mid);
  }

  .booking__title {
    font-size: 24px;
  }

  .booking__title span {
    display: inline;
  }

  .booking__side {
    gap: 10px;
    margin-top: 5px;
  }

  .booking__hint {
    font-size: 14px;
    line-height: 20px;
  }

  .booking__messenger {
    height: 56px;
    padding: 15px;
  }

  .booking__cta {
    font-size: 16px;
  }
}
