@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/roboto-regular.ttf") format("truetype");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/roboto-medium.ttf") format("truetype");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/roboto-semibold.ttf") format("truetype");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/roboto-bold.ttf") format("truetype");
}

.page-doula {
  --doula-ink: #222427;
  --doula-dark: #343a40;
  --doula-accent: #009c9a;
  --doula-surface: #f5f5f5;
  margin: 0;
  background: #fff;
  color: var(--doula-ink);
  font: 400 16px/1.3 Roboto, Arial, sans-serif;
}

.page-doula *,
.page-doula *::before,
.page-doula *::after { box-sizing: border-box; }
.doula-page button,
.application-dialog button,
.application-dialog input { font: inherit; }
.doula-page a { color: inherit; text-decoration: none; }
.doula-page img,
.application-dialog img { display: block; }
.doula-page button { cursor: pointer; }
.doula-page a:focus-visible,
.doula-page button:focus-visible,
.application-dialog a:focus-visible,
.application-dialog button:focus-visible {
  outline: 2px solid var(--doula-accent);
  outline-offset: 4px;
}

.site-header {
  position: relative;
  z-index: 30;
  background: #fff;
  box-shadow: 0 8px 12px rgb(0 0 0 / 8%);
  transition: transform 550ms cubic-bezier(.22, 1, .36, 1), opacity 550ms ease;
}
.doula-page.has-scroll-header { padding-top: var(--site-header-height, 83px); }
.site-header.is-scroll-ready { position: fixed; top: 0; right: 0; left: 0; }
.site-header.is-scroll-hidden { opacity: 0; pointer-events: none; transform: translateY(-100%); }
.site-header.is-interacting { opacity: 1; pointer-events: auto; transform: none; transition: none; }
.doula-page.has-scroll-header section[id] { scroll-margin-top: calc(var(--site-header-height, 83px) + 24px); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(1200px, calc(100% - 48px));
  min-height: 76px;
  margin-inline: auto;
  padding-block: 15px;
}

.site-header__logo,
.site-header__logo picture { display: block; flex: none; }
.site-header__logo img { width: 134px; height: 52.6535px; }
.header-menu,
.header-menu__links,
.header-menu__actions { display: flex; align-items: center; gap: 28px; }
.header-menu { background: #fff; }
.header-menu a { white-space: nowrap; transition: color 200ms ease; }
.header-menu a:hover { color: var(--doula-accent); }
.header-menu .header-menu__phone {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: var(--doula-dark);
  color: #fff;
  cursor: pointer;
  transition: background-color 200ms ease, opacity 200ms ease;
}
.button:hover { background: #22272b; }
.header-menu__request { min-width: 182px; height: 45px; padding: 12px 28px; white-space: nowrap; }
.menu-button,
.menu-backdrop { display: none; }

/* Первый экран. Текст находится в потоке; абсолютные позиции — у иллюстрации и рейтинга. */
.course-hero {
  width: min(1200px, calc(100% - 48px));
  margin: 30px auto 0;
  scroll-margin-top: 24px;
}
.course-hero__card {
  position: relative;
  isolation: isolate;
  min-height: 653px;
  padding: 47.3465px 32px 38.6535px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--doula-surface);
  color: #111;
}
.course-hero__badges {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  max-width: calc(100% - 260px);
}
.promotion-badge {
  flex: none;
  width: 180px;
  max-width: 100%;
  margin: 0;
  line-height: 0;
}
.promotion-badge img { display: block; width: 100%; height: auto; }
.course-hero__start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25em;
  width: fit-content;
  min-height: 37px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 100px;
  background: #e1eeec;
  color: var(--doula-accent);
  font-size: 16px;
  line-height: 21px;
}
.course-hero__intro { position: relative; z-index: 1; max-width: 617px; margin-top: 20px; }
.course-hero h1 { margin: 0; font-size: 46px; font-weight: 700; line-height: 60px; text-align: left; }
.course-hero__description { margin: 13px 0 0; font-size: 20px; line-height: 26px; }
.course-hero__benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 486px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: #636b75;
  font-size: 15px;
  line-height: 19px;
}
.course-hero__benefits li { display: flex; align-items: flex-start; gap: 8px; min-height: 22px; }
.course-hero__benefits img,
.course-hero__refund img { flex: none; }
.course-hero__benefits p { flex: 1; min-width: 0; margin: 0; }
.course-hero__benefits li:first-child p { max-width: 427px; }
.course-hero__actions { position: relative; z-index: 1; display: flex; gap: 20px; max-width: 500px; margin-top: 67px; }
.doula-page .course-hero__button {
  flex: 0 1 230px;
  min-width: 0;
  min-height: 56px;
  padding: 10px 22px;
  border: 1px solid var(--doula-accent);
  border-radius: 10px;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  transition: box-shadow 200ms ease;
}
.doula-page .course-hero__button--primary { flex-basis: 250px; background: var(--doula-accent); color: #fff; }
.doula-page .course-hero__button--outline { background: transparent; color: var(--doula-accent); }
.doula-page .course-hero__button:hover { box-shadow: inset 0 0 0 100vmax rgb(17 17 17 / 10%); }
.course-hero__refund {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 486px;
  min-height: 22px;
  margin: 16px 0 0;
  color: #636b75;
  font-size: 14px;
  line-height: 18px;
}
.course-hero__art { position: absolute; left: 591.5352px; bottom: 0; width: 592.234px; height: 508.775px; pointer-events: none; }
.course-hero__shape { position: absolute; display: none; place-items: center; }
.course-hero__shape--desktop { display: grid; top: 33.6877px; left: 0; width: 592.234px; height: 545.445px; }
.course-hero__shape img { flex: none; max-width: none; transform: rotate(85.53deg) scaleY(-1); }
.course-hero__portrait { position: absolute; bottom: 0; left: 52.4204px; width: 463.213px; height: 508.775px; object-position: bottom; }
.hero-rating {
  position: absolute;
  z-index: 2;
  top: 44.3465px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  background: #fff;
  white-space: nowrap;
}
.hero-rating__score-group,
.hero-rating__score { display: flex; align-items: center; }
.hero-rating__score-group { gap: 6px; }
.hero-rating__score { gap: 8px; }
.hero-rating__score strong { font-size: 18px; font-weight: 700; line-height: 1.3; }
.hero-rating__yandex--mobile { display: none !important; }
.hero-rating__star { position: relative; display: block; width: 15px; height: 16px; overflow: hidden; }
.hero-rating__star img { position: absolute; top: -.0272px; left: -.12px; }
.hero-rating__reviews { color: #626262; font-size: 14px; line-height: 1.3; }

/* Кто такая доула */
.doula-role,
.audience-section,
.stories-section,
.learning-section,
.graduate-profile,
.income-calculator,
.course-program,
.learning-process {
  width: min(1200px, calc(100% - 48px));
  margin: 120px auto 0;
  color: #111;
  scroll-margin-top: 24px;
}
.doula-role__heading,
.audience-section__heading,
.stories-section__heading { max-width: 801px; margin-inline: auto; text-align: center; }
.doula-role__heading h2,
.audience-section__heading h2,
.stories-section__heading h2 { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.3; }
.doula-role__heading p,
.audience-section__heading p,
.stories-section__heading p { max-width: 580px; margin: 20px auto 0; color: #636b75; font-size: 20px; line-height: 1.3; text-wrap: pretty; }
.doula-role__card {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 60px;
  padding: 26px 22px;
  border-radius: 16px;
  background: var(--doula-surface);
}
.doula-role__layout {
  display: grid;
  grid-template-columns: minmax(0, 493fr) minmax(0, 633fr);
  column-gap: 30px;
  row-gap: 25px;
  align-items: start;
}
.doula-role__image {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 100%;
  height: auto;
  aspect-ratio: 493 / 328;
  border-radius: 16px;
  object-fit: cover;
}
.doula-role__point {
  display: flex;
  grid-column: 2;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}
.doula-role__point img,
.doula-role__boundary-heading img { flex: none; }
.doula-role__point p { flex: 1; min-width: 0; margin: 0; font-size: 18px; line-height: 23px; text-wrap: pretty; }
.doula-role__boundary {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 26px 22px;
  border-radius: 16px;
  background: #fdebef;
  color: #ed6583;
}
.doula-role__boundary-heading { display: flex; align-items: flex-start; gap: 7px; }
.doula-role__boundary .content-title { min-width: 0; margin: 0; font-size: 20px; font-weight: 600; line-height: 26px; }
.doula-role__boundary > p { margin: 0; font-size: 18px; line-height: 23px; }

/* Для кого этот курс */
.audience-section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}
.audience-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 26px 22px;
  border-radius: 16px;
  background: var(--doula-surface);
}
.audience-card__image {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 343 / 220;
  border-radius: 16px;
  object-fit: cover;
}
.audience-card__content { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.audience-card .content-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 26px; }
.audience-card p { margin: 0; color: #636b75; font-size: 16px; line-height: 21px; }

/* Карусель историй. Без JavaScript остаётся обычная прокручиваемая лента. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.stories-section { --story-card-width: 456px; --story-card-height: 420px; --story-card-top: 20px; }
.stories-section__heading { max-width: 1070px; }
.stories-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding: 20px 17px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-y pinch-zoom;
  overflow-anchor: none;
}
.stories-section.is-ready .stories-stage { display: block; height: 536px; padding: 0; overflow: hidden; cursor: grab; user-select: none; }
.stories-section.is-ready .stories-stage::after { content: ""; position: absolute; z-index: 20; inset: 0; background: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 0%) 52.885%, #fff 100%); pointer-events: none; }
.stories-stage.is-dragging { cursor: grabbing; }
.story-card {
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  width: var(--story-card-width);
  min-height: var(--story-card-height);
  padding: 26px 22px;
  border-radius: 16px;
  box-shadow: -2px 2px 10px rgb(39 40 41 / 20%);
  color: #111;
}
.stories-section.is-ready .story-card {
  position: absolute;
  top: var(--story-card-top);
  left: 50%;
  min-height: 0;
  height: var(--story-card-height);
  transform: translate3d(calc(-50% + var(--story-x, 0px)), var(--story-y, 0px), 0) rotate(var(--story-angle, 0deg)) scale(var(--story-scale, 1));
  opacity: var(--story-opacity, 1);
  filter: blur(var(--story-blur, 0px));
  transition: transform 500ms cubic-bezier(.22, .61, .36, 1), opacity 500ms ease, filter 500ms ease;
  will-change: transform;
}
.story-card--office { background: #f0f3c4; }
.story-card--psychology { background: #ddf3ef; }
.story-card--yoga { background: #f6ddf8; }
.story-card--return { background: #f8f8d7; }
.story-card--mother { background: #fce1d6; }
.story-card--midwife { background: #d2dfff; }
.story-card__copy { display: flex; flex: none; flex-direction: column; gap: 13px; min-width: 0; }
.story-card__topic { margin: 0; color: rgb(17 17 17 / 40%); font-size: 12px; font-weight: 400; line-height: 16px; }
.story-card__text { margin: 0; font-size: 16px; line-height: 21px; }
.story-card__footer { display: flex; flex: none; flex-direction: column; gap: 16px; min-width: 0; }
.story-card__divider { height: 1px; max-width: 100%; overflow: hidden; }
.story-card__divider-full { display: block; }
.story-card__divider-side { display: none !important; }
.story-card:not(.is-active) .story-card__divider-full { display: none; }
.story-card:not(.is-active) .story-card__divider-side { display: block !important; }
.story-card__author { display: flex; align-items: center; gap: 11px; min-width: 0; }
.story-card__avatar { position: relative; flex: none; width: 63px; height: 63px; overflow: hidden; border-radius: 50%; background: #c4c4c4; }
.story-card__avatar img { position: absolute; top: 0; left: 0; display: block; width: 100%; max-width: none; height: 100%; object-fit: cover; pointer-events: none; }
.story-card--office .story-card__avatar img { left: -49.35%; width: 149.93%; }
.story-card--psychology .story-card__avatar img { top: -10.33%; height: 149.93%; }
.story-card--return .story-card__avatar img { top: -2.63%; left: -10.71%; width: 115.42%; height: 173.04%; }
.story-card--mother .story-card__avatar img { left: -23.74%; width: 175.13%; }
.story-card--midwife .story-card__avatar img { top: -0.32%; height: 133.16%; }
.story-card:not(.is-active) .story-card__avatar { width: 52px; height: 52px; }
.story-card__person { display: flex; flex-direction: column; min-width: 0; }
.story-card__person strong { font-size: 14px; font-weight: 600; line-height: 18px; }
.story-card__person > span { color: rgb(17 17 17 / 40%); font-size: 12px; line-height: 16px; }
.stories-section__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.stories-section__pagination { display: flex; align-items: center; gap: 19px; }
.stories-section__counter { margin: 0; font-size: 20px; line-height: 26px; white-space: nowrap; }
.stories-section__dots { display: flex; align-items: center; gap: 8px; }
.stories-section__dots button { display: grid; align-items: center; width: 8px; height: 44px; padding: 0; border: 0; background: none; transition: width 200ms ease; }
.stories-section__dots button::before { content: ""; display: block; width: 100%; height: 8px; border-radius: 8px; background: #d9d9d9; }
.stories-section__dots button[aria-current="true"] { width: 16px; }
.stories-section__dots button[aria-current="true"]::before { background: #111; }
.stories-section__arrows { display: flex; gap: 14px; }
.stories-section__arrow { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: #111; }
.stories-section__arrow--previous img { transform: scaleX(-1); }
.stories-section__arrow:hover { opacity: .85; }
.stories-stage.is-dragging .story-card,
.story-card.is-recycling,
.stories-section.is-measuring .story-card { transition: none !important; }
.stories-section.is-measuring .story-card { height: auto !important; min-height: 0; transform: none !important; }
.stories-section.is-measuring .story-card__avatar { width: 63px; height: 63px; }
@media (max-width: 719px) {
  .stories-section.is-ready .story-card { transition-duration: 300ms; }
}

/* Чему вы научитесь на курсе */
.learning-section > h2 { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.3; text-align: center; }
.learning-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-template-areas: "physiology hospital" "support practice" "techniques practice" "preparation practice";
  gap: 20px;
  margin-top: 52px;
}
.learning-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 26px 22px; border-radius: 16px; background: var(--doula-surface); }
.learning-card .content-title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.learning-card p { margin: 0; color: #636b75; font-size: 16px; line-height: 1.3; text-wrap: pretty; }
.learning-card--physiology .content-title { max-width: 456px; }
.learning-card--hospital .content-title { max-width: 383px; }
.learning-card--physiology { grid-area: physiology; }
.learning-card--hospital { grid-area: hospital; }
.learning-card--support { grid-area: support; }
.learning-card--techniques { grid-area: techniques; }
.learning-card--preparation { grid-area: preparation; }
.learning-card--practice { position: relative; grid-area: practice; align-self: stretch; padding-block: 24px; overflow: hidden; isolation: isolate; background: #a79888; color: #fff; }
.learning-card--practice p { color: #fff; }
.learning-card__picture { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.learning-card__picture img { width: 100%; height: 100%; object-fit: cover; }
.learning-card__content { display: flex; flex-direction: column; gap: 8px; width: min(325px, 100%); }
.learning-card__content p { max-width: 268px; }

/* Ваш профиль после курса */
.graduate-profile__heading { text-align: center; }
.graduate-profile__heading h2 { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.3; }
.graduate-profile__heading > p { max-width: 580px; margin: 20px auto 0; color: #636b75; font-size: 20px; line-height: 26px; text-wrap: pretty; }
.graduate-profile__layout { display: grid; grid-template-columns: minmax(0, 326fr) minmax(0, 874fr); margin-top: 52px; }
.graduate-profile__identity { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 775px; padding: 26px 22px; border-radius: 16px; background: #ccebeb; }
.graduate-profile__person { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.graduate-profile__portrait { position: relative; flex: none; width: 138px; height: 138px; overflow: hidden; border-radius: 50%; }
.graduate-profile__portrait img { position: absolute; top: -8.97%; left: -24.19%; width: 162.1%; height: 109%; }
.graduate-profile__bio { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; width: 100%; text-align: center; }
.graduate-profile__bio p { margin: 0; }
.graduate-profile__profession { color: #007f80; font-size: 32px; font-weight: 700; line-height: 42px; }
.graduate-profile__name { font-size: 28px; font-weight: 700; line-height: 36px; }
.graduate-profile__description { font-size: 18px; line-height: 23px; }
.graduate-profile__details { display: flex; flex-direction: column; gap: 26px; min-width: 0; padding: 26px 22px; border-radius: 16px; background: var(--doula-surface); }
.graduate-profile__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.graduate-profile .content-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 29px; }
.graduate-profile__list { display: flex; flex-direction: column; gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.graduate-profile__list li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 16px; line-height: 21px; }
.graduate-profile__list img { flex: none; }
.graduate-profile__list span { min-width: 0; }
.graduate-profile__documents { display: grid; grid-template-columns: minmax(0, 168px) repeat(2, minmax(0, 231px)); align-items: start; justify-content: space-between; gap: 20px; padding: 26px 22px; border-radius: 16px; background: #fff; }
.graduate-profile__document { display: flex; flex-direction: column; gap: 10.396px; min-width: 0; margin: 0; }
.graduate-profile__document img { width: 100%; height: auto; }
.graduate-profile__document figcaption { font-size: 15px; font-weight: 600; line-height: 20px; }

/* Калькулятор дохода: нативные ползунки работают мышью, касанием и клавиатурой. */
.income-calculator__heading { text-align: center; }
.income-calculator__heading h2 { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.3; }
.income-calculator__heading > p { max-width: 580px; margin: 20px auto 0; color: #636b75; font-size: 20px; line-height: 26px; text-wrap: pretty; }
.income-calculator__layout { display: grid; grid-template-columns: minmax(0, 744fr) minmax(0, 432fr); align-items: start; gap: 24px; margin-top: 52px; }
.income-calculator__controls { display: flex; flex-direction: column; gap: 36px; min-width: 0; min-height: 337px; padding: 26px 22px; border-radius: 16px; background: var(--doula-surface); }
.income-calculator__field { min-width: 0; width: 100%; max-width: 680px; }
.income-calculator__count-label { display: block; font-size: 20px; line-height: 26px; }
.income-calculator__price-label { display: block; font-size: 18px; font-weight: 500; line-height: 23px; }
.income-calculator__description { margin: 8px 0 0; font-size: 16px; line-height: 21px; }
.income-calculator__limits { display: flex; justify-content: space-between; gap: 12px; color: #888; font-size: 16px; line-height: 21px; }
.income-range { --range-position: 8px; --bubble-width: 28px; position: relative; height: 42px; margin-top: 12px; }
.income-range input { position: absolute; top: 10px; left: 0; display: block; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; touch-action: pan-y; }
.income-range input::-webkit-slider-runnable-track { height: 4px; border-radius: 1px; background: linear-gradient(to right, var(--doula-accent) 0 var(--range-position), #fff var(--range-position) 100%); }
.income-range input::-moz-range-track { height: 4px; border-radius: 1px; background: linear-gradient(to right, var(--doula-accent) 0 var(--range-position), #fff var(--range-position) 100%); }
.income-range input::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 0; border-radius: 50%; appearance: none; -webkit-appearance: none; background: url("assets/images/income-slider-thumb.svg") center no-repeat; }
.income-range input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: url("assets/images/income-slider-thumb.svg") center no-repeat; }
.income-range input:focus-visible { outline: 2px solid var(--doula-accent); outline-offset: 2px; border-radius: 4px; }
.income-range__value { position: absolute; top: -5px; left: clamp(0px, calc(var(--range-position) - var(--bubble-width) / 2), calc(100% - var(--bubble-width))); padding: 3px 10px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 15%); font-size: 14px; font-weight: 600; line-height: 18px; white-space: nowrap; pointer-events: none; }
.income-calculator__result { display: flex; flex-direction: column; gap: 16px; min-width: 0; min-height: 337px; padding: 26px 22px; border-radius: 16px; background: var(--doula-accent); color: #fff; }
.income-calculator__summary { display: flex; flex-direction: column; gap: 16px; }
.income-calculator__summary .content-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 23px; }
.income-calculator__total { display: block; font-size: 48px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.income-calculator__note { display: flex; align-items: flex-start; gap: 8px; }
.income-calculator__note img { flex: none; }
.income-calculator__note p { min-width: 0; margin: 0; font-size: 16px; line-height: 21px; }
.doula-page .income-calculator__tariffs { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-top: auto; padding: 10px 22px; border-radius: 16px; background: #fff; color: #111; font-size: 16px; line-height: 21px; text-align: center; }
.income-calculator__tariffs:hover { box-shadow: inset 0 0 0 100vmax rgb(17 17 17 / 6%); }

/* Панели раскрываются по измеренной высоте; после анимации высота снова автоматическая. */
.course-program > h2 { margin: 0; font-size: 42px; font-weight: 700; line-height: 1.3; text-align: center; }
.course-program__list { display: flex; flex-direction: column; gap: 6px; margin-top: 52px; }
.program-stage, .faq-item { min-width: 0; padding: 26px 22px; border-radius: 16px; background: var(--doula-surface); cursor: pointer; }
.program-stage__header { display: flex; flex-direction: column; gap: 9px; }
.program-stage h3 { margin: 0; }
.doula-page .program-stage__header button { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%; padding: 0; border: 0; background: transparent; color: #111; font-size: 25px; font-weight: 700; line-height: 1.3; text-align: left; }
.program-stage:first-child .program-stage__header button { font-size: 26px; font-weight: 600; }
.program-stage__title { flex: 1; min-width: 0; max-width: 1056px; overflow-wrap: break-word; }
.program-stage:first-child .program-stage__title { max-width: 1032px; }
.program-stage__icon { position: relative; display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; transition: background-color 250ms ease; }
.program-stage:first-child .program-stage__icon { width: 38px; height: 38px; }
.program-stage__plus { grid-area: 1 / 1; font-size: 23px; font-weight: 400; line-height: 30px; transition: transform 250ms ease, opacity 250ms ease, color 250ms ease; }
.program-stage__icon img { grid-area: 1 / 1; opacity: 0; transform: rotate(-45deg); transition: transform 250ms ease, opacity 250ms ease; }
.program-stage.is-open .program-stage__icon { background: transparent; }
.program-stage.is-open .program-stage__plus { color: #fff; opacity: 0; transform: rotate(45deg); }
.program-stage.is-open .program-stage__icon img { opacity: 1; transform: rotate(0deg); }
.program-stage__meta { max-width: 1128px; margin: 0; color: #626262; font-size: 16px; line-height: 21px; }
.program-stage__description { max-width: 1128px; margin: 0; font-size: 19px; line-height: 25px; }
.program-stage__panel, .faq-item__panel { display: block; height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: height 360ms cubic-bezier(.22, .61, .36, 1), margin-top 360ms ease, opacity 220ms ease; }
.program-stage.is-open .program-stage__panel, .faq-item.is-open .faq-item__panel { height: auto; margin-top: 22px; opacity: 1; }
.program-stage__panel-inner, .faq-item__panel-inner { min-height: 0; overflow: hidden; }
.program-stage__modules { display: flex; flex-direction: column; gap: 16px; max-width: 1032px; font-size: 16px; line-height: 21px; }
.program-stage:first-child .program-stage__modules { max-width: 992px; }
.program-stage__modules p,
.program-stage__modules ul { margin: 0; }
.program-module { display: flex; flex-direction: column; gap: 12px; }
.program-module :is(h4, .content-title) { margin: 0; font-size: 18px; font-weight: 600; line-height: 24px; }
.program-module__topics ul { padding: 0; list-style: none; }
.program-module__topics li::before { content: "• "; }
.program-module__result { color: #61666e; font-weight: 600; }
.doula-page .course-program__access { display: flex; align-items: center; justify-content: center; width: 250px; min-height: 56px; margin: 72px auto 0; padding: 10px 22px; border-radius: 16px; background: var(--doula-accent); color: #fff; font-size: 20px; line-height: 26px; text-align: center; }
.course-program__access:hover { box-shadow: inset 0 0 0 100vmax rgb(17 17 17 / 10%); }

/* Преподаватели: прокрутка браузера сохраняет нативный свайп на сенсорных экранах. */
.teachers-section { --teachers-inset: max(24px, calc((100vw - 1200px) / 2)); margin: 120px auto 0; overflow: hidden; color: #111; scroll-margin-top: 24px; }
.teachers-section > h2 { width: min(1200px, calc(100% - 48px)); margin: 0 auto; font-size: 42px; font-weight: 700; line-height: 1.3; text-align: center; }
.teachers-section__viewport { display: grid; grid-auto-flow: column; grid-auto-columns: 380px; gap: 20px; width: calc(100% - var(--teachers-inset)); margin: 52px 0 0 var(--teachers-inset); padding-right: var(--teachers-inset); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.teachers-section__viewport::-webkit-scrollbar { display: none; }
.teachers-section__viewport:focus-visible { outline: 2px solid var(--doula-accent); outline-offset: -2px; }
.teachers-section__viewport.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.teacher-card { display: flex; flex-direction: column; gap: 26px; min-width: 0; min-height: 610px; padding: 26px 22px; border-radius: 16px; background: var(--doula-surface); scroll-snap-align: start; scroll-snap-stop: always; }
.teacher-card__portrait { position: relative; flex: none; width: 100%; aspect-ratio: 14 / 15; overflow: hidden; border-radius: 16px; background: #fbdde4; }
.teacher-card__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.teacher-card__portrait--bystrova img { top: -22.96%; left: -44.8%; width: 157.7%; height: 226.31%; object-fit: fill; }
.teacher-card__portrait--miller img { top: .12%; left: 2.68%; width: 94.65%; height: 99.98%; object-fit: fill; }
.teacher-card__portrait--lebedeva img { top: 2.98%; left: -4.37%; width: 115.07%; height: 232.18%; object-fit: fill; }
.teacher-card__content { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.teacher-card h3 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
.teacher-card ul { margin: 0; padding: 0 0 0 22.5px; color: #646464; font-size: 15px; line-height: 1.3; }
.teachers-section__controls { display: flex; justify-content: flex-end; gap: 14px; width: min(1200px, calc(100% - 48px)); margin: 52px auto 0; }
.teachers-section__arrow { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: #111; }
.teachers-section__arrow--previous img { transform: scaleX(-1); }
.teachers-section__arrow:not(:disabled):hover { opacity: .85; }
.doula-page .teachers-section__arrow:disabled { cursor: default; opacity: 1; }

/* Этапы обучения: текст остаётся в потоке, подсветка привязана к прокрутке. */
.learning-process > h2 { margin: 0; font-size: 42px; font-weight: 600; line-height: 1.3; text-align: center; }
.learning-timeline { --timeline-top: 64px; --timeline-length: 1023px; --timeline-progress: 0; --timeline-line-scale: 1; position: relative; margin-top: 51px; }
.learning-timeline__track { position: absolute; z-index: 0; top: var(--timeline-top); left: calc(50% - .5px); width: 1px; height: var(--timeline-length); overflow: hidden; pointer-events: none; }
.learning-timeline__base { transform: scaleY(var(--timeline-line-scale)); transform-origin: top; }
.learning-timeline__fill { position: absolute; inset: 0; background: #cd4f79; transform: scaleY(var(--timeline-progress)); transform-origin: top; }
.learning-timeline__list { position: relative; display: flex; flex-direction: column; gap: 120px; margin: 0; padding: 0 0 52px; list-style: none; }
.learning-step { display: grid; grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr); column-gap: 44px; min-width: 0; }
.learning-step__marker { z-index: 1; display: grid; grid-column: 2; grid-row: 1; align-self: center; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--doula-surface); transform: translateY(6px); transition: background-color 180ms ease; }
.learning-step__icon { width: 36px; height: 36px; background: #878285; -webkit-mask-image: var(--step-icon); mask-image: var(--step-icon); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: auto; mask-size: auto; transition: background-color 180ms ease; }
.learning-step--webinar { --step-icon: url("assets/images/process-webinar-desktop.svg"); }
.learning-step--book { --step-icon: url("assets/images/process-book-desktop.svg"); }
.learning-step--message { --step-icon: url("assets/images/process-message-desktop.svg"); }
.learning-step--glow { --step-icon: url("assets/images/process-glow-desktop.svg"); }
.learning-step--hand { --step-icon: url("assets/images/process-hand-desktop.svg"); }
.learning-step__text { display: flex; grid-column: 3; grid-row: 1; flex-direction: column; gap: 12px; min-width: 0; max-width: 522px; padding-block: 12px; }
.learning-step:nth-child(even) .learning-step__text { grid-column: 1; }
.learning-step h3 { margin: 0; color: #6e696b; font-size: 26px; font-weight: 700; line-height: 1.3; transition: color 180ms ease; }
.learning-step--glow h3 { max-width: 369px; }
.learning-step p { margin: 0; color: #878285; font-size: 18px; line-height: 1.3; transition: color 180ms ease; }
.learning-step.is-reached .learning-step__marker { background: #ffe2eb; }
.learning-step.is-reached .learning-step__icon { background: #cd4f79; }
.learning-step.is-reached h3 { color: #111; }
.learning-step.is-reached p { color: #615c5e; }

.pricing-section { margin-top: 120px; padding: 60px 24px 80px; background: var(--doula-dark); color: #fff; scroll-margin-top: 32px; }
.pricing-section__inner { display: flex; flex-direction: column; gap: 60px; max-width: 1200px; margin: 0 auto; }
.pricing-section h2 { margin: 0; font-size: 42px; line-height: 1.3; font-weight: 700; text-align: center; }
.pricing-benefits { display: flex; flex-direction: column; align-items: center; gap: 52px; }
.pricing-benefits__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; width: min(903px, 100%); }
.pricing-benefit { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; min-height: 240px; padding: 26px 22px; border-radius: 16px; background: #fff; color: #111; }
.pricing-benefit .content-title { margin: 0 0 12px; font-size: 42px; line-height: 1.3; font-weight: 500; }
.pricing-benefit__description { margin: 0; color: #505050; font-size: 18px; line-height: 1.3; }
.pricing-benefit__banks { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pricing-bank { display: block; flex: none; height: auto; max-width: 100%; }
.pricing-bank img { width: 100%; height: auto; }
.pricing-bank--tbank { width: 72.2575px; }
.pricing-bank--sber { width: 112.637px; }
.pricing-bank--dolyami { flex: none; padding: 6.376px; border-radius: 4px; background: var(--doula-dark); }
.pricing-bank--dolyami img { width: 59.5062px; height: auto; }
.pricing-bank--split { width: 72.258px; }
.pricing-benefit--tax { position: relative; flex-direction: row; align-items: center; gap: 12px; }
.pricing-benefit--tax > div { z-index: 1; flex: 1; align-self: flex-start; min-width: 0; }
.pricing-benefit__tax-image { flex: none; width: 188px; height: 188px; object-fit: contain; margin-right: -12px; }
.pricing-plans { display: flex; flex-direction: column; gap: 32px; }
.pricing-plans__heading { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pricing-plans__heading h2 { font-weight: 600; }
.pricing-plans__offer { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.pricing-sale { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 26px; max-width: 100%; padding: 12px 26px; border-radius: 100px; background: #fffbce; color: #111; font-size: 20px; text-align: center; }
.pricing-sale strong { font-weight: 700; }
.pricing-sale__timer { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricing-plans__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.pricing-plan { display: flex; flex-direction: column; gap: 30px; min-width: 0; min-height: 864px; padding: 26px 22px; border-radius: 16px; background: #fff; color: #111; }
.pricing-plan__heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pricing-plan h3 { min-width: 0; margin: 0; font-size: 32px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pricing-plan__discount { flex: none; padding: 10px 14px; border-radius: 1000px; background: #fff153; color: #222; font-size: 22px; }
.pricing-plan__features { display: flex; flex: 1; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; color: var(--doula-dark); font-size: 20px; line-height: 1.3; }
.pricing-plan__features li { position: relative; padding-left: 26px; }
.pricing-plan__features li::before { position: absolute; top: 0; left: 0; content: "✓"; }
.pricing-plan__features .is-unavailable { color: #c7c7c7; }
.pricing-plan__features .is-unavailable::before { content: "⨉"; }
.pricing-plan__payment { display: flex; flex-direction: column; gap: 22px; padding: 26px 22px; border-radius: 16px; background: #f3f3f3; }
.pricing-plan__monthly { margin: 0; font-size: 30px; line-height: 1.3; white-space: nowrap; }
.pricing-plan__monthly b { font-size: 42px; font-weight: 700; }
.pricing-plan__installment { margin: 8px 0 8px; font-size: 16px; line-height: 1.3; font-style: italic; color: rgb(17 17 17 / 50%); }
.pricing-plan__once { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 20px; }
.pricing-plan__once s { color: rgb(17 17 17 / 50%); }
.pricing-plan__button { width: 100%; min-height: 66px; padding: 20px 14px; border: 0; border-radius: 10px; background: #333; color: #fff; font-size: 20px; line-height: 1.3; }
.pricing-plan__button:hover { background: #1c1c1c; }
.pricing-plan--extended .pricing-plan__button { background: #ee466a; }
.pricing-plan--extended .pricing-plan__button:hover { background: #d62f53; }
.enrollment-dialog__plan { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fff; font-size: 16px; font-weight: 600; }
.enrollment-dialog .consultation-form__submit { border: 0; background: #ee466a; color: #fff; font: inherit; cursor: pointer; }
.enrollment-dialog .consultation-form__submit:hover { background: #d62f53; }
.pricing-section [hidden] { display: none !important; }
@media (max-width: 1179px) {
  .pricing-section { margin-top: 80px; padding: 26px 22px; border-radius: 16px; }
  .pricing-section__inner { gap: 36px; }
  .pricing-section h2 { font-size: 32px; }
  .pricing-benefits { gap: 32px; }
  .pricing-benefits__grid { width: 100%; }
  .pricing-benefit { min-height: 212px; }
  .pricing-benefit .content-title { font-size: 32px; }
  .pricing-benefit__description { font-size: 16px; }
  .pricing-benefit__banks { gap: 8px; }
  .pricing-bank--tbank, .pricing-bank--split { width: 51.2883px; }
  .pricing-bank--sber { width: 79.9494px; }
  .pricing-bank--dolyami { padding: 4.525px; }
  .pricing-bank--dolyami img { width: 42.2374px; }
  .pricing-benefit--tax .content-title { font-size: 24px; }
  .pricing-benefit__tax-image { width: 112px; height: 112px; margin: 0; }
  .pricing-plans { gap: 32px; }
  .pricing-sale { font-size: 18px; }
  .pricing-plans__grid { gap: 20px; }
  .pricing-plan { min-height: 892px; }
  .pricing-plan h3 { font-size: 24px; font-weight: 700; }
  .pricing-plan__discount { font-size: 18px; }
  .pricing-plan__features { font-size: 18px; }
  .pricing-plan__features li { padding-left: 22px; }
  .pricing-plan__monthly, .pricing-plan__monthly b { font-size: 28px; }
  .pricing-plan__once { flex-direction: column; font-size: 16px; }
  .pricing-plan__button { min-height: 56px; padding: 16px 14px; font-size: 18px; }
}
@media (max-width: 719px) {
  .pricing-section { margin-top: 64px; padding: 26px 16px; }
  .pricing-section__inner { gap: 28px; }
  .pricing-section h2 { font-size: 28px; }
  .pricing-benefits { gap: 24px; }
  .pricing-benefits__grid, .pricing-plans__grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-benefit .content-title { font-size: 28px; }
  .pricing-benefit--tax .content-title { font-size: 22px; }
  .pricing-bank--tbank, .pricing-bank--split { width: 52.65px; }
  .pricing-bank--sber { width: 82.072px; }
  .pricing-bank--dolyami { padding: 4.646px; }
  .pricing-bank--dolyami img { width: 43.3588px; }
  .pricing-plans { gap: 24px; }
  .pricing-plans__heading { gap: 20px; }
  .pricing-plans__offer { gap: 12px; }
  .pricing-sale { flex-direction: column; gap: 6px; padding: 8px 22px; font-size: 16px; }
  .pricing-plans__grid { gap: 24px; }
  .pricing-plan { min-height: 0; }
  .pricing-plan__features { font-size: 16px; }
}
@media (max-width: 374px) {
  .pricing-plan { padding-inline: 16px; }
  .pricing-plan__payment { padding-inline: 16px; }
  .pricing-plan__monthly, .pricing-plan__monthly b { font-size: 24px; }
  .pricing-benefit { padding-inline: 16px; }
  .pricing-benefit__tax-image { width: 88px; height: 88px; }
  .pricing-benefit__banks { gap: 4px; }
}

.documents-section { width: min(1200px, calc(100% - 48px)); margin: 120px auto 0; color: #111; }
.documents-section > h2 { margin: 0; font-size: 42px; font-weight: 600; line-height: 1.3; text-align: center; }
.documents-section__grid { display: grid; grid-template-columns: minmax(0, 390fr) minmax(0, 390fr) minmax(0, 380fr); align-items: start; gap: 20px; margin-top: 50px; }
.document-card, .documents-license { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; min-width: 0; margin: 0; padding: 26px 22px; border-radius: 16px; background: var(--doula-surface); }
.document-card { min-height: 369px; }
.document-stack { position: relative; flex: none; width: 265.7004px; max-width: 100%; aspect-ratio: 265.7004 / 223.5537; }
.document-stack img { position: absolute; width: 90.3277%; height: 75.597%; border-radius: 16px; object-fit: contain; box-shadow: -6px 4px 8px rgb(34 60 80 / 10%); }
.document-stack__back { top: 8.7469%; left: 4.8363%; transform: rotate(10deg); }
.document-stack__front { top: 24.403%; left: 6.0933%; }
.document-card figcaption { width: min(304px, 100%); font-size: 20px; font-weight: 700; line-height: 1.3; text-align: center; }
.documents-license__image { flex: none; width: 134px; height: 147px; object-fit: contain; }
.documents-license__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; width: 100%; text-align: center; }
.documents-license .content-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.documents-license p { margin: 0; font-size: 16px; line-height: 1.3; }
@media (max-width: 1179px) {
  .documents-section { margin-top: 80px; }
  .documents-section > h2 { font-size: 32px; }
  .documents-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; margin-top: 36px; }
  .document-card { justify-content: flex-start; min-height: 357.5537px; }
  .document-card figcaption { width: 100%; font-size: 18px; }
  .documents-license { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 236px; gap: 12px; align-items: start; }
  .documents-license__image { grid-column: 2; grid-row: 1; width: 236px; height: 133px; }
  .documents-license__text { grid-column: 1; grid-row: 1; text-align: left; }
  .documents-license .content-title { font-size: 22px; }
  .documents-license p { font-size: 18px; }
}
@media (max-width: 719px) {
  .documents-section { width: calc(100% - 32px); margin-top: 64px; }
  .documents-section > h2 { font-size: 28px; }
  .documents-section__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 28px; }
  .document-card { min-height: 0; }
  .document-card figcaption { font-size: 16px; }
  .documents-license { display: flex; gap: 36px; }
  .documents-license__image { width: 100%; height: 147px; }
  .documents-license__text { text-align: center; }
  .documents-license .content-title, .documents-license p { font-size: 16px; }
}

.questions-section { display: grid; grid-template-columns: minmax(0, 1fr) 470px; align-items: start; gap: 40px; width: min(1200px, calc(100% - 48px)); min-height: 519px; margin: 120px auto 0; padding: 26px 22px; border-radius: 16px; background: var(--doula-dark); color: #fff; }
.questions-section__invitation { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.questions-section h2 { margin: 0; font-size: 38px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-align: left; }
.questions-section__lead { margin: 12px 0 0; font-size: 24px; line-height: 1.3; }
.questions-section__description { max-width: 568px; margin: 0; font-size: 20px; line-height: 1.3; }
.questions-section__form-card { display: flex; flex-direction: column; gap: 20px; min-width: 0; min-height: 467px; padding: 26px 22px; border-radius: 16px; background: var(--doula-surface); color: #111; }
.questions-section .content-title { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.3; text-align: center; }
.questions-section .consultation-form__field input { font-family: inherit; }
.questions-section .consultation-form__consent { color: rgb(17 17 17 / 60%); font-size: 15px; }
.questions-section .consultation-form__submit { border: 0; border-radius: 16px; background: #007f80; color: #fff; font-size: 16px; font-weight: 400; line-height: 1.3; }
.questions-section .consultation-form__submit:hover { background: #006c6d; }
@media (max-width: 1179px) {
  .questions-section { grid-template-columns: minmax(0, 1fr) minmax(0, 350px); gap: 24px; width: 100%; min-height: 0; margin-top: 80px; }
  .questions-section h2 { font-size: 32px; }
  .questions-section__lead { font-size: 20px; }
  .questions-section__description { font-size: 18px; }
  .questions-section__form-card { min-height: 0; }
  .questions-section .content-title { font-size: 18px; }
  .questions-section .consultation-form__field input { height: 56px; }
  .questions-section .consultation-form__field > label { left: 14px; }
  .questions-section .consultation-form__consent { gap: 10px; }
  .questions-section .consultation-form__consent input { flex-basis: 20px; width: 20px; height: 20px; margin-top: 0; accent-color: #007f80; }
  .questions-section .consultation-form__submit { font-size: 18px; }
}
@media (max-width: 719px) {
  .questions-section { grid-template-columns: minmax(0, 1fr); margin-top: 64px; padding-inline: 16px; background: #333; }
  .questions-section h2 { font-size: 28px; }
  .questions-section__lead { font-size: 18px; }
  .questions-section__description { font-size: 16px; }
  .questions-section .content-title { font-size: 20px; }
  .questions-section .consultation-form__field input { height: 52px; }
  .questions-section .consultation-form__field > label { top: 15px; }
  .questions-section .consultation-form__field input:focus + label,
  .questions-section .consultation-form__field input:not(:placeholder-shown) + label { top: 5px; }
}

.questions-section--final { min-height: 477px; }
.questions-section--final h2 { text-align: left; }
.questions-section--final .questions-section__invitation { max-width: 590px; }
.questions-section--final .questions-section__description { max-width: 590px; font-size: 21px; }
.questions-section--final .questions-section__form-card { min-height: 425px; background: #fff; }
.questions-section--final .consultation-form__field input { background: var(--doula-surface); }
.questions-section--final .consultation-form__consent { font-size: 14px; }
@media (max-width: 1179px) {
  .questions-section--final { gap: 20px; min-height: 0; }
  .questions-section--final h2 { font-size: 28px; }
  .questions-section--final .questions-section__description { font-size: 18px; }
  .questions-section--final .questions-section__form-card { min-height: 0; }
  .questions-section--final .consultation-form__consent { font-size: 15px; }
}
@media (max-width: 719px) {
  .questions-section--final { gap: 28px; }
  .questions-section--final .questions-section__description { font-size: 16px; }
}

.reviews-section { width: 100%; margin: 120px auto 0; padding: 64px 24px; background: var(--doula-surface); color: #111; }
.reviews-section > h2 { margin: 0; font-size: 42px; font-weight: 600; line-height: 1.3; text-align: center; }
.reviews-section__widget { width: 100%; max-width: 1170px; margin: 26px auto 0; }
.reviews-section__frame { display: block; width: 100%; max-width: 100%; height: 150px; margin: 0; padding: 0; border: 0; }
.reviews-section__status { margin: 16px 0; color: #626262; font-size: 16px; line-height: 1.4; text-align: center; }
.reviews-section__retry { display: block; min-height: 44px; margin: 0 auto; padding: 10px 20px; border: 0; border-radius: 10px; background: var(--doula-dark); color: #fff; }
.reviews-section__retry:hover { background: #22272b; }
@media (max-width: 1179px) {
  .reviews-section { margin-top: 80px; }
  .reviews-section > h2 { font-size: 32px; }
  .reviews-section__widget { margin-top: 24px; }
}
@media (max-width: 719px) {
  .reviews-section { margin-top: 64px; padding: 40px 16px; }
  .reviews-section > h2 { font-size: 28px; }
  .reviews-section__widget { margin-top: 20px; }
}

.faq-section { width: min(1200px, calc(100% - 48px)); margin: 120px auto 0; color: #111; }
.faq-section > h2 { max-width: 1070px; margin: 0 auto; font-size: 42px; font-weight: 700; line-height: 1.3; text-align: center; }
.faq-section__list { display: flex; flex-direction: column; gap: 6px; margin-top: 52px; }
.faq-item h3 { margin: 0; }
.doula-page .faq-item__toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 0; border: 0; background: none; color: #111; font-size: 26px; font-weight: 600; line-height: 1.3; text-align: left; }
.faq-item.is-open .faq-item__toggle { align-items: flex-start; }
.faq-item__question { flex: 1; min-width: 0; max-width: 1032px; overflow-wrap: break-word; }
.faq-item__icon { display: grid; flex: none; width: 38px; height: 38px; }
.faq-item__icon img { grid-area: 1 / 1; transition: opacity 250ms ease, transform 250ms ease; }
.faq-item__icon-close { opacity: 0; transform: rotate(-45deg); }
.faq-item.is-open .faq-item__icon-plus { opacity: 0; transform: rotate(45deg); }
.faq-item.is-open .faq-item__icon-close { opacity: 1; transform: rotate(0deg); }
.faq-item__panel-inner p { max-width: 992px; margin: 0; font-size: 16px; line-height: 1.3; }
@media (max-width: 1179px) {
  .faq-section { margin-top: 80px; }
  .faq-section > h2 { font-size: 32px; }
  .faq-section__list { margin-top: 36px; }
  .doula-page .faq-item__toggle { align-items: flex-start; gap: 10px; font-size: 24px; }
  .faq-item.is-open .faq-item__toggle { gap: 20px; }
  .faq-item__panel-inner p { max-width: none; }
}
@media (max-width: 719px) {
  .faq-section { width: calc(100% - 32px); margin-top: 64px; }
  .faq-section > h2 { font-size: 28px; }
  .faq-section__list { margin-top: 28px; }
  .doula-page .faq-item__toggle { font-size: 22px; }
}

.site-footer { position: relative; min-height: 384px; margin-top: 120px; padding: 50px 0; background: #1c1c1c; color: #fff; font-size: 15px; line-height: 1.4; }
.site-footer p { margin: 0; }
.site-footer__inner { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.site-footer__top { display: grid; grid-template-columns: 200px 371.148px auto; align-items: start; justify-content: space-between; gap: 32px; min-height: 176px; padding: 40px 50px; border-radius: 20px; background: #2a2a2a; }
.site-footer__logo { width: 200px; max-width: 100%; height: auto; }
.site-footer__organization { min-width: 0; }
.site-footer .site-footer__address { margin-top: 12px; color: #ccc; }
.site-footer__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.site-footer .site-footer__phone { color: #ff873c; font-size: 18px; font-weight: 700; white-space: nowrap; }
.site-footer .site-footer__email { font-size: 14px; text-decoration: underline; }
.site-footer__socials { display: flex; gap: 14px; padding-top: 10px; }
.site-footer__social { position: relative; flex: 0 0 24px; width: 24px; height: 24px; opacity: .9; }
.site-footer__social:hover { opacity: 1; }
.site-footer__social img { width: 24px; height: 24px; object-fit: cover; }
.site-footer__social--max { display: grid; place-items: center; }
.site-footer__social--max img { width: 18px; height: 18px; object-fit: contain; }
.site-footer__bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 20px; color: #8d8d8d; }
.site-footer__copyright { font-size: 13px; font-weight: 600; }
.site-footer__bank { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.site-footer__legal { display: flex; flex-direction: column; gap: 12px; font-size: 11px; }
.site-footer__legal a { color: #fff; text-decoration: underline; }
@media (max-width: 1179px) {
  .site-footer { min-height: 435px; margin-top: 80px; padding: 31px 24px 52px; }
  .site-footer__inner { width: 100%; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 26px 12px; }
  .site-footer__logo { grid-column: 1 / -1; }
  .site-footer__organization { max-width: 371.148px; }
  .site-footer__contacts { align-items: flex-start; }
  .site-footer__bottom { padding-top: 44px; }
}
@media (max-width: 719px) {
  .site-footer { display: flex; flex-direction: column; gap: 24px; min-height: 0; margin-top: 64px; padding: 31px 24px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__bottom { flex-direction: column; gap: 12px; padding-top: 24px; }
  .site-footer__bank, .site-footer__legal { gap: 8px; }
}

.lead-catcher { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 98px 24px 32px; border: 0; background: transparent; color: #111; overflow: auto; overscroll-behavior: contain; font: inherit; }
.lead-catcher[open] { display: flex; align-items: flex-start; justify-content: center; }
.lead-catcher::backdrop { background: rgb(0 0 0 / 70%); }
.lead-catcher__position { position: relative; flex: none; width: min(882px, 100%); animation: dialog-in 220ms ease both; }
.lead-catcher__close { position: absolute; z-index: 1; top: -44px; right: -22px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.lead-catcher__close img { display: block; }
.lead-catcher__card { position: relative; min-height: 484px; padding: 32px 26px; border-radius: 24px; background: #e0eff1; }
.lead-catcher__content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; width: 404px; max-width: 100%; }
.lead-catcher__intro { display: flex; flex-direction: column; gap: 12px; }
.lead-catcher .content-title { width: 100%; margin: 0 auto; font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-align: center; }
.lead-catcher__content .content-title { text-align: left; }
.lead-catcher p { margin: 0; font-size: 16px; line-height: 1.3; color: var(--doula-dark); }
.lead-catcher__form { display: flex; flex-direction: column; gap: 16px; width: 380px; max-width: 100%; }
.lead-catcher__actions { display: flex; flex-direction: column; gap: 12px; }
.lead-catcher__field { display: flex; flex-direction: column; gap: 6px; }
.lead-catcher__field input { width: 100%; height: 60px; padding: 18px; border: 1px solid #d7dee0; border-radius: 12px; background: #fff; color: #111; font: inherit; font-size: 16px; }
.lead-catcher__field input::placeholder { color: #747e83; opacity: 1; }
.lead-catcher__field input:focus { outline: 2px solid var(--doula-accent); outline-offset: 1px; }
.lead-catcher__field input[aria-invalid="true"] { border-color: #bd2525; }
.lead-catcher__button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; padding: 18px; border: 0; border-radius: 12px; background: #ee466a; color: #fff; font: inherit; font-size: 17px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.lead-catcher__button:hover { background: #de355b; }
.lead-catcher__button:disabled { opacity: .7; cursor: progress; }
.lead-catcher__consent { display: flex; align-items: flex-start; gap: 8px; color: rgb(17 17 17 / 50%); font-size: 15px; line-height: 1.4; cursor: pointer; }
.lead-catcher__consent input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: #ee466a; }
.lead-catcher__consent span { min-width: 0; }
.lead-catcher__consent a { color: inherit; text-decoration: underline; }
.lead-catcher__consent input[aria-invalid="true"] { outline: 2px solid #bd2525; outline-offset: 2px; }
.lead-catcher .lead-catcher__hint { margin: 0; color: #bd2525; font-size: 13px; line-height: 1.4; }
.lead-catcher__sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead-catcher__illustration { position: absolute; top: 50%; right: 48px; width: 341px; height: 302px; overflow: hidden; transform: translateY(-50%); pointer-events: none; }
.lead-catcher__illustration img { position: absolute; top: 0; left: -6.02%; width: 110.11%; height: 100%; max-width: none; }
.lead-catcher__success { display: flex; flex-direction: column; gap: 24px; }
.lead-catcher__success .content-title { max-width: 343px; }
.lead-catcher.is-success .lead-catcher__position { width: min(432px, 100%); }
.lead-catcher.is-success .lead-catcher__card { min-height: 0; }
.lead-catcher.is-success .lead-catcher__illustration { display: none; }
.lead-catcher button:focus-visible, .lead-catcher a:focus-visible { outline: 2px solid var(--doula-accent); outline-offset: 4px; }
.lead-catcher .content-title:focus { outline: none; }
@media (max-width: 1179px) {
  .lead-catcher__position { width: min(720px, 100%); }
  .lead-catcher__card { padding-inline: 22px; }
  .lead-catcher__illustration { right: 22px; width: min(257px, calc(100% - 450px)); height: auto; aspect-ratio: 257 / 228; }
}
@media (max-width: 719px) {
  .lead-catcher { padding-inline: 16px; }
  .lead-catcher__card { padding: 22px; }
  .lead-catcher .content-title { font-size: 26px; }
  .lead-catcher__content, .lead-catcher__form { width: 100%; }
  .lead-catcher__illustration { display: none; }
  .lead-catcher.is-success .lead-catcher__card { padding-block: 32px; }
  .lead-catcher__success .content-title { font-size: 32px; }
}
@media (max-height: 579px) {
  .lead-catcher { padding-top: 54px; padding-bottom: 16px; }
}

/* Native dialog provides focus containment and makes the page behind it inert. */
.application-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 60px 16px 16px;
  border: 0;
  background: transparent;
  color: #111;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.application-dialog[open] { display: flex; }
.application-dialog::backdrop { background: rgb(0 0 0 / 40%); }
.application-dialog__position {
  position: relative;
  flex: none;
  width: min(482px, 100%);
  margin: auto;
  animation: dialog-in 220ms ease both;
}
.application-dialog__close {
  position: absolute;
  top: -44px;
  right: -20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.application-dialog__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 22px;
  border-radius: 16px;
  background: var(--doula-surface);
}
.application-dialog .content-title { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.3; text-align: center; }
.license-dialog__position { width: min(529px, 100%); }
.license-dialog__image { display: block; width: 100%; height: auto; border-radius: 8px; }
.application-dialog__description { margin: 0; color: rgb(17 17 17 / 65%); line-height: 1.4; }
.consultation-form { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.consultation-form__field { position: relative; display: flex; flex-direction: column; }
.consultation-form__field input {
  display: block;
  width: 100%;
  height: 57px;
  padding: 20px 40px 8px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  outline: 0;
  background: #fff;
  color: var(--doula-ink);
  font-size: 16px;
  line-height: 1.3;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}
.consultation-form__field > label {
  position: absolute;
  top: 18px;
  left: 12px;
  color: #b1b1b1;
  pointer-events: none;
  transition: top 200ms ease, font-size 200ms ease;
}
.consultation-form__field input:focus + label,
.consultation-form__field input:not(:placeholder-shown) + label { top: 5px; font-size: 11px; }
.consultation-form__field input:focus { border-color: var(--doula-accent); box-shadow: 0 0 0 3px rgb(0 156 154 / 12%); }
.consultation-form__field.is-valid input { border-color: #9fd9ab; box-shadow: 0 0 0 3px rgb(76 175 80 / 12%), 0 0 12px rgb(76 175 80 / 16%); }
.consultation-form__field.is-valid::after { content: "✓"; position: absolute; top: 17px; right: 14px; color: #4caf50; font-size: 18px; font-weight: 700; pointer-events: none; }
.consultation-form__field.is-invalid input { border-color: #e53935; background: #ffeded; box-shadow: none; }
.consultation-form__hint { display: none; margin-top: 4px; color: #e53935; font-size: 12px; line-height: 1.3; }
.consultation-form__hint.is-visible { display: block; }
.consultation-form__hint.is-info { color: var(--doula-accent); }
.consultation-form__country-toggle {
  display: none;
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--doula-accent);
  font-size: 12px !important;
  cursor: pointer;
}
.consultation-form__country-toggle.is-visible { display: inline-block; }
.consultation-form__consent { display: flex; align-items: flex-start; gap: 8px; color: rgb(17 17 17 / 47%); font-size: 14px; line-height: 1.3; cursor: pointer; }
.consultation-form__consent input { flex: 0 0 16px; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--doula-dark); cursor: pointer; }
.consultation-form__consent span { min-width: 0; }
.consultation-form__consent a { color: inherit; text-decoration: underline; text-underline-offset: 1px; }
.consultation-form__consent a:hover { color: var(--doula-accent); }
.consultation-form__consent.is-invalid { color: #bd2525; }
.consultation-form__consent.is-invalid input { outline: 2px solid #e53935; outline-offset: 2px; }
.consultation-form__consent-hint { margin-top: -16px; color: #bd2525; font-size: 12px; }
.consultation-form__submit { width: 100%; min-height: 56px; padding: 18px; }
.consultation-form__submit:disabled { opacity: .7; cursor: progress; }
.consultation-form__error { margin: 0; color: #bd2525; font-size: 13px; line-height: 1.4; }
.page-doula [hidden] { display: none !important; }

@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1179px) {
  .site-header__inner { min-height: 105.1524px; padding-block: 29px; }
  .site-header__logo img { width: 120px; height: 47.1524px; }
  .menu-button {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--doula-surface);
  }
  .menu-button img { position: absolute; transition: opacity 220ms ease, transform 220ms ease; }
  .menu-button__close { opacity: 0; transform: rotate(-45deg); }
  .menu-button[aria-expanded="true"] .menu-button__open { opacity: 0; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-button__close { opacity: 1; transform: rotate(0); }
  .menu-backdrop {
    position: fixed;
    z-index: 20;
    inset: var(--menu-top, 105.1524px) 0 0;
    display: block;
    visibility: hidden;
    background: rgb(0 0 0 / 40%);
    opacity: 0;
    transition: opacity 220ms ease, visibility 220ms;
  }
  .menu-backdrop.is-open { visibility: visible; opacity: 1; }
  .header-menu {
    position: fixed;
    z-index: 31;
    top: calc(var(--menu-top, 105.1524px) + 10px);
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 56px;
    width: min(540px, calc(100% - 48px));
    min-height: min(510px, calc(100dvh - var(--menu-top, 105.1524px) - 26px));
    max-height: calc(100dvh - var(--menu-top, 105.1524px) - 26px);
    padding: 26px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 12px rgb(0 0 0 / 8%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  }
  .header-menu.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .header-menu__links,
  .header-menu__actions { flex-direction: column; align-items: stretch; gap: 32px; }
  .header-menu__links { font-size: 28px; }
  .header-menu__phone { align-self: flex-start; font-size: 32px; }
  .header-menu__request { width: 100%; height: 56px; font-size: 18px !important; }

  .course-hero { margin-top: 16px; }
  .course-hero__card { display: flex; flex-direction: column; min-height: 1029px; padding: 26.8476px 22px 0; }
  .course-hero__intro { max-width: 553px; margin-top: 40px; }
  .course-hero h1 { font-size: 40px; line-height: 52px; }
  .course-hero__description { font-size: 18px; line-height: 23px; }
  .course-hero__benefits { max-width: 676px; margin-top: 22px; }
  .course-hero__benefits li:first-child p { max-width: none; }
  .course-hero__actions { max-width: none; margin-top: 40px; }
  .doula-page .course-hero__button { flex: 1 1 0; padding-inline: 14px; }
  .course-hero__refund { align-items: flex-start; max-width: none; margin-top: 22px; margin-bottom: 31px; }
  .course-hero__art { position: relative; flex: none; left: auto; width: 500.5605px; height: 430.1524px; margin: auto auto 0; }
  .course-hero__shape--desktop { display: none; }
  .course-hero__shape--tablet { display: grid; top: 28.4742px; left: 0; width: 500.5605px; height: 461.0136px; }
  .course-hero__portrait { left: 44.3056px; width: 391.5113px; height: 430.0205px; }
  .hero-rating { top: 25.8476px; right: 22px; }
  .hero-rating__reviews { font-size: 15px; }

  .doula-role,
  .audience-section,
  .stories-section,
  .learning-section,
  .graduate-profile,
  .income-calculator,
  .course-program,
  .learning-process { margin-top: 80px; }
  .doula-role__heading,
  .audience-section__heading,
  .stories-section__heading { max-width: none; }
  .doula-role__heading h2,
  .audience-section__heading h2,
  .stories-section__heading h2 { font-size: 32px; }
  .doula-role__heading p,
  .audience-section__heading p,
  .stories-section__heading p { max-width: none; font-size: 18px; }
  .doula-role__card { gap: 32px; margin-top: 36px; }
  .doula-role__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .doula-role__image { grid-row: 1 / span 2; }
  .doula-role__point { max-width: none; }
  .doula-role__point p { font-size: 16px; line-height: 21px; }
  .doula-role__point:nth-of-type(n + 3) { grid-column: 1 / -1; }
  .doula-role__boundary .content-title { font-size: 18px; line-height: 24px; }
  .doula-role__boundary > p { font-size: 16px; line-height: 21px; }

  .audience-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
  .audience-card .content-title { font-size: 18px; line-height: 23px; }
  .stories-section { --story-card-top: 40px; }

  .learning-section > h2 { font-size: 32px; }
  .learning-section__grid {
    grid-template-rows: repeat(4, auto);
    grid-template-areas: "practice practice" "physiology hospital" "support techniques" "preparation preparation";
    gap: 20px;
  }
  .learning-card .content-title { font-size: 24px; line-height: 31px; }
  .learning-card--practice { align-self: stretch; min-height: 279px; height: auto; }

  .graduate-profile__heading h2 { font-size: 32px; }
  .graduate-profile__heading > p { max-width: none; font-size: 18px; line-height: 23px; }
  .graduate-profile__layout { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .graduate-profile__identity { min-height: 0; }
  .graduate-profile__person { flex-direction: row; justify-content: flex-start; }
  .graduate-profile__portrait { width: 136px; height: 136px; }
  .graduate-profile__bio { flex: 1; align-items: flex-start; text-align: left; }
  .graduate-profile__profession,
  .graduate-profile__name { font-size: 24px; line-height: 31px; }
  .graduate-profile__description { max-width: 330px; font-size: 16px; line-height: 21px; }
  .graduate-profile .content-title { font-size: 18px; line-height: 23px; }
  .graduate-profile__documents { grid-template-columns: repeat(2, minmax(0, 273px)); justify-content: start; gap: 20px 16px; }
  .graduate-profile__documents .content-title { grid-column: 1 / -1; }
  .graduate-profile__document { min-height: 248px; }

  .income-calculator__heading h2 { font-size: 32px; }
  .income-calculator__heading > p { max-width: none; font-size: 18px; line-height: 23px; }
  .income-calculator__layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
  .income-calculator__controls,
  .income-calculator__result { min-height: 0; }
  .income-calculator__count-label { font-size: 18px; line-height: 23px; }
  .income-calculator__price-label { font-size: 16px; line-height: 21px; }
  .income-calculator__limits { font-size: 13px; line-height: 17px; }
  .income-range { height: 44px; }
  .income-range input { top: 20px; }
  .income-range__value { top: 2px; }
  .income-calculator__summary { gap: 12px; }
  .income-calculator__summary .content-title { font-size: 16px; line-height: 21px; }
  .income-calculator__total { font-size: 40px; }
  .doula-page .income-calculator__tariffs { padding-inline: 14px; font-size: 18px; line-height: 23px; }

  .course-program > h2 { font-size: 32px; }
  .course-program__list { margin-top: 36px; }
  .doula-page .program-stage__header button { font-size: 18px; }
  .program-stage:first-child .program-stage__header button { font-size: 24px; }
  .program-stage__description { font-size: 16px; line-height: 21px; }
  .program-module :is(h4, .content-title) { font-size: 16px; line-height: 21px; }
  .doula-page .course-program__access { width: 100%; margin-top: 36px; padding-inline: 14px; font-size: 18px; line-height: 23px; }

  .teachers-section { margin-top: 80px; }
  .teachers-section > h2 { font-size: 32px; }
  .teachers-section__viewport { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; width: calc(100% - 48px); margin: 36px auto 0; padding-right: 0; }
  .teacher-card { min-height: 609px; }
  .teacher-card h3 { font-size: 18px; }
  .teachers-section__controls { margin-top: 36px; }

  .learning-process > h2 { font-size: 32px; }
  .learning-timeline { --timeline-top: 24px; --timeline-length: 800px; margin-top: 40px; }
  .learning-timeline__list { gap: 0; padding-bottom: 0; }
  .learning-step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 24px; min-height: 200px; padding-bottom: 32px; }
  .learning-step__marker { grid-column: 1; align-self: start; width: 48px; height: 48px; transform: none; }
  .learning-step__icon { width: 27.871px; height: 27.871px; }
  .learning-step--webinar { --step-icon: url("assets/images/process-webinar-tablet.svg"); }
  .learning-step--book { --step-icon: url("assets/images/process-book-tablet.svg"); }
  .learning-step--message { --step-icon: url("assets/images/process-message-tablet.svg"); }
  .learning-step--glow { --step-icon: url("assets/images/process-glow-tablet.svg"); }
  .learning-step--hand { --step-icon: url("assets/images/process-hand-tablet.svg"); }
  .learning-step__text,
  .learning-step:nth-child(even) .learning-step__text { grid-column: 2; max-width: none; padding-block: 0; }
  .learning-step h3 { max-width: none; line-height: 1.25; }
  .learning-step p { line-height: 1.45; }
  .learning-step__number { display: none; }
  .learning-timeline__track { left: 23px; width: 2px; background: linear-gradient(to bottom, #cd4f79 0% 25%, rgb(205 79 121 / 75%) 25% 50%, rgb(205 79 121 / 50%) 50% 75%, rgb(205 79 121 / 25%) 75% 100%); }
  .learning-timeline__base { display: none !important; }
}

@media (max-width: 719px) {
  .site-header__inner { width: calc(100% - 32px); min-height: 76px; padding-block: 15px; }
  .site-header__logo img { width: 100px; height: 39.2937px; }
  .header-menu {
    right: 16px;
    width: calc(100% - 32px);
    min-height: 0;
    padding: 26px 22px;
  }
  .header-menu__links,
  .header-menu__phone { font-size: 24px; }
  .application-dialog__close { right: -6px; }

  .course-hero { width: calc(100% - 32px); }
  .course-hero__card { min-height: 984px; padding-top: 26px; }
  .course-hero__badges { max-width: 100%; gap: 8px; }
  .course-hero__start { min-height: 33px; padding: 6px 12px; font-size: 14px; }
  .course-hero__badges .promotion-badge { width: 160px; }
  .course-hero__intro { max-width: none; margin-top: 27px; }
  .course-hero h1 { font-size: 32px; line-height: 42px; }
  .course-hero__description { font-size: 16px; line-height: 21px; }
  .course-hero__benefits { max-width: none; }
  .course-hero__benefits li:first-child p,
  .course-hero__benefits li:last-child p { text-wrap: balance; }
  .course-hero__actions { flex-direction: column; margin-top: 22px; }
  .doula-page .course-hero__button { flex: none; width: 100%; }
  .course-hero__refund { margin-top: 14px; margin-bottom: 14px; }
  .course-hero__art { width: 337.848px; height: 254.989px; margin: auto calc((100% - 337.848px) / 2) 0; }
  .course-hero__shape--tablet { display: none; }
  .course-hero__shape--mobile { display: grid; top: 14.83px; left: 0; width: 337.848px; height: 240.166px; }
  .course-hero__shape--mobile img { transform: rotate(84.21deg) skewX(-2.33deg) scaleY(-1); }
  .course-hero__portrait { left: 45.95px; width: 232.154px; height: 254.989px; }
  .hero-rating { top: auto; right: auto; bottom: 14px; left: 22px; }
  .hero-rating__score-group { width: 83px; }
  .hero-rating__yandex--desktop { display: none !important; }
  .hero-rating__yandex--mobile { display: block !important; }
  .hero-rating__reviews { font-size: 14px; }

  .doula-role,
  .audience-section,
  .stories-section,
  .learning-section,
  .graduate-profile,
  .income-calculator,
  .course-program,
  .learning-process { width: calc(100% - 32px); margin-top: 64px; }
  .doula-role__heading h2,
  .audience-section__heading h2,
  .stories-section__heading h2 { font-size: 28px; }
  .doula-role__heading p,
  .audience-section__heading p,
  .stories-section__heading p { margin-top: 16px; }
  .doula-role__card { gap: 24px; margin-top: 28px; }
  .doula-role__layout { display: flex; flex-direction: column; gap: 25px; }
  .doula-role__image { flex: none; margin-bottom: 5px; }
  .doula-role__boundary { padding-inline: 16px; }
  .doula-role__boundary-heading { gap: 8px; }

  .audience-section__grid { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .audience-card .content-title { font-size: 20px; line-height: 26px; }

  .stories-section { --story-card-width: min(324px, calc(100% - 34px)); --story-card-height: 456px; --story-card-top: 17px; }
  .stories-stage { margin-top: 28px; }
  .stories-section.is-ready .stories-stage { height: 490px; }
  .stories-section.is-ready .stories-stage::after { display: none; }
  .story-card__text { font-size: 15px; line-height: 19px; }
  .story-card:not(.is-active) .story-card__avatar { width: 63px; height: 63px; }
  .story-card:not(.is-active) .story-card__divider-full { display: block; }
  .story-card:not(.is-active) .story-card__divider-side { display: none !important; }
  .stories-section__controls { margin-top: 28px; }
  .stories-section__arrows { gap: 18px; }

  .learning-section > h2 { max-width: 263px; margin-inline: auto; font-size: 28px; }
  .learning-section__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "practice" "physiology" "hospital" "support" "techniques" "preparation";
    gap: 12px;
    margin-top: 28px;
  }
  .learning-card { padding-block: 16px; }
  .learning-card .content-title { font-size: 22px; line-height: 29px; }
  .learning-card p { font-size: 16px; line-height: 21px; }
  .learning-card--practice { min-height: 308px; }
  .learning-card__picture img { position: absolute; top: -9.42%; left: -5.22%; width: 123.85%; height: 109.42%; object-fit: fill; }
  .learning-card__content p { max-width: 202px; }
  .learning-card--preparation .content-title { max-width: 273px; }

  .graduate-profile__heading h2 { font-size: 28px; }
  .graduate-profile__heading > p { max-width: 272px; margin: 16px auto 0; font-size: 16px; line-height: 21px; }
  .graduate-profile__layout { margin-top: 28px; }
  .graduate-profile__identity { padding-block: 18px; }
  .graduate-profile__person { align-items: flex-start; }
  .graduate-profile__portrait { width: 81px; height: 81px; }
  .graduate-profile__profession { font-size: 20px; line-height: 26px; }
  .graduate-profile__name { font-size: 18px; line-height: 23px; }
  .graduate-profile__columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .graduate-profile .content-title { font-size: 20px; line-height: 26px; }
  .graduate-profile__documents { grid-template-columns: minmax(0, 1fr); }
  .graduate-profile__document { min-height: 0; }

  .income-calculator__heading h2 { font-size: 28px; }
  .income-calculator__heading > p { margin-top: 16px; font-size: 16px; line-height: 21px; }
  .income-calculator__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .income-calculator__count-label { font-size: 16px; line-height: 21px; }
  .income-range { height: 56px; }
  .income-range__value { top: 5px; }
  .income-calculator__summary { gap: 8px; }
  .income-calculator__total { font-size: 32px; }

  .course-program > h2 { font-size: 28px; }
  .course-program__list { margin-top: 28px; }
  .doula-page .program-stage__header button { font-size: 20px; }
  .program-stage:first-child .program-stage__header button { font-size: 22px; }
  .doula-page .course-program__access { margin-top: 28px; }

  .teachers-section { margin-top: 64px; }
  .teachers-section > h2 { width: calc(100% - 32px); font-size: 28px; }
  .teachers-section__viewport { grid-auto-columns: calc(100% - 20px); gap: 12px; width: calc(100% - 32px); margin-top: 28px; }
  .teacher-card { min-height: 597px; }
  .teacher-card h3 { font-size: 20px; }
  .teachers-section__controls { gap: 16px; width: calc(100% - 32px); margin-top: 28px; }

  .learning-process > h2 { font-size: 28px; }
  .learning-timeline { --timeline-top: 20px; --timeline-length: 884px; margin-top: 32px; }
  .learning-step { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; min-height: 220px; }
  .learning-step:nth-child(4) { min-height: 224px; }
  .learning-step__marker { width: 40px; height: 40px; }
  .learning-step__icon { width: 23.2258px; height: 23.2258px; }
  .learning-step--webinar { --step-icon: url("assets/images/process-webinar-mobile.svg"); }
  .learning-step--book { --step-icon: url("assets/images/process-book-mobile.svg"); }
  .learning-step--message { --step-icon: url("assets/images/process-message-mobile.svg"); }
  .learning-step--glow { --step-icon: url("assets/images/process-glow-mobile.svg"); }
  .learning-step--hand { --step-icon: url("assets/images/process-hand-mobile.svg"); }
  .learning-step h3 { font-size: 22px; }
  .learning-step p { font-size: 16px; }
  .learning-timeline__track { left: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-doula *, .page-doula *::before, .page-doula *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 359px) {
  .stories-section__pagination { gap: 10px; }
}
