@import url("https://fonts.googleapis.com/css2?family=Onest:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&display=swap");

/* Guest landing: never use dark / invert theme (see base.html landing-force-light). */
html.landing-force-light {
  color-scheme: light;
}

html.is-intro-scroll-gated {
  overflow: hidden;
  overscroll-behavior-y: none;
}

html.is-intro-scroll-gated body {
  overflow: hidden;
  overscroll-behavior-y: none;
}

.landing-page .page {
  flex: 1 0 auto;
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 0;
}

.landing-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hand: "Caveat", "Onest", cursive;
  --landing-block-gap: 80px;
  /* Include the iOS safe-area (status bar / notch) so the sticky story top and content
     offsets stay correct when the fixed header is extended up into the safe area. */
  --landing-header-base-h: calc(56px + env(safe-area-inset-top, 0px));
  --story-frame-gap: 6px;
  --story-top-extra: 5px;
  --landing-header-h: calc(var(--landing-header-base-h) + var(--story-frame-gap) + var(--story-top-extra));
  --story-v-gap: var(--story-frame-gap);
  --story-available-h: calc(100svh - var(--landing-header-h));
  --story-card-h: calc(var(--story-available-h) - (var(--story-v-gap) * 2));
}

/* Mobile / in-app browsers: scroll_story.js measures the viewport height once into
   --landing-vh-lock (px) and refreshes it only when the window WIDTH changes. Basing the story
   height on that fixed value (instead of svh) stops the block from resizing — and the content
   from jumping — when Telegram's address bar shows/hides on scroll. --story-card-h derives from
   --story-available-h, so it becomes stable too. */
.landing-page.landing-vh-locked {
  --story-available-h: calc(var(--landing-vh-lock) - var(--landing-header-h));
}

.landing-page button,
.landing-page input,
.landing-page textarea,
.landing-page select {
  font-family: inherit;
}

/* Landing-only topbar mode: always use mobile header layout. */
.landing-page .topbar {
  box-sizing: border-box;
  /* Extend the bar up into the iOS safe area so nothing of the page shows above it in
     in-app browsers (Telegram/Instagram/...) where the address bar sits on top. */
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  /* Solid background (no backdrop blur): kills per-frame repaint jank in WKWebView and
     prevents the page from being seen through the bar. */
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-page .topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 56px;
  padding: 8px 14px;
  gap: 10px;
  justify-content: flex-start;
}

.landing-page .topbar__left,
.landing-page .topbar__right {
  display: none !important;
}

.landing-page .mnav__toggle,
.landing-page .mnav__brand {
  display: inline-flex !important;
}

.landing-page .mnav__toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.landing-page .mnav__burger {
  width: 18px;
  height: 12px;
  position: relative;
  display: block;
}

.landing-page .mnav__burger::before,
.landing-page .mnav__burger::after,
.landing-page .mnav__burger {
  background: currentColor;
}

.landing-page .mnav__burger::before,
.landing-page .mnav__burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
}

.landing-page .mnav__burger {
  height: 2px;
  border-radius: 999px;
}

.landing-page .mnav__burger::before {
  top: -5px;
}

.landing-page .mnav__burger::after {
  top: 5px;
}

.landing-page .mnav__brand {
  gap: 10px;
  align-items: center;
  text-decoration: none;
  user-select: none;
  flex: 0 1 auto;
  min-width: 0;
}

.landing-page .landing-topbar__cta {
  margin-left: auto;
  height: 36px;
  padding-inline: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  background: #f97316;
  color: #fff;
  box-shadow:
    0 2px 8px rgba(234, 88, 12, 0.42),
    0 6px 20px rgba(17, 17, 17, 0.14);
}

.landing-page .landing-topbar__cta:hover {
  background: #ea580c;
  color: #fff;
  box-shadow:
    0 3px 12px rgba(234, 88, 12, 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
}

.landing-page .mnav__brand-text {
  font-weight: 950;
  font-size: 18px;
}

html.invert-images .landing-page .mnav__toggle {
  background: rgba(28, 22, 32, 1);
  border-color: rgba(255, 255, 255, 0);
  color: #fff;
}

.landing-shell {
  display: grid;
  gap: var(--landing-block-gap);
  margin: 0 auto 60px;
  width: min(100%, 1240px);
  padding-bottom: 0;
  overflow-x: hidden;
}

.landing-shell:has(#process_step_2_plan .process-step__calendar-widget.is-year-view),
.landing-shell.landing-shell--cal-year-unclip,
.landing-shell:has(#future_block_2) {
  overflow-x: visible;
}

/* plan_calculator: mobile sticky preview needs a non-clipping x-axis on shell (overflow-x:hidden breaks sticky in WebKit/Blink). */
@media (max-width: 768px) {
  .landing-shell:has(#plan_calculator) {
    overflow-x: visible;
  }
}

.landing-block {
  position: relative;
  min-width: 0;
}

.landing-block--placeholder {
  min-height: 0;
}

.landing-placeholder__glass {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-height: clamp(220px, calc(100svh - 300px), 420px);
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(124, 108, 255, 0.2);
  background:
    radial-gradient(circle at 10% 10%, rgba(171, 158, 255, 0.32), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(130, 215, 255, 0.2), transparent 45%),
    rgba(255, 255, 255, 0.88);
}

.landing-placeholder__title,
.landing-empty__title {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.landing-placeholder__lines {
  display: grid;
  gap: 8px;
}

.landing-placeholder__line {
  margin: 0;
  font-size: clamp(24px, 8vw, 38px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(19, 19, 19, 0.98);
  opacity: 1;
}

.landing-capture-form {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  max-width: min(100%, 620px);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.landing-capture-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.1) 18%,
      rgba(255, 255, 255, 0.03) 45%,
      rgba(255, 255, 255, 0.03) 55%,
      rgba(255, 255, 255, 0.1) 82%,
      rgba(255, 255, 255, 0.28) 100%
    );
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28);
}

.landing-capture-form::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  backdrop-filter: blur(11px) saturate(1.22) contrast(1.08);
  -webkit-backdrop-filter: blur(11px) saturate(1.22) contrast(1.08);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.04) 18%,
      rgba(255, 255, 255, 0.01) 50%,
      rgba(255, 255, 255, 0.04) 82%,
      rgba(255, 255, 255, 0.14) 100%
    );
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.9) 16%,
      rgba(0, 0, 0, 0.12) 34%,
      rgba(0, 0, 0, 0.12) 66%,
      rgba(0, 0, 0, 0.9) 84%,
      rgba(0, 0, 0, 0.98) 100%
    );
  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.9) 16%,
      rgba(0, 0, 0, 0.12) 34%,
      rgba(0, 0, 0, 0.12) 66%,
      rgba(0, 0, 0, 0.9) 84%,
      rgba(0, 0, 0, 0.98) 100%
    );
}

.landing-capture-form > * {
  position: relative;
  z-index: 1;
}

.landing-capture-form__field {
  display: grid;
  gap: 6px;
}

.landing-capture-form__label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.8);
}

.landing-capture-form__input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  font-size: 16px;
  color: rgba(17, 17, 17, 0.95);
  outline: none;
}

.landing-capture-form__input:focus,
.landing-capture-form__select:focus {
  border-color: rgba(18, 18, 18, 0.35);
}

.landing-capture-form__select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 9px;
  color: rgba(17, 17, 17, 0.95);
}

.landing-capture-form__select:invalid {
  color: rgba(17, 17, 17, 0.45);
}

.landing-capture-form__select option {
  color: rgba(17, 17, 17, 0.95);
}

.landing-capture-form__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 20, 20, 0.12);
}

.landing-capture-form__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.landing-capture-form__switch-option {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.68);
  cursor: pointer;
  user-select: none;
}

.landing-capture-form__radio:checked + .landing-capture-form__switch-option {
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
}

.landing-capture-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.landing-capture-form__feedback {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.35;
}

.landing-capture-form__feedback--ok {
  color: rgb(22 101 52);
}

.landing-capture-form__feedback--err {
  color: rgb(153 27 27);
}

.landing-capture-form__submit {
  margin-top: 2px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.95);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.landing-capture-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#future_block_2 {
  /* Как подложка .mark--orange (h2); ч/б PNG плиток 1–3 (ege) перекрашивается через mask + fill */
  --block2-deco-gray: #d4d4d4;
  /* стрелка CTA: ч/б PNG -> цвет заливки (mask) */
  --future-block2-curl-pink: #f472b6;
  /* форма захвата: не шире текущего эталона на лендинге */
  --block2-capture-max-width: 583px;
  /* декор телефона: эталон при max-width блока (масштаб = 100cqw / 583) */
  --block2-phone-deco-size: 69px;
  --block2-phone-deco-inset: 50px;
  --block2-phone-deco-inset-top: 100px;
  /* галочки формы: 1rem пока влезает длиннейшая строка, потом shrink синхронно */
  --block2-benefit-font-max: 1rem;
  --block2-benefit-check-pad: 18px;
  --block2-benefit-longest-em: 17.875;
  /* заголовок формы: 1 строка широко; <= break → 2 строки + scale */
  --block2-cta-title-font: clamp(1.4rem, 4vw, 2.2rem);
  --block2-cta-title-break: 393px;
  --block2-cta-title-narrow-scale: 1.3;
  /* одна колонка плиток (моб.): верхняя граница ширины карточек */
  --block2-tiles-stacked-max-width: 680px;
  /* моб. стек: максимальная ширина блока подписи (перенос строк); в правиле — min(100%, var) */
  --block2-tile-sub-max-w-stacked: 28rem;
  position: relative;
  overflow: visible;
}

#future_block_2 .landing-placeholder__title {
  position: relative;
  z-index: 2;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow:
    0 2px 4px rgba(18, 18, 18, 0.14),
    0 8px 20px rgba(18, 18, 18, 0.22);
}

#future_block_2 .landing-placeholder__line {
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.2;
  font-weight: 700;
}

/* #future_block_2: колонка — заголовок, затем .future-block2__tiles с тремя плитками. Расстояния — margin у заголовка и gap у ряда (переменные на .glass, править в одном месте). */
#future_block_2 .landing-placeholder__glass {
  --block2-title-margin-top: 0px;
  /* отступ снизу у заголовка до ряда плиток (моб. / десктоп — ниже) */
  --block2-title-margin-bottom: 12px;
  /* зазор между тремя карточками в ряд (только min-width: 981px) */
  --block2-tiles-column-gap: 16px;
  /* зазор между карточками в столбик (мобилка) */
  --block2-tiles-row-gap-stacked: 12px;

  margin-top: 75px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  /* Hug content (заголовок + плитки): база .landing-placeholder__glass даёт
     min-height до 420px и оставляет пустоту под плитками — убираем её, чтобы
     следующий блок (#messengers_contact) шёл сразу под плитками. */
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

#future_block_2 .future-block2__tiles {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 0;
  padding-left: 20px;
  padding-right: 20px;
  overflow: visible;
}

#future_block_2 .future-block2__tiles-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--block2-tiles-column-gap, 16px);
  row-gap: 0;
  align-items: start;
  width: 100%;
  min-width: 0;
}

#future_block_2 .landing-block2__title {
  container-name: block2-title;
  container-type: inline-size;
  margin: var(--block2-title-margin-top) 0 var(--block2-title-margin-bottom);
  color: #111;
  background: transparent;
  padding: 0;
  border-radius: 0;
  overflow-wrap: normal;
  word-break: normal;
}

#future_block_2 .landing-block2__title br.landing-block2__title-br {
  display: none;
}

@container block2-title (max-width: 42rem) {
  #future_block_2 .landing-block2__title br.landing-block2__title-br--after-free {
    display: block;
  }
}


@supports not (container-type: inline-size) {
  @media (max-width: 672px) {
    #future_block_2 .landing-block2__title br.landing-block2__title-br--after-free {
      display: block;
    }
  }

}

#future_block_3 {
  margin-top: 100px;
}

/* Шапка секции: заголовок, подзаголовок, мульт-иллюстрация (над карточкой) */
#future_block_3 .landing-block3__title {
  display: block;
  margin: 25px 0 25px;
  padding: 0;
  border-radius: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  color: #111;
  background: transparent;
  overflow-wrap: normal;
  word-break: normal;
}

#future_block_3 .landing-block3__title-variant {
  display: none;
}

#future_block_3 .landing-block3__title-variant--3 {
  display: block;
}

@media (min-width: 480px) {
  #future_block_3 .landing-block3__title-variant--3 {
    display: none;
  }

  #future_block_3 .landing-block3__title-variant--2 {
    display: block;
  }
}

@media (min-width: 992px) {
  #future_block_3 .landing-block3__title-variant--2 {
    display: none;
  }

  #future_block_3 .landing-block3__title-variant--1 {
    display: block;
    white-space: nowrap;
  }
}

#future_block_3 .landing-block3__subtitle {
  margin: 0 0 10px;
  text-align: center;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
  font-weight: 800;
}

#future_block_3 .future-block2__phone-photo.landing-block3__deco-figure,
#future_block_3 .future-block2__phone-photo {
  width: 100%;
  margin: 10px 0 16px;
  display: flex;
  justify-content: center;
  flex: 0 0 auto;
}

#future_block_3 .landing-block3__deco-figure {
  position: relative;
  z-index: 0;
  overflow: visible;
}

#future_block_3 .landing-block3__deco-back {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(450px, 69vw, 660px);
  height: auto;
  --block3-deco-back-shift-x: -20px;
  --block3-deco-back-shift-y: 150px;
  transform: translate(
    calc(-50% + var(--block3-deco-back-shift-x)),
    calc(-44% + var(--block3-deco-back-shift-y))
  );
  transform-origin: center center;
  pointer-events: none;
  user-select: none;
}

#future_block_3 .landing-block3__deco-back--purple {
  z-index: 0;
  opacity: 0.38;
}

#future_block_3 .landing-block3__deco-back--yellow {
  z-index: 0;
  opacity: 1;
  overflow: visible;
  transform: translate(
    calc(-50% + var(--block3-deco-back-shift-x)),
    calc(-44% + var(--block3-deco-back-shift-y))
  ) rotate(-100deg) scale(0.975);
}

#future_block_3 .landing-block3__deco-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

#future_block_3 .landing-block3__deco-star {
  position: absolute;
  width: var(--block3-star-size, 48px);
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--block3-star-rotate, 0deg));
  opacity: var(--block3-star-opacity, 0.5);
}

#future_block_3 .landing-block3__deco-form {
  position: absolute;
  width: var(--block3-form-size, 84px);
  height: auto;
  opacity: var(--block3-form-opacity, 0.48);
  transform: translate(
    calc(-50% + var(--block3-form-shift-x, 0px)),
    calc(-50% + var(--block3-form-shift-y, 0px))
  ) rotate(var(--block3-form-rotate, 0deg));
  --block3-form-shift-y: 50px;
}

#future_block_3 .landing-block3__deco-form--a {
  left: 14%;
  top: 22%;
  --block3-form-size: clamp(72px, 7.5vw, 96px);
  --block3-form-rotate: -8deg;
  --block3-form-opacity: 0.50;
  --block3-form-shift-x: 175px;
}

#future_block_3 .landing-block3__deco-form--b {
  left: 86%;
  top: 24%;
  --block3-form-size: clamp(72px, 7.5vw, 96px);
  --block3-form-rotate: 6deg;
  --block3-form-opacity: 0.48;
  --block3-form-shift-x: -175px;
}

/* ≤890px: фиксируем расстояние между формулами (как на референсе ~890×508), не сжимаем к персонажу */
@media (max-width: 890px) {
  #future_block_3 .landing-block3__deco-form--a,
  #future_block_3 .landing-block3__deco-form--b {
    left: 50%;
    --block3-form-size: 72px;
  }

  #future_block_3 .landing-block3__deco-form--a {
    --block3-form-shift-x: -145px;
  }

  #future_block_3 .landing-block3__deco-form--b {
    --block3-form-shift-x: 145px;
  }
}

#future_block_3 .landing-block3__deco-star--01 {
  left: 22%;
  top: 20%;
  --block3-star-size: clamp(36px, 4.5vw, 56px);
  --block3-star-rotate: -10deg;
  --block3-star-opacity: 0.55;
}

#future_block_3 .landing-block3__deco-star--02 {
  left: 78%;
  top: 18%;
  --block3-star-size: clamp(40px, 5vw, 64px);
  --block3-star-rotate: 6deg;
  --block3-star-opacity: 0.60;
}

#future_block_3 .landing-block3__deco-star--03 {
  left: 14%;
  top: 46%;
  --block3-star-size: clamp(34px, 4.2vw, 52px);
  --block3-star-rotate: -14deg;
  --block3-star-opacity: 0.50;
}

#future_block_3 .landing-block3__deco-star--04 {
  left: 86%;
  top: 44%;
  --block3-star-size: clamp(32px, 3.8vw, 48px);
  --block3-star-rotate: 12deg;
  --block3-star-opacity: 0.48;
}

#future_block_3 .landing-block3__deco-star--05 {
  left: 28%;
  top: 86%;
  --block3-star-size: clamp(36px, 4.3vw, 54px);
  --block3-star-rotate: -6deg;
  --block3-star-opacity: 0.52;
}

#future_block_3 .landing-block3__deco-star--06 {
  left: 72%;
  top: 84%;
  --block3-star-size: clamp(30px, 3.5vw, 44px);
  --block3-star-rotate: 18deg;
  --block3-star-opacity: 0.42;
}

#future_block_3 .landing-block3__deco-star--07 {
  left: 30%;
  top: 58%;
  --block3-star-size: clamp(26px, 3vw, 38px);
  --block3-star-rotate: -20deg;
  --block3-star-opacity: 0.35;
}

#future_block_3 .landing-block3__deco-star--08 {
  left: 70%;
  top: 62%;
  --block3-star-size: clamp(28px, 3.2vw, 40px);
  --block3-star-rotate: 8deg;
  --block3-star-opacity: 0.38;
}

#future_block_3 .landing-block3__deco-star--09 {
  left: 16%;
  top: 72%;
  --block3-star-size: clamp(24px, 2.8vw, 36px);
  --block3-star-rotate: -16deg;
  --block3-star-opacity: 0.32;
}

#future_block_3 .landing-block3__deco-star--10 {
  left: 84%;
  top: 76%;
  --block3-star-size: clamp(22px, 2.6vw, 34px);
  --block3-star-rotate: 22deg;
  --block3-star-opacity: 0.30;
}

@media (max-width: 767px) {
  #future_block_3 .landing-block3__deco-back {
    width: clamp(390px, 132vw, 540px);
  }

  #future_block_3 .landing-block3__deco-back--purple {
    opacity: 0.34;
    transform: translate(
      calc(-50% + var(--block3-deco-back-shift-x)),
      calc(-42% + var(--block3-deco-back-shift-y))
    );
  }

  #future_block_3 .landing-block3__deco-back--yellow {
    opacity: 1;
    transform: translate(
      calc(-50% + var(--block3-deco-back-shift-x)),
      calc(-42% + var(--block3-deco-back-shift-y))
    ) rotate(-100deg) scale(0.975);
  }

  #future_block_3 .landing-block3__deco-star--01 {
    left: 18%;
    top: 16%;
    --block3-star-size: clamp(28px, 8vw, 44px);
  }

  #future_block_3 .landing-block3__deco-star--02 {
    left: 82%;
    top: 14%;
    --block3-star-size: clamp(30px, 8.5vw, 48px);
  }

  #future_block_3 .landing-block3__deco-star--03 {
    left: 10%;
    top: 42%;
    --block3-star-size: clamp(26px, 7.5vw, 40px);
  }

  #future_block_3 .landing-block3__deco-star--04 {
    left: 90%;
    top: 40%;
    --block3-star-size: clamp(24px, 7vw, 36px);
  }

  #future_block_3 .landing-block3__deco-star--05 {
    left: 22%;
    top: 84%;
    --block3-star-size: clamp(26px, 7.5vw, 42px);
  }

  #future_block_3 .landing-block3__deco-star--06 {
    left: 78%;
    top: 82%;
    --block3-star-size: clamp(22px, 6.5vw, 34px);
  }

  #future_block_3 .landing-block3__deco-star--07 {
    left: 26%;
    top: 56%;
    --block3-star-size: clamp(22px, 6vw, 30px);
    --block3-star-opacity: 0.30;
  }

  #future_block_3 .landing-block3__deco-star--08 {
    left: 74%;
    top: 58%;
    --block3-star-size: clamp(22px, 6vw, 32px);
    --block3-star-opacity: 0.32;
  }

  #future_block_3 .landing-block3__deco-star--09 {
    left: 14%;
    top: 74%;
    --block3-star-size: clamp(20px, 5.5vw, 28px);
    --block3-star-opacity: 0.28;
  }

  #future_block_3 .landing-block3__deco-star--10 {
    left: 86%;
    top: 78%;
    --block3-star-size: clamp(20px, 5.5vw, 26px);
    --block3-star-opacity: 0.26;
  }
}

@media (max-width: 480px) {
  #future_block_3 .landing-block3__deco-star--09,
  #future_block_3 .landing-block3__deco-star--10 {
    display: none;
  }
}

#future_block_3 .landing-block3__deco-photo {
  display: block;
  width: min(360px, 100%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transform: translateY(25px);
}

#future_block_3 .landing-block3__title .landing-block2__mark {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#future_block_3 .landing-placeholder__glass {
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
  container-type: inline-size;
  container-name: block3-card;
}

/* ——— Карточка «профиль основателя» (новая вёрстка) ——— */
#future_block_3 .landing-block3__layout--profile {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
}

#future_block_3 .landing-block3__profile-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  /* visible: мульт-аватар может слегка выходить за кадр .media-frame */
  overflow: visible;
  box-sizing: border-box;
}

#future_block_3 .landing-block3__profile-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px 32px;
  padding: 28px 28px 20px;
  align-items: stretch;
  min-width: 0;
}

#future_block_3 .landing-block3__media {
  min-width: 0;
  overflow: visible;
}

#future_block_3 .landing-block3__media-frame {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  border: 4px solid #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 4;
  max-height: 480px;
  background: #e8e4f7;
}

#future_block_3 .landing-block3__portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

#future_block_3 .landing-block3__stamps {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

#future_block_3 p.landing-block3__stamp {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 0.4em 0.55em;
  max-width: 11.5em;
  font-size: clamp(8px, 0.9cqw, 11px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #4a3a9e;
  background: rgba(255, 255, 255, 0.88);
  border: 2px dashed rgba(91, 62, 200, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#future_block_3 .landing-block3__stamp--image {
  position: absolute;
  box-sizing: border-box;
  display: block;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  max-width: 31%;
  object-fit: contain;
  background: none;
  border: none;
  box-shadow: none;
  /* Тёмный растр → белый (кана/прозрачность маски) */
  filter: brightness(0) invert(1) drop-shadow(0 0.5px 2px rgba(0, 0, 0, 0.25));
}

/* Нижняя кромка портрета, чуть внутрь от левой — площадь пиджака, читабельно; пара друг над другом */
#future_block_3 .landing-block3__stamp--1 {
  top: auto;
  bottom: 10%;
  left: 20%;
  right: auto;
  transform: rotate(-5deg);
}

#future_block_3 .landing-block3__stamp--2 {
  top: auto;
  bottom: 2%;
  left: 20%;
  right: auto;
  max-width: 16em;
  transform: rotate(4deg);
}

#future_block_3 p.landing-block3__stamp--2 {
  font-size: clamp(7px, 0.8cqw, 10px);
}

#future_block_3 .landing-block3__stamp--image.landing-block3__stamp--1 {
  max-width: min(34%, 140px);
  right: auto;
}

#future_block_3 .landing-block3__stamp--image.landing-block3__stamp--2 {
  max-width: min(30%, 117px);
  right: auto;
  left: 20%;
}

#future_block_3 .landing-block3__avatar-wrap {
  position: absolute;
  right: -4px;
  bottom: 12px;
  z-index: 3;
  width: min(34%, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 2px rgba(123, 97, 255, 0.22),
    0 8px 22px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  background: #fff;
}

#future_block_3 .landing-block3__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#future_block_3 .landing-block3__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#future_block_3 .landing-block3__card-badge {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5b3ec8;
  background: rgba(123, 97, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 10px;
}

#future_block_3 .landing-block3__card-title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.1cqw, 1.7rem);
  font-weight: 800;
  line-height: 1.18;
  color: #111;
  text-transform: none;
  letter-spacing: -0.02em;
}

#future_block_3 .landing-block3__bio {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}

#future_block_3 .landing-block3__bio-p {
  margin: 0;
  font-size: clamp(0.9rem, 1.1cqw, 1.02rem);
  line-height: 1.45;
  color: rgba(19, 19, 26, 0.92);
  font-weight: 500;
  text-align: left;
}

#future_block_3 .landing-block3__bio-p:nth-of-type(2) {
  font-weight: 700;
}

#future_block_3 .landing-block3__stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#future_block_3 .landing-block3__stat-tile--wide {
  grid-column: 1 / -1;
}

#future_block_3 .landing-block3__stat-tile {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

#future_block_3 .landing-block3__stat-icon-wrap {
  flex: 0 0 auto;
  color: #7b61ff;
  line-height: 0;
}

#future_block_3 .landing-block3__stat-icon {
  display: block;
  width: 32px;
  height: 32px;
}

#future_block_3 .landing-block3__stat-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25em 0.4em;
  min-width: 0;
  flex: 1 1 auto;
}

#future_block_3 .landing-block3__num--inline {
  display: inline-block;
  vertical-align: baseline;
  font-size: clamp(1.1rem, 1.3cqw, 1.35rem);
  line-height: 1.1;
  font-weight: 800;
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.08em 0.12em 0.06em;
  border-radius: 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#future_block_3 .landing-block3__stat-label {
  font-weight: 700;
  font-size: clamp(0.86rem, 1.02cqw, 0.98rem);
  line-height: 1.2;
  color: rgba(19, 19, 26, 0.96);
}

#future_block_3 .landing-block3__label-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

#future_block_3 .landing-block3__stat-sublabel {
  font-size: clamp(0.65rem, 0.8cqw, 0.7rem);
  font-weight: 500;
  line-height: 1.1;
  color: rgba(19, 19, 19, 0.5);
  white-space: normal;
}

/* Десктоп: метрики всегда в 2+ строки (число сверху, текст ниже) */
@media (min-width: 721px) {
  #future_block_3 .landing-block3__stat-text {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    align-items: start;
    justify-items: start;
    row-gap: 0.24em;
    column-gap: 0;
    width: 100%;
  }

  #future_block_3 .landing-block3__num--inline {
    display: inline-block;
    justify-self: start;
  }

  #future_block_3 .landing-block3__stat-label {
    display: block;
    width: 100%;
  }

  #future_block_3 .landing-block3__label-group {
    width: 100%;
  }
}

#future_block_3 .landing-block3__ask-btn {
  --step-accent: #7b61ff;
  margin: 12px 0 0;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#future_block_3 .landing-block3__ask-btn:hover {
  box-shadow: 0 10px 28px rgba(123, 97, 255, 0.25);
}

#future_block_3 .landing-block3__ask-btn:focus-visible {
  outline-color: rgba(123, 97, 255, 0.55);
}

#future_block_3 .landing-block3__ask-btn:active {
  transform: translateY(0);
}

/* Планшетный режим отключен для block3 profile:
   используем только базовый wide + container-driven transition, чтобы не было 4-го состояния. */
@media (min-width: 721px) and (max-width: 720px) {
  #future_block_3 .landing-block3__profile-main {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0 0;
    padding: 20px 20px 0;
  }

  #future_block_3 .landing-block3__media {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 12px;
  }

  #future_block_3 .landing-block3__media-frame {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    max-height: 340px;
    /* аватар вылезает вниз, не обрезать */
    overflow: visible;
  }

  #future_block_3 .landing-block3__stamps {
    z-index: 2;
  }

  #future_block_3 .landing-block3__stamp--1 {
    top: auto;
    bottom: 10%;
    left: 20%;
    right: auto;
    max-width: 10em;
    transform: rotate(-4deg);
  }

  #future_block_3 .landing-block3__stamp--2 {
    top: auto;
    bottom: 2%;
    left: 20%;
    right: auto;
    max-width: 14em;
    transform: rotate(4deg);
  }

  #future_block_3 .landing-block3__avatar-wrap {
    right: auto;
    left: 50%;
    bottom: 0;
    width: min(100px, 20vw, 30%);
    transform: translate(-50%, 50%);
  }

  #future_block_3 .landing-block3__content {
    align-items: center;
    text-align: center;
    max-width: 560px;
    width: 100%;
    margin: 28px auto 0;
    padding: 0 0 0;
  }

  #future_block_3 .landing-block3__card-badge {
    margin-left: auto;
    margin-right: auto;
  }

  #future_block_3 .landing-block3__card-title {
    text-align: center;
  }

  #future_block_3 .landing-block3__bio {
    text-align: center;
  }

  #future_block_3 .landing-block3__stat-grid {
    width: 100%;
    max-width: 100%;
  }

  #future_block_3 .landing-block3__stat-tile {
    align-items: center;
  }

  #future_block_3 .landing-block3__stat-text {
    text-align: center;
    align-items: center;
    justify-items: center;
  }

  #future_block_3 .landing-block3__num--inline {
    justify-self: center;
  }

  #future_block_3 .landing-block3__stat-label {
    text-align: center;
  }

  #future_block_3 .landing-block3__label-group {
    align-items: center;
    width: 100%;
  }

  #future_block_3 .landing-block3__ask-btn {
    margin: 20px -20px 0;
    width: auto;
    max-width: none;
    align-self: stretch;
    min-height: 56px;
    border-radius: 0 0 30px 30px;
    padding: 16px 20px;
  }
}

/* Десктоп: метрики слева/в начале строк, как в двухколоночной карточке */
@media (min-width: 921px) {
  #future_block_3 .landing-block3__stat-text {
    justify-items: start;
  }

  #future_block_3 .landing-block3__num--inline {
    justify-self: start;
  }

  #future_block_3 .landing-block3__label-group {
    align-items: flex-start;
  }
}

/* Две колонки: высоту определяет только .content (in-flow), фото — absolute на всю колонку */
@container block3-card (min-width: 681px) {
  #future_block_3 .landing-block3__profile-main {
    display: block;
    position: relative;
  }

  #future_block_3 .landing-block3__content {
    position: relative;
    z-index: 1;
    margin-left: calc(32px + (100% - 32px) * 0.45);
    width: calc((100% - 32px) * 0.55);
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  #future_block_3 .landing-block3__media {
    position: absolute;
    left: 28px;
    top: 28px;
    bottom: 20px;
    width: calc((100% - 88px) * 0.45);
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  #future_block_3 .landing-block3__media-frame {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    height: 100%;
    aspect-ratio: auto;
  }

  #future_block_3 .landing-block3__portrait {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

@supports not (container-type: inline-size) {
  @media (min-width: 741px) {
    #future_block_3 .landing-block3__profile-main {
      display: block;
      position: relative;
    }

    #future_block_3 .landing-block3__content {
      position: relative;
      z-index: 1;
      margin-left: calc(32px + (100% - 32px) * 0.45);
      width: calc((100% - 32px) * 0.55);
      min-width: 0;
      max-width: 100%;
      box-sizing: border-box;
    }

    #future_block_3 .landing-block3__media {
      position: absolute;
      left: 28px;
      top: 28px;
      bottom: 20px;
      width: calc((100% - 88px) * 0.45);
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    #future_block_3 .landing-block3__media-frame {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      min-height: 0;
      max-height: none;
      height: 100%;
      aspect-ratio: auto;
    }

    #future_block_3 .landing-block3__portrait {
      flex: 1 1 auto;
      min-height: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
    }
  }
}

/* Узкий контейнер: одна колонка */
@container block3-card (max-width: 680px) {
  #future_block_3 .landing-block3__profile-main {
    display: grid;
    position: static;
    grid-template-columns: 1fr;
    padding: 16px 14px 14px;
    gap: 16px;
  }

  #future_block_3 .landing-block3__content {
    margin-left: 0;
    width: 100%;
    max-width: none;
  }

  #future_block_3 .landing-block3__media {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    display: block;
    height: auto;
  }

  #future_block_3 .landing-block3__media-frame {
    flex: initial;
    display: block;
    height: auto;
    max-height: 480px;
    aspect-ratio: 3 / 4;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

  #future_block_3 .landing-block3__portrait {
    flex: initial;
    min-height: 0;
  }

  #future_block_3 .landing-block3__stat-grid {
    grid-template-columns: 1fr;
  }

  #future_block_3 .landing-block3__stat-tile--wide {
    grid-column: 1;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 740px) {
    #future_block_3 .landing-block3__profile-main {
      display: grid;
      position: static;
      grid-template-columns: 1fr;
      padding: 16px 14px 14px;
      gap: 16px;
    }

    #future_block_3 .landing-block3__content {
      margin-left: 0;
      width: 100%;
      max-width: none;
    }

    #future_block_3 .landing-block3__media {
      position: static;
      left: auto;
      right: auto;
      top: auto;
      bottom: auto;
      width: 100%;
      display: block;
      height: auto;
    }

    #future_block_3 .landing-block3__media-frame {
      flex: initial;
      display: block;
      height: auto;
      max-height: 480px;
      aspect-ratio: 3 / 4;
      max-width: 400px;
      margin: 0 auto;
      width: 100%;
    }

    #future_block_3 .landing-block3__portrait {
      flex: initial;
      min-height: 0;
    }

    #future_block_3 .landing-block3__stat-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* ——— Legacy: старый двухколоночный блок по lines (без profile stats) ——— */
#future_block_3 .landing-block3__layout--legacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__stack {
  display: contents;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 18px 16px;
  background: #fff;
  box-shadow: none;
  min-height: 0;
  align-self: start;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__facts .landing-placeholder__lines {
  display: grid;
  gap: 12px;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__fact-item {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 26px);
  line-height: 1.22;
  font-weight: 700;
  color: rgba(19, 19, 26, 0.96);
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__fact-with-caption {
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0.22em;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__fact-text-wrap {
  position: relative;
  display: inline-block;
  vertical-align: bottom;
  line-height: 1;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__fact-sublabel {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: -3px;
  white-space: nowrap;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 500;
  line-height: 1.05;
  color: rgba(19, 19, 19, 0.52);
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__note {
  margin: 2px 0 0;
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.35;
  font-weight: 500;
  color: rgba(19, 19, 19, 0.68);
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__facts .landing-block3__num {
  display: inline-block;
  vertical-align: baseline;
  font-size: 2em;
  line-height: 1;
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.1em 0.16em 0.08em;
  border-radius: 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__cta {
  --step-accent: rgba(124, 108, 255, 0.95);
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  min-height: 48px;
  color: #fff;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 0;
}

#future_block_3 .landing-block3__layout--legacy .landing-block3__photo {
  position: relative;
  flex: 1 1 auto;
  box-sizing: border-box;
  height: auto;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 5px solid #fff;
  background: url("/static/catalog/landing/founder_photo.png") center / cover no-repeat;
}

@container block3-card (max-width: 680px) {
  #future_block_3 .landing-block3__layout--legacy {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #future_block_3 .landing-block3__layout--legacy .landing-block3__stack {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  #future_block_3 .landing-block3__layout--legacy .landing-block3__photo-wrap {
    justify-content: stretch;
    width: 100%;
    padding: 10px 10px 0;
    box-sizing: border-box;
  }

  #future_block_3 .landing-block3__layout--legacy .landing-block3__facts {
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 16px 14px 18px;
    gap: 12px;
  }

  #future_block_3 .landing-block3__layout--legacy .landing-block3__photo {
    flex: 1 1 auto;
    align-self: stretch;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    aspect-ratio: 1;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 740px) {
    #future_block_3 .landing-block3__layout--legacy {
      grid-template-columns: 1fr;
      gap: 0;
    }

    #future_block_3 .landing-block3__layout--legacy .landing-block3__stack {
      display: flex;
      flex-direction: column;
      flex-wrap: nowrap;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      background: #fff;
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 16px;
      padding: 0;
      box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
      overflow: hidden;
    }

    #future_block_3 .landing-block3__layout--legacy .landing-block3__photo-wrap {
      justify-content: stretch;
      width: 100%;
      padding: 10px 10px 0;
      box-sizing: border-box;
    }

    #future_block_3 .landing-block3__layout--legacy .landing-block3__facts {
      border: 0;
      background: transparent;
      box-shadow: none;
      border-radius: 0;
      margin: 0;
      padding: 16px 14px 18px;
      gap: 12px;
    }

    #future_block_3 .landing-block3__layout--legacy .landing-block3__photo {
      flex: 1 1 auto;
      align-self: stretch;
      height: auto;
      width: 100%;
      max-width: 100%;
      margin-inline: 0;
      aspect-ratio: 1;
    }
  }
}

#future_block_2 .landing-block2__tile {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: center;
  container-name: block2-tile;
  container-type: inline-size;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: auto;
  min-height: auto;
  padding: 18px 16px;
  border-radius: 14px;
  border: 0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: none;
  overflow: hidden;
}

/* Десктоп #future_block_2: зазор «заголовок → плитки» и плитки (≈2.2:1). Переменные на .landing-placeholder__glass. */
@media (min-width: 981px) {
  #future_block_2 .landing-placeholder__glass {
    /* расстояние от h2 до ряда карточек — крутить здесь (px), без grid row-gap */
    --block2-title-margin-bottom: 25px;
  }

  #future_block_2 .landing-block2__tile {
    min-height: 0;
    aspect-ratio: 2.2 / 1;
    gap: 4px;
    padding: 8px 10px;
    align-content: center;
  }

  #future_block_2 .landing-block2__tile--1 {
    --tile-icon-size: 136px;
    --tile-icon-position: right -32px bottom -28px;
  }

  #future_block_2 .landing-block2__tile--2 {
    --tile-icon-size: 80px;
    --tile-icon-position: right 6px bottom 4px;
  }

  #future_block_2 .landing-block2__tile .landing-placeholder__line {
    font-size: clamp(13px, 3.8cqi, 19px);
    line-height: 1.15;
  }

  #future_block_2 .landing-block2__tile-sub {
    box-sizing: border-box;
    max-width: min(100%, var(--block2-tile-sub-max-w-stacked, 28rem));
    font-size: clamp(14px, 2.9vw, 17.5px);
    line-height: 1.42;
    margin: 0.45rem auto 0;
    padding-right: 0;
    text-align: center;
  }

  #future_block_2 .landing-block2__tile--3 .landing-placeholder__line {
    line-height: 1.12;
  }

  #future_block_2 .landing-block2__tile--3.landing-block2__tile--3-ege-oge::after {
    right: 5px;
    bottom: 3px;
    width: min(88%, 400px);
    max-height: 200px;
  }

  /* Mobile-only line breaks inside tile copy; desktop flows as one paragraph. */
  #future_block_2 .landing-block2__tile-br--stack-only {
    display: none;
  }
}

#future_block_2 .landing-block2__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.34);
}

#future_block_2 .landing-block2__tile--1 {
  background-color: #fff;
  --tile-icon: url("landing/future_block2_tile1_building_silhouette.png");
  --tile-icon-size: 300px;
  --tile-icon-position: right -68px bottom -64px;
}

#future_block_2 .landing-block2__tile--2 {
  background-color: #fff;
  --tile-icon: url("landing/5plus_transparent.png");
  --tile-icon-size: 172px;
  --tile-icon-position: right 10px bottom 10px;
}

#future_block_2 .landing-block2__tile--3 {
  background-color: #fff;
  --tile-icon: url("landing/trial_platform_tile3.png");
  --tile3-screenshot-top-gap: 151px;
  /* 576×1024 source (full-height phone UI, not cropped like old 1024×930) */
  --tile3-screenshot-aspect: 9 / 16;
}

#future_block_2 .landing-block2__tile--3.landing-block2__tile--3-ege-oge {
  /* Декор вместо скриншота — PNG (править в `catalog/static/.../landing/`). */
  --tile3-ege-oge-deco: url("landing/future_block2_tile3_ege_oge.png");
}

#future_block_2 .landing-block2__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--tile-icon);
  background-size: var(--tile-icon-size, 86px) auto;
  background-position: var(--tile-icon-position, right 12px center);
  background-repeat: no-repeat;
  filter: none;
}

/* Пл. 1–2: силуэт/«5+» = ч/б на прозрачном → тот же серый, что .mark--orange (не чёрный растр) */
#future_block_2 .landing-block2__tile--1::after,
#future_block_2 .landing-block2__tile--2::after {
  background-color: var(--block2-deco-gray, #d4d4d4);
  background-image: none;
  -webkit-mask-image: var(--tile-icon);
  mask-image: var(--tile-icon);
  -webkit-mask-size: var(--tile-icon-size, 86px) auto;
  mask-size: var(--tile-icon-size, 86px) auto;
  -webkit-mask-position: var(--tile-icon-position, right 12px center);
  mask-position: var(--tile-icon-position, right 12px center);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

#future_block_2 .landing-block2__tile--3::after {
  inset: auto;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: var(--tile3-screenshot-aspect);
  top: calc(100% - var(--tile3-screenshot-top-gap));
  background-size: 100% auto;
  background-position: center top;
  opacity: 0.74;
}

/* Tile 3 ege-oge: та же схема, что 1–2 (mask = форма, fill = --block2-deco-gray) */
#future_block_2 .landing-block2__tile--3.landing-block2__tile--3-ege-oge::after {
  inset: auto;
  left: auto;
  top: auto;
  right: clamp(4px, 2cqi, 12px);
  bottom: clamp(4px, 2cqi, 14px);
  width: min(100%, 480px);
  min-height: 128px;
  max-height: 80%;
  height: auto;
  aspect-ratio: auto;
  background-color: var(--block2-deco-gray, #d4d4d4);
  background-image: none;
  -webkit-mask-image: var(--tile3-ege-oge-deco);
  mask-image: var(--tile3-ege-oge-deco);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: right bottom;
  mask-position: right bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 1;
  filter: none;
  transform: none;
}

#future_block_2 .landing-block2__tile .landing-placeholder__line {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(17px, 9cqi, 30px);
  line-height: 1.25;
  font-weight: 700;
  color: rgba(19, 19, 19, 0.95);
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-align: center;
}

/* Третья плитка: длинный заголовок с подзаголовком — перенос как у 1–2. */
#future_block_2 .landing-block2__tile--3 .landing-placeholder__line {
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
}

#future_block_2 .landing-block2__tile-sub {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-width: min(100%, var(--block2-tile-sub-max-w-stacked, 28rem));
  margin: 0.45rem auto 0;
  padding-right: 0;
  font-size: clamp(14px, 2.9vw, 17.5px);
  line-height: 1.42;
  font-weight: 500;
  color: #000;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  text-align: center;
}

#future_block_2 .landing-block2__mark {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Жёлтая подсветка в плитках (не путать с квадратной жёлтой меткой в заголовке) */
#future_block_2 .landing-block2__tile .landing-block2__mark--yellow {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#future_block_2 .landing-block2__tile .landing-block2__mark {
  box-shadow:
    0 2px 4px rgba(18, 18, 18, 0.14),
    0 8px 20px rgba(18, 18, 18, 0.22);
}

#future_block_2 .landing-block2__tile--1 .landing-placeholder__line,
#future_block_2 .landing-block2__tile--2 .landing-placeholder__line {
  text-wrap: wrap;
  white-space: normal;
}

#future_block_2 .landing-block2__mark.is-tile-mark-wrapped {
  line-height: 1.15;
}

#intro_scroll_story .scroll-story__line .landing-block2__mark {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#future_block_2 .landing-block2__title .landing-block2__mark {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

#future_block_2 .landing-block2__title .landing-block2__mark--purple {
  background: rgba(124, 108, 255, 0.95);
  color: #fff;
  padding: 0.05em 0.14em;
  border-radius: 0;
}

#future_block_2 .landing-block2__title .landing-block2__mark--yellow {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.14em;
  border-radius: 0;
}

#future_block_2 .landing-block2__title .landing-block2__mark--orange {
  background: var(--block2-deco-gray, #d4d4d4);
  color: #000;
  padding: 0.05em 0.14em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow:
    0 2px 4px rgba(18, 18, 18, 0.14),
    0 8px 20px rgba(18, 18, 18, 0.22);
}

#future_block_2 .landing-block2__title .landing-block2__underline-green {
  text-decoration: underline;
  text-decoration-color: #4fc489;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

#future_block_2 .future-block2__capture-wrap {
  position: relative;
  width: 100%;
  max-width: var(--block2-capture-max-width, 583px);
  margin-inline: auto;
  margin-top: 75px;
  container-type: inline-size;
  container-name: future-block2-capture;
  overflow: visible;
}

#future_block_2 .future-block2__phone-photo {
  width: 100%;
  margin: 36px 0 0;
  display: flex;
  justify-content: center;
}

#future_block_2 .future-block2__phone-photo img {
  display: block;
  width: min(360px, 100%);
  height: auto;
  object-fit: contain;
}

#future_block_2 .future-block2__phone-photo + .future-block2__capture-wrap {
  margin-top: 0;
}

/* After reorder: form first, tiles second — keep gap that was between tiles and form */
#future_block_2 .future-block2__capture-wrap + .landing-placeholder__glass {
  margin-top: 25px;
}

#future_block_2 .future-block2__capture-wrap .future-block2__cta-title {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  text-align: center;
  font-size: var(--block2-cta-title-font);
}

#future_block_2 .future-block2__capture-wrap .future-block2__cta-title-text {
  line-height: 1.12;
  display: inline-block;
  max-width: 100%;
  text-align: center;
}

#future_block_2 .future-block2__capture-wrap .future-block2__cta-title-br {
  display: none;
}

@container future-block2-capture (max-width: 393px) {
  #future_block_2 .future-block2__capture-wrap .future-block2__cta-title {
    font-size: calc(var(--block2-cta-title-font) * var(--block2-cta-title-narrow-scale));
  }

  #future_block_2 .future-block2__capture-wrap .future-block2__cta-title-br {
    display: block;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 393px) {
    #future_block_2 .future-block2__capture-wrap .future-block2__cta-title {
      font-size: calc(var(--block2-cta-title-font) * var(--block2-cta-title-narrow-scale));
    }

    #future_block_2 .future-block2__capture-wrap .future-block2__cta-title-br {
      display: block;
    }
  }
}

#future_block_2 .future-block2__capture-wrap .future-block2__cta-title-phone {
  position: absolute;
  top: calc(100cqw * 100 / 583);
  right: calc(100cqw * 50 / 583);
  width: calc(100cqw * 69 / 583);
  max-width: var(--block2-phone-deco-size);
  z-index: 0;
  display: flex;
  pointer-events: none;
  color: rgba(17, 17, 17, 0.19);
  transform: scaleX(-1) rotate(10deg);
  line-height: 0;
}

#future_block_2 .future-block2__capture-wrap .future-block2__cta-title-phone svg {
  width: 100%;
  height: auto;
}

@supports not (container-type: inline-size) {
  #future_block_2 .future-block2__capture-wrap .future-block2__cta-title-phone {
    top: 17.153%;
    right: 8.576%;
    width: 11.835%;
  }
}

#future_block_2 .future-block2__capture-wrap .final-cta__trust--subtitle-benefits,
#future_block_2 .future-block2__capture-wrap .landing-capture-form,
#future_block_2 .future-block2__capture-wrap .final-cta__trust--plain {
  position: relative;
  z-index: 1;
}

#future_block_2 .future-block2__capture-wrap .landing-capture-form {
  margin-top: 0;
  overflow: visible;
}

/* Form uses .landing-capture-form--final: same global styles as #final_cta (no block-2 overrides). */

#future_block_2 .future-block2__capture-wrap .landing-capture-form__submit {
  background: #f97316;
  color: #fff;
  border: 0;
  box-shadow:
    0 2px 8px rgba(234, 88, 12, 0.42),
    0 6px 20px rgba(17, 17, 17, 0.14);
}

#future_block_2 .future-block2__capture-wrap .landing-capture-form__submit:hover {
  background: #ea580c;
  color: #fff;
  box-shadow:
    0 3px 12px rgba(234, 88, 12, 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
}

#future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-wrap {
  position: relative;
  width: 100%;
  /* Same vertical rhythm as #final_cta: grid gap handles space after switch; button keeps global 2px top margin */
  margin-top: 0;
}

#future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-wrap .landing-capture-form__submit {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Стрелка: вне потока — левый край = правый край кнопки (submit-wrap = ширина кнопки) */
#future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-wrap .future-block2__curl {
  --curl-arw: 1200;
  --curl-arh: 780;
  --curl-max-h: clamp(168px, 27vw, 336px);
  --curl-max-w: min(126vw, 960px);
  --curl-w: min(calc(var(--curl-max-h) * var(--curl-arw) / var(--curl-arh)), var(--curl-max-w));
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-100px, calc(-50% + 100px));
  width: var(--curl-w);
  height: min(var(--curl-max-h), calc(var(--curl-w) * var(--curl-arh) / var(--curl-arw)));
  margin: 0;
  padding: 0;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

#future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-wrap .future-block2__curl::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 12px;
  background: url("/static/catalog/landing/future_block2_tiles_to_cta_arrow.png") left center / contain no-repeat;
  filter: brightness(0) blur(12px);
  opacity: 0.48;
  pointer-events: none;
}

#future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-wrap .future-block2__curl-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--future-block2-curl-pink, #f472b6);
  -webkit-mask-image: url("/static/catalog/landing/future_block2_tiles_to_cta_arrow.png");
  mask-image: url("/static/catalog/landing/future_block2_tiles_to_cta_arrow.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  user-select: none;
  filter: drop-shadow(0 8px 18px rgba(18, 18, 18, 0.28));
}

/* Только мобилка: другой PNG; привязка к низу кнопки по центру (не к правому краю) */
@media (max-width: 980px) {
  #future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-wrap .future-block2__curl {
    left: 50%;
    top: 100%;
    transform: translate(calc(-50% + 50px), 15px);
    --curl-arw: 1024;
    --curl-arh: 768;
    --future-block2-curl-mob-h: 277px;
    width: auto;
    height: var(--future-block2-curl-mob-h);
    aspect-ratio: 1024 / 768;
  }

  #future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-wrap .future-block2__curl::before {
    background-image: url("/static/catalog/landing/future_block2_tiles_to_cta_arrow_mobile.png");
    background-position: center top;
  }

  #future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-wrap .future-block2__curl-img {
    -webkit-mask-image: url("/static/catalog/landing/future_block2_tiles_to_cta_arrow_mobile.png");
    mask-image: url("/static/catalog/landing/future_block2_tiles_to_cta_arrow_mobile.png");
    -webkit-mask-position: center top;
    mask-position: center top;
    filter: drop-shadow(0 8px 18px rgba(18, 18, 18, 0.28));
  }
}

#future_block_2 .future-block2__capture-wrap .landing-capture-form__submit-cloud {
  position: absolute;
  z-index: 3;
  right: -10px;
  bottom: 100%;
  width: fit-content;
  max-width: 14rem;
  margin: 0;
  padding: 5px 11px 7px;
  pointer-events: none;
  /* Half on the top of the button, half above; out of flow — same form geometry as without cloud */
  transform: translateY(50%) rotate(2deg);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(17, 17, 17, 0.88);
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 0 12px 3px rgba(17, 17, 17, 0.1),
    0 2px 7px rgba(17, 17, 17, 0.14),
    0 6px 18px rgba(17, 17, 17, 0.1),
    0 10px 26px rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.07);
}

/* Capture form: bullets stay 1rem until longest line hits container edge, then shrink together. */
#future_block_2 .future-block2__capture-wrap .final-cta__trust--subtitle-benefits {
  container-type: inline-size;
  container-name: future-block2-subtitle-benefits;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  font-size: min(
    var(--block2-benefit-font-max),
    calc((100cqw - var(--block2-benefit-check-pad)) / var(--block2-benefit-longest-em))
  );
}

#future_block_2 .future-block2__capture-wrap .final-cta__trust--subtitle-benefits .final-cta__badge {
  display: inline-block;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  text-align: left;
  font-size: 1em;
  line-height: 1.55;
}

#future_block_2 .future-block2__capture-wrap .final-cta__trust--plain {
  container-type: inline-size;
  container-name: future-block2-plain-trust;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  font-size: min(
    var(--block2-benefit-font-max),
    calc((100cqw - var(--block2-benefit-check-pad)) / var(--block2-benefit-longest-em))
  );
}

#future_block_2 .future-block2__capture-wrap .final-cta__trust--plain .final-cta__badge {
  display: inline-block;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  text-align: center;
  font-size: 1em;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.55);
  padding-left: 0;
}

#future_block_5 {
  overflow: visible;
  margin-bottom: 140px;
}

#future_block_5 .landing-placeholder__glass {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

#future_block_5 .landing-block5__title {
  /* 1em = .landing-placeholder__title (34px). Кот и сдвиг в той же шкале, не vw/px-«поплавок». */
  --block5-pro-tebya-cat-size: clamp(1.65em, 2.5em, min(2.85em, 96px));
  /* Звёзды за h2: 1.5× в режиме трёх строк (.title-variant--3, <480px) */
  --block5-title-stars-scale: 1;
  grid-column: 1 / -1;
  margin: 40px 0 0;
  line-height: 1.12;
  text-align: center;
  color: rgba(19, 19, 19, 0.98);
  position: relative;
  z-index: 2;
  overflow: visible;
  isolation: isolate;
}

/* Звёздный фон за заголовком: не влияет на вёрстку, только под текстом (см. z-index на .title-variant) */
#future_block_5 .landing-block5__title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--block5-title-stars-scale, 1));
  transform-origin: center center;
  z-index: 0;
  /* Как у заголовка: ~12em ≈ крупный квадрат, не шире строки; центр = центр h2 */
  width: min(12em, 100%);
  aspect-ratio: 1;
  height: auto;
  background: url("/static/catalog/landing/future_block5_title_stars.png") center / contain no-repeat;
  pointer-events: none;
}

/* Три строки в разметке = .title-variant--3 (см. @media 480px); другой брейкпоинт не вводим */
@media (max-width: 479px) {
  #future_block_5 .landing-block5__title {
    --block5-title-stars-scale: 1.5;
  }
}

#future_block_5 .landing-block5__title .landing-block2__mark--purple {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: inline-block;
  vertical-align: baseline;
  background: rgba(124, 108, 255, 0.95);
  color: #fff;
  padding: 0.05em 0.14em;
  border-radius: 0;
}

#future_block_5 .landing-block5__title .landing-block2__mark--purple .landing-block5__pro-tebya-mark-text {
  position: relative;
  z-index: 0;
}

/* Кот над «ПРО ТЕБЯ»: низ картинки = верх фиолетовой плашки, по центру; выше текста и фона плашки */
#future_block_5 .landing-block5__title .landing-block2__mark--purple::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  /* было 17px: при 34px это 0.5em — тянется вместе с font-size h2/плашки */
  transform: translate(-50%, 0.5em);
  width: var(--block5-pro-tebya-cat-size, 2.5em);
  height: var(--block5-pro-tebya-cat-size, 2.5em);
  background: url("/static/catalog/landing/future_block5_pro_tebya_cat.png") center bottom / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

#future_block_5 .landing-block5__title .landing-block5__underline-orange {
  text-decoration: underline;
  text-decoration-color: #f97316;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

/* Three discrete line-break states for the block 5 title */
#future_block_5 .landing-block5__title > .landing-block5__title-variant {
  position: relative;
  z-index: 1;
}

#future_block_5 .landing-block5__title-variant {
  display: none;
}

#future_block_5 .landing-block5__title-variant--3 {
  display: block;
}

@media (min-width: 480px) {
  #future_block_5 .landing-block5__title-variant--3 {
    display: none;
  }

  #future_block_5 .landing-block5__title-variant--2 {
    display: block;
  }
}

@media (min-width: 980px) {
  #future_block_5 .landing-block5__title-variant--2 {
    display: none;
  }

  #future_block_5 .landing-block5__title-variant--1 {
    display: block;
    white-space: nowrap;
  }
}

#process_step_2_plan .process-step__bullet-lead .landing-block5__underline-orange {
  text-decoration: underline;
  text-decoration-color: var(--step-accent, #f97316);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.04em;
  text-decoration-skip-ink: auto;
}

#process_step_2_plan .process-step__bullets--fact-pair-intro {
  margin-bottom: 16px;
  max-width: 680px;
}

#future_block_5 .landing-block5__tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 174px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  background: #fff;
  overflow: hidden;
}

#future_block_5 .landing-block5__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(171, 158, 255, 0.22), transparent 48%),
    radial-gradient(circle at 88% 85%, rgba(130, 215, 255, 0.2), transparent 45%),
    rgba(255, 255, 255, 0.88);
}

#future_block_5 .landing-block5__tile--1 {
  overflow: visible;
}

#future_block_5 .landing-block5__tile--1::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 156px;
  height: 156px;
  z-index: 0;
  pointer-events: none;
  background: url("landing/icons/score-90-plus.svg") center / contain no-repeat;
  transform: rotate(-15deg);
  transform-origin: right bottom;
}

#future_block_5 .landing-block5__tile--2 {
  overflow: visible;
  container-type: inline-size;
  container-name: block5-tile-2;
}

#future_block_5 .landing-block5__tile--2::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 156px;
  height: 156px;
  z-index: 0;
  pointer-events: none;
  background: url("landing/icons/timer.svg") center / contain no-repeat;
  transform: rotate(-15deg);
  transform-origin: right bottom;
}

#future_block_5 .landing-block5__tile--3 {
  overflow: visible;
}

#future_block_5 .landing-block5__tile--3::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -58px;
  width: 196px;
  height: 196px;
  z-index: 0;
  pointer-events: none;
  background: url("landing/icons/individual-focus.svg") center / contain no-repeat;
  transform: rotate(-15deg);
  transform-origin: right bottom;
}

#future_block_5 .landing-block5__tile--4 {
  overflow: visible;
}

#future_block_5 .landing-block5__tile--4::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: -56px;
  width: 156px;
  height: 156px;
  z-index: 0;
  pointer-events: none;
  background: url("landing/icons/city-skyline.svg") center / contain no-repeat;
}

#future_block_5 .landing-block5__tile .landing-placeholder__line {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.22;
  font-weight: 700;
  color: rgba(19, 19, 19, 0.95);
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 2px 4px rgba(18, 18, 18, 0.14),
    0 8px 20px rgba(18, 18, 18, 0.22);
}

#future_block_5 .landing-block5__tile .landing-block2__mark {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#future_block_5 .landing-block5__compact-br {
  display: none;
}

#future_block_5 .landing-block5__tile2-text--3col {
  display: none;
}

@container block5-tile-2 (max-width: 263px) {
  #future_block_5 .landing-block5__tile--2 .landing-block5__tile2-text--2col {
    display: none;
  }

  #future_block_5 .landing-block5__tile--2 .landing-block5__tile2-text--3col {
    display: inline;
  }
}

@media (max-width: 980px) {
  #future_block_2 .future-block2__tiles {
    max-width: var(--block2-tiles-stacked-max-width, 680px);
    margin-inline: auto;
    width: 100%;
  }

  #future_block_2 .landing-block2__tile .landing-placeholder__line {
    font-size: clamp(22px, 2.9vw, 30px);
    text-wrap: wrap;
  }

  /* Одна колонка: подзаголовок плитки по центру. */
  #future_block_2 .landing-block2__tile-sub {
    box-sizing: border-box;
    max-width: min(100%, var(--block2-tile-sub-max-w-stacked, 28rem));
    font-size: clamp(14px, 2.9vw, 17.5px);
    margin: 0.45rem auto 0;
    line-height: 1.42;
    padding-right: 0;
    text-align: center;
  }

  #future_block_2 .future-block2__tiles-row {
    grid-template-columns: 1fr;
    row-gap: var(--block2-tiles-row-gap-stacked, 12px);
    column-gap: 0;
  }

  #future_block_2 .landing-block2__tile {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  #future_block_5 .landing-placeholder__glass {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #future_block_5 .landing-block5__tile {
    min-height: 134px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
  }

  /* Same frosted veil on all three tiles so card whites match (tile 1 art otherwise reads warm vs 2–3) */
  #future_block_2 .landing-block2__tile::before {
    background: rgba(255, 255, 255, 0.84);
  }

  #future_block_2 .landing-block2__tile--3::after {
    opacity: 0.62;
    filter: saturate(0.84) contrast(0.9) brightness(1.1);
  }

  #future_block_2 .landing-block2__tile--3.landing-block2__tile--3-ege-oge::after {
    filter: none;
    opacity: 1;
  }

  /* Tile 1 (compact): fill height; keep deco flush to the block’s right edge as the tile narrows */
  #future_block_2 .landing-block2__tile--1::after,
  #future_block_2 .landing-block2__tile--2::after {
    -webkit-mask-size: auto 100%;
    mask-size: auto 100%;
    -webkit-mask-position: right center;
    mask-position: right center;
    transform: none;
    transform-origin: right center;
  }

  /* Tile 3 (compact): small strip, top-right flush with card (right:0; top:0 + small lift) */
  #future_block_2 .landing-block2__tile--3 {
    --tile3-mobile-screenshot-lift: -18px;
  }

  #future_block_2 .landing-block2__tile--3::after {
    left: auto;
    right: 0;
    top: 0;
    bottom: auto;
    width: min(22%, 108px);
    height: auto;
    aspect-ratio: var(--tile3-screenshot-aspect);
    transform: translateY(var(--tile3-mobile-screenshot-lift, 0px));
    background-position: right top;
    background-size: 100% auto;
  }

  /*
   * Stacked tiles by inline size: narrow (<539) default, mid (539–630), wide (631+).
   */
  @container block2-tile (min-width: 539px) and (max-width: 630px) {
    #future_block_2 .landing-block2__tile--1::after,
    #future_block_2 .landing-block2__tile--2::after {
      -webkit-mask-size: auto 104%;
      mask-size: auto 104%;
      -webkit-mask-position: right center;
      mask-position: right center;
      transform: scale(1.14);
      transform-origin: right center;
    }

    #future_block_2 .landing-block2__tile--3 {
      --tile3-mobile-screenshot-lift: -16px;
    }

    #future_block_2 .landing-block2__tile--3::after {
      width: min(32%, 178px);
    }
  }

  @container block2-tile (min-width: 631px) {
    #future_block_2 .landing-block2__tile--1::after,
    #future_block_2 .landing-block2__tile--2::after {
      -webkit-mask-size: auto 108%;
      mask-size: auto 108%;
      -webkit-mask-position: right center;
      mask-position: right center;
      transform: scale(1.26);
      transform-origin: right center;
    }

    #future_block_2 .landing-block2__tile--3 {
      --tile3-mobile-screenshot-lift: -14px;
    }

    #future_block_2 .landing-block2__tile--3::after {
      width: min(44%, 248px);
    }
  }

  #future_block_2 .landing-block2__tile--3.landing-block2__tile--3-ege-oge::after {
    /* стек: ege-oge (mask), не мини-скрин телефона */
    left: auto;
    top: auto;
    right: clamp(2px, 1cqi, 10px);
    bottom: clamp(1px, 0.5cqi, 8px);
    width: min(100%, 400px);
    min-height: 96px;
    max-height: 72%;
    height: auto;
    aspect-ratio: auto;
    transform: none;
    background-color: var(--block2-deco-gray, #d4d4d4);
    background-image: none;
    -webkit-mask-image: var(--tile3-ege-oge-deco);
    mask-image: var(--tile3-ege-oge-deco);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: right bottom;
    mask-position: right bottom;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: 1;
    filter: none;
  }
}

/* No container queries: approximate tile width with viewport (stacked layout only) */
@supports not (container-type: inline-size) {
  @media (max-width: 980px) and (min-width: 560px) and (max-width: 659px) {
    #future_block_2 .landing-block2__tile--1::after,
    #future_block_2 .landing-block2__tile--2::after {
      -webkit-mask-size: auto 104%;
      mask-size: auto 104%;
      -webkit-mask-position: right center;
      mask-position: right center;
      transform: scale(1.14);
      transform-origin: right center;
    }

    #future_block_2 .landing-block2__tile--3 {
      --tile3-mobile-screenshot-lift: -16px;
    }

    #future_block_2 .landing-block2__tile--3::after {
      width: min(32%, 178px);
    }
  }

  @media (max-width: 980px) and (min-width: 660px) {
    #future_block_2 .landing-block2__tile--1::after,
    #future_block_2 .landing-block2__tile--2::after {
      -webkit-mask-size: auto 108%;
      mask-size: auto 108%;
      -webkit-mask-position: right center;
      mask-position: right center;
      transform: scale(1.26);
      transform-origin: right center;
    }

    #future_block_2 .landing-block2__tile--3 {
      --tile3-mobile-screenshot-lift: -14px;
    }

    #future_block_2 .landing-block2__tile--3::after {
      width: min(44%, 248px);
    }
  }
}

/* Stacked / tablet: controlled line breaks from landing_blocks.json (hidden on 4-tile desktop ≥981px) */
@media (max-width: 980px) {
  #future_block_5 .landing-block5__compact-br {
    display: block;
  }
}

@media (max-width: 640px) {
  #future_block_5 .landing-placeholder__glass {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  #future_block_5 .landing-block5__tile {
    width: 100%;
    max-width: calc(100% / 1.5);
  }
}

/* Mid-narrow layout only: keep "5" icon from overlapping text in tile 2 */
@media (max-width: 980px) and (min-width: 620px) {
  #future_block_2 .landing-block2__tile--2 {
    --tile-icon-size: 98px;
    --tile-icon-position: right 6px center;
  }
}

@media (max-width: 619px) and (min-width: 420px) {
  #future_block_2 .landing-block2__tile--2 {
    --tile-icon-size: 84px;
    --tile-icon-position: right 4px center;
  }
}

@media (max-width: 419px) and (min-width: 350px) {
  #future_block_2 .landing-block2__tile--2 {
    --tile-icon-size: 62px;
    --tile-icon-position: right 2px center;
  }
}

.landing-block--scroll-story {
  min-height: var(--story-available-h);
  overflow-x: clip;
}

#learning_process_story,
#founder_story_marquee {
  min-height: auto;
  /* Одна шкала: высота ленты; стикеры #learning_process_story — через calc(* var(--lp-marquee-h)) */
  --lp-marquee-h: 54px;
}

#founder_story_marquee {
  margin-top: 0;
}

#learning_process_story .learning-process-static {
  display: grid;
  gap: 12px;
}

#learning_process_story .learning-process-static__headline,
#founder_story_marquee .learning-process-static__headline {
  padding: 0;
  font-size: 0;
  line-height: 0;
}

#learning_process_story .learning-process-static__headline {
  margin-top: 28px;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}

/* «ПРОЦЕСС ОБУЧЕНИЯ» — тёмная полоса: три стикера (только #learning_process_story) */
#learning_process_story .learning-process-static__headline::before {
  content: "";
  position: absolute;
  left: calc(var(--lp-marquee-h) * 6 / 54 + 45px);
  top: auto;
  bottom: 100%;
  z-index: 2;
  width: calc(var(--lp-marquee-h) * 60 / 54);
  height: calc(var(--lp-marquee-h) * 60 / 54);
  transform: rotate(-6deg);
  transform-origin: left bottom;
  background: url("/static/catalog/landing/future_block5_title3_pillows.png") center / contain no-repeat;
  pointer-events: none;
}

#learning_process_story .learning-process-static__headline::after {
  content: "";
  position: absolute;
  right: calc(var(--lp-marquee-h) * 6 / 54 + 45px);
  top: auto;
  bottom: 100%;
  z-index: 2;
  width: calc(var(--lp-marquee-h) * 36 / 54);
  height: calc(var(--lp-marquee-h) * 72 / 54);
  transform: rotate(6deg);
  transform-origin: right bottom;
  background: url("/static/catalog/landing/future_block5_title3_coffee.png") center / contain no-repeat;
  pointer-events: none;
}

#learning_process_story .learning-marquee {
  z-index: 0;
}

#learning_process_story .learning-marquee::before {
  content: "";
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 100%;
  z-index: 3;
  width: calc(var(--lp-marquee-h) * 78 / 54);
  height: calc(var(--lp-marquee-h) * 60 / 54);
  transform: translateX(-50%);
  transform-origin: center bottom;
  background: url("/static/catalog/landing/future_block5_title3_cat.png") center / contain no-repeat;
  pointer-events: none;
}

#learning_process_story .learning-marquee__track {
  z-index: 1;
}

#founder_story_marquee .learning-process-static__headline {
  margin-top: 16px;
  margin-bottom: 20px;
}

#learning_process_story .learning-marquee,
#founder_story_marquee .learning-marquee {
  display: block;
  width: 100%;
  height: var(--lp-marquee-h);
  background: #000;
  overflow: visible; /* псевдо (кот) над лентой — не обрезать; обрезка в .learning-marquee__viewport */
  position: relative;
  box-sizing: border-box;
}

/* Клип только для бегущей строки; контент .learning-marquee (чёрный фон) снаружи */
#learning_process_story .learning-marquee__viewport,
#founder_story_marquee .learning-marquee__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#learning_process_story .learning-marquee__track,
#founder_story_marquee .learning-marquee__track {
  display: inline-flex;
  width: max-content;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  will-change: transform;
  animation: learning-marquee-move 18s linear infinite;
}

#learning_process_story .learning-marquee__sequence,
#founder_story_marquee .learning-marquee__sequence {
  display: inline-flex;
  flex: 0 0 auto;
}

#learning_process_story .learning-marquee__track span,
#founder_story_marquee .learning-marquee__track span {
  display: inline-block;
  white-space: nowrap;
  line-height: var(--lp-marquee-h);
  color: #fff;
  font-size: 48px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: -0.02em;
  padding-right: 5rem;
}

@keyframes learning-marquee-move {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  #learning_process_story,
  #founder_story_marquee {
    --lp-marquee-h: 42px;
  }

  #learning_process_story .learning-marquee__track span,
  #founder_story_marquee .learning-marquee__track span {
    font-size: 33px;
  }
}

#learning_process_story .learning-process-static__item-card {
  min-height: auto;
  padding: 14px 16px;
  border-radius: 16px;
}

#learning_process_story .learning-process-static__item {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.25;
  font-weight: 600;
  color: rgba(19, 19, 19, 0.96);
}

.scroll-story__sticky {
  position: sticky;
  top: var(--landing-header-h);
  margin-top: 7px;
  min-height: var(--story-available-h);
  height: var(--story-available-h);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-block: var(--story-v-gap);
}

/* Scroll-driven story (set by scroll_story.js).
   No pinning (position: sticky) and no page-level scroll-snap — both of those make Telegram's /
   in-app WebKit browser stutter when the address bar shows/hides. Instead the block is ONE
   screen tall and the "screens" are stepped inside a NATIVE inner scroll-snap scroller (the
   picker). While stepping, the PAGE itself does not move, so the address bar never animates and
   there is nothing to jitter. scroll-snap-stop: always => exactly one screen per swipe.
   scroll-snap-type is PROXIMITY (not mandatory): mandatory traps the scroll inside the picker on
   iOS and you can never leave the block; proximity lets the scroll chain to the page once the
   picker reaches its top/bottom edge, so you can scroll past the block normally. */
.landing-block--scroll-story.is-scroll-driven .scroll-story__sticky {
  position: relative;
  top: auto;
}

.landing-block--scroll-story.is-scroll-driven .scroll-story__inner {
  justify-content: stretch;
}

.landing-block--scroll-story.is-scroll-driven .scroll-story__picker {
  margin-top: 0;
  min-height: 0;
  height: 100%;
  display: block;
  /* overflow: hidden (not auto): the picker never scrolls natively. scroll_story.js drives
     picker.scrollTop one slide per wheel/swipe gesture (strict pagination, one screen per
     gesture) and lets the page scroll natively at the first/last slide. */
  overflow: hidden;
  scrollbar-width: none;
  touch-action: none;
}

.landing-block--scroll-story.is-scroll-driven .scroll-story__inner {
  touch-action: none;
}

.landing-block--scroll-story.is-scroll-driven.is-dragging .scroll-story__picker {
  will-change: scroll-position;
}

.landing-block--scroll-story.is-scroll-driven .scroll-story__picker::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.landing-block--scroll-story.is-scroll-driven .scroll-story__lines {
  transform: none !important;
  justify-content: flex-start;
  gap: clamp(34px, 11svh, 90px);
  padding-block: var(--snap-pad, 40svh);
  will-change: auto;
}

.landing-block--scroll-story.is-scroll-driven .scroll-story__line {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* When the viewport height is locked, base the line spacing on the locked height too, so the
   svh-based gap does not shift the lines as the in-app address bar animates. */
.landing-page.landing-vh-locked .landing-block--scroll-story.is-scroll-driven .scroll-story__lines {
  gap: clamp(34px, calc(var(--landing-vh-lock) * 0.11), 90px);
}

/* Intro only: three-line title painted above the card; no layout or hit-testing */
#intro_scroll_story .intro-scroll-story__overlay-headline {
  position: absolute;
  top: var(--story-v-gap);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0px, 0.06em, 2px);
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  pointer-events: none;
  z-index: 6;
  font-size: clamp(16px, 2.9vw, 30px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.03em;
  text-transform: none;
  user-select: none;
}

#intro_scroll_story .intro-scroll-story__overlay-headline-line {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  background: #000;
  color: #fff;
  padding: 0.42em 14px;
  transform-origin: center center;
}

#intro_scroll_story .intro-scroll-story__overlay-headline-line:nth-child(1),
#intro_scroll_story .intro-scroll-story__overlay-headline-line:nth-child(3) {
  text-transform: none;
  padding: 0.26em 14px;
}

#intro_scroll_story .intro-scroll-story__overlay-headline-line--marquee {
  height: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  background: #000;
}

#intro_scroll_story .intro-scroll-story__marquee-track {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  width: max-content;
  height: 100%;
  will-change: transform;
  animation: intro-scroll-story-marquee 32s linear infinite;
}

#intro_scroll_story .intro-scroll-story__marquee-sequence {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1.1rem;
}

#intro_scroll_story .intro-scroll-story__marquee-sequence .landing-block2__mark--purple {
  display: inline-block;
  line-height: 36px;
}

@media (max-width: 768px) {
  #intro_scroll_story .intro-scroll-story__overlay-headline-line--marquee {
    height: 28px;
    min-height: 28px;
    font-size: 20px;
  }

  #intro_scroll_story .intro-scroll-story__marquee-sequence {
    gap: 0.8rem;
  }

  #intro_scroll_story .intro-scroll-story__marquee-sequence .landing-block2__mark--purple {
    line-height: 28px;
  }
}

#intro_scroll_story .intro-scroll-story__overlay-headline-line .landing-block2__mark--purple {
  background: #000;
  color: #fff;
  padding: 0.05em 0.14em;
  border-radius: 0;
}

@keyframes intro-scroll-story-marquee {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

#intro_scroll_story .scroll-story__lines {
  gap: clamp(8px, 1.5vh, 14px);
  /* Center the (capped-width) line blocks horizontally so the active line is always centered. */
  align-items: center;
  padding-left: 0;
}

/* Pre-wrap lines for the ENLARGED active size. The active line is visually scaled with
   scaleX(1.5) AFTER layout, so the browser wraps text at scale 1 and a long line then overflows
   to the right (and gets clipped) when enlarged. Capping the line width at 1/1.5 makes every line
   lay out as if already enlarged: a line that would not fit on one line when active is wrapped to
   two lines up-front (no reflow on activation), while lines that do fit stay on one line. */
#intro_scroll_story .scroll-story__line {
  /* Base font scales LINEARLY with the block width (the shell caps at 1240px wide, so below
     that the block width == viewport width, above it the block is fixed). Anchored so that —
     combined with the .is-active scaleY(1.65) below — the active line matches the old mobile
     size at a ~390px-wide block and the approved desktop size at the 1240px-wide block.
     The 38px cap keeps it constant once the block stops growing. Height never participates. */
  font-size: clamp(18px, calc(10.7px + 2.2vw), 38px);
  max-width: calc(100% / 1.5);
  /* Always keep the line centered: center the text (incl. the second wrapped line) and scale from
     the center so growing/shrinking stays centered horizontally. */
  text-align: center;
  transform-origin: center center;
  text-transform: uppercase;
}

#intro_scroll_story .scroll-story__line.is-active {
  transform: scaleX(1.5) scaleY(1.65);
}

#intro_scroll_story.is-scroll-driven .scroll-story__line,
#intro_scroll_story.is-scroll-driven .scroll-story__line.is-active {
  --line-focus: 0;
  transition: none;
  font-weight: 600;
  background-color: transparent;
  transform:
    scaleX(calc(0.7 + 0.8 * var(--line-focus)))
    scaleY(calc(0.58 + 1.07 * var(--line-focus)));
  transform-origin: center center;
  filter: blur(calc(4.5px * (1 - var(--line-focus))));
  opacity: calc(0.5 + 0.5 * var(--line-focus));
  color: rgba(19, 19, 19, calc(0.34 + 0.64 * var(--line-focus)));
}

#intro_scroll_story {
  /* Bubble slide CTA: ratios from reference card 526px (photo layout ~265px, btn 183×34). */
  --slide-cta-font-ratio: 0.0528;
  --slide-cta-height-ratio: 0.1282;
  --slide-cta-pad-ratio: 0.0528;
  --slide-cta-radius-ratio: 0.0453;
  --slide-cta-min-width-ratio: 0.430;
  --slide-cta-height-em: 2.428;
  --slide-cta-radius-em: 0.858;
  --slide-cta-min-width-em: 8.14;
}

#intro_scroll_story .scroll-story__line--bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: calc(100% / 1.5 * 0.805);
  margin-inline: auto;
  padding: 0;
  background: transparent;
  font-size: 0;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  pointer-events: none;
}

#intro_scroll_story .scroll-story__line-bubble-wrap {
  position: relative;
  width: 100%;
}

#intro_scroll_story .scroll-story__line-bubble {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#intro_scroll_story .intro-scroll-story__slide-cta {
  position: absolute;
  left: calc(50% + 3%);
  top: 75%;
  z-index: 1;
  margin: 0;
  transform: translateX(-50%);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: calc(var(--slide-cta-min-width-em) * 1em);
  height: calc(var(--slide-cta-height-em) * 1em);
  min-height: calc(var(--slide-cta-height-em) * 1em);
  padding: 0 1em;
  font-size: max(11px, calc(var(--slide-bubble-w, 265px) * var(--slide-cta-font-ratio)));
  font-weight: 600;
  line-height: 1;
  border-radius: calc(var(--slide-cta-radius-em) * 1em);
  white-space: nowrap;
  text-transform: none;
  letter-spacing: normal;
  text-shadow: none;
  pointer-events: auto;
}

#intro_scroll_story.is-scroll-driven .scroll-story__line--bubble,
#intro_scroll_story.is-scroll-driven .scroll-story__line--bubble.is-active {
  color: transparent;
  opacity: calc(0.2 + 0.8 * var(--line-focus));
}

#intro_scroll_story .scroll-story__line--bubble.is-active {
  text-shadow: none;
}

/* Intro: no white veil on video/card/lines; strong shadow on active line only */
#intro_scroll_story .intro-scroll-story__overlay-headline,
#intro_scroll_story .intro-scroll-story__hero {
  transform: translate3d(0, var(--intro-hero-slide-y, 0px), 0);
}

#intro_scroll_story .intro-scroll-story__hero {
  position: absolute;
  top: calc(clamp(12px, 2.5svh, 24px) + 50px);
  left: 0;
  right: 0;
  bottom: clamp(12px, 2svh, 20px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 1;
  overflow: visible;
}

#intro_scroll_story .intro-scroll-story__hero-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#intro_scroll_story .intro-scroll-story__hero-credential-wrap {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding-left: 66.666%;
  padding-right: 20px;
  margin-top: clamp(8px, 1.4vw, 12px);
  display: flex;
  justify-content: center;
  overflow: visible;
}

#intro_scroll_story .intro-scroll-story__hero-bubble-left-wrap {
  position: absolute;
  top: 50%;
  left: var(--intro-left-bubble-x, 50%);
  z-index: 3;
  max-width: calc(100% - 32px);
  display: flex;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
  transform:
    translate(-50%, calc(-50% - 50px))
    translate3d(0, var(--intro-hero-slide-y, 0px), 0);
}

#intro_scroll_story .intro-scroll-story__hero-bubble-left {
  display: block;
  width: var(--intro-left-bubble-width, 81px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.94;
}

#intro_scroll_story .intro-scroll-story__hero-credential-bubble {
  display: block;
  width: clamp(200px, 32vw, 280px);
  height: auto;
  max-width: 100%;
  opacity: 0.94;
}

#intro_scroll_story .intro-scroll-story__hero-credential-wrap.is-right-clamped {
  justify-content: flex-end;
}

#intro_scroll_story:not(.is-hero-screen) .intro-scroll-story__hero {
  opacity: 0;
  visibility: hidden;
}

#intro_scroll_story:not(.is-hero-screen) .intro-scroll-story__hero-bubble-left-wrap {
  opacity: 0;
  visibility: hidden;
}

#intro_scroll_story:not(.is-hero-screen) .intro-scroll-story__overlay-headline {
  opacity: 0;
  visibility: hidden;
}

#intro_scroll_story.is-hero-transition .intro-scroll-story__overlay-headline,
#intro_scroll_story.is-hero-transition .intro-scroll-story__hero,
#intro_scroll_story.is-hero-transition .intro-scroll-story__hero-bubble-left-wrap {
  visibility: visible;
  opacity: 1;
}

#intro_scroll_story.is-dragging .intro-scroll-story__overlay-headline,
#intro_scroll_story.is-dragging .intro-scroll-story__hero,
#intro_scroll_story.is-dragging .intro-scroll-story__hero-bubble-left-wrap {
  will-change: transform;
}

/* font-size capped at runtime by scroll_story.js: max head height = 25.09% of card */
#intro_scroll_story .intro-scroll-story__hero-title {
  margin: 0;
  max-width: min(94%, 720px);
  text-align: left;
  font-size: clamp(22px, calc(0.4rem + 4.2vw), 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: none;
}

#intro_scroll_story .intro-scroll-story__hero-title-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  line-height: 1.12;
  margin-bottom: 0.14em;
  white-space: nowrap;
  background: #000;
  padding: 0.05em 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#intro_scroll_story .intro-scroll-story__hero-title-line:nth-child(1) {
  margin-left: 0;
}

#intro_scroll_story .intro-scroll-story__hero-title-line:nth-child(2) {
  margin-left: 0.75em;
}

#intro_scroll_story .intro-scroll-story__hero-title-line:nth-child(3) {
  margin-left: 1.5em;
}

#intro_scroll_story .intro-scroll-story__hero-title-line:nth-child(4) {
  margin-left: 2.4em;
}

#intro_scroll_story .intro-scroll-story__hero-mark {
  background: transparent;
  color: #fff;
  padding: 0;
  margin-right: 0;
  border-radius: 0;
  text-shadow: none;
  box-shadow: none;
}

#intro_scroll_story .intro-scroll-story__hero-foot {
  margin-top: auto;
  width: 100%;
  padding: 0 clamp(16px, 4vw, 24px) 0;
  box-sizing: border-box;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

#intro_scroll_story .intro-scroll-story__hero-foot-text {
  margin: 0;
  margin-left: var(--intro-hero-title-offset-x, 0px);
  text-align: left;
  font-size: calc(15px * var(--intro-hero-cta-font-scale, 1));
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

#intro_scroll_story .intro-scroll-story__hero-foot-text-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-bottom: 0.12em;
  color: #000;
  background: #fff;
  padding: 0.05em 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#intro_scroll_story .intro-scroll-story__hero-foot-text-line:nth-child(1) {
  margin-left: 0;
}

#intro_scroll_story .intro-scroll-story__hero-foot-text-line:nth-child(2) {
  margin-left: calc(var(--intro-hero-title-width, 0px) * 0.025);
}

#intro_scroll_story .intro-scroll-story__hero-foot-text-line:nth-child(3) {
  margin-left: calc(var(--intro-hero-title-width, 0px) * 0.05);
}

#intro_scroll_story .intro-scroll-story__hero-foot-text-line:last-child {
  margin-bottom: 0;
}

#intro_scroll_story .intro-scroll-story__hero-foot-bubble {
  display: block;
  width: 83.6%;
  align-self: center;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transform: translateY(20px) rotate(5deg);
  transform-origin: center center;
}

#intro_scroll_story .intro-scroll-story__hero-foot .landing-capture-form__submit {
  width: var(--intro-hero-title-width, 100%);
  margin-left: var(--intro-hero-title-offset-x, 0);
  margin-right: auto;
  margin-top: 0;
  min-height: calc(46px * var(--intro-hero-cta-height-scale, 1));
  border: 0;
  border-radius: 12px;
  background: #f97316;
  color: #fff;
  font-size: calc(15px * var(--intro-hero-cta-font-scale, 1));
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 2px 8px rgba(234, 88, 12, 0.42),
    0 6px 20px rgba(17, 17, 17, 0.14);
}

#intro_scroll_story .intro-scroll-story__hero-foot .landing-capture-form__submit:hover {
  background: #ea580c;
  color: #fff;
  box-shadow:
    0 3px 12px rgba(234, 88, 12, 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
}

#intro_scroll_story .scroll-story__bg::after {
  display: none;
}

#intro_scroll_story .scroll-story__bg-panel[data-bg-step="0"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 45%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
}

#intro_scroll_story .scroll-story__inner {
  background: transparent;
  border-color: transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
  overflow: visible;
}

#intro_scroll_story .scroll-story__line,
#intro_scroll_story .scroll-story__line.is-active {
  background: transparent;
  background-color: transparent;
}

#intro_scroll_story.is-scroll-driven .scroll-story__line.is-active {
  color: #fff;
}

#intro_scroll_story .scroll-story__line.is-active {
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.8),
    0 8px 24px rgba(0, 0, 0, 0.7),
    0 12px 36px rgba(0, 0, 0, 0.6);
}

#intro_scroll_story .scroll-story__line.is-active .landing-block2__mark {
  color: var(--c-text, #121212);
  background: var(--c-yellow, #ffdd2d);
  text-shadow: none;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.85),
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 10px 28px rgba(0, 0, 0, 0.55);
}

.scroll-story__inner {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  gap: 14px;
  height: var(--story-card-h);
  min-height: 0;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(124, 108, 255, 0.2);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.scroll-story__label {
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: none;
  font-weight: 800;
  color: rgba(26, 26, 26, 0.52);
}

.scroll-story__title {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.scroll-story__fixed-title {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  margin: 0;
  width: min(92%, 860px);
  text-align: center;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
  background: #111;
  padding: 10px 14px;
  border-radius: 0;
  pointer-events: none;
}

.scroll-story__fixed-title .landing-block2__mark {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.scroll-story__fixed-title .landing-block2__mark--purple {
  background: rgba(124, 108, 255, 0.95);
  color: #fff;
  padding: 0.05em 0.14em;
  border-radius: 0.12em;
}

.scroll-story__lines {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: clamp(8px, 1.2vw, 14px);
  transform: translateY(var(--story-shift, 0px));
  will-change: transform;
}

.scroll-story__lines.is-pending {
  opacity: 0;
}

.scroll-story__lines.is-animated {
  transition: transform 320ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.scroll-story__picker {
  position: relative;
  z-index: 1;
  margin-top: clamp(52px, 9svh, 88px);
  min-height: clamp(170px, 34svh, 260px);
  display: grid;
  align-items: center;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
}

.scroll-story__picker.is-pending {
  opacity: 0;
}

/* Glass overlay disabled by request.
.scroll-story__picker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: clamp(46px, 7.8svh, 64px);
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.26);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.1) 18%,
      rgba(255, 255, 255, 0.03) 45%,
      rgba(255, 255, 255, 0.03) 55%,
      rgba(255, 255, 255, 0.1) 82%,
      rgba(255, 255, 255, 0.28) 100%
    );
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28);
}
*/

/* Glass blur layer disabled by request.
.scroll-story__picker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: clamp(46px, 7.8svh, 64px);
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  border-radius: 14px;
  backdrop-filter: blur(11px) saturate(1.22) contrast(1.08);
  -webkit-backdrop-filter: blur(11px) saturate(1.22) contrast(1.08);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.04) 18%,
      rgba(255, 255, 255, 0.01) 50%,
      rgba(255, 255, 255, 0.04) 82%,
      rgba(255, 255, 255, 0.14) 100%
    );
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.9) 16%,
      rgba(0, 0, 0, 0.12) 34%,
      rgba(0, 0, 0, 0.12) 66%,
      rgba(0, 0, 0, 0.9) 84%,
      rgba(0, 0, 0, 0.98) 100%
    );
  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.98) 0%,
      rgba(0, 0, 0, 0.9) 16%,
      rgba(0, 0, 0, 0.12) 34%,
      rgba(0, 0, 0, 0.12) 66%,
      rgba(0, 0, 0, 0.9) 84%,
      rgba(0, 0, 0, 0.98) 100%
    );
}
*/

.scroll-story__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.scroll-story__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(171, 158, 255, 0.22), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(130, 215, 255, 0.16), transparent 45%),
    rgba(255, 255, 255, 0.36);
  backdrop-filter: saturate(1.05);
}

#intro_scroll_story .scroll-story__picker {
  transition: none;
}

#intro_scroll_story.is-hero-screen .scroll-story__picker {
  visibility: hidden;
  pointer-events: none;
  min-height: 0;
  margin-top: 0;
}

#intro_scroll_story .scroll-story__bg-track {
  display: flex;
  flex-direction: column;
  height: calc(var(--intro-bg-panel-count, 5) * 100%);
  will-change: transform;
}

#intro_scroll_story .scroll-story__bg-panel {
  flex: 0 0 calc(100% / var(--intro-bg-panel-count, 5));
  height: calc(100% / var(--intro-bg-panel-count, 5));
  position: relative;
  overflow: hidden;
}

#intro_scroll_story .scroll-story__bg-panel-media,
#intro_scroll_story .scroll-story__bg-panel .scroll-story__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.95);
}

#intro_scroll_story .scroll-story__bg-poster {
  z-index: 0;
}

#intro_scroll_story .scroll-story__bg-poster.is-hidden {
  opacity: 0;
}

#intro_scroll_story .scroll-story__bg-panel .scroll-story__bg-video {
  z-index: 2;
  opacity: 0;
}

#intro_scroll_story .scroll-story__bg-panel .scroll-story__bg-video.is-active.is-ready {
  opacity: 1;
}

#intro_scroll_story .scroll-story__bg-panel .scroll-story__bg-video--hq {
  z-index: 3;
}

.landing-img--deferred {
  opacity: 0;
  background: transparent;
}

.landing-img--deferred:not([src]) {
  visibility: hidden;
}

.landing-page img[data-landing-src].landing-img--deferred {
  min-height: 1px;
}

#intro_scroll_story .scroll-story__bg-panel .scroll-story__slideshow {
  z-index: 1;
}

#intro_scroll_story.is-dragging .scroll-story__bg-track {
  transition: none;
}

.scroll-story__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(0.95);
  transition: opacity 280ms ease, transform 320ms ease;
}

.scroll-story__bg-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.scroll-story__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  filter: saturate(0.95);
  transition: opacity 280ms ease, transform 320ms ease;
  pointer-events: none;
}

.scroll-story__bg-video.is-active.is-ready {
  opacity: 1;
  transform: scale(1);
}

/* Per-slide slideshow (replaces the background video on a single slide). The container fades in
   when its slide is active; inside, scroll_story.js crossfades the images on an interval. */
.scroll-story__slideshow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.scroll-story__slideshow.is-active {
  opacity: 1;
}

.scroll-story__slideshow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  filter: saturate(0.95);
  transition: opacity 280ms ease;
}

.scroll-story__slideshow-img.is-active {
  opacity: 1;
}

.scroll-story__line {
  position: relative;
  z-index: 1;
  margin: 0;
  display: inline;
  font-size: clamp(20px, 5.6vw, 32px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(19, 19, 19, 0.34);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.02em 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transform: scaleX(0.7) scaleY(0.58);
  transform-origin: left center;
  filter: blur(4.5px);
  transition:
    color 220ms ease,
    transform 240ms ease,
    opacity 220ms ease,
    filter 240ms ease;
  opacity: 0.5;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.scroll-story__line.is-active {
  color: rgba(19, 19, 19, 0.98);
  background: rgba(255, 255, 255, 0.98);
  font-weight: 650;
  transform: scaleX(1.32) scaleY(1.46);
  filter: blur(0);
  opacity: 1;
}

.scroll-story__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.scroll-story__hint {
  font-size: 14px;
  color: rgba(18, 18, 18, 0.6);
}

.scroll-story__progress {
  font-size: 13px;
  font-weight: 800;
  color: rgba(18, 18, 18, 0.75);
}

.landing-block--scroll-story.is-complete .scroll-story__hint::after {
  content: " Готово. Можно листать дальше.";
  color: rgba(30, 140, 60, 0.95);
}

@media (max-width: 640px) {
  .landing-page {
    --story-frame-gap: 8px;
    --landing-header-h: calc(var(--landing-header-base-h) + var(--story-frame-gap));
  }

  .landing-page .page {
    padding-left: clamp(8px, 1.8vw, 10px);
    padding-right: clamp(8px, 1.8vw, 10px);
  }

  .landing-page .landing-topbar__cta {
    font-size: 13px;
    padding-inline: 10px;
    height: 34px;
  }

  .scroll-story__inner,
  .landing-placeholder__glass {
    padding-left: 12px;
    padding-right: 12px;
  }

  .scroll-story__inner {
    height: var(--story-card-h);
  }
}

.landing-modal-open {
  overflow: hidden;
}

.landing-capture-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 16px;
}

.landing-capture-modal[hidden] {
  display: none;
}

.landing-capture-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 16, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.landing-capture-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

/* Слегка прозрачная подложка + лёгкий blur затемнённого backdrop */
.landing-capture-modal__surface {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.82),
    rgba(250, 251, 255, 0.76),
    rgba(245, 247, 252, 0.72)
  );
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--card-radius, 18px);
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
}

/* Форма — чуть прозрачнее белого, читаемость сохраняется */
.landing-capture-modal .landing-capture-form {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.04);
}

.landing-capture-modal .landing-capture-form::before,
.landing-capture-modal .landing-capture-form::after {
  content: none;
}

.landing-capture-modal .landing-capture-form__switch {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.landing-capture-modal .landing-capture-form__input {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.11);
}

.landing-capture-modal__title {
  /* Как .final-cta__title на главной CTA */
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 auto 16px;
  max-width: 22ch;
  color: rgba(0, 0, 0, 0.92);
}

.landing-capture-modal__subtitle {
  margin: -4px auto 14px;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(19, 19, 19, 0.76);
}

.landing-capture-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.landing-capture-modal .landing-capture-form--final {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

/* Кнопка отправки — тот же оранжевый акцент, что у формы в #future_block_2 */
.landing-capture-modal .landing-capture-form__submit {
  background: #f97316;
  color: #fff;
  border: 0;
  box-shadow:
    0 2px 8px rgba(234, 88, 12, 0.42),
    0 6px 20px rgba(17, 17, 17, 0.14);
}

.landing-capture-modal .landing-capture-form__submit:hover:not(:disabled) {
  background: #ea580c;
  color: #fff;
  box-shadow:
    0 3px 12px rgba(234, 88, 12, 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
}

/* Плашка «Ответим за 15 минут» — как у #future_block_2 .landing-capture-form__submit-cloud */
.landing-capture-modal .landing-capture-form__submit-wrap {
  position: relative;
  width: 100%;
  margin-top: 0;
}

.landing-capture-modal .landing-capture-form__submit-wrap .landing-capture-form__submit {
  position: relative;
  z-index: 1;
  width: 100%;
}

.landing-capture-modal .landing-capture-form__submit-cloud {
  position: absolute;
  z-index: 2;
  right: -10px;
  bottom: 100%;
  width: fit-content;
  max-width: 14rem;
  margin: 0;
  padding: 5px 11px 7px;
  pointer-events: none;
  transform: translateY(50%) rotate(2deg);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(17, 17, 17, 0.88);
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 0 12px 3px rgba(17, 17, 17, 0.1),
    0 2px 7px rgba(17, 17, 17, 0.14),
    0 6px 18px rgba(17, 17, 17, 0.1),
    0 10px 26px rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.07);
}

.landing-capture-modal__plan-preview {
  width: min(100%, 400px);
  margin: 12px auto 0;
}

.landing-capture-modal__plan-preview[hidden] {
  display: none !important;
}

.landing-capture-modal__plan-preview-card {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  text-align: left;
  border: 1px solid rgba(124, 108, 255, 0.22);
  background:
    radial-gradient(circle at top left, rgba(124, 108, 255, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 14px 34px rgba(33, 21, 79, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.landing-capture-modal__plan-preview-media {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.14), rgba(255, 255, 255, 0.92));
}

.landing-capture-modal__plan-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-capture-modal__plan-preview-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landing-capture-modal__plan-preview-kicker {
  display: block;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 800;
  color: rgba(88, 66, 234, 0.96);
}

.landing-capture-modal__plan-preview-title {
  display: block;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.12;
  font-weight: 850;
  color: rgba(18, 21, 31, 0.96);
}

.landing-capture-modal__plan-preview-text {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.18;
  color: rgba(19, 19, 19, 0.66);
  white-space: pre-line;
}

@media (max-width: 768px) {
  .landing-capture-modal__surface {
    padding: 36px 18px 28px;
  }
}

@media (max-width: 640px) and (max-height: 760px) {
  .landing-page {
    --story-frame-gap: 8px;
    --landing-header-h: calc(var(--landing-header-base-h) + var(--story-frame-gap));
  }

  .scroll-story__inner {
    height: var(--story-card-h);
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (max-width: 640px) and (max-height: 680px) {
  .landing-page {
    --story-frame-gap: 8px;
    --landing-header-h: calc(var(--landing-header-base-h) + var(--story-frame-gap));
  }

  .scroll-story__inner {
    height: var(--story-card-h);
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@media (min-width: 641px) and (max-width: 899px) {
  .landing-page {
    --story-frame-gap: 8px;
    --landing-header-h: calc(var(--landing-header-base-h) + var(--story-frame-gap));
  }

  .scroll-story__inner {
    height: var(--story-card-h);
  }
}


/* ==========================================================
   Process Step Blocks (learning process steps 1-6)
   ========================================================== */

.landing-block--process-step {
  margin-block: 40px;
  --process-step-desktop-column-gap: clamp(20px, 2.8vw, 40px);
}

/* ── Step header: number + title ── */

.process-step__header {
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.6vw, 18px);
  margin-bottom: clamp(18px, 3vw, 32px);
}

/* Более контрастный жёлтый для светлых карточек Step 1 и Step 4 */
#process_step_1_testing,
#process_step_4_practice {
  --step-accent: #e3a700;
}

.process-step__number {
  font-size: clamp(80px, 12vw, 140px);
  font-weight: 950;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--step-accent, #ffdd2d);
  flex: 0 0 auto;
  user-select: none;
}

.process-step__title {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: rgba(19, 19, 19, 0.96);
}

/* Подчёркивание «ваш*» в заголовке шага — цвет как у акцента шага (--step-accent на section). */
.landing-block--process-step .process-step__title .process-step__title-mark {
  text-decoration: underline;
  text-decoration-color: var(--step-accent, #ffdd2d);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

/* ── Entrance animation ── */

[data-step-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.process-step__header.is-visible .process-step__number {
  transition-delay: 0s;
}

.process-step__header.is-visible .process-step__title {
  transition-delay: 0.1s;
}

#process_step_1_testing .process-step__header--step5,
#process_step_2_plan .process-step__header--step5,
#process_step_3_textbook .process-step__header--step5,
#process_step_4_practice .process-step__header--step5,
#process_step_5_lesson .process-step__header--step5,
#process_step_6_checkpoints .process-step__header--step5 {
  margin-bottom: clamp(22px, 3.2vw, 34px);
}

.process-step__header--step5 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.8vw, 16px);
  position: relative;
  z-index: 2;
}

.process-step__header-step5-meta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.process-step__header-step5-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 112px;
  padding: 0 40px;
  border-radius: 999px;
  background: rgba(123, 97, 255, 0.12);
  color: rgba(19, 19, 19, 0.92);
  font-size: clamp(56px, 6.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* Step 1: декоративные SVG-зарисовки вокруг бейджа «01» — не влияют на поток */
#process_step_1_testing .process-step__header--step5 {
  position: relative;
  isolation: isolate;
}

#process_step_1_testing .process-step__header-step5-meta--step1 {
  overflow: visible;
  z-index: 1;
}

#process_step_1_testing .process-step__header-step5-badge-doodles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 112px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#process_step_1_testing .process-step__header-step5-badge-doodle {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#process_step_1_testing .process-step__header-step5-badge-doodle--left {
  left: -102px;
  top: 50%;
  width: clamp(104px, 10.4vw, 144px);
  transform: translateY(-46%) rotate(-6deg);
  animation: step1-badge-doodle-float-left 2.3s ease-in-out infinite;
}

#process_step_1_testing .process-step__header-step5-badge-doodle--top {
  top: -72px;
  right: -52px;
  width: clamp(92px, 9.2vw, 128px);
  transform: rotate(4deg);
  animation: step1-badge-doodle-float-top 2.6s ease-in-out infinite;
  animation-delay: 0.4s;
}

#process_step_1_testing .process-step__header-step5-badge-doodle--right {
  right: -88px;
  bottom: -28px;
  width: clamp(80px, 8vw, 112px);
  transform: rotate(-8deg);
  animation: step1-badge-doodle-float-right 2.05s ease-in-out infinite;
  animation-delay: 0.75s;
}

@keyframes step1-badge-doodle-float-left {
  0%, 100% {
    transform: translateY(-46%) rotate(-6deg) translate(0, 0);
  }
  50% {
    transform: translateY(-46%) rotate(-6deg) translate(3px, -7px);
  }
}

@keyframes step1-badge-doodle-float-top {
  0%, 100% {
    transform: rotate(4deg) translate(0, 0);
  }
  50% {
    transform: rotate(4deg) translate(-4px, 6px);
  }
}

@keyframes step1-badge-doodle-float-right {
  0%, 100% {
    transform: rotate(-8deg) translate(0, 0);
  }
  50% {
    transform: rotate(-8deg) translate(5px, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #process_step_1_testing .process-step__header-step5-badge-doodle {
    animation: none !important;
  }
}

#process_step_1_testing .process-step__header-step5-badge {
  position: relative;
  z-index: 2;
}

#process_step_1_testing .process-step__header-step5-title,
#process_step_1_testing .process-step__header-step5-subtitle {
  position: relative;
  z-index: 2;
}

/* Step 2: декоративные SVG-зарисовки вокруг бейджа «02» — как у шага 1 */
#process_step_2_plan .process-step__header--step5 {
  position: relative;
  isolation: isolate;
}

#process_step_2_plan .process-step__header-step5-meta--step2 {
  overflow: visible;
  z-index: 1;
}

#process_step_2_plan .process-step__header-step5-badge-doodles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 112px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#process_step_2_plan .process-step__header-step5-badge-doodle {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#process_step_2_plan .process-step__header-step5-badge-doodle--left {
  left: -102px;
  top: 50%;
  width: clamp(104px, 10.4vw, 144px);
  transform: translateY(-46%) rotate(-6deg);
  animation: step2-badge-doodle-float-left 2.3s ease-in-out infinite;
}

#process_step_2_plan .process-step__header-step5-badge-doodle--top {
  top: -72px;
  right: -52px;
  width: clamp(92px, 9.2vw, 128px);
  transform: rotate(4deg);
  animation: step2-badge-doodle-float-top 2.6s ease-in-out infinite;
  animation-delay: 0.4s;
}

#process_step_2_plan .process-step__header-step5-badge-doodle--right {
  right: -88px;
  bottom: -28px;
  width: clamp(80px, 8vw, 112px);
  transform: rotate(-8deg);
  animation: step2-badge-doodle-float-right 2.05s ease-in-out infinite;
  animation-delay: 0.75s;
}

@keyframes step2-badge-doodle-float-left {
  0%, 100% {
    transform: translateY(-46%) rotate(-6deg) translate(0, 0);
  }
  50% {
    transform: translateY(-46%) rotate(-6deg) translate(3px, -7px);
  }
}

@keyframes step2-badge-doodle-float-top {
  0%, 100% {
    transform: rotate(4deg) translate(0, 0);
  }
  50% {
    transform: rotate(4deg) translate(-4px, 6px);
  }
}

@keyframes step2-badge-doodle-float-right {
  0%, 100% {
    transform: rotate(-8deg) translate(0, 0);
  }
  50% {
    transform: rotate(-8deg) translate(5px, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #process_step_2_plan .process-step__header-step5-badge-doodle {
    animation: none !important;
  }
}

#process_step_2_plan .process-step__header-step5-badge {
  position: relative;
  z-index: 2;
}

#process_step_2_plan .process-step__header-step5-title,
#process_step_2_plan .process-step__header-step5-subtitle {
  position: relative;
  z-index: 2;
}

/* Step 3: декоративные SVG-зарисовки вокруг бейджа «03» — как у шагов 1–2 */
#process_step_3_textbook .process-step__header--step5 {
  position: relative;
  isolation: isolate;
}

#process_step_3_textbook .process-step__header-step5-meta--step3 {
  overflow: visible;
  z-index: 1;
}

#process_step_3_textbook .process-step__header-step5-badge-doodles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 112px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#process_step_3_textbook .process-step__header-step5-badge-doodle {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#process_step_3_textbook .process-step__header-step5-badge-doodle--left {
  left: -102px;
  top: 50%;
  width: clamp(104px, 10.4vw, 144px);
  transform: translateY(-46%) rotate(-6deg);
  animation: step3-badge-doodle-float-left 2.3s ease-in-out infinite;
}

#process_step_3_textbook .process-step__header-step5-badge-doodle--top {
  top: -72px;
  right: -52px;
  width: clamp(92px, 9.2vw, 128px);
  transform: rotate(4deg);
  animation: step3-badge-doodle-float-top 2.6s ease-in-out infinite;
  animation-delay: 0.4s;
}

#process_step_3_textbook .process-step__header-step5-badge-doodle--right {
  right: -88px;
  bottom: -28px;
  width: clamp(80px, 8vw, 112px);
  transform: rotate(-8deg);
  animation: step3-badge-doodle-float-right 2.05s ease-in-out infinite;
  animation-delay: 0.75s;
}

@keyframes step3-badge-doodle-float-left {
  0%, 100% {
    transform: translateY(-46%) rotate(-6deg) translate(0, 0);
  }
  50% {
    transform: translateY(-46%) rotate(-6deg) translate(3px, -7px);
  }
}

@keyframes step3-badge-doodle-float-top {
  0%, 100% {
    transform: rotate(4deg) translate(0, 0);
  }
  50% {
    transform: rotate(4deg) translate(-4px, 6px);
  }
}

@keyframes step3-badge-doodle-float-right {
  0%, 100% {
    transform: rotate(-8deg) translate(0, 0);
  }
  50% {
    transform: rotate(-8deg) translate(5px, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #process_step_3_textbook .process-step__header-step5-badge-doodle {
    animation: none !important;
  }
}

#process_step_3_textbook .process-step__header-step5-badge {
  position: relative;
  z-index: 2;
}

#process_step_3_textbook .process-step__header-step5-title,
#process_step_3_textbook .process-step__header-step5-subtitle {
  position: relative;
  z-index: 2;
}

/* Step 4: декоративные SVG-зарисовки вокруг бейджа «04» — как у шага 2 */
#process_step_4_practice .process-step__header--step5 {
  position: relative;
  isolation: isolate;
}

#process_step_4_practice .process-step__header-step5-meta--step4 {
  overflow: visible;
  z-index: 1;
}

#process_step_4_practice .process-step__header-step5-badge-doodles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 112px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#process_step_4_practice .process-step__header-step5-badge-doodle {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#process_step_4_practice .process-step__header-step5-badge-doodle--left {
  left: -102px;
  top: 50%;
  width: clamp(104px, 10.4vw, 144px);
  transform: translateY(-46%) rotate(-6deg);
  animation: step4-badge-doodle-float-left 2.3s ease-in-out infinite;
}

#process_step_4_practice .process-step__header-step5-badge-doodle--top {
  top: -72px;
  right: -52px;
  width: clamp(92px, 9.2vw, 128px);
  transform: rotate(4deg);
  animation: step4-badge-doodle-float-top 2.6s ease-in-out infinite;
  animation-delay: 0.4s;
}

#process_step_4_practice .process-step__header-step5-badge-doodle--right {
  right: -88px;
  bottom: -28px;
  width: clamp(80px, 8vw, 112px);
  transform: rotate(-8deg);
  animation: step4-badge-doodle-float-right 2.05s ease-in-out infinite;
  animation-delay: 0.75s;
}

@keyframes step4-badge-doodle-float-left {
  0%, 100% {
    transform: translateY(-46%) rotate(-6deg) translate(0, 0);
  }
  50% {
    transform: translateY(-46%) rotate(-6deg) translate(3px, -7px);
  }
}

@keyframes step4-badge-doodle-float-top {
  0%, 100% {
    transform: rotate(4deg) translate(0, 0);
  }
  50% {
    transform: rotate(4deg) translate(-4px, 6px);
  }
}

@keyframes step4-badge-doodle-float-right {
  0%, 100% {
    transform: rotate(-8deg) translate(0, 0);
  }
  50% {
    transform: rotate(-8deg) translate(5px, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #process_step_4_practice .process-step__header-step5-badge-doodle {
    animation: none !important;
  }
}

#process_step_4_practice .process-step__header-step5-badge {
  position: relative;
  z-index: 2;
}

#process_step_4_practice .process-step__header-step5-title,
#process_step_4_practice .process-step__header-step5-subtitle {
  position: relative;
  z-index: 2;
}

/* Step 5: декоративные SVG-зарисовки вокруг бейджа «05» — как у шага 4 */
#process_step_5_lesson .process-step__header--step5 {
  position: relative;
  isolation: isolate;
}

#process_step_5_lesson .process-step__header-step5-meta--step5 {
  overflow: visible;
  z-index: 1;
}

#process_step_5_lesson .process-step__header-step5-badge-doodles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 112px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#process_step_5_lesson .process-step__header-step5-badge-doodle {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#process_step_5_lesson .process-step__header-step5-badge-doodle--left {
  left: -102px;
  top: 50%;
  width: clamp(104px, 10.4vw, 144px);
  transform: translateY(-46%) rotate(-6deg);
  animation: step5-badge-doodle-float-left 2.3s ease-in-out infinite;
}

#process_step_5_lesson .process-step__header-step5-badge-doodle--top {
  top: -72px;
  right: -52px;
  width: clamp(92px, 9.2vw, 128px);
  transform: rotate(4deg);
  animation: step5-badge-doodle-float-top 2.6s ease-in-out infinite;
  animation-delay: 0.4s;
}

#process_step_5_lesson .process-step__header-step5-badge-doodle--right {
  right: -88px;
  bottom: -28px;
  width: clamp(80px, 8vw, 112px);
  transform: rotate(-8deg);
  animation: step5-badge-doodle-float-right 2.05s ease-in-out infinite;
  animation-delay: 0.75s;
}

@keyframes step5-badge-doodle-float-left {
  0%, 100% {
    transform: translateY(-46%) rotate(-6deg) translate(0, 0);
  }
  50% {
    transform: translateY(-46%) rotate(-6deg) translate(3px, -7px);
  }
}

@keyframes step5-badge-doodle-float-top {
  0%, 100% {
    transform: rotate(4deg) translate(0, 0);
  }
  50% {
    transform: rotate(4deg) translate(-4px, 6px);
  }
}

@keyframes step5-badge-doodle-float-right {
  0%, 100% {
    transform: rotate(-8deg) translate(0, 0);
  }
  50% {
    transform: rotate(-8deg) translate(5px, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #process_step_5_lesson .process-step__header-step5-badge-doodle {
    animation: none !important;
  }
}

#process_step_5_lesson .process-step__header-step5-badge {
  position: relative;
  z-index: 2;
}

#process_step_5_lesson .process-step__header-step5-title,
#process_step_5_lesson .process-step__header-step5-subtitle {
  position: relative;
  z-index: 2;
}

/* Step 6: декоративные SVG-зарисовки вокруг бейджа «06» — как у шага 4 */
#process_step_6_checkpoints .process-step__header--step5 {
  position: relative;
  isolation: isolate;
}

#process_step_6_checkpoints .process-step__header-step5-meta--step6 {
  overflow: visible;
  z-index: 1;
}

#process_step_6_checkpoints .process-step__header-step5-badge-doodles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 112px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

#process_step_6_checkpoints .process-step__header-step5-badge-doodle {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

#process_step_6_checkpoints .process-step__header-step5-badge-doodle--left {
  left: -102px;
  top: 50%;
  width: clamp(104px, 10.4vw, 144px);
  transform: translateY(-46%) rotate(-6deg);
  animation: step6-badge-doodle-float-left 2.3s ease-in-out infinite;
}

#process_step_6_checkpoints .process-step__header-step5-badge-doodle--top {
  top: -72px;
  right: -52px;
  width: clamp(92px, 9.2vw, 128px);
  transform: rotate(4deg);
  animation: step6-badge-doodle-float-top 2.6s ease-in-out infinite;
  animation-delay: 0.4s;
}

#process_step_6_checkpoints .process-step__header-step5-badge-doodle--right {
  right: -88px;
  bottom: -28px;
  width: clamp(80px, 8vw, 112px);
  transform: rotate(-8deg);
  animation: step6-badge-doodle-float-right 2.05s ease-in-out infinite;
  animation-delay: 0.75s;
}

@keyframes step6-badge-doodle-float-left {
  0%, 100% {
    transform: translateY(-46%) rotate(-6deg) translate(0, 0);
  }
  50% {
    transform: translateY(-46%) rotate(-6deg) translate(3px, -7px);
  }
}

@keyframes step6-badge-doodle-float-top {
  0%, 100% {
    transform: rotate(4deg) translate(0, 0);
  }
  50% {
    transform: rotate(4deg) translate(-4px, 6px);
  }
}

@keyframes step6-badge-doodle-float-right {
  0%, 100% {
    transform: rotate(-8deg) translate(0, 0);
  }
  50% {
    transform: rotate(-8deg) translate(5px, -5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #process_step_6_checkpoints .process-step__header-step5-badge-doodle {
    animation: none !important;
  }
}

#process_step_6_checkpoints .process-step__header-step5-badge {
  position: relative;
  z-index: 2;
}

#process_step_6_checkpoints .process-step__header-step5-title,
#process_step_6_checkpoints .process-step__header-step5-subtitle {
  position: relative;
  z-index: 2;
}

.process-step__header-step5-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06em;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-transform: none;
  color: rgba(19, 19, 19, 0.96);
  max-width: 16ch;
}

.process-step__header-step5-title-line {
  display: block;
}

.process-step__header-step5-title-mark {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.process-step__header-step5-title-mark::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.06em;
  height: 0.24em;
  border-radius: 3px;
  background: #ffdd2d;
  z-index: -1;
}

.process-step__header-step5-subtitle {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: rgba(19, 19, 19, 0.52);
}

.process-step__header--step5.is-visible .process-step__header-step5-badge {
  transition-delay: 0s;
}

.process-step__header--step5.is-visible .process-step__header-step5-title {
  transition-delay: 0.08s;
}

.process-step__header--step5.is-visible .process-step__header-step5-subtitle {
  transition-delay: 0.14s;
}

.process-step__body {
  transition-delay: 0.15s;
}

#process_step_1_testing .process-step__split {
  transition-delay: 0.15s;
  --step1-gallery-min-w: 443px;
  --step1-gallery-min-h: 277px;
  --step1-video-min-w: 640px;
  --step1-split-gap: 12px;
  --step1-mobile-half-max: 50%;
  --step1-mobile-half-vw-max: 50vw;
  --step1-inline-min: 860px;
  --step1-stacked-max: 859px;
  --step1-ultra-narrow-max: 442px;
}

/* ── Description + bullets ── */

.process-step__desc {
  margin: 0 0 16px;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.45;
  color: rgba(19, 19, 19, 0.82);
  max-width: 680px;
}

.process-step__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.process-step__bullet {
  position: relative;
  padding-left: 28px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.4;
  color: rgba(19, 19, 19, 0.85);
}

.process-step__bullet::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--step-accent, #ffdd2d);
  font-size: 1.15em;
}

.process-step__bullets--inline {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  margin-top: 14px;
}

/* Step 1: первая колонка + подпись под ней; шаг 2 — те же классы в оверлее фото */
.process-step__bullets--fact-pair {
  gap: 14px;
}

.process-step__bullet--fact-pair {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.process-step__bullet--fact-pair::before {
  top: 0.18em;
}

.process-step__bullet-lead {
  font-weight: 600;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: rgba(17, 17, 17, 0.94);
  flex: 0 0 auto;
  max-width: 100%;
}

.process-step__bullet-detail {
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: clamp(11px, 1.15vw, 12.5px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.025em;
  color: rgba(19, 19, 19, 0.5);
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  margin-top: -0.28em;
}

#process_step_3_textbook .process-step__textbook-side .process-step__bullet-detail .landing-block5__underline-orange,
#process_step_1_testing .process-step__bullet-lead .landing-block5__underline-orange,
#process_step_4_practice .process-step__bullet-lead .landing-block5__underline-orange,
#process_step_5_lesson .process-step__bullet-lead .landing-block5__underline-orange,
#process_step_6_checkpoints .process-step__bullet-lead .landing-block5__underline-orange {
  text-decoration: underline;
  text-decoration-color: var(--step-accent, #ffdd2d);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.04em;
  text-decoration-skip-ink: auto;
}

#process_step_1_testing .process-step__bullet-detail,
#process_step_2_plan .process-step__bullet-detail,
#process_step_3_textbook .process-step__textbook-side .process-step__bullet-detail,
#process_step_4_practice .process-step__textbook-side .process-step__bullet-detail,
#process_step_2_plan .process-step__textbook-side .process-step__bullet-detail,
#process_step_5_lesson .process-step__textbook-side .process-step__bullet-detail,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullet-detail {
  font-size: clamp(9.5px, 0.98vw, 10.5px);
  line-height: 1.28;
}

#process_step_1_testing .process-step__bullet-lead,
#process_step_2_plan .process-step__bullet-lead,
#process_step_3_textbook .process-step__textbook-side .process-step__bullet-lead,
#process_step_4_practice .process-step__textbook-side .process-step__bullet-lead,
#process_step_2_plan .process-step__textbook-side .process-step__bullet-lead,
#process_step_5_lesson .process-step__textbook-side .process-step__bullet-lead,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullet-lead {
  font-size: clamp(18px, 2.35vw, 23px);
  line-height: 1.2;
}

/* ── CTA button (fills with same --step-accent as .process-step__number) ── */

.process-step__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 32px;
  border: 0;
  border-radius: 14px;
  background: var(--step-accent, rgba(17, 17, 17, 0.95));
  color: #fff;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    box-shadow 0.2s ease,
    transform 0.15s ease,
    filter 0.2s ease;
  margin-top: 8px;
}

/* Yellow accents in config: keep label dark for contrast */
#process_step_1_testing .process-step__cta,
#process_step_4_practice .process-step__cta {
  color: rgba(19, 19, 19, 0.96);
}

.process-step__cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.14);
  transform: translateY(-1px);
}

.process-step__cta:active {
  filter: brightness(0.94);
  transform: translateY(0);
}

.process-step__cta:focus-visible {
  outline: 2px solid var(--step-accent, rgba(17, 17, 17, 0.95));
  outline-offset: 3px;
}

#process_step_1_testing .process-step__cta:focus-visible,
#process_step_4_practice .process-step__cta:focus-visible {
  outline-color: rgba(19, 19, 19, 0.45);
}

/* ── Two-column split layout ── */

.process-step__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}

@media (min-width: 981px) {
  #process_step_1_testing .process-step__split {
    grid-template-columns:
      minmax(var(--step1-video-min-w), 1.8fr)
      minmax(var(--step1-gallery-min-w), 1fr);
    row-gap: var(--step1-split-gap);
    column-gap: var(--process-step-desktop-column-gap);
  }
}

/* Шаг 1: убираем промежуточное "ломающееся" состояние текста справа.
   До этого порога остаемся в одном столбце, чтобы не было переносов в 2 строки. */
@media (max-width: 1120px) {
  #process_step_1_testing .process-step__split {
    grid-template-columns: 1fr;
  }
}

/* Шаг 4: как только правая карточка должна стать уже ~430px, сразу переключаемся в колонку. */
@media (max-width: 1180px) {
  #process_step_4_practice .process-step__split--practice {
    grid-template-columns: 1fr;
  }
}

/* Шаг 5 / 6: stacked split — порог 1144px (как у step 5). */
@media (max-width: 1144px) {
  #process_step_5_lesson .process-step__split,
  #process_step_6_checkpoints .process-step__split {
    grid-template-columns: 1fr;
  }

  /* Как step 2 plan-calendar в stack: не шире «идеальной» ширины, по центру */
  #process_step_5_lesson .process-step__lesson-media {
    width: 100%;
    max-width: 750px;
    margin-inline: auto;
    min-width: 0;
  }
}

/* ── Step 1: Тестирование — media pair ── */

.process-step__media-pair {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 200px;
}

.process-step__pair-img {
  position: absolute;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.process-step__pair-img--back {
  top: 0;
  left: 0;
  width: 70%;
  height: 75%;
  z-index: 0;
}

.process-step__pair-img--front {
  bottom: 0;
  right: 0;
  width: 70%;
  height: 75%;
  z-index: 1;
  border: 3px solid #fff;
}

/* ── Soft content card (остальные места, где нужна карточка) ── */

.process-step__content-card {
  padding: clamp(16px, 2.5vw, 28px);
  border-radius: 14px;
}

/* ── Step 2: Plan — calendar + photo ── */

.process-step__split--plan {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  align-items: stretch;
}

/* Step 2: карточка с буллетами — см. shared .process-step__step5-card-group (как шаг 1 / 5) */

#process_step_2_plan .process-step__split--plan {
  position: relative;
  overflow: visible;
  --step2-inline-min: 860px;
  --step2-stacked-max: 859px;
  /* Стэк календарь+карусель, когда minmax(500px) + minmax(443px) + gap больше не влезают */
  --step2-stack-max: 960px;
  --step2-deux-cols-min: 961px;
  --step2-ultra-narrow-max: 442px;
  --step2-media-min-w: 500px;
  --step2-gallery-min-w: 443px;
  --step2-gallery-min-h: 277px;
  --step2-mobile-half-max: 50%;
  --step2-mobile-half-vw-max: 50vw;
  --step2-split-gap: 12px;
  /* Стек: календарь не растёт шире «идеальной» ширины до двухколоночного split (961px+) */
  --step2-calendar-stacked-max: 571px;
  /* split >= 1027px → hand-note в plan-column; уже → под календарём (deux-col only) */
  --step2-hand-note-split-wide-min: 1027px;
  --step2-hand-note-split-narrow-max: 1026px;
  container-type: inline-size;
  container-name: step2-split;
  align-items: start;
  /* Как у шага 1: анимация на самом split, не на обёртке body */
  transition-delay: 0.15s;
}

#process_step_2_plan .process-step__plan-scheme-bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(100%, 600px);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

#process_step_2_plan .process-step__plan-calendar,
#process_step_2_plan .process-step__plan-column {
  position: relative;
  z-index: 1;
}

@media (min-width: 961px) {
  #process_step_2_plan .process-step__split--plan {
    grid-template-columns:
      minmax(var(--step2-media-min-w), 1.8fr)
      minmax(var(--step2-gallery-min-w), 1fr);
    row-gap: var(--step2-split-gap);
    column-gap: var(--process-step-desktop-column-gap);
  }
}

@media (max-width: 960px) {
  #process_step_2_plan .process-step__split--plan {
    grid-template-columns: 1fr;
  }

  #process_step_2_plan .process-step__plan-scheme-bg {
    transform: translate(-50%, calc(-50% - 80px)) scale(1.3);
  }

  #process_step_2_plan .process-step__plan-calendar {
    width: 100%;
    max-width: var(--step2-calendar-stacked-max, 571px);
    margin-inline: auto;
  }
}

#process_step_2_plan .process-step__plan-calendar {
  min-width: 0;
}

/* Step 1/3/4/5/6: текстовые блоки с тем же фоном, что у Step 2 plan-photo */
#process_step_1_testing .process-step__textbook-side,
#process_step_3_textbook .process-step__textbook-side,
#process_step_4_practice .process-step__textbook-side,
#process_step_5_lesson .process-step__textbook-side,
#process_step_6_checkpoints .process-step__textbook-side {
  background:
    radial-gradient(circle at 12% 10%, rgba(171, 158, 255, 0.22), transparent 48%),
    radial-gradient(circle at 88% 85%, rgba(130, 215, 255, 0.2), transparent 45%),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 16px 14px;
  box-sizing: border-box;
}

/* Step 1: справа колонка — сверху карусель, сразу под ней «стеклянная» карточка (как figure + block в future_block_2) */
#process_step_1_testing .process-step__step1-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

#process_step_1_testing .process-step__step1-column .process-step__step1-carousel {
  width: 100%;
  margin: 0 0 0;
  flex: 0 0 auto;
  align-self: center;
  max-width: min(360px, 100%);
}

#process_step_1_testing .process-step__step1-carousel {
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  overflow-y: visible;
  background: transparent;
  align-self: stretch;
}

#process_step_1_testing .process-step__step1-carousel-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  min-height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-sizing: border-box;
}

#process_step_1_testing .process-step__step1-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
}

#process_step_1_testing .process-step__step1-carousel-dot {
  /* неактивные: в 1.5 раза меньше прежних 14px; активная — отдельное правило ниже */
  width: calc(14px / 1.5);
  height: calc(14px / 1.5);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    width 0.2s ease,
    height 0.2s ease;
}

#process_step_1_testing .process-step__step1-carousel-dot:hover {
  background: rgba(0, 0, 0, 0.28);
}

#process_step_1_testing .process-step__step1-carousel-dot.is-active {
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(0, 0, 0, 0.36);
  transform: none;
}

#process_step_1_testing .process-step__step1-carousel-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

#process_step_1_testing .process-step__step1-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#process_step_1_testing .process-step__step1-carousel-slide.is-active {
  opacity: 1;
}

/* Step 1: промежуточный split (1061–1120): карточка и карусель по центру правой колонки. */
@media (min-width: 1061px) and (max-width: 1120px) {
  #process_step_1_testing .process-step__step1-column {
    align-items: center;
  }

  #process_step_1_testing .process-step__step1-column .process-step__step1-carousel {
    width: 100%;
    max-width: none;
  }

  #process_step_1_testing .process-step__step5-card-group {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    align-self: center;
  }
}

/* Step 1 desktop split (>=1121): два независимых вертикальных столба */
@media (min-width: 1121px) {
  #process_step_1_testing .process-step__split {
    grid-template-rows: auto;
    align-items: start;
  }

  #process_step_1_testing .process-step__step1-split-col--media {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: start;
    gap: clamp(8px, 1.2vw, 14px);
    min-width: 0;
    width: 100%;
  }

  #process_step_1_testing .process-step__step1-split-col--media .process-step__lesson-media {
    width: 100%;
  }

  #process_step_1_testing .process-step__step1-column {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
    gap: clamp(12px, 1.5vw, 20px);
    min-width: 0;
    width: 100%;
  }

  #process_step_1_testing .process-step__step1-column .process-step__step1-carousel {
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
  }

  #process_step_1_testing .process-step__step1-column .process-step__step5-card-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
  }

  #process_step_1_testing .process-step__step5-hand-note--mobile {
    display: none !important;
  }
}

/* Step 1 mobile/tablet (<=1120): подпись только в карточке */
@media (max-width: 1120px) {
  #process_step_1_testing .process-step__step5-hand-note--desktop {
    display: none !important;
  }

  #process_step_1_testing .process-step__step5-hand-note--mobile {
    display: inline-flex !important;
  }
}

/* Step 1 state map (без изменения механики):
   - desktop: >=1061
   - narrow inline: 860..1120
   - stacked mobile: <=859
   - ultra-narrow fallback: <=442 */

/* Step 1 stacked mobile (<=859): карусель сверху, карточка снизу */
@media (max-width: 859px) {
  #process_step_1_testing .process-step__step1-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #process_step_1_testing .process-step__step1-column .process-step__step1-carousel {
    min-width: 443px !important;
    width: max(443px, min(var(--step1-mobile-half-max), var(--step1-mobile-half-vw-max))) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  #process_step_1_testing .process-step__step1-carousel-viewport {
    min-width: 443px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 277px !important;
    margin-left: 0;
    margin-right: 0;
  }

  #process_step_1_testing .process-step__step5-card-group {
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
    align-self: center !important;
    box-sizing: border-box;
  }

  #process_step_1_testing .process-step__textbook-side--step5-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Step 1 mobile inline (860–1120): карточка слева, карусель до правого края — как step 5 */
@media (max-width: 1120px) and (min-width: 860px) {
  #process_step_1_testing .process-step__step1-column {
    display: grid !important;
    grid-template-columns: min(376px, 100%) minmax(0, 1fr) !important;
    column-gap: clamp(12px, 2vw, 20px);
    row-gap: 0;
    align-items: start !important;
    justify-content: stretch;
  }

  #process_step_1_testing .process-step__step5-card-group {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-self: start !important;
    justify-self: start;
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
  }

  #process_step_1_testing .process-step__textbook-side--step5-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #process_step_1_testing .process-step__step1-column .process-step__step1-carousel {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    align-self: start !important;
    justify-self: stretch !important;
  }

  #process_step_1_testing .process-step__step1-column .process-step__step1-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Step 1 mobile stacked: нижняя карточка не уже viewport карусели */
@media (max-width: 859px) {
  #process_step_1_testing .process-step__step5-card-group {
    min-width: max(443px, min(var(--step1-mobile-half-max), var(--step1-mobile-half-vw-max))) !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-self: center !important;
  }
}

@media (max-width: 442px) {
  #process_step_1_testing .process-step__step1-column .process-step__step1-carousel {
    min-width: 0 !important;
    width: min(100vw, 100%) !important;
    max-width: min(100vw, 100%) !important;
  }

  #process_step_1_testing .process-step__step1-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #process_step_1_testing .process-step__step5-card-group {
    min-width: min(100vw, 100%) !important;
    max-width: 100% !important;
  }
}

#process_step_1_testing .process-step__step5-card-group,
#process_step_2_plan .process-step__step5-card-group,
#process_step_3_textbook .process-step__step5-card-group,
#process_step_4_practice .process-step__step5-card-group,
#process_step_5_lesson .process-step__step5-card-group,
#process_step_6_checkpoints .process-step__step5-card-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: min(376px, 100%);
  box-sizing: border-box;
}

#process_step_1_testing .process-step__textbook-side--step5-card,
#process_step_2_plan .process-step__textbook-side--step5-card,
#process_step_3_textbook .process-step__textbook-side--step5-card,
#process_step_4_practice .process-step__textbook-side--step5-card,
#process_step_5_lesson .process-step__textbook-side--step5-card,
#process_step_6_checkpoints .process-step__textbook-side--step5-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  align-self: start;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  margin-top: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 25px;
}

#process_step_1_testing .process-step__textbook-side .process-step__bullets--step5-icons,
#process_step_2_plan .process-step__textbook-side .process-step__bullets--step5-icons,
#process_step_3_textbook .process-step__textbook-side .process-step__bullets--step5-icons,
#process_step_4_practice .process-step__textbook-side .process-step__bullets--step5-icons,
#process_step_5_lesson .process-step__textbook-side .process-step__bullets--step5-icons,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullets--step5-icons {
  gap: 0;
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__bullet--with-icon,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__bullet--with-icon,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__bullet--with-icon,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__bullet--with-icon,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__bullet--with-icon,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__bullet--with-icon {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(19, 19, 19, 0.1);
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__bullet--with-icon:first-child,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__bullet--with-icon:first-child,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__bullet--with-icon:first-child,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__bullet--with-icon:first-child,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__bullet--with-icon:first-child,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__bullet--with-icon:first-child {
  padding-top: 0;
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__bullet--with-icon:last-child,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__bullet--with-icon:last-child,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__bullet--with-icon:last-child,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__bullet--with-icon:last-child,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__bullet--with-icon:last-child,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__bullet--with-icon:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__bullet-lead,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__bullet-lead,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__bullet-lead,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__bullet-lead,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__bullet-lead,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__bullet-lead {
  white-space: nowrap;
}

#process_step_1_testing .process-step__textbook-side .process-step__bullet--with-icon,
#process_step_2_plan .process-step__textbook-side .process-step__bullet--with-icon,
#process_step_3_textbook .process-step__textbook-side .process-step__bullet--with-icon,
#process_step_4_practice .process-step__textbook-side .process-step__bullet--with-icon,
#process_step_5_lesson .process-step__textbook-side .process-step__bullet--with-icon,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullet--with-icon {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: start;
  padding-left: 0;
}

#process_step_1_testing .process-step__textbook-side .process-step__bullet--with-icon::before,
#process_step_2_plan .process-step__textbook-side .process-step__bullet--with-icon::before,
#process_step_3_textbook .process-step__textbook-side .process-step__bullet--with-icon::before,
#process_step_4_practice .process-step__textbook-side .process-step__bullet--with-icon::before,
#process_step_5_lesson .process-step__textbook-side .process-step__bullet--with-icon::before,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullet--with-icon::before {
  content: none;
}

#process_step_1_testing .process-step__textbook-side .process-step__bullet-icon,
#process_step_2_plan .process-step__textbook-side .process-step__bullet-icon,
#process_step_3_textbook .process-step__textbook-side .process-step__bullet-icon,
#process_step_4_practice .process-step__textbook-side .process-step__bullet-icon,
#process_step_5_lesson .process-step__textbook-side .process-step__bullet-icon,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullet-icon {
  position: static;
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: center;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(123, 97, 255, 0.1);
}

#process_step_1_testing .process-step__textbook-side .process-step__step5-icon,
#process_step_2_plan .process-step__textbook-side .process-step__step5-icon,
#process_step_3_textbook .process-step__textbook-side .process-step__step5-icon,
#process_step_4_practice .process-step__textbook-side .process-step__step5-icon,
#process_step_5_lesson .process-step__textbook-side .process-step__step5-icon,
#process_step_6_checkpoints .process-step__textbook-side .process-step__step5-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-top: 0;
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__cta,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__cta,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__cta,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__cta,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__cta,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__cta {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
  position: relative;
  padding-inline: 44px;
  background: #f97316;
  color: #fff;
  border: 0;
  box-shadow:
    0 2px 8px rgba(234, 88, 12, 0.42),
    0 6px 20px rgba(17, 17, 17, 0.14);
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__cta:hover,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__cta:hover,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__cta:hover,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__cta:hover,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__cta:hover,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__cta:hover {
  background: #ea580c;
  color: #fff;
  filter: none;
  box-shadow:
    0 3px 12px rgba(234, 88, 12, 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
  transform: translateY(-1px);
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__cta:active,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__cta:active,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__cta:active,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__cta:active,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__cta:active,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__cta:active {
  background: #ea580c;
  color: #fff;
  filter: none;
  transform: translateY(0);
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__cta:focus-visible,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__cta:focus-visible,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__cta:focus-visible,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__cta:focus-visible,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__cta:focus-visible,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__cta:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.55);
  outline-offset: 3px;
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__cta-label,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__cta-label,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__cta-label,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__cta-label,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__cta-label,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__cta-label {
  text-align: center;
}

#process_step_1_testing .process-step__textbook-side--step5-card .process-step__cta-arrow,
#process_step_2_plan .process-step__textbook-side--step5-card .process-step__cta-arrow,
#process_step_3_textbook .process-step__textbook-side--step5-card .process-step__cta-arrow,
#process_step_4_practice .process-step__textbook-side--step5-card .process-step__cta-arrow,
#process_step_5_lesson .process-step__textbook-side--step5-card .process-step__cta-arrow,
#process_step_6_checkpoints .process-step__textbook-side--step5-card .process-step__cta-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  flex-shrink: 0;
  pointer-events: none;
}

#process_step_1_testing .process-step__step5-hand-note,
#process_step_2_plan .process-step__step5-hand-note,
#process_step_3_textbook .process-step__step5-hand-note,
#process_step_4_practice .process-step__step5-hand-note,
#process_step_5_lesson .process-step__step5-hand-note,
#process_step_6_checkpoints .process-step__step5-hand-note {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2px, 0.8vw, 8px);
  width: 100%;
  margin: clamp(4px, 1.2vw, 10px) 0 0;
  padding: 0 clamp(4px, 1.5vw, 12px) clamp(2px, 0.6vw, 6px);
  box-sizing: border-box;
  transform: rotate(-1.5deg);
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(22px, 4.6vw, 34px);
  line-height: 1.06;
  color: rgba(19, 19, 19, 0.94);
  text-align: center;
}

#process_step_1_testing .process-step__step5-hand-note-body,
#process_step_2_plan .process-step__step5-hand-note-body,
#process_step_3_textbook .process-step__step5-hand-note-body,
#process_step_4_practice .process-step__step5-hand-note-body,
#process_step_5_lesson .process-step__step5-hand-note-body,
#process_step_6_checkpoints .process-step__step5-hand-note-body {
  display: inline-block;
  text-wrap: balance;
}

#process_step_1_testing .process-step__step5-hand-note-mark,
#process_step_2_plan .process-step__step5-hand-note-mark,
#process_step_3_textbook .process-step__step5-hand-note-mark,
#process_step_4_practice .process-step__step5-hand-note-mark,
#process_step_5_lesson .process-step__step5-hand-note-mark,
#process_step_6_checkpoints .process-step__step5-hand-note-mark {
  text-decoration: underline;
  text-decoration-color: rgba(91, 79, 199, 0.92);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: auto;
}

#process_step_1_testing .process-step__step5-hand-note-arrow,
#process_step_2_plan .process-step__step5-hand-note-arrow,
#process_step_3_textbook .process-step__step5-hand-note-arrow,
#process_step_4_practice .process-step__step5-hand-note-arrow,
#process_step_5_lesson .process-step__step5-hand-note-arrow,
#process_step_6_checkpoints .process-step__step5-hand-note-arrow {
  flex: none;
  color: rgba(19, 19, 19, 0.88);
  margin-bottom: 0.12em;
  transform: translateY(-2px) rotate(4deg);
}

#process_step_1_testing .process-step__step5-hand-note-arrow svg,
#process_step_2_plan .process-step__step5-hand-note-arrow svg,
#process_step_3_textbook .process-step__step5-hand-note-arrow svg,
#process_step_4_practice .process-step__step5-hand-note-arrow svg,
#process_step_5_lesson .process-step__step5-hand-note-arrow svg,
#process_step_6_checkpoints .process-step__step5-hand-note-arrow svg {
  display: block;
  width: clamp(34px, 8vw, 48px);
  height: auto;
}

/* Step 2: default wide + stacked → hand-note в plan-column */
#process_step_2_plan .process-step__step5-hand-note--under-calendar {
  display: none;
}

/* Step 2: узкий deux-col — hand-note под календарём */
@media (min-width: 961px) {
  @container step2-split (max-width: 1026px) {
    #process_step_2_plan .process-step__plan-calendar {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: clamp(8px, 1.2vw, 14px);
    }

    #process_step_2_plan .process-step__step5-hand-note--plan-column {
      display: none !important;
    }

    #process_step_2_plan .process-step__step5-hand-note--under-calendar {
      display: inline-flex !important;
      width: 100%;
      margin-top: 0;
      justify-content: flex-end;
      text-align: right;
    }

    #process_step_2_plan .process-step__step5-hand-note--under-calendar .process-step__step5-hand-note-body {
      text-align: right;
    }

    #process_step_2_plan .process-step__plan-column {
      min-width: 0;
      max-width: 100%;
      overflow-x: clip;
      align-self: stretch;
    }

    #process_step_2_plan .process-step__plan-column .process-step__plan-carousel {
      min-width: 0 !important;
      width: 100%;
      max-width: 100%;
    }

    #process_step_2_plan .process-step__plan-column .process-step__plan-carousel-viewport {
      min-width: 0 !important;
      min-height: 0 !important;
      width: 100%;
      max-width: 100%;
    }

    #process_step_2_plan .process-step__plan-column .process-step__step5-card-group {
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }
  }
}

@supports not (container-type: inline-size) {
  @media (min-width: 961px) and (max-width: 1049px) {
    #process_step_2_plan .process-step__plan-calendar {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: clamp(8px, 1.2vw, 14px);
    }

    #process_step_2_plan .process-step__step5-hand-note--plan-column {
      display: none !important;
    }

    #process_step_2_plan .process-step__step5-hand-note--under-calendar {
      display: inline-flex !important;
      width: 100%;
      margin-top: 0;
      justify-content: flex-end;
      text-align: right;
    }

    #process_step_2_plan .process-step__step5-hand-note--under-calendar .process-step__step5-hand-note-body {
      text-align: right;
    }

    #process_step_2_plan .process-step__plan-column {
      min-width: 0;
      max-width: 100%;
      overflow-x: clip;
      align-self: stretch;
    }

    #process_step_2_plan .process-step__plan-column .process-step__plan-carousel {
      min-width: 0 !important;
      width: 100%;
      max-width: 100%;
    }

    #process_step_2_plan .process-step__plan-column .process-step__plan-carousel-viewport {
      min-width: 0 !important;
      min-height: 0 !important;
      width: 100%;
      max-width: 100%;
    }

    #process_step_2_plan .process-step__plan-column .process-step__step5-card-group {
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }
  }
}

/* Step 1 desktop: hand-note text + arrow flush to right edge of media column */
@media (min-width: 1121px) {
  #process_step_1_testing .process-step__step1-split-col--media .process-step__step5-hand-note--desktop {
    display: flex !important;
    flex-direction: row;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    margin: clamp(8px, 1.2vw, 14px) 0 0;
    align-self: stretch;
    justify-content: flex-end !important;
    text-align: right;
    padding-left: 0;
    padding-right: 0;
    font-size: 38px;
    line-height: 1.08;
  }

  #process_step_1_testing .process-step__step1-split-col--media .process-step__step5-hand-note--desktop .process-step__step5-hand-note-body {
    display: block;
    flex: 0 1 auto;
    text-align: right;
    text-wrap: unset;
    max-width: 11.5em;
    font-size: inherit;
  }

  #process_step_1_testing .process-step__step1-split-col--media .process-step__step5-hand-note--desktop .process-step__step5-hand-note-arrow svg {
    width: 54px;
    height: auto;
  }
}

/* Step 3 / 4 / 5 / 6: правая колонка = зеркало .process-step__plan-column */
#process_step_3_textbook .process-step__textbook-column--step3,
#process_step_4_practice .process-step__textbook-column--step4,
#process_step_5_lesson .process-step__textbook-column--step5,
#process_step_6_checkpoints .process-step__textbook-column--step6 {
  --step3-gallery-min-w: 443px;
  --step3-gallery-min-h: 277px;
  --step3-mobile-half-max: 50%;
  --step3-mobile-half-vw-max: 50vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 20px);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

#process_step_3_textbook .process-step__textbook-column--step3 .process-step__step3-carousel,
#process_step_4_practice .process-step__textbook-column--step4 .process-step__step4-carousel,
#process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-carousel,
#process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step6-carousel {
  width: 100%;
  margin: 0 0 0;
  flex: 0 0 auto;
  align-self: center;
  max-width: min(360px, 100%);
}

/* Порог = тот же, что у .process-step__textbook-desktop-split (min-width: 981px), иначе 961–980: стек снаружи + «широкая» внутренняя колонка = огромная высота. */
@media (min-width: 981px) {
  #process_step_3_textbook .process-step__textbook-column--step3,
  #process_step_4_practice .process-step__textbook-column--step4,
  #process_step_5_lesson .process-step__textbook-column--step5,
  #process_step_6_checkpoints .process-step__textbook-column--step6 {
    align-items: center;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step3-carousel,
  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step4-carousel,
  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-carousel,
  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step6-carousel {
    width: 100%;
    max-width: none;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step5-card-group,
  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step5-card-group,
  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-card-group,
  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step5-card-group {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    align-self: center;
  }
}

/* Шаг 3: карта|карусель в одной строке (860–980) — как step 2 plan (860–960). */
@media (max-width: 980px) and (min-width: 860px) {
  #process_step_3_textbook .process-step__textbook-column--step3 {
    display: grid !important;
    grid-template-columns: min(376px, 100%) minmax(0, 1fr) !important;
    column-gap: clamp(12px, 2vw, 20px);
    row-gap: 0;
    align-items: start !important;
    justify-content: stretch;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step5-card-group {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-self: start !important;
    justify-self: start;
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__textbook-side--step5-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step3-carousel {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    align-self: start !important;
    justify-self: stretch !important;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step3-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Шаг 4: карта|карусель в одной строке (860–1180) — как step 3 (860–980). */
@media (max-width: 1180px) and (min-width: 860px) {
  #process_step_4_practice .process-step__textbook-column--step4 {
    display: grid !important;
    grid-template-columns: min(376px, 100%) minmax(0, 1fr) !important;
    column-gap: clamp(12px, 2vw, 20px);
    row-gap: 0;
    align-items: start !important;
    justify-content: stretch;
  }

  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step5-card-group {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-self: start !important;
    justify-self: start;
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
  }

  #process_step_4_practice .process-step__textbook-column--step4 .process-step__textbook-side--step5-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step4-carousel {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    align-self: start !important;
    justify-self: stretch !important;
  }

  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step4-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Шаг 5: при stack .split — 860..1144: карточка|карусель в одной строке — как step 3 (860–980) */
@media (max-width: 1144px) and (min-width: 860px) {
  #process_step_5_lesson .process-step__textbook-column--step5 {
    display: grid !important;
    grid-template-columns: min(376px, 100%) minmax(0, 1fr) !important;
    column-gap: clamp(12px, 2vw, 20px);
    row-gap: 0;
    align-items: start !important;
    justify-content: stretch;
  }

  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-card-group {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-self: start !important;
    justify-self: start;
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
  }

  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__textbook-side--step5-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-carousel {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    align-self: start !important;
    justify-self: stretch !important;
  }

  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Шаг 6: при stack .split — 860..1144: карточка|карусель в одной строке — как step 5 */
@media (max-width: 1144px) and (min-width: 860px) {
  #process_step_6_checkpoints .process-step__textbook-column--step6 {
    display: grid !important;
    grid-template-columns: min(376px, 100%) minmax(0, 1fr) !important;
    column-gap: clamp(12px, 2vw, 20px);
    row-gap: 0;
    align-items: start !important;
    justify-content: stretch;
  }

  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step5-card-group {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-self: start !important;
    justify-self: start;
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
  }

  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__textbook-side--step5-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step6-carousel {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    align-self: start !important;
    justify-self: stretch !important;
  }

  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step6-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 859px) {
  /* Step 3 stacked mobile (<=859): карусель сверху, карточка снизу — как step 2 */
  #process_step_3_textbook .process-step__textbook-column--step3 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step3-carousel {
    min-width: 443px !important;
    width: max(443px, min(var(--step3-mobile-half-max), var(--step3-mobile-half-vw-max))) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  #process_step_3_textbook .process-step__step3-carousel-viewport {
    min-width: 443px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 277px !important;
    margin-left: 0;
    margin-right: 0;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step5-card-group {
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
    align-self: center !important;
    box-sizing: border-box;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step5-card-group,
  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-card-group,
  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step5-card-group {
    min-width: max(443px, min(var(--step3-mobile-half-max), var(--step3-mobile-half-vw-max))) !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-self: center !important;
  }

  /* Step 4 stacked mobile (<=859): карусель сверху, карточка снизу — как step 3 */
  #process_step_4_practice .process-step__textbook-column--step4 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step4-carousel {
    min-width: 443px !important;
    width: max(443px, min(var(--step3-mobile-half-max), var(--step3-mobile-half-vw-max))) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  #process_step_4_practice .process-step__step4-carousel-viewport {
    min-width: 443px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 277px !important;
    margin-left: 0;
    margin-right: 0;
  }

  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step5-card-group {
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
    align-self: center !important;
    box-sizing: border-box;
  }

  /* Step 5 stacked mobile (<=859): карусель сверху, карточка снизу — как step 3 */
  #process_step_5_lesson .process-step__textbook-column--step5 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-carousel {
    min-width: 443px !important;
    width: max(443px, min(var(--step3-mobile-half-max), var(--step3-mobile-half-vw-max))) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  #process_step_5_lesson .process-step__step5-carousel-viewport {
    min-width: 443px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 277px !important;
    margin-left: 0;
    margin-right: 0;
  }

  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-card-group {
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
    align-self: center !important;
    box-sizing: border-box;
  }

  /* Step 6 stacked mobile (<=859): карусель сверху, карточка снизу — как step 5 */
  #process_step_6_checkpoints .process-step__textbook-column--step6 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step6-carousel {
    min-width: 443px !important;
    width: max(443px, min(var(--step3-mobile-half-max), var(--step3-mobile-half-vw-max))) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  #process_step_6_checkpoints .process-step__step6-carousel-viewport {
    min-width: 443px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 277px !important;
    margin-left: 0;
    margin-right: 0;
  }

  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step5-card-group {
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
    align-self: center !important;
    box-sizing: border-box;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__textbook-side--step5-card,
  #process_step_4_practice .process-step__textbook-column--step4 .process-step__textbook-side--step5-card,
  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__textbook-side--step5-card,
  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__textbook-side--step5-card {
    min-width: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 442px) {
  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step3-carousel,
  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step4-carousel,
  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-carousel,
  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step6-carousel {
    min-width: 0 !important;
    width: min(100vw, 100%) !important;
    max-width: min(100vw, 100%) !important;
  }

  #process_step_3_textbook .process-step__step3-carousel-viewport,
  #process_step_4_practice .process-step__step4-carousel-viewport,
  #process_step_5_lesson .process-step__step5-carousel-viewport,
  #process_step_6_checkpoints .process-step__step6-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #process_step_3_textbook .process-step__textbook-column--step3 .process-step__step5-card-group,
  #process_step_4_practice .process-step__textbook-column--step4 .process-step__step5-card-group,
  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-card-group,
  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step5-card-group {
    min-width: min(100vw, 100%) !important;
    max-width: 100% !important;
  }

  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__textbook-side--step5-card,
  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__textbook-side--step5-card {
    min-width: 0 !important;
    width: 100% !important;
  }
}

#process_step_1_testing .process-step__step5-copy,
#process_step_2_plan .process-step__step5-copy,
#process_step_3_textbook .process-step__step5-copy,
#process_step_4_practice .process-step__step5-copy,
#process_step_5_lesson .process-step__step5-copy,
#process_step_6_checkpoints .process-step__step5-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

#process_step_3_textbook .process-step__step3-carousel,
#process_step_4_practice .process-step__step4-carousel,
#process_step_5_lesson .process-step__step5-carousel,
#process_step_6_checkpoints .process-step__step6-carousel {
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  overflow-y: visible;
  background: transparent;
  align-self: stretch;
}

#process_step_3_textbook .process-step__step3-carousel-viewport,
#process_step_4_practice .process-step__step4-carousel-viewport,
#process_step_5_lesson .process-step__step5-carousel-viewport,
#process_step_6_checkpoints .process-step__step6-carousel-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  min-height: 168px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  box-sizing: border-box;
}

#process_step_3_textbook .process-step__step3-carousel-dots,
#process_step_4_practice .process-step__step4-carousel-dots,
#process_step_5_lesson .process-step__step5-carousel-dots,
#process_step_6_checkpoints .process-step__step6-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
}

#process_step_3_textbook .process-step__step3-carousel-dot,
#process_step_4_practice .process-step__step4-carousel-dot,
#process_step_5_lesson .process-step__step5-carousel-dot,
#process_step_6_checkpoints .process-step__step6-carousel-dot {
  width: calc(14px / 1.5);
  height: calc(14px / 1.5);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    width 0.2s ease,
    height 0.2s ease;
}

#process_step_3_textbook .process-step__step3-carousel-dot:hover,
#process_step_4_practice .process-step__step4-carousel-dot:hover,
#process_step_5_lesson .process-step__step5-carousel-dot:hover,
#process_step_6_checkpoints .process-step__step6-carousel-dot:hover {
  background: rgba(0, 0, 0, 0.28);
}

#process_step_3_textbook .process-step__step3-carousel-dot.is-active,
#process_step_4_practice .process-step__step4-carousel-dot.is-active,
#process_step_5_lesson .process-step__step5-carousel-dot.is-active,
#process_step_6_checkpoints .process-step__step6-carousel-dot.is-active {
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(0, 0, 0, 0.36);
  transform: none;
}

#process_step_3_textbook .process-step__step3-carousel-dot:focus-visible,
#process_step_4_practice .process-step__step4-carousel-dot:focus-visible,
#process_step_5_lesson .process-step__step5-carousel-dot:focus-visible,
#process_step_6_checkpoints .process-step__step6-carousel-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

#process_step_3_textbook .process-step__step3-carousel-slide,
#process_step_4_practice .process-step__step4-carousel-slide,
#process_step_5_lesson .process-step__step5-carousel-slide,
#process_step_6_checkpoints .process-step__step6-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#process_step_3_textbook .process-step__step3-carousel-slide.is-active,
#process_step_4_practice .process-step__step4-carousel-slide.is-active,
#process_step_5_lesson .process-step__step5-carousel-slide.is-active,
#process_step_6_checkpoints .process-step__step6-carousel-slide.is-active {
  opacity: 1;
}

@media (max-width: 700px) {
  #process_step_2_plan .process-step__plan-column {
    display: flex !important;
    flex-direction: column !important;
  }

  #process_step_3_textbook .process-step__textbook-column--step3,
  #process_step_4_practice .process-step__textbook-column--step4,
  #process_step_5_lesson .process-step__textbook-column--step5,
  #process_step_6_checkpoints .process-step__textbook-column--step6 {
    display: flex !important;
    flex-direction: column !important;
  }
}

#process_step_2_plan .process-step__plan-img {
  display: none;
}

/* Step 2: карусель иллюстраций (как step1 — fade + точки) */
#process_step_2_plan .process-step__plan-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
  background: transparent;
  align-self: stretch;
  min-width: var(--step2-gallery-min-w);
}

#process_step_2_plan .process-step__plan-carousel-viewport {
  position: relative;
  width: 100%;
  min-width: var(--step2-gallery-min-w);
  aspect-ratio: 16 / 10;
  min-height: var(--step2-gallery-min-h);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

#process_step_2_plan .process-step__plan-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
}

#process_step_2_plan .process-step__plan-carousel-dot {
  width: calc(14px / 1.5);
  height: calc(14px / 1.5);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    width 0.2s ease,
    height 0.2s ease;
}

#process_step_2_plan .process-step__plan-carousel-dot:hover {
  background: rgba(0, 0, 0, 0.28);
}

#process_step_2_plan .process-step__plan-carousel-dot.is-active {
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(0, 0, 0, 0.36);
  transform: none;
}

#process_step_2_plan .process-step__plan-carousel-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

#process_step_1_testing .process-step__step1-carousel,
#process_step_2_plan .process-step__plan-carousel,
#process_step_3_textbook .process-step__step3-carousel,
#process_step_4_practice .process-step__step4-carousel,
#process_step_5_lesson .process-step__step5-carousel,
#process_step_6_checkpoints .process-step__step6-carousel {
  --landing-carousel-bar-h: 6px;
  --landing-carousel-bar-w: 64px;
  --landing-carousel-bar-w-active: 96px;
  --landing-carousel-bar-gap: 6px;
  --landing-carousel-track: rgba(0, 0, 0, 0.2);
  --landing-carousel-fill: rgba(0, 0, 0, 0.45);
  --landing-carousel-arrow: rgba(0, 0, 0, 0.72);
  --landing-carousel-interval: 3000ms;
}

#process_step_1_testing .process-step__step1-carousel-dots,
#process_step_2_plan .process-step__plan-carousel-dots,
#process_step_3_textbook .process-step__step3-carousel-dots,
#process_step_4_practice .process-step__step4-carousel-dots,
#process_step_5_lesson .process-step__step5-carousel-dots,
#process_step_6_checkpoints .process-step__step6-carousel-dots {
  gap: var(--landing-carousel-bar-gap);
  align-items: center;
}

#process_step_1_testing .process-step__step1-carousel-dot,
#process_step_2_plan .process-step__plan-carousel-dot,
#process_step_3_textbook .process-step__step3-carousel-dot,
#process_step_4_practice .process-step__step4-carousel-dot,
#process_step_5_lesson .process-step__step5-carousel-dot,
#process_step_6_checkpoints .process-step__step6-carousel-dot {
  width: var(--landing-carousel-bar-w);
  height: var(--landing-carousel-bar-h);
  border: none;
  border-radius: 999px;
  background: var(--landing-carousel-track);
  overflow: hidden;
  transition: width 0.25s ease, background 0.2s ease;
}

#process_step_1_testing .process-step__step1-carousel-dot:hover,
#process_step_2_plan .process-step__plan-carousel-dot:hover,
#process_step_3_textbook .process-step__step3-carousel-dot:hover,
#process_step_4_practice .process-step__step4-carousel-dot:hover,
#process_step_5_lesson .process-step__step5-carousel-dot:hover,
#process_step_6_checkpoints .process-step__step6-carousel-dot:hover {
  background: var(--landing-carousel-track);
}

#process_step_1_testing .process-step__step1-carousel-dot.is-active,
#process_step_2_plan .process-step__plan-carousel-dot.is-active,
#process_step_3_textbook .process-step__step3-carousel-dot.is-active,
#process_step_4_practice .process-step__step4-carousel-dot.is-active,
#process_step_5_lesson .process-step__step5-carousel-dot.is-active,
#process_step_6_checkpoints .process-step__step6-carousel-dot.is-active {
  width: var(--landing-carousel-bar-w-active);
  height: var(--landing-carousel-bar-h);
  background: var(--landing-carousel-track);
}

.landing-carousel-indicator__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--landing-carousel-fill);
}

.landing-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 53px;
  height: 53px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.15s ease;
  opacity: 1;
}

.landing-carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.175);
  opacity: 1;
}

.landing-carousel-arrow.is-zone-hover {
  background: rgba(255, 255, 255, 0.175);
  opacity: 1;
}

.landing-carousel-zones {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}

.landing-carousel-zone--prev,
.landing-carousel-zone--next {
  pointer-events: auto;
  cursor: pointer;
  padding: 0;
  border: none;
  background: transparent;
}

.landing-carousel-arrow:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.5);
  outline-offset: 2px;
}

.landing-carousel-arrow--prev { left: 6px; }
.landing-carousel-arrow--next { right: 6px; }

.landing-carousel-arrow::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border: solid var(--landing-carousel-arrow, rgba(0, 0, 0, 0.72));
  border-width: 3px 3px 0 0;
  box-sizing: border-box;
}

.landing-carousel-arrow--prev::after {
  transform: rotate(-135deg);
  margin-left: 2px;
}

.landing-carousel-arrow--next::after {
  transform: rotate(45deg);
  margin-right: 2px;
}

#process_step_1_testing .process-step__step1-carousel-dot.is-complete .landing-carousel-indicator__fill,
#process_step_2_plan .process-step__plan-carousel-dot.is-complete .landing-carousel-indicator__fill,
#process_step_3_textbook .process-step__step3-carousel-dot.is-complete .landing-carousel-indicator__fill,
#process_step_4_practice .process-step__step4-carousel-dot.is-complete .landing-carousel-indicator__fill,
#process_step_5_lesson .process-step__step5-carousel-dot.is-complete .landing-carousel-indicator__fill,
#process_step_6_checkpoints .process-step__step6-carousel-dot.is-complete .landing-carousel-indicator__fill {
  transform: scaleX(1);
  animation: none;
}

#process_step_1_testing .process-step__step1-carousel-dot.is-active .landing-carousel-indicator__fill,
#process_step_2_plan .process-step__plan-carousel-dot.is-active .landing-carousel-indicator__fill,
#process_step_3_textbook .process-step__step3-carousel-dot.is-active .landing-carousel-indicator__fill,
#process_step_4_practice .process-step__step4-carousel-dot.is-active .landing-carousel-indicator__fill,
#process_step_5_lesson .process-step__step5-carousel-dot.is-active .landing-carousel-indicator__fill,
#process_step_6_checkpoints .process-step__step6-carousel-dot.is-active .landing-carousel-indicator__fill {
  animation: landing-carousel-progress var(--landing-carousel-interval) linear forwards;
}

@keyframes landing-carousel-progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #process_step_1_testing .process-step__step1-carousel-dot.is-active .landing-carousel-indicator__fill,
  #process_step_2_plan .process-step__plan-carousel-dot.is-active .landing-carousel-indicator__fill,
  #process_step_3_textbook .process-step__step3-carousel-dot.is-active .landing-carousel-indicator__fill,
  #process_step_4_practice .process-step__step4-carousel-dot.is-active .landing-carousel-indicator__fill,
  #process_step_5_lesson .process-step__step5-carousel-dot.is-active .landing-carousel-indicator__fill,
  #process_step_6_checkpoints .process-step__step6-carousel-dot.is-active .landing-carousel-indicator__fill {
    animation: none;
    transform: scaleX(1);
  }
}

#process_step_2_plan .process-step__plan-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#process_step_2_plan .process-step__plan-carousel-slide.is-active {
  opacity: 1;
}

/* Step 2: правая колонка = зеркало .process-step__step1-column (карусель вне стеклянной карточки). */
#process_step_2_plan .process-step__plan-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 20px);
  min-width: 0;
  width: 100%;
}

#process_step_2_plan .process-step__plan-column .process-step__plan-carousel {
  width: 100%;
  margin: 0 0 0;
  flex: 0 0 auto;
  align-self: center;
  max-width: min(360px, 100%);
}

/* Десктоп (двухколоночный split): тот же порог, что у .process-step__split--plan (min-width: 961px).
   До этого карточка оставалась width:100% на 961–1060 и визуально тянулась к min карусели (~443px). */
@media (min-width: 961px) {
  #process_step_2_plan .process-step__plan-column {
    align-items: center;
  }

  #process_step_2_plan .process-step__plan-column .process-step__plan-carousel {
    width: 100%;
    max-width: none;
  }

  #process_step_2_plan .process-step__plan-column .process-step__step5-card-group {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    align-self: center;
  }
}

/* Step 2 stacked mobile (<=859): карусель сверху, карточка снизу — как step 1 */
@media (max-width: 859px) {
  #process_step_2_plan .process-step__plan-column {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  #process_step_2_plan .process-step__plan-column .process-step__plan-carousel {
    min-width: 443px !important;
    width: max(443px, min(var(--step2-mobile-half-max), var(--step2-mobile-half-vw-max))) !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }

  #process_step_2_plan .process-step__plan-carousel-viewport {
    min-width: 443px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 277px !important;
    margin-left: 0;
    margin-right: 0;
  }

  #process_step_2_plan .process-step__plan-column .process-step__step5-card-group {
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
    align-self: center !important;
    box-sizing: border-box;
  }

  #process_step_2_plan .process-step__textbook-side--step5-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Step 2 mobile inline (860–960): карточка слева, карусель до правого края — как step 1 */
@media (max-width: 960px) and (min-width: 860px) {
  #process_step_2_plan .process-step__plan-column {
    display: grid !important;
    grid-template-columns: min(376px, 100%) minmax(0, 1fr) !important;
    column-gap: clamp(12px, 2vw, 20px);
    row-gap: 0;
    align-items: start !important;
    justify-content: stretch;
  }

  #process_step_2_plan .process-step__plan-column .process-step__step5-card-group {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    align-self: start !important;
    justify-self: start;
    width: min(376px, 100%) !important;
    max-width: min(376px, 100%) !important;
    min-width: min(376px, 100%) !important;
  }

  #process_step_2_plan .process-step__textbook-side--step5-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #process_step_2_plan .process-step__plan-column .process-step__plan-carousel {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    align-self: start !important;
    justify-self: stretch !important;
  }

  #process_step_2_plan .process-step__plan-column .process-step__plan-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 859px) {
  #process_step_2_plan .process-step__plan-column .process-step__step5-card-group {
    min-width: max(443px, min(var(--step2-mobile-half-max), var(--step2-mobile-half-vw-max))) !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-self: center !important;
  }
}

@media (max-width: 442px) {
  #process_step_2_plan .process-step__plan-column .process-step__plan-carousel {
    min-width: 0 !important;
    width: min(100vw, 100%) !important;
    max-width: min(100vw, 100%) !important;
  }

  #process_step_2_plan .process-step__plan-carousel-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #process_step_2_plan .process-step__plan-column .process-step__step5-card-group {
    min-width: min(100vw, 100%) !important;
    max-width: 100% !important;
  }
}

.process-step__plan-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 2 / 3;
  position: relative;
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    transparent 32%,
    rgba(0, 0, 0, 0.04) 54%,
    rgba(0, 0, 0, 0.18) 62%,
    rgba(0, 0, 0, 0.55) 69%,
    rgba(0, 0, 0, 0.94) 76%,
    #000 84%,
    #000 100%
  );
  mask-image: linear-gradient(
    to top,
    transparent 0%,
    transparent 32%,
    rgba(0, 0, 0, 0.04) 54%,
    rgba(0, 0, 0, 0.18) 62%,
    rgba(0, 0, 0, 0.55) 69%,
    rgba(0, 0, 0, 0.94) 76%,
    #000 84%,
    #000 100%
  );
}

#process_step_2_plan .process-step__plan-photo-overlay {
  position: static;
  inset: auto;
  z-index: 1;
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

.process-step__plan-photo-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 20px 20px;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#process_step_2_plan .process-step__plan-photo-overlay .process-step__bullets--fact-pair-intro {
  margin-bottom: 12px;
  max-width: none;
  width: 100%;
}

#process_step_2_plan .process-step__plan-photo-overlay .process-step__bullet-lead {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-step__plan-photo-overlay .process-step__bullets--fact-pair-intro {
  margin-bottom: 12px;
  max-width: none;
}

#process_step_2_plan .process-step__plan-photo-overlay .process-step__cta {
  align-self: flex-start;
}

.process-step__plan-photo-overlay .process-step__cta {
  align-self: flex-start;
}

.process-step__plan-calendar {
  min-width: 0;
  align-self: start;
  width: 100%;
}

.process-step__calendar-widget {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 14px;
  /* Узость самого виджета, а не всего вьюпорта — для квадратных ячеек */
  container-type: inline-size;
  container-name: plan-cal;
}

.process-step__calendar-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.process-step__calendar-views {
  display: flex;
  gap: 4px;
}

.process-step__calendar-views .btn.is-active {
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
}

.process-step__calendar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

#process_step_2_plan .process-step__calendar-header .btn.btn--ghost.btn--sm:not(.is-active),
#process_step_2_plan .process-step__calendar-header .chip.chip--muted {
  border: none;
  box-shadow: none;
  background: rgba(245, 245, 248, 0.98);
}

#process_step_2_plan .process-step__calendar-header .btn.btn--ghost.btn--sm:not(.is-active):hover,
#process_step_2_plan .process-step__calendar-header .chip.chip--muted:hover {
  background: rgba(235, 235, 241, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.process-step__calendar-body {
  min-height: 200px;
}

/* Месяц (не 6 мес.): вместо чужих дат — пустые ячейки, без cal-card / чисел */
#process_step_2_plan
  .process-step__calendar-body
  .month-body.cal-grid-7:not(.year-month-body)
  .month-day--spacer {
  pointer-events: none;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}

/* Узкий/средний календарь: ячейки квадрат (student.css тянет .cal-card min-height:110px → «башня»).
   Порог 880px — чтобы ~736px виджет не попадал в «мертвую зону» между container-правилами и min-height. */
@container plan-cal (max-width: 880px) {
  /* Только обычный «месяц»; .year-month-body = 6 мес. — оставляем сток */
  #process_step_2_plan
    .process-step__calendar-body
    .month-body.cal-grid-7:not(.year-month-body)
    > .month-day.js-cal-day,
  #process_step_2_plan
    .process-step__calendar-body
    .month-body.cal-grid-7:not(.year-month-body)
    > .month-day--spacer {
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    align-self: start;
  }

  #process_step_2_plan
    .process-step__calendar-body
    .month-body.cal-grid-7:not(.year-month-body)
    > .month-day {
    padding: 0;
    box-sizing: border-box;
  }

  #process_step_2_plan
    .process-step__calendar-body
    .month-body.cal-grid-7:not(.year-month-body)
    .cal-card {
    min-height: 0 !important;
    width: calc(100% - 8px);
    height: auto;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    margin: 4px;
    padding: 4px 5px 5px;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 880px) {
    #process_step_2_plan
      .process-step__calendar-body
      .month-body.cal-grid-7:not(.year-month-body)
      > .month-day.js-cal-day,
    #process_step_2_plan
      .process-step__calendar-body
      .month-body.cal-grid-7:not(.year-month-body)
      > .month-day--spacer {
      aspect-ratio: 1;
      min-width: 0;
      min-height: 0;
      align-self: start;
    }

    #process_step_2_plan
      .process-step__calendar-body
      .month-body.cal-grid-7:not(.year-month-body)
      > .month-day {
      padding: 0;
      box-sizing: border-box;
    }

    #process_step_2_plan
      .process-step__calendar-body
      .month-body.cal-grid-7:not(.year-month-body)
      .cal-card {
      min-height: 0 !important;
      width: calc(100% - 8px);
      height: auto;
      aspect-ratio: 1 / 1;
      box-sizing: border-box;
      margin: 4px;
      padding: 4px 5px 5px;
    }
  }
}

/* Легенда: одна активная тема + стрелки (месяц / 6 мес.) */
.process-step__calendar-widget .cal-legend {
  display: block;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.process-step__calendar-widget .cal-legend__single {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.process-step__calendar-widget .cal-legend {
  position: relative;
}

.process-step__calendar-widget .cal-legend__menu-toggle {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(245, 245, 248, 0.98);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.process-step__calendar-widget .cal-legend__menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.process-step__calendar-widget .cal-legend__menu-toggle-bars > span {
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(30, 26, 46, 0.92);
}

.process-step__calendar-widget .cal-legend__menu-toggle:hover {
  background: rgba(235, 235, 241, 0.98);
}

.process-step__calendar-widget .cal-legend__nav {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(245, 245, 248, 0.98);
  color: rgba(30, 26, 46, 0.92);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.process-step__calendar-widget .cal-legend__nav:hover {
  background: rgba(235, 235, 241, 0.98);
  transform: translateY(-0.5px);
}

.process-step__calendar-widget .cal-legend__nav:disabled {
  background: rgba(230, 230, 235, 0.95);
  color: rgba(30, 26, 46, 0.34);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cal-legend__topic-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
  background: rgba(10, 10, 16, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cal-legend__topic-menu.is-open {
  display: grid;
}

.cal-legend__topic-menu-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 24px));
  max-height: min(72vh, 620px);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cal-legend__topic-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cal-legend__topic-menu-title {
  font-size: 14px;
  font-weight: 800;
  color: rgba(20, 20, 26, 0.96);
}

.cal-legend__topic-menu-close {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(245, 245, 248, 0.98);
  color: rgba(30, 26, 46, 0.94);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cal-legend__topic-menu-close:hover {
  background: rgba(235, 235, 241, 0.98);
}

.cal-legend__topic-menu-list {
  max-height: min(62vh, 520px);
  overflow: auto;
  padding: 10px;
}

.cal-legend__topic-menu-group-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(90, 90, 100, 0.95);
  margin: 6px 0;
}

.cal-legend__topic-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.cal-legend__topic-menu-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.cal-legend__topic-menu-item.is-current {
  background: rgba(245, 245, 248, 0.98);
}

.cal-legend__topic-menu-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 999px;
}

.cal-legend__topic-menu-text {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(20, 20, 20, 0.95);
}

.cal-legend__topic-menu-empty {
  font-size: 12px;
  color: rgba(90, 90, 100, 0.95);
  padding: 6px;
}

.process-step__calendar-widget .cal-legend__item {
  display: inline-flex;
  align-items: center;
  height: 34px;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Подсветка плана: чуть крупнее и ярче, чем student-дефолт.
   --plan-color задаётся в JS (цвет полосы); тени/кайма = от него, не «фиолет навсегда» */
.process-step__calendar-widget .cal-legend__item[data-plan-id] {
  --plan-color: #6f2cff;
  border: none;
  text-align: left;
  font: inherit;
  appearance: none;
  cursor: pointer;
  user-select: none;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.process-step__calendar-widget .cal-legend__item[data-plan-id]:hover {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.process-step__calendar-widget .cal-legend__item.is-hl {
  background: rgba(245, 245, 248, 0.98);
  box-shadow: none;
  transform: translateY(-0.5px);
}

.process-step__calendar-widget .cal-legend__item.is-hl:hover {
  background: rgba(245, 245, 248, 0.98);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.process-step__calendar-widget .cal-legend__item .cal-legend__menu-toggle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin-right: 2px;
}

.process-step__calendar-widget .cal-legend__text {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.92);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-step__calendar-widget .cal-legend__item.is-hl .cal-legend__text {
  font-weight: 800;
  color: rgba(10, 8, 20, 0.98);
}

.process-step__calendar-widget .cal-legend__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.process-step__calendar-widget .cal-legend__item.is-hl .cal-legend__dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 3px
    color-mix(in srgb, var(--plan-color) 22%, transparent);
  transform: scale(1.06);
}

/* Светлые/жёлтые планы (класс из process_steps: luminance) — сильнее фон, кайма, текст */
.process-step__calendar-widget .cal-legend__item--light {
  background: color-mix(in srgb, var(--plan-color) 16%, rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1.25px color-mix(in srgb, var(--plan-color) 42%, rgba(0, 0, 0, 0.2));
}

.process-step__calendar-widget .cal-legend__item--light .cal-legend__text {
  color: rgba(32, 22, 0, 0.93);
  font-weight: 600;
}

.process-step__calendar-widget .cal-legend__item--light:hover {
  background: color-mix(in srgb, var(--plan-color) 22%, rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--plan-color) 48%, rgba(0, 0, 0, 0.24));
}

.process-step__calendar-widget .cal-legend__item--light.is-hl {
  background: rgba(245, 245, 248, 0.98);
  box-shadow: none;
}

.process-step__calendar-widget .cal-legend__item--light.is-hl .cal-legend__text {
  color: rgba(18, 10, 0, 0.99);
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.4);
  font-weight: 800;
}

.process-step__calendar-widget .cal-legend__item--light.is-hl .cal-legend__dot {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92), 0 0 0 3.5px
    color-mix(in srgb, var(--plan-color) 44%, rgba(0, 0, 0, 0.18));
  transform: scale(1.08);
}

/* Одна цепочка drop-shadow: плашка темы (.month-plan-hint) и подсветка полосы (path.is-hl) — один источник. */
#process_step_2_plan {
  margin-top: 10px;
  --cal-plan-cloud-shadow-filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.62))
    drop-shadow(0 10px 28px rgba(0, 0, 0, 0.48)) drop-shadow(0 18px 44px rgba(0, 0, 0, 0.32));
}

/* SVG-оверлей: ховер только на path, не на весь грид (как в student) */
.process-step__calendar-body .cal-overlays {
  pointer-events: none;
  overflow: visible;
}
.process-step__calendar-body .cal-overlay {
  pointer-events: none;
  overflow: visible;
}
#process_step_2_plan .process-step__calendar-body .cal-overlay path {
  --plan-color: #6f2cff;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.24s ease, stroke 0.24s ease, stroke-width 0.24s ease, filter 0.24s ease;
}
/* Полосы: штрих; тень — та же, что у облачка темы (CSS filter drop-shadow, переменная выше). */
#process_step_2_plan .process-step__calendar-body .cal-overlay path.is-hl {
  stroke: color-mix(in srgb, var(--plan-color) 58%, transparent);
  stroke-width: 2.5;
  opacity: 0.62;
  -webkit-filter: var(--cal-plan-cloud-shadow-filter);
  filter: var(--cal-plan-cloud-shadow-filter);
}

.process-step__calendar-body .month-day {
  position: relative;
}

#process_step_2_plan .process-step__calendar-body .month-body.cal-grid-7 {
  position: relative;
}

#process_step_2_plan .process-step__calendar-body .month-plan-hint,
#process_step_2_plan .process-step__calendar-body .year-plan-hint {
  --plan-color: #6f2cff;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 45;
  max-width: min(230px, calc(100% - 8px));
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--plan-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

#process_step_2_plan .process-step__calendar-body .month-plan-hint.is-visible,
#process_step_2_plan .process-step__calendar-body .year-plan-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#process_step_2_plan .process-step__calendar-body .year-plan-hint {
  z-index: 50;
  max-width: min(220px, calc(100% - 12px));
  font-size: 11px;
  padding: 6px 9px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  box-shadow: 0 6px 20px rgba(10, 13, 21, 0.32);
}

#process_step_2_plan .process-step__calendar-body .month-plan-hint {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.25;
  -webkit-filter: var(--cal-plan-cloud-shadow-filter);
  filter: var(--cal-plan-cloud-shadow-filter);
}

#process_step_2_plan .js-cal-day.has-demo-plan {
  cursor: pointer;
}

#process_step_2_plan .js-cal-day.year-day.has-demo-hw {
  cursor: pointer;
}

/* Месяц: «ДЗ»-pill по центру cal-card; число — как в student: левый верх (не тянем на width:100% / center) */
#process_step_2_plan
  .process-step__calendar-body
  .month-cal
  .month-day
  .cal-card:has(.month-day__pills) {
  position: relative;
}

#process_step_2_plan
  .process-step__calendar-body
  .month-cal
  .cal-card:has(.month-day__pills)
  .month-day__num {
  position: absolute;
  top: 4px;
  left: 4px;
  right: auto;
  width: auto;
  z-index: 2;
  margin: 0;
  line-height: 1.1;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

#process_step_2_plan
  .process-step__calendar-body
  .month-cal
  .cal-card:has(.month-day__pills)
  .month-day__pills {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

#process_step_2_plan
  .process-step__calendar-body
  .month-cal
  .cal-card:has(.month-day__pills)
  .hw-pill {
  max-width: 92%;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 2px 5px;
  font-size: 10px;
  line-height: 1.15;
}

.process-step__calendar-body .year-cal {
  position: relative;
  gap: 14px;
}

/* Landing demo: clear "today" emphasis like profile calendar */
.process-step__calendar-body .cal-day.is-today .cal-card {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.42);
  background: rgba(0, 0, 0, 0.08);
}

.process-step__calendar-body .year-day.is-today .year-day__num {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.42);
  background: rgba(0, 0, 0, 0.1);
}

.process-step__calendar-body .month-day__today-note {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 116px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.96);
  color: #fff;
  box-shadow: 0 8px 18px rgba(111, 44, 255, 0.24);
  pointer-events: none;
  z-index: 8;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* Month view: make "today" marker compact like 6-month view */
.process-step__calendar-body .month-body.cal-grid-7:not(.year-month-body) .month-day.is-today .month-day__num {
  font-size: 11px;
  line-height: 1;
}

.process-step__calendar-body .month-body.cal-grid-7:not(.year-month-body) .month-day__today-note {
  max-width: 98px;
  padding: 5px 10px;
  font-size: 10px;
}

.process-step__calendar-body .month-day.is-today .cal-card {
  overflow: visible;
}

#process_step_2_plan .process-step__calendar-body .cal-root,
#process_step_2_plan .process-step__calendar-body .month-cal,
#process_step_2_plan .process-step__calendar-body .month-body.cal-grid-7:not(.year-month-body),
#process_step_2_plan .process-step__calendar-body .month-day.is-today {
  overflow: visible;
}

#process_step_2_plan .process-step__calendar-body .month-day.is-today {
  z-index: 30;
}

.process-step__calendar-body .month-day__today-note::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(18, 18, 20, 0.96);
}

.process-step__calendar-widget.is-year-view .process-step__calendar-body .month-day__today-note {
  top: 1px;
  max-width: 98px;
  padding: 5px 10px;
  font-size: 10px;
}

.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day {
  position: relative;
  overflow: visible;
}

.process-step__split--plan:has(.process-step__calendar-widget.is-year-view),
#process_step_2_plan.is-year-view-unclip .process-step__split--plan,
.process-step__plan-calendar:has(.process-step__calendar-widget.is-year-view),
#process_step_2_plan.is-year-view-unclip .process-step__plan-calendar,
.process-step__calendar-widget.is-year-view,
.process-step__calendar-widget.is-year-view .process-step__calendar-body,
.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-cal,
.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-cal__month,
.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-cal__root {
  overflow: visible;
}

/* 6-month view: allow "today" bubble to escape mini-month bounds */
.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-month-body {
  overflow: visible;
}

.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day.is-today {
  z-index: 20;
}

.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day__today-note {
  left: 50%;
  top: 1px;
  transform: translate(-50%, -100%);
  max-width: 98px;
  padding: 5px 10px;
  font-size: 10px;
  z-index: 40;
}

/* Landing demo: centered circular homework markers (month + week) */
.process-step__calendar-body .month-day__pills {
  align-items: center;
}

.process-step__calendar-body .week-day__body {
  align-items: center;
}

.process-step__calendar-body .hw-pill {
  /* Свет/обводка от цвета кружка (тот же hsl, что в student .hw-pill, —fill) */
  --fill: hsl(calc(var(--pnum) * 1.2), 85%, 45%);
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

#process_step_2_plan .process-step__calendar-body a.hw-pill,
#process_step_2_plan .process-step__calendar-body a.hw-pill:hover,
#process_step_2_plan .process-step__calendar-body a.hw-pill:focus,
#process_step_2_plan .process-step__calendar-body a.hw-pill:focus-visible,
#process_step_2_plan .process-step__calendar-body a.hw-pill .hw-pill__pct {
  text-decoration: none;
}

.process-step__calendar-body .hw-pill__text {
  display: none;
}

.process-step__calendar-body .hw-pill__pct {
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(9.5px, 0.98vw, 10.5px);
  font-weight: 900;
  text-decoration: none;
}

/* Демо/легенда: свечение по плану (слабее, чем :hover / тултип) */
.process-step__calendar-body .hw-pill.is-plan-hl {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--fill) 52%, transparent),
    0 0 12px color-mix(in srgb, var(--fill) 38%, transparent);
}

.process-step__calendar-body .hw-pill.is-plan-hl .hw-pill__pct {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--fill) 48%, transparent),
    0 0 10px color-mix(in srgb, var(--fill) 34%, transparent);
}

.process-step__calendar-body .hw-pill:hover {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--fill) 52%, transparent),
    0 0 12px color-mix(in srgb, var(--fill) 38%, transparent);
}

.process-step__calendar-body .hw-pill:hover .hw-pill__pct,
.process-step__calendar-body .hw-pill.is-tooltip-open .hw-pill__pct {
  box-shadow: none;
}

.process-step__calendar-body .hw-pill.is-tooltip-open {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--fill) 55%, transparent),
    0 0 16px color-mix(in srgb, var(--fill) 45%, transparent);
}

.process-step__hw-tooltip {
  position: fixed;
  z-index: 30;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(20, 20, 26, 0.92);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.landing-hint-cloud {
  position: absolute;
  z-index: 70;
  --hint-shift-x: 0px;
  --hint-tail-offset-x: 0px;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(calc(-50% + var(--hint-shift-x)));
  max-width: min(330px, calc(100vw - 24px));
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.96);
  color: #fff;
  box-shadow:
    0 22px 38px rgba(0, 0, 0, 0.44),
    0 10px 18px rgba(0, 0, 0, 0.36);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s linear;
}

.landing-hint-cloud.is-visible {
  opacity: 1;
  animation: landingHintCloudBob 0.9s ease-in-out infinite;
}

/* Hint shadows must not be clipped by layout containers.
   Activate overflow override only while hint is visible. */
.landing-hint-host {
  overflow: visible;
}

.landing-shell:has(.landing-hint-cloud.is-visible) {
  overflow-x: visible;
}

#process_step_2_plan .process-step__calendar-widget:has(.landing-hint-cloud.is-visible),
#process_step_2_plan .process-step__calendar-header:has(.landing-hint-cloud.is-visible),
#process_step_2_plan .process-step__calendar-nav:has(.landing-hint-cloud.is-visible) {
  overflow: visible;
}

#process_step_3_textbook .process-step__textbook-demo:has(.landing-hint-cloud.is-visible),
#process_step_3_textbook .process-step__tts-dock:has(.landing-hint-cloud.is-visible),
#process_step_3_textbook #tts-player-chat-dock:has(.landing-hint-cloud.is-visible),
#process_step_3_textbook #tts-player:has(.landing-hint-cloud.is-visible),
#process_step_3_textbook .tts-player__content:has(.landing-hint-cloud.is-visible),
#process_step_3_textbook .tts-player__transport:has(.landing-hint-cloud.is-visible) {
  overflow: visible;
}

.landing-hint-cloud__text {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.landing-hint-cloud--wrap .landing-hint-cloud__text {
  white-space: normal;
  text-align: center;
}

.landing-hint-cloud--promo {
  max-width: min(420px, calc(100vw - 24px));
}

.landing-hint-cloud--promo .landing-hint-cloud__text {
  white-space: nowrap;
  font-size: clamp(13px, 3.4vw, 18px);
}

.landing-hint-cloud::after {
  content: "";
  position: absolute;
  left: calc(50% - var(--hint-shift-x) + var(--hint-tail-offset-x));
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 11px solid rgba(18, 18, 20, 0.96);
}

@keyframes landingHintCloudBob {
  0% {
    transform: translateX(calc(-50% + var(--hint-shift-x))) translateY(0);
  }
  50% {
    transform: translateX(calc(-50% + var(--hint-shift-x))) translateY(-6px);
  }
  100% {
    transform: translateX(calc(-50% + var(--hint-shift-x))) translateY(0);
  }
}

.tts-player__play.landing-hint-target-active {
  position: relative;
  border-radius: 999px;
  box-shadow: none;
  animation: landingHintPlayPulse 0.9s ease-in-out infinite;
}

.tts-player__hand.landing-hint-target-active {
  position: relative;
  border-radius: 999px;
  box-shadow: none;
  animation: landingHintPlayPulse 0.9s ease-in-out infinite;
}

.tts-player__settings-toggle.landing-hint-target-active {
  position: relative;
  border-radius: 999px;
  box-shadow: none;
  animation: landingHintPlayPulse 0.9s ease-in-out infinite;
}

#process_step_4_practice .input.landing-hint-target-active {
  box-shadow: none;
  animation: landingHintPlayPulse 0.9s ease-in-out infinite;
}

#process_step_4_practice .btn.btn--primary.landing-hint-target-active {
  box-shadow: none;
  animation: landingHintPlayPulse 0.9s ease-in-out infinite;
}

#process_step_6_checkpoints .process-step__checkpoint-demo-picker-btn.landing-hint-target-active {
  box-shadow: none;
  animation: landingHintPlayPulse 0.9s ease-in-out infinite;
}

#process_step_6_checkpoints .student-hero__block--profile .student-hero__inner.landing-hint-host,
#process_step_6_checkpoints .student-hero__block--profile.card:has(.landing-hint-cloud.is-visible),
#process_step_6_checkpoints .student-hero__block--profile .card__pad:has(.landing-hint-cloud.is-visible) {
  overflow: visible;
}

#process_step_2_plan [data-cal-demo-next].landing-hint-target-active {
  box-shadow: none;
  animation: landingHintCalendarPulseDark 0.9s ease-in-out infinite;
}

#process_step_2_plan [data-cal-demo-prev].landing-hint-target-active {
  box-shadow: none;
  animation: landingHintCalendarPulseDark 0.9s ease-in-out infinite;
}

#process_step_2_plan [data-cal-demo-view="year"].landing-hint-target-active {
  box-shadow: none;
  animation: landingHintCalendarPulseDark 0.9s ease-in-out infinite;
}

#process_step_2_plan [data-cal-legend-nav].landing-hint-target-active {
  box-shadow: none;
  animation: landingHintCalendarPulseDark 0.9s ease-in-out infinite;
}

#process_step_2_plan .cal-legend__item[data-plan-id].landing-hint-target-active {
  box-shadow: none;
  animation: landingHintCalendarPulseDark 0.9s ease-in-out infinite;
}

@keyframes landingHintCalendarPulseDark {
  0% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.2),
      0 0 12px rgba(0, 0, 0, 0.24),
      0 4px 10px rgba(0, 0, 0, 0.28);
  }
  30% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 0 10px rgba(0, 0, 0, 0.2),
      0 3px 8px rgba(0, 0, 0, 0.24);
  }
  50% {
    box-shadow: none;
  }
  70% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.22),
      0 0 10px rgba(0, 0, 0, 0.2),
      0 3px 8px rgba(0, 0, 0, 0.24);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.2),
      0 0 12px rgba(0, 0, 0, 0.24),
      0 4px 10px rgba(0, 0, 0, 0.28);
  }
}

@keyframes landingHintPlayPulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(111, 44, 255, 0.22),
      0 0 13px rgba(111, 44, 255, 0.36),
      0 5px 12px rgba(92, 36, 210, 0.29);
  }
  30% {
    box-shadow:
      0 0 0 1px rgba(111, 44, 255, 0.24),
      0 0 12px rgba(111, 44, 255, 0.34),
      0 4px 10px rgba(92, 36, 210, 0.28);
  }
  50% {
    box-shadow: none;
  }
  70% {
    box-shadow:
      0 0 0 1px rgba(111, 44, 255, 0.24),
      0 0 12px rgba(111, 44, 255, 0.34),
      0 4px 10px rgba(92, 36, 210, 0.28);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(111, 44, 255, 0.22),
      0 0 13px rgba(111, 44, 255, 0.36),
      0 5px 12px rgba(92, 36, 210, 0.29);
  }
}

/* Landing year view: always 2 columns, compact on narrow screens */
.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-cal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-cal__month-title {
  font-size: 12px;
  margin-bottom: 4px;
}

.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 11px;
  line-height: 1;
  box-sizing: border-box;
}

/* 6 months: small dot in the top-right of the day number, same color scale as .hw-pill (--pnum) */
.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day__num--with-hw {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-step__calendar-widget.is-year-view
  .process-step__calendar-body
  .year-day.has-demo-hw.is-tooltip-open {
  transform: none;
}

.process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day__hw-dot {
  /* Сидит на дуге кружка с датой (см. .year-day__num border-radius в student.css), не в углу внешнего квадрата */
  position: absolute;
  top: 2px;
  right: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: hsl(calc(var(--pnum) * 1.2), 85%, 45%);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  z-index: 1;
  pointer-events: none;
}

.process-step__calendar-widget.is-year-view .process-step__calendar-nav {
  min-width: 0;
  flex-wrap: nowrap;
}

.process-step__calendar-widget.is-year-view [data-cal-demo-label] {
  min-width: 0;
  max-width: min(52vw, 220px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-step__calendar-widget.is-year-view [data-cal-demo-prev],
.process-step__calendar-widget.is-year-view [data-cal-demo-next] {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .process-step__calendar-widget.is-year-view .process-step__calendar-body .year-cal {
    gap: 10px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .year-month-body {
    border-radius: 12px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day {
    padding: 2px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day__num {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .month-day {
    /* keep month-view compacting rule from affecting year-day geometry */
    padding: 3px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .month-day:not(.year-day) {
    padding: 3px;
  }
}

@media (max-width: 420px) {
  .process-step__calendar-widget.is-year-view .process-step__calendar-body .year-cal {
    gap: 8px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .year-month-body {
    border-radius: 10px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day__num {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .month-day {
    /* keep month-view compacting rule from affecting year-day geometry */
    padding: 2px;
  }

  .process-step__calendar-widget.is-year-view .process-step__calendar-body .month-day:not(.year-day) {
    padding: 2px;
  }

  .process-step__calendar-widget.is-year-view [data-cal-demo-label] {
    max-width: min(48vw, 160px);
  }
}

@media (max-width: 340px) {
  .process-step__calendar-widget.is-year-view .process-step__calendar-body .year-day__num {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .process-step__calendar-widget.is-year-view [data-cal-demo-label] {
    max-width: min(44vw, 132px);
  }
}

/* ── Step 3: Учебник — TTS demo ── */

.process-step__textbook-desktop-split {
  display: block;
}

#process_step_3_textbook .process-step__textbook-desktop-split {
  position: relative;
  overflow: visible;
  --step3-formulas-rotate: -4deg;
  --step3-formulas-shift-y: 38%;
  --step3-formulas-offset-y: -350px;
}

#process_step_3_textbook .process-step__textbook-formulas-bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: 62%;
  height: auto;
  transform: translate(-50%, calc(var(--step3-formulas-shift-y) + var(--step3-formulas-offset-y))) rotate(var(--step3-formulas-rotate));
  transform-origin: 50% 100%;
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

#process_step_3_textbook .process-step__textbook-formulas-bg--mobile-bottom,
#process_step_3_textbook .process-step__textbook-scheme-bg--mobile-top {
  display: none;
}

#process_step_3_textbook .process-step__textbook-scheme-bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: 74.4%;
  height: auto;
  transform: translate(-50%, 0) rotate(var(--step3-formulas-rotate));
  transform-origin: 50% 100%;
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 980px) {
  #process_step_3_textbook .process-step__textbook-formulas-bg--split {
    display: none;
  }

  #process_step_3_textbook .process-step__textbook-scheme-bg--mobile-top {
    display: block;
    top: -100px;
    bottom: auto;
    width: 85.56%;
    transform: translate(-50%, 0) rotate(var(--step3-formulas-rotate));
    transform-origin: 50% 0;
  }

  #process_step_3_textbook .process-step__textbook-formulas-bg--mobile-bottom {
    display: block;
  }

  #process_step_3_textbook .process-step__textbook-live,
  #process_step_3_textbook .process-step__textbook-column--step3 {
    position: relative;
    z-index: 1;
  }
}

/* Step 3 mobile: карточка|карусель в одну строку (860–980) — отдельная позиция нижней SVG. */
@media (max-width: 980px) and (min-width: 860px) {
  #process_step_3_textbook .process-step__textbook-formulas-bg--mobile-bottom {
    width: 52.08%;
    left: calc(50% + 70px);
    transform: translate(-50%, calc(var(--step3-formulas-shift-y) + var(--step3-formulas-offset-y) + 250px)) rotate(var(--step3-formulas-rotate));
  }
}

/* Step 3 mobile vertical (≤859): нижняя SVG — отступ снизу = высота карточки (JS). */
@media (max-width: 859px) {
  #process_step_3_textbook .process-step__textbook-formulas-bg--mobile-bottom {
    bottom: calc(var(--step3-mobile-bottom-card-offset, 0px) - 150px);
    width: 74.4%;
  }
}

@media (min-width: 981px) {
  #process_step_3_textbook .process-step__textbook-formulas-bg--split {
    width: 61.66%;
  }
}

#process_step_3_textbook .process-step__textbook-live,
#process_step_3_textbook .process-step__textbook-column--step3 {
  position: relative;
  z-index: 1;
}

.process-step__textbook-side {
  display: block;
}

/* Шаг 5 «Занятие» / 6 «Контроль» — как шаг 4 (stretch, CTA по ширине карточки). */

#process_step_5_lesson .process-step__textbook-side .process-step__bullets,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullets {
  margin-bottom: 0;
}

#process_step_5_lesson .process-step__textbook-side .process-step__bullets--textbook-side,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullets--textbook-side {
  gap: 16px;
  width: 100%;
  max-width: none;
  min-width: 0;
  text-align: left;
}

#process_step_1_testing .process-step__textbook-side .process-step__bullets--textbook-side.process-step__bullets--step5-icons,
#process_step_2_plan .process-step__textbook-side .process-step__bullets--textbook-side.process-step__bullets--step5-icons,
#process_step_3_textbook .process-step__textbook-side .process-step__bullets--textbook-side.process-step__bullets--step5-icons,
#process_step_4_practice .process-step__textbook-side .process-step__bullets--textbook-side.process-step__bullets--step5-icons,
#process_step_5_lesson .process-step__textbook-side .process-step__bullets--textbook-side.process-step__bullets--step5-icons,
#process_step_6_checkpoints .process-step__textbook-side .process-step__bullets--textbook-side.process-step__bullets--step5-icons {
  gap: 0;
}

.process-step__textbook-live {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 16px;
}

@media (min-width: 981px) {
  #process_step_3_textbook .process-step__textbook-desktop-split {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: var(--process-step-desktop-column-gap);
    align-items: start;
  }

  #process_step_3_textbook .process-step__textbook-live {
    margin-bottom: 0;
    min-width: 0;
  }

  #process_step_1_testing .process-step__textbook-side:not(.process-step__textbook-side--step5-card),
  #process_step_3_textbook .process-step__textbook-side:not(.process-step__textbook-side--step5-card),
  #process_step_4_practice .process-step__textbook-side:not(.process-step__textbook-side--step5-card),
  #process_step_5_lesson .process-step__textbook-side:not(.process-step__textbook-side--step5-card),
  #process_step_6_checkpoints .process-step__textbook-side:not(.process-step__textbook-side--step5-card) {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding-top: 16px;
  }

  #process_step_1_testing .process-step__textbook-side--step5-card,
  #process_step_2_plan .process-step__textbook-side--step5-card,
  #process_step_3_textbook .process-step__textbook-side--step5-card,
  #process_step_4_practice .process-step__textbook-side--step5-card,
  #process_step_5_lesson .process-step__textbook-side--step5-card,
  #process_step_6_checkpoints .process-step__textbook-side--step5-card {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
  }

  #process_step_1_testing .process-step__textbook-side .process-step__bullets,
  #process_step_2_plan .process-step__textbook-side .process-step__bullets,
  #process_step_3_textbook .process-step__textbook-side .process-step__bullets,
  #process_step_4_practice .process-step__textbook-side .process-step__bullets,
  #process_step_5_lesson .process-step__textbook-side .process-step__bullets,
  #process_step_6_checkpoints .process-step__textbook-side .process-step__bullets {
    margin-bottom: 12px;
  }

  #process_step_1_testing .process-step__textbook-side .process-step__bullets--textbook-side,
  #process_step_2_plan .process-step__textbook-side .process-step__bullets--textbook-side,
  #process_step_3_textbook .process-step__textbook-side .process-step__bullets--textbook-side,
  #process_step_4_practice .process-step__textbook-side .process-step__bullets--textbook-side,
  #process_step_5_lesson .process-step__textbook-side .process-step__bullets--textbook-side,
  #process_step_6_checkpoints .process-step__textbook-side .process-step__bullets--textbook-side {
    gap: 16px;
  }

  #process_step_1_testing .process-step__textbook-side .process-step__cta,
  #process_step_2_plan .process-step__textbook-side .process-step__cta,
  #process_step_3_textbook .process-step__textbook-side .process-step__cta,
  #process_step_4_practice .process-step__textbook-side .process-step__cta,
  #process_step_5_lesson .process-step__textbook-side .process-step__cta,
  #process_step_6_checkpoints .process-step__textbook-side .process-step__cta {
    margin-top: 0;
    align-self: flex-start;
  }

}

.process-step__tts-dock {
  flex: 0 0 auto;
  width: 100%;
  margin: 10px 0 12px;
}

/* Fixed-size preview window — constant height in every state. */
.process-step__textbook-demo {
  position: relative;
  flex: 0 0 auto;
  height: 420px;
  overflow: hidden;
  background: transparent;
  border: none;
  padding: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.process-step__textbook-demo #items-list {
  padding: 12px 0 20px;
  margin: 0;
  list-style: none;
  pointer-events: none;
  transition: transform 0.4s ease;
  will-change: transform;
}

/*
 * Override textbook.css "musical center" for the landing demo:
 * keep scale/blur on blocks but kill the giant padding shift.
 */
.landing-page .process-step__textbook-demo #items-list.tb-items {
  transition: transform 0.4s ease !important;
}

.landing-page .process-step__textbook-demo #items-list.tts-reading-follow.tb-items {
  padding-top: 12px !important;
  padding-bottom: 20px !important;
}

.landing-page .process-step__textbook-demo #items-list > li:not(.muted) {
  transition:
    transform 0.52s cubic-bezier(0.22, 0.9, 0.27, 1),
    filter 0.45s ease,
    box-shadow 0.45s ease;
}

.landing-page .process-step__textbook-demo #items-list.tts-reading-follow > li:not(.tts-current-block--follow):not(.muted) {
  transform: scale(0.93) !important;
  filter: blur(2px) brightness(0.88) !important;
  box-shadow: none !important;
}

.landing-page .process-step__textbook-demo #items-list.tts-reading-follow > li.tts-current-block--follow {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
  z-index: 2;
  position: relative;
}

.landing-page.landing-tts-demo-active #tts-player {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: none !important;
  transform: none !important;
  z-index: 1;
  border-radius: 28px;
  margin: 0;
}

/* Контейнер для адаптации TTS по реальной ширине дока, а не окна. */
#process_step_3_textbook #tts-player-chat-dock {
  container-type: inline-size;
}

/* Step 3 runtime-режимы как в textbook: переключаются JS по ширине самого плеера. */
#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow {
  height: 104px;
  border-radius: 34px;
  padding: 10px 16px;
  padding-top: 20px;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__content {
  height: auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  grid-template-rows: auto auto;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__progress-wrap {
  grid-row: 1;
  grid-column: 1 / -1;
  margin-left: 0;
  width: 100%;
  min-height: 26px;
  align-self: center;
  align-items: center;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__progress {
  margin-left: 10px;
  margin-right: 10px;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__progress-lesson {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__content > :not(.tts-player__progress-wrap) {
  grid-row: 2;
  min-width: 0;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__settings-cluster {
  grid-column: 4 / span 2;
  margin-left: 0;
  justify-self: end;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__volume,
#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__speed {
  justify-self: end;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__speed {
  max-width: none;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked {
  height: auto !important;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked .tts-player__content {
  grid-template-rows: auto auto auto;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked .tts-player__settings-cluster {
  display: contents;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked #tts-player-context-chip {
  grid-row: 1;
  grid-column: 1 / -1;
  justify-self: center;
  align-self: center;
  margin-right: 0;
  margin-left: 0;
  max-width: 100%;
  width: min(100%, max-content);
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked .tts-player__progress-wrap {
  grid-row: 2;
  grid-column: 1 / -1;
}

#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked .tts-player__transport,
#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked .tts-player__time,
#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked .tts-player__hand-wrap,
#process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--with-lesson.tts-player--chips-stacked .tts-player__settings-gear-wrap {
  grid-row: 3;
}

@media (max-width: 480px) {
  #process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow {
    padding: 10px 12px;
    padding-top: 18px;
  }

  #process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__content {
    column-gap: 8px;
  }

  #process_step_3_textbook #tts-player-chat-dock #tts-player.tts-player--landing-narrow .tts-player__time {
    min-width: 64px;
    font-size: 0.74rem;
  }
}

/* Лендинг: подсказка над «рукой» пока ждём ответ модели (не во время озвучки ответа) */
.landing-page [data-landing-tts-root] .tts-player__hand-wrap {
  overflow: visible;
}

/* Step 3 demo: «Поднять руку» скрыта на лендинге (не трогаем плеер внутри сайта) */
.landing-page #process_step_3_textbook .tts-player__hand-wrap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  width: 0 !important;
  min-width: 0 !important;
  flex: 0 0 0 !important;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.landing-page #process_step_3_textbook .tts-player__hand,
.landing-page #process_step_3_textbook .tts-player__hand-dismiss {
  pointer-events: none;
}

.landing-page [data-landing-tts-root] .tts-landing-ai-wait-hint {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  max-width: min(240px, calc(100vw - 32px));
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(20, 20, 26, 0.94);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.landing-page [data-landing-tts-root] .tts-landing-ai-wait-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid rgba(20, 20, 26, 0.94);
}

/* ── Step 4: Практика — task demo ── */

.process-step__split--practice {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
}

.process-step__practice-demo {
  min-width: 0;
}

/* Step 4: default — desktop hand-note in practice-demo hidden until wide split */
#process_step_4_practice .process-step__step5-hand-note--practice-demo {
  display: none;
}

@media (max-width: 1180px) {
  #process_step_4_practice .process-step__step5-hand-note--practice-demo {
    display: none !important;
  }

  #process_step_4_practice .process-step__step5-hand-note--card-column {
    display: inline-flex !important;
  }
}

@media (min-width: 1181px) {
  #process_step_4_practice .process-step__practice-demo {
    position: relative;
    overflow: visible;
    --step4-hand-note-offset-y: 0px;
    --step4-hand-note-shift-x: 0px;
  }

  #process_step_4_practice .process-step__step5-hand-note--card-column {
    display: none !important;
  }

  #process_step_4_practice .process-step__step5-hand-note--practice-demo {
    display: flex !important;
    position: absolute;
    top: var(--step4-hand-note-top, 420px);
    right: 0;
    left: 0;
    flex-direction: row;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    z-index: 2;
    justify-content: flex-end !important;
    text-align: right;
    font-size: 38px;
    line-height: 1.08;
    transform: rotate(-1.5deg) translateX(var(--step4-hand-note-shift-x, 0px));
  }

  #process_step_4_practice .process-step__step5-hand-note--practice-demo .process-step__step5-hand-note-body {
    display: block;
    flex: 0 1 auto;
    text-align: right;
    text-wrap: unset;
    white-space: normal;
    max-width: 11.5em;
    font-size: inherit;
    line-height: 1.08;
  }

  #process_step_4_practice .process-step__step5-hand-note--practice-demo .process-step__step5-hand-note-arrow svg {
    width: 54px;
    height: auto;
  }
}

#process_step_4_practice .process-step__practice-intro {
  margin: 0 0 12px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.35;
  color: rgba(19, 19, 19, 0.92);
}

/* ── Step 4: стек из 5 демо-задач ── */
#process_step_4_practice .process-step__practice-stack {
  position: relative;
  min-width: 0;
  overflow: visible;
}

#process_step_4_practice .process-step__practice-formula-bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 400px;
  width: min(100%, 357px);
  height: auto;
  transform: translateX(-50%);
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

#process_step_4_practice .process-step__practice-stack-viewport {
  position: relative;
  z-index: 1;
  height: 420px;
  box-sizing: border-box;
  /* Воздух сверху/снизу: при translateY карточка не прижимается к краю overflow — иначе «съедается» верх #2+ */
  padding: 12px 0 10px;
  overflow: hidden;
  min-width: 0;
  border-radius: 14px;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

/* Как в tasks.css: .items-list > li { margin: 16px 0 } / .block-items-list { gap: 16px } */
#process_step_4_practice .process-step__practice-stack-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.45s cubic-bezier(0.22, 0.9, 0.27, 1);
  will-change: transform;
}

#process_step_4_practice .process-step__practice-stack-hint {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
}

#process_step_4_practice .process-step__practice-stack-list .statement-text--inside-task-check {
  max-height: none;
  overflow: visible;
}

/* Карточка задачи: стили из tasks.css (border-radius, accent-rail). */

/* ── Step 5: Занятие — media + text ── */

.process-step__lesson-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.process-step__lesson-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  display: block;
}

.process-step__lesson-video-stack {
  position: relative;
  width: 100%;
}

.process-step__lesson-img--hq {
  opacity: 0;
  z-index: 1;
}

.process-step__lesson-img--hq.is-active {
  opacity: 1;
}

#process_step_1_testing .process-step__lesson-img-overlay--split {
  z-index: 2;
}

video.process-step__lesson-img {
  background: #0f0f12;
}

#process_step_5_lesson .process-step__lesson-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 28px);
  text-align: center;
  pointer-events: none;
}

/* Шаг 1: два абзаца — сверху и снизу по центру, отступы 10px / 30px */
#process_step_1_testing .process-step__lesson-img-overlay--split {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Десктоп (фото слева, текст справа) */
@media (min-width: 981px) {
  #process_step_5_lesson .process-step__lesson-img-overlay {
    justify-content: flex-start;
    text-align: left;
    padding-left: clamp(18px, 3vw, 28px);
    padding-right: clamp(16px, 4vw, 28px);
  }
}

/* Шаг 5 / 6: 2-col split только ≥1145 — иначе конфликт с inline grid 860–1144 */
@media (min-width: 1145px) {
  #process_step_5_lesson .process-step__split,
  #process_step_6_checkpoints .process-step__split {
    grid-template-columns: minmax(0, 1.65fr) minmax(430px, 1fr);
  }

  #process_step_5_lesson .process-step__textbook-column--step5,
  #process_step_6_checkpoints .process-step__textbook-column--step6 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
  }

  #process_step_5_lesson .process-step__textbook-column--step5 .process-step__step5-carousel,
  #process_step_6_checkpoints .process-step__textbook-column--step6 .process-step__step6-carousel {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

#process_step_1_testing .process-step__lesson-img-headline,
#process_step_5_lesson .process-step__lesson-img-headline {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(18px, 2.35vw, 23px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.85),
    0 1px 12px rgba(0, 0, 0, 0.55),
    0 2px 28px rgba(0, 0, 0, 0.35);
}

/* Step 1 video speech bubbles — same cqw scale as before; dark text on white bubble */
#process_step_1_testing .process-step__video-bubble {
  --rot: 0deg;
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  max-width: calc(32ch + 1.56em);
  margin: 0;
  padding: 0.55em 0.78em;
  font-size: calc(2.574cqw * 1.3);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(12px) rotate(var(--rot));
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#process_step_1_testing .process-step__split.is-visible .process-step__video-bubble {
  opacity: 1;
  transform: translateY(0) rotate(var(--rot));
}

#process_step_1_testing .process-step__split.is-visible .process-step__video-bubble--bottom {
  transition-delay: 0.12s;
}

#process_step_1_testing .process-step__video-bubble::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.08));
}

#process_step_1_testing .process-step__video-bubble--top {
  --rot: -2.5deg;
  top: 9.86%;
  left: 1.29%;
  transform-origin: top left;
  border-radius: 1.15em 1.15em 1.15em 0.32em;
}

#process_step_1_testing .process-step__split.is-visible .process-step__video-bubble--top {
  transform: translateY(0) rotate(var(--rot));
}

#process_step_1_testing .process-step__video-bubble--top::after {
  top: calc(100% - 1px);
  left: 1.1em;
  border-left: 0.65em solid transparent;
  border-right: 0.65em solid transparent;
  border-top: 0.9em solid #fff;
  transform: rotate(-5deg);
}

#process_step_1_testing .process-step__video-bubble--bottom {
  --rot: -1.8deg;
  right: 1.29%;
  bottom: 12.61%;
  transform-origin: bottom right;
  border-radius: 0.32em 1.1em 1.1em 1.1em;
  background: transparent;
  border: none;
  box-shadow: none;
}

#process_step_1_testing .process-step__video-bubble--bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.16),
    0 4px 10px rgba(0, 0, 0, 0.08);
}

#process_step_1_testing .process-step__split.is-visible .process-step__video-bubble--bottom {
  transform: translateY(0) rotate(var(--rot));
}

#process_step_1_testing .process-step__video-bubble--bottom::after {
  bottom: calc(100% - 0.42em);
  left: 0.2em;
  top: auto;
  right: auto;
  z-index: -1;
  border-left: 0.65em solid transparent;
  border-right: 0.65em solid transparent;
  border-bottom: 0.9em solid #fff;
  transform: rotate(-8deg);
}

#process_step_1_testing .process-step__video-bubble--bottom .process-step__lesson-img-headline {
  position: relative;
  z-index: 1;
}

#process_step_1_testing .process-step__video-bubble .process-step__lesson-img-headline {
  font-size: inherit;
  color: rgba(19, 19, 19, 0.96);
  text-shadow: none;
}

@media (max-width: 520px) {
  #process_step_1_testing .process-step__video-bubble--top {
    --rot: -1.2deg;
  }

  #process_step_1_testing .process-step__video-bubble--bottom {
    --rot: -1deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  #process_step_1_testing .process-step__video-bubble {
    opacity: 1;
    transform: rotate(var(--rot));
    transition: none;
  }

  #process_step_1_testing .process-step__split.is-visible .process-step__video-bubble {
    transform: rotate(var(--rot));
  }
}

#process_step_1_testing .process-step__lesson-img-headline .landing-block2__mark--orange {
  background: #f97316;
  color: #fff;
  padding: 0.05em 0.14em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#process_step_1_testing .process-step__lesson-img-headline .landing-block2__mark--blue {
  background: #38bdf8;
  color: #fff;
  padding: 0.05em 0.14em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#process_step_1_testing .process-step__lesson-img-headline .bubbles__underline-purple {
  color: rgba(19, 19, 19, 0.96);
  background: none;
  padding: 0;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(108, 92, 231, 0.98);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none;
}

#process_step_1_testing .process-step__lesson-img-headline .landing-block2__mark {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#process_step_1_testing .process-step__lesson-img-headline .landing-block2__underline-blue {
  text-decoration: underline;
  text-decoration-color: #38bdf8;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

#process_step_1_testing .process-step__lesson-img-headline .landing-block2__underline-green {
  text-decoration: underline;
  text-decoration-color: #4fc489;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

/* Шаг 1 «Тестирование»: те же маски у медиа-колонки, что у шага 5 (видео вместо фото) */
#process_step_1_testing .process-step__lesson-media {
  background: #0f0f12;
  container-type: inline-size;
  overflow: visible;
  --step1-formulas-rotate: -4deg;
  --step1-formulas-shift-y: 38%;
  --step1-formulas-offset-y: 50px;
}

#process_step_1_testing .process-step__lesson-formulas-bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: 118%;
  height: auto;
  transform: translate(-50%, calc(var(--step1-formulas-shift-y) + var(--step1-formulas-offset-y))) rotate(var(--step1-formulas-rotate));
  transform-origin: 50% 100%;
  opacity: 0.52;
  pointer-events: none;
  user-select: none;
}

#process_step_1_testing .process-step__lesson-img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  height: auto;
  aspect-ratio: auto;
}

#process_step_1_testing .process-step__lesson-video-stack {
  display: grid;
  width: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: 14px;
}

#process_step_1_testing .process-step__lesson-video-stack .process-step__lesson-img {
  grid-area: 1 / 1;
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: 14px;
}

#process_step_1_testing .process-step__lesson-video-stack .process-step__lesson-img--lq {
  z-index: 0;
}

#process_step_1_testing .process-step__lesson-video-stack .process-step__lesson-img--hq {
  z-index: 1;
}

#process_step_1_testing .process-step__lesson-video-stack .process-step__lesson-img--hq[hidden],
#process_step_1_testing .process-step__lesson-video-stack .process-step__lesson-img--lq[hidden] {
  display: none;
}

#process_step_1_testing .process-step__lesson-img-overlay--split {
  z-index: 2;
}

@media (min-width: 981px) {
  #process_step_1_testing .process-step__lesson-img {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 980px) {
  #process_step_1_testing .process-step__lesson-img {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ── Step 6: Контрольные точки — как step5: демо профиля слева (.process-step__split), справа карусель + карта ── */

/* Step 6: desktop — hand-note под демо-сеткой слева, не в правой карточке */
#process_step_6_checkpoints .process-step__step5-hand-note--under-checkpoint-demo {
  display: none;
}

@media (min-width: 1145px) {
  #process_step_6_checkpoints .process-step__checkpoint-profile-demo {
    position: relative;
    overflow: visible;
    --step6-hand-note-offset-y: 0px;
    --step6-hand-note-shift-x: 0px;
  }

  #process_step_6_checkpoints .process-step__step5-hand-note--under-checkpoint-demo {
    display: flex !important;
    position: absolute;
    top: var(--step6-hand-note-top, 420px);
    right: 0;
    left: 0;
    flex-direction: row;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    z-index: 2;
    justify-content: flex-end !important;
    text-align: right;
    font-size: 38px;
    line-height: 1.08;
    transform: rotate(-1.5deg) translateX(var(--step6-hand-note-shift-x, 0px));
  }

  #process_step_6_checkpoints .process-step__step5-hand-note--under-checkpoint-demo .process-step__step5-hand-note-body {
    display: block;
    flex: 0 1 auto;
    text-align: right;
    text-wrap: unset;
    white-space: normal;
    max-width: 11.5em;
    font-size: inherit;
    line-height: 1.08;
  }

  #process_step_6_checkpoints .process-step__step5-hand-note--under-checkpoint-demo .process-step__step5-hand-note-arrow svg {
    width: 54px;
    height: auto;
  }

  #process_step_6_checkpoints .process-step__step5-hand-note--in-column {
    display: none !important;
  }
}

.landing-page .process-step__checkpoint-profile-demo {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  --cp-demo-yellow: #FBD14B;
  --cp-demo-purple: #8B5CF6;
  --cp-demo-lavender: #EBE8FF;
  --cp-demo-bar: #D1C4E9;
  --cp-demo-ink: #1A1A1A;
  --cp-demo-muted: #71717A;
  --cp-demo-radius-card: 24px;
  --cp-demo-radius-inner: 16px;
  --cp-demo-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ── Checkpoint demo visual v2 (cosmetic only — layout/breakpoints untouched) ── */

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--cp-demo-radius-card);
  box-shadow: var(--cp-demo-shadow);
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__name {
  color: var(--cp-demo-ink);
  font-weight: 800;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .muted {
  color: var(--cp-demo-muted);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-picker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--cp-demo-ink);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-picker-icon img {
  display: block;
  width: 16px;
  height: 16px;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-picker-btn {
  background: var(--cp-demo-yellow);
  border-color: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--stats {
  background: var(--cp-demo-lavender);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(139, 92, 246, 0.08);
  border-radius: var(--cp-demo-radius-card);
  box-shadow: var(--cp-demo-shadow);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--cp-demo-radius-inner);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat .stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat .stat__icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat--0 .stat__icon {
  background: #DCFCE7;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat--1 .stat__icon {
  background: #F3E8FF;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat--2 .stat__icon {
  background: #DBEAFE;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat--3 .stat__icon {
  background: #FEE2E2;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat .stat__text {
  min-width: 0;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat .stat__value {
  font-size: 18px;
  font-weight: 800;
  color: var(--cp-demo-ink);
  line-height: 1.1;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stat .stat__label {
  font-size: 11px;
  color: var(--cp-demo-muted);
  opacity: 1;
  margin-top: 2px;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  font-weight: 700;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-action.btn--primary {
  background: var(--cp-demo-yellow);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--cp-demo-ink);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-action.btn--secondary,
.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-action--secondary {
  background: var(--cp-demo-purple);
  border-color: rgba(0, 0, 0, 0.08);
  color: #fff;
  opacity: 1;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-action-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-action.btn--primary .process-step__checkpoint-demo-action-icon {
  color: var(--cp-demo-ink);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-action.btn--secondary .process-step__checkpoint-demo-action-icon,
.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-action--secondary .process-step__checkpoint-demo-action-icon {
  color: #fff;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-card.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--cp-demo-radius-card);
  box-shadow: var(--cp-demo-shadow);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-chart-title {
  font-weight: 800;
  color: var(--cp-demo-ink);
}

.landing-page .process-step__checkpoint-profile-demo .activity-bars__toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--cp-demo-muted);
  font-weight: 600;
}

.landing-page .process-step__checkpoint-profile-demo .activity-bars__toggle.is-active {
  background: transparent;
  border-color: var(--cp-demo-purple);
  color: var(--cp-demo-purple);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-activity-host {
  background-image:
    linear-gradient(to top, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(to top, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to top, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 1px, 100% 1px, 100% 1px;
  background-position: 0 100%, 0 66%, 0 33%;
  background-repeat: no-repeat;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-card .activity-bars__bar {
  background: var(--cp-demo-bar);
  border-radius: 6px 6px 0 0;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-card .activity-bars__label {
  color: var(--cp-demo-muted);
  opacity: 1;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-forecast-strip .activity-bars__bar {
  background: var(--cp-demo-lavender);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-forecast-strip .activity-bars__day--forecast-peak .activity-bars__bar {
  background: var(--cp-demo-purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-forecast-strip .activity-bars__label {
  color: var(--cp-demo-muted);
  opacity: 1;
}


/* Демо профиля шага 6: масштаб типографики (1 = по умолчанию; JS может уменьшать переменную) */
.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__inner {
  min-width: 0;
  --checkpointHeroFontScale: 1;
  --checkpointPickerFontScale: 1;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__left {
  flex: 1 1 auto;
  min-width: 0;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__left > div:not(.student-hero__avatar) {
  min-width: 0;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__avatar {
  flex-shrink: 0;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__name {
  font-size: calc(22px * var(--checkpointHeroFontScale, 1));
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .muted {
  font-size: calc(13px * var(--checkpointHeroFontScale, 1));
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-picker-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  font-size: calc(1em * var(--checkpointPickerFontScale, 1));
}

/* Та же шапка, что в student: flex-ряд из двух карточек, без уменьшения типографики */
.landing-page .process-step__checkpoint-profile-demo .student-hero--split {
  flex-wrap: nowrap;
  align-items: stretch;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile {
  flex: 0 0 auto;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--stats {
  flex: 1 1 0;
  min-width: 0;
}

/* Статы: 4 в ряд при достаточной ширине, иначе 2×2 (не 3+1) */
.landing-page .process-step__checkpoint-profile-demo .student-hero__stats-row {
  container-type: inline-size;
  container-name: checkpointDemoStats;
}

.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@container checkpointDemoStats (max-width: 589px) {
  .landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Узкая stats-карточка (border-box <476px, content <444px): кнопки в одну строку */
.landing-page .process-step__checkpoint-profile-demo .student-hero__block--stats > .card__pad {
  container-type: inline-size;
  container-name: checkpointDemoStatsCard;
}

@container checkpointDemoStatsCard (max-width: 443px) {
  .landing-page .process-step__checkpoint-profile-demo .student-hero__actions {
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .landing-page .process-step__checkpoint-profile-demo .student-hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 6px;
    font-size: clamp(9px, 3.1cqi, 13px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Пикер программы по центру в desktop split-виде (как на макете) */
.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
}

.landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__cta .subject-picker {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Стрелка (base.css .subject-picker::after) — ближе к краю, меньше зазора до текста */
.landing-page .process-step__checkpoint-profile-demo .subject-picker.process-step__checkpoint-demo-picker::after {
  right: 9px;
}

/* Демо-пикер программы (кнопка вместо disabled select) */
.landing-page .process-step__checkpoint-demo-picker-btn {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  background: var(--brand-yellow);
  font: inherit;
  font-weight: 700;
  line-height: 1;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

/* В демо профиля: flex + меньше место под стрелку (перебивает padding 44px у общей кнопки) */
.landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-picker-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 22px 0 12px;
  overflow: hidden;
  text-overflow: clip;
  font-size: 15px;
}

.landing-page .process-step__checkpoint-demo-picker.is-open .process-step__checkpoint-demo-picker-btn {
  box-shadow: var(--focus);
  border-color: rgba(111, 44, 255, 0.35);
}

.landing-page .process-step__checkpoint-demo-picker-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: min(280px, 100%);
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.14);
}

.landing-page .process-step__checkpoint-demo-picker-menu[hidden] {
  display: none !important;
}

.landing-page .process-step__checkpoint-demo-picker-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  margin: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: rgba(19, 19, 19, 0.92);
  white-space: nowrap;
}

.landing-page .process-step__checkpoint-demo-picker-option:hover {
  background: rgba(111, 44, 255, 0.08);
}

/* Узкий profile-row: меню не привязано к ширине сжатой кнопки */
@media (max-width: 720px) {
  .landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-picker-menu {
    left: auto;
    right: 0;
    width: max-content;
    min-width: max-content;
    max-width: calc(100vw - 24px);
  }

  .landing-page .process-step__checkpoint-profile-demo .process-step__checkpoint-demo-picker-option {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile.card,
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .card__pad {
    overflow: visible;
  }
}

.landing-page .process-step__checkpoint-demo-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

/* Прогноз: те же столбики, что у «Активность по дням» (activity-bars__*) */
.landing-page .process-step__checkpoint-forecast-strip {
  gap: 2px;
  min-height: 64px;
}

.landing-page .process-step__checkpoint-forecast-strip .activity-bars__day {
  flex: 1 1 0;
  min-width: 0;
}

.landing-page .process-step__checkpoint-forecast-strip .activity-bars__bar {
  max-width: 100%;
}

.landing-page .process-step__checkpoint-forecast-strip .activity-bars__label {
  font-size: 9px;
  letter-spacing: -0.02em;
}

/* ОГЭ: 4 толстых столбца (баллы 2–5) */
.landing-page .process-step__checkpoint-forecast-strip--oge {
  gap: 10px;
  min-height: 76px;
  justify-content: center;
}

.landing-page .process-step__checkpoint-forecast-strip--oge .activity-bars__day {
  flex: 1 1 0;
  max-width: 140px;
}

.landing-page .process-step__checkpoint-forecast-strip--oge .activity-bars__bar {
  max-width: 56px;
  width: 100%;
}

.landing-page .process-step__checkpoint-forecast-strip--oge .activity-bars__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

/* Пик — как «сегодня» в демо-календаре: inset 2px + лёгкий тон rgba(111,44,255,0.12) поверх обычной лаванды */
.landing-page .process-step__checkpoint-forecast-strip .activity-bars__day--forecast-peak .activity-bars__bar {
  background:
    linear-gradient(rgba(111, 44, 255, 0.12), rgba(111, 44, 255, 0.12)),
    linear-gradient(180deg, rgba(160, 120, 255, 0.62), rgba(160, 120, 255, 0.52));
  box-shadow: inset 0 0 0 2px rgba(111, 44, 255, 0.5);
}

/* Обе карточки грида (активность + прогноз) одинаковой высоты */
.landing-page .process-step__checkpoint-demo-grid {
  align-items: stretch;
}
.landing-page .process-step__checkpoint-demo-grid > .student-col > .card {
  height: 100%;
  box-sizing: border-box;
}
.landing-page .process-step__checkpoint-demo-grid > .student-col > .card > .card__pad {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.landing-page .process-step__checkpoint-demo-forecast .activity-bars__strip {
  flex: 1 1 auto;
  min-height: 0;
}

/* Активность: фиксированная высота области графика — 7 дней (полоса) / 30 дней (матрица как на GitHub) */
.landing-page .process-step__checkpoint-demo-card .process-step__checkpoint-activity-host {
  position: relative;
  height: 76px;
  min-height: 76px;
  max-height: 76px;
  box-sizing: border-box;
}

.landing-page .process-step__checkpoint-demo-card .process-step__checkpoint-activity-host > [data-strip] {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
}

.landing-page .process-step__checkpoint-demo-card .process-step__checkpoint-activity-host > [data-strip="week"].activity-bars__strip {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.landing-page .process-step__checkpoint-demo-card .process-step__activity-matrix {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

.landing-page .process-step__checkpoint-demo-card .process-step__activity-matrix-inner {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  height: 100%;
  max-height: 100%;
}

.landing-page .process-step__checkpoint-demo-card .process-step__activity-matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  border-radius: 2px;
  padding: 0 1px;
  background: rgba(130, 80, 255, var(--o, 0));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.landing-page .process-step__checkpoint-demo-card .process-step__activity-matrix-cell__label {
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(18, 12, 40, 0.82);
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── Responsive: Tablet (641px – 980px) ── */

@media (max-width: 980px) {
  .process-step__split {
    grid-template-columns: 1fr;
  }

  .process-step__split--plan {
    grid-template-columns: 1fr;
  }

  .process-step__plan-photo .process-step__plan-img {
    display: none;
  }

  .process-step__plan-photo-overlay {
    position: static;
    background: none;
    padding: 0;
    margin-bottom: 16px;
  }

  /* Шаг 2: карточка только с копией; карусель в .process-step__plan-column вне карточки */
  #process_step_2_plan .process-step__plan-photo--plan-card {
    width: 100%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  #process_step_2_plan .process-step__plan-img {
    display: none;
  }

  #process_step_2_plan .process-step__plan-photo-overlay {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    background: none;
  }

  #process_step_2_plan .process-step__plan-photo-overlay .process-step__bullets--fact-pair-intro {
    margin-bottom: 12px;
    width: 100%;
    text-align: left;
  }

  #process_step_2_plan .process-step__plan-photo-overlay .process-step__cta {
    align-self: flex-start;
    max-width: 100%;
    margin-top: 0;
  }

  .process-step__split--practice {
    grid-template-columns: 1fr;
  }

  .process-step__media-pair {
    max-width: 360px;
    margin: 0 auto 16px;
  }

}

/* Шаг 2: 961–980 — глобальный tablet-стэк .process-step__split--plan иначе даёт 1 колонку;
   здесь возвращаем двухколоночный split. */
@media (min-width: 961px) and (max-width: 980px) {
  #process_step_2_plan .process-step__split--plan {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    row-gap: var(--step2-split-gap);
    column-gap: var(--process-step-desktop-column-gap);
  }
}

/* Step 2: узкий split (~viewport 961–1050, split ≤1026) — мягкий grid без 500+443 минимумов */
@media (min-width: 961px) and (max-width: 1050px) {
  #process_step_2_plan .process-step__split--plan {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) !important;
  }
}

/* Компактный stack profile-карточки (≥721px): аватар → имя → пикер столбиком.
   Узкая карточка (~280px) на всех ширинах, не только tablet. */
@media (min-width: 721px) {
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile {
    display: flex;
    flex-direction: column;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile > .card__pad {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__left {
    display: contents;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__avatar {
    order: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__avatar img,
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__avatar .student-hero__avatar--stub {
    width: auto;
    height: 100%;
    max-height: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
    object-fit: cover;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__left > div:not(.student-hero__avatar) {
    order: 1;
    text-align: center;
    flex-shrink: 0;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__cta {
    order: 2;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    flex-shrink: 1;
  }
}

/* Узкий вид (hero column, карточка на всю ширину): имя + пикер в ряд */
@media (max-width: 720px) {
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__left {
    flex: 1 1 auto;
    min-width: 0;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__avatar {
    flex-shrink: 0;
  }
  .landing-page .process-step__checkpoint-profile-demo .student-hero__block--profile .student-hero__cta {
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    width: auto;
    flex-shrink: 1;
    justify-content: flex-end;
  }
}

/* ── Responsive: Mobile (<=640px) ── */

@media (max-width: 640px) {
  .process-step__header {
    gap: 8px;
    margin-bottom: 14px;
  }

  #process_step_1_testing .process-step__header--step5,
  #process_step_2_plan .process-step__header--step5,
  #process_step_3_textbook .process-step__header--step5,
  #process_step_4_practice .process-step__header--step5,
  #process_step_5_lesson .process-step__header--step5,
  #process_step_6_checkpoints .process-step__header--step5 {
    gap: 10px;
    margin-bottom: 16px;
  }

  .process-step__header-step5-title {
    font-size: clamp(26px, 7.2vw, 36px);
    max-width: 12ch;
  }

  .process-step__header-step5-subtitle {
    font-size: clamp(13px, 3.6vw, 15px);
    max-width: 28ch;
  }

  .process-step__number {
    font-size: clamp(60px, 16vw, 100px);
  }

  .process-step__title {
    font-size: clamp(22px, 6vw, 34px);
  }

  .process-step__media-pair {
    max-width: 280px;
    aspect-ratio: 1;
  }

  .process-step__lesson-img {
    aspect-ratio: 16 / 9;
  }

  .process-step__textbook-demo {
    height: 360px;
  }

  .process-step__cta {
    width: 100%;
    min-height: 48px;
  }

  .process-step__calendar-widget {
    padding: 10px;
  }
}

/* ===================================================================
   BLOCK: Founder Story (hero + timeline cards)
   =================================================================== */

.landing-block--founder-story {
  padding: 0 var(--landing-side-pad, 12px);
}

.founder-story__glass {
  max-width: 1216px;
  margin: 0 auto;
  padding: 30px 26px 18px;
  border-radius: 30px;
  background: transparent;
}

.founder-story__glass.card.card--soft {
  border: none;
  box-shadow: none;
}

.founder-story__intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 26px;
}

.founder-story__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 108, 255, 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.founder-story__title {
  margin: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.founder-story__title-main,
.founder-story__title-accent {
  display: inline-block;
  font-size: clamp(2.25rem, 5.8vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.founder-story__title-accent {
  margin-left: 0.22em;
  background: #ffdd2d;
  padding: 0.04em 0.15em 0.06em;
  position: relative;
}

.founder-story__title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 5px;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.9);
  transform: rotate(-2deg);
}

.founder-story__subtitle {
  margin: 22px auto 0;
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.62);
}

.founder-story__layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.founder-story__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-story__circle {
  position: relative;
  width: min(100%, 388px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  border: 3px solid rgba(124, 108, 255, 0.52);
  box-shadow: 0 12px 34px rgba(124, 108, 255, 0.16);
  background: rgba(255, 255, 255, 0.5);
}

.founder-story__circle--video {
  cursor: pointer;
  touch-action: manipulation;
}

.founder-story__video,
.founder-story__poster {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.founder-story__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.founder-story__play-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.founder-story__play-glyph--play svg {
  margin-left: 2px;
}

.founder-story__play:hover,
.founder-story__circle--video:hover .founder-story__play {
  background: rgba(0, 0, 0, 0.56);
  transform: translate(-50%, -50%) scale(1.04);
}

.founder-story__circle.is-playing .founder-story__play {
  opacity: 0;
  pointer-events: none;
}

.founder-story__circle.is-playing:hover .founder-story__play,
.founder-story__circle.is-playing:focus-within .founder-story__play {
  opacity: 1;
  pointer-events: auto;
}

.founder-story__play[hidden] {
  display: none;
}

.founder-story__content-col {
  min-width: 0;
}

.founder-story__timeline {
  margin: 2px auto 0;
  padding: 0;
  list-style: none;
  position: relative;
  --founder-node-size: 8px;
  width: 100%;
  max-width: calc(696px + var(--founder-node-size) + 14px);
}

.founder-story__timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--founder-node-size) / 2 - 1px);
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 99px;
  background: rgba(124, 108, 255, 0.52);
}

.founder-story__step {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding-bottom: 12px;
}

.founder-story__step:last-child {
  padding-bottom: 0;
}

.founder-story__node {
  width: var(--founder-node-size);
  min-width: var(--founder-node-size);
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(124, 108, 255, 0.95);
  margin-top: 24px;
  height: var(--founder-node-size);
  position: relative;
  z-index: 1;
}

.founder-story__step-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  border: 1px solid rgba(124, 108, 255, 0.13);
  box-shadow: 0 10px 22px rgba(44, 30, 111, 0.08);
  padding: 12px 16px 11px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 5px;
  width: 100%;
  max-width: 696px;
  min-width: 0;
  box-sizing: border-box;
}

.founder-story__step-number {
  grid-row: span 2;
  align-self: start;
  margin-top: 1px;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  color: #101010;
  background: #ffdd2d;
  border-radius: 10px;
  padding: 3px 8px 4px;
}

.founder-story__accent {
  margin: 0;
  color: #141414;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.founder-story__desc {
  margin: 0;
  display: block;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.94rem;
  line-height: 1.34;
}

.founder-story__quote {
  position: relative;
  margin: 28px auto 0;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 24px 20px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(124, 108, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(44, 30, 111, 0.05);
}

.founder-story__quote-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  line-height: 0.6;
  font-weight: 700;
  color: rgba(124, 108, 255, 0.9);
  margin-bottom: 8px;
}

.founder-story__quote-text {
  margin: 0;
  border: 0;
  padding: 0;
  quotes: none;
  color: #1c1c1c;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  font-weight: 500;
}

.founder-story__quote-variant--wide {
  display: none;
}

.founder-story__quote-variant--compact {
  display: none;
}

.founder-story__quote-variant--narrow {
  display: block;
}

.founder-story__quote.is-quote-compact .founder-story__quote-variant--narrow {
  display: none;
}

.founder-story__quote.is-quote-compact .founder-story__quote-variant--compact {
  display: block;
}

.founder-story__quote-text .landing-block2__mark--orange {
  background: #d4d4d4;
  color: #000;
  padding: 0.05em 0.14em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.founder-story__quote-text .landing-block5__underline-orange {
  text-decoration: underline;
  text-decoration-color: #f97316;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

@media (min-width: 1025px) {
  .founder-story__quote-variant--narrow,
  .founder-story__quote-variant--compact {
    display: none;
  }

  .founder-story__quote-variant--wide {
    display: block;
  }

  .founder-story__quote-text {
    font-size: 1.22rem;
  }
}

.founder-story__quote-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.founder-story__quote-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(124, 108, 255, 0.5);
  box-shadow: 0 6px 16px rgba(124, 108, 255, 0.18);
}

.founder-story__quote-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.founder-story__quote-name {
  font-size: 1rem;
  font-weight: 700;
  color: #141414;
  line-height: 1.2;
}

.founder-story__quote-role {
  margin-top: 2px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .founder-story__glass {
    --founder-node-size: 8px;
    --founder-card-width: min(calc(696px / 1.5), calc(100vw - 72px));
    --founder-track-width: calc(var(--founder-node-size) + 14px + var(--founder-card-width));
    max-width: var(--founder-track-width);
  }

  .founder-story__layout {
    grid-template-columns: 1fr;
  }

  .founder-story__hero {
    margin-bottom: 8px;
  }

  .founder-story__content-col {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .founder-story__timeline {
    width: var(--founder-track-width);
    max-width: 100%;
    margin-inline: auto;
  }

  .founder-story__timeline::before {
    left: calc(var(--founder-node-size) / 2 - 1px);
  }

  .founder-story__step {
    display: flex;
    align-items: start;
    gap: 14px;
  }

  .founder-story__step-card {
    width: var(--founder-card-width);
    max-width: 100%;
    flex: 0 1 var(--founder-card-width);
    min-width: 0;
  }

  .founder-story__quote {
    margin-top: 18px;
  }
}

/* Tablet / semi-mobile: cards were ~35px too narrow — accent ellipsis clipped «МГУ» */
@media (min-width: 769px) and (max-width: 1024px) {
  .founder-story__glass {
    --founder-card-width: min(calc(696px / 1.5 - 5px), calc(100vw - 77px));
    max-width: calc(var(--founder-track-width) + 52px);
  }

  .founder-story__layout {
    max-width: 100%;
    margin-inline: auto;
  }

  .founder-story__step-card {
    flex: 0 0 var(--founder-card-width);
    min-width: var(--founder-card-width);
  }

  .founder-story__quote {
    width: var(--founder-track-width);
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .founder-story__glass {
    padding: 22px 12px 14px;
    border-radius: 22px;
  }

  .founder-story__intro {
    margin-bottom: 16px;
  }

  .founder-story__badge {
    margin-bottom: 12px;
    font-size: 0.64rem;
    padding: 7px 11px;
  }

  .founder-story__title-main,
  .founder-story__title-accent {
    display: block;
    font-size: clamp(2.45rem, 12vw, 3.9rem);
    line-height: 0.92;
  }

  .founder-story__title-accent {
    margin: 6px auto 0;
    width: fit-content;
  }

  .founder-story__subtitle {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.38;
    max-width: 94%;
  }

  .founder-story__circle {
    width: min(100%, 274px);
  }

  .founder-story__play {
    width: 52px;
    height: 52px;
  }

  .founder-story__timeline {
    margin-top: 2px;
    padding-left: 0;
  }

  .founder-story__timeline::before {
    top: 14px;
    bottom: 14px;
  }

  .founder-story__step {
    gap: 12px;
    padding-bottom: 10px;
  }

  .founder-story__node {
    margin-top: 22px;
  }

  .founder-story__step-card {
    padding: 13px 11px 11px;
    border-radius: 14px;
    column-gap: 9px;
    row-gap: 4px;
  }

  .founder-story__step-number {
    font-size: 1.25rem;
    border-radius: 8px;
    padding: 3px 7px;
  }

  .founder-story__accent {
    font-size: clamp(1.08rem, 4.7vw, 1.5rem);
    line-height: 1.05;
  }

  .founder-story__desc {
    font-size: 0.92rem;
    line-height: 1.32;
  }

  .founder-story__quote {
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    padding: 20px 16px 16px;
    border-radius: 18px;
  }

  .founder-story__quote-mark {
    font-size: 2.6rem;
  }

  .founder-story__quote-avatar {
    width: 48px;
    height: 48px;
  }

  .founder-story__quote-text {
    font-size: 1rem;
    line-height: 1.4;
  }
}

@media (max-width: 520px) {
  .founder-story__accent {
    font-size: clamp(1rem, 4.2vw, 1.34rem);
  }
}

@media (max-width: 420px) {
  .founder-story__glass {
    --founder-node-size: 10px;
  }

  .founder-story__step {
    gap: 10px;
  }

  .founder-story__node {
    margin-top: 20px;
  }

  .founder-story__step-card {
    padding: 12px 10px 10px;
    column-gap: 8px;
  }

  .founder-story__step-number {
    font-size: 1.15rem;
    padding: 3px 6px;
  }

  .founder-story__accent {
    font-size: clamp(0.98rem, 4.3vw, 1.24rem);
  }
}

@media (max-width: 390px) {
  .founder-story__step-card {
    padding: 11px 9px 10px;
    column-gap: 7px;
  }

  .founder-story__step-number {
    font-size: 1.05rem;
    padding: 3px 5px;
  }

  .founder-story__accent {
    font-size: clamp(0.92rem, 4vw, 1.14rem);
  }
}

@media (max-width: 340px) {
  .founder-story__step-card {
    padding: 10px 8px 9px;
    column-gap: 6px;
  }

  .founder-story__step-number {
    font-size: 0.96rem;
    padding: 2px 5px;
  }

  .founder-story__accent {
    font-size: clamp(0.84rem, 3.8vw, 1rem);
  }
}

/* ===================================================================
   BLOCK: Teaching Philosophy — «Щит и Молния»
   Glass cards with decorative SVG watermarks + line-art icons.
   =================================================================== */

.landing-block--philosophy {
  padding: 0 var(--landing-side-pad, 12px);
  color: #121212;
}

/* ── Title with accent mark ── */

.philosophy__title {
  font-size: clamp(1.35rem, 3.6vw, 1.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  text-align: center;
  line-height: 1.35;
}

#teaching_philosophy .philosophy__title .landing-block2__mark--purple {
  background: rgba(124, 108, 255, 0.95);
  color: #fff;
  padding: 0.05em 0.18em;
  border-radius: 0;
}

/* ── Grid ── */

.philosophy__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* ── Glass card ── */

.philosophy__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 32px 28px 28px;
  border: 1px solid color-mix(in srgb, var(--card-accent, #f97316) 22%, transparent);
  background:
    radial-gradient(
      ellipse at 15% 10%,
      color-mix(in srgb, var(--card-accent, #f97316) 14%, transparent),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 90%,
      color-mix(in srgb, var(--card-accent, #f97316) 8%, transparent),
      transparent 50%
    ),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 28px color-mix(in srgb, var(--card-accent, #f97316) 10%, transparent);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s ease;
}

.philosophy__card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 14px 40px color-mix(in srgb, var(--card-accent, #f97316) 16%, transparent);
}

/* ── Decorative watermark SVG ── */

.philosophy__watermark {
  position: absolute;
  top: -8px;
  right: -4px;
  width: 130px;
  height: 150px;
  color: var(--card-accent, #f97316);
  opacity: 0.06;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.philosophy__watermark svg {
  width: 100%;
  height: 100%;
}

.philosophy__card:hover .philosophy__watermark {
  transform: scale(1.1);
  opacity: 0.09;
}

/* ── Label (sub-heading) ── */

.philosophy__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--card-accent, #f97316);
  background: color-mix(in srgb, var(--card-accent, #f97316) 10%, transparent);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ── Heading ── */

.philosophy__heading {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 900;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* ── Points list ── */

.philosophy__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.philosophy__point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── SVG icon circle ── */

.philosophy__point-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent, #f97316) 10%, transparent);
  color: var(--card-accent, #f97316);
}

.philosophy__point-icon svg {
  width: 18px;
  height: 18px;
}

.philosophy__point-text {
  color: rgba(18, 18, 18, 0.74);
  padding-top: 7px;
}

/* ── Mobile ── */

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

  .philosophy__card {
    padding: 26px 20px 22px;
  }

  .philosophy__watermark {
    width: 100px;
    height: 120px;
    top: -4px;
    right: -2px;
  }
}

/* ===================================================================
   BLOCK: Pricing (3 tiers + demo)
   Glass cards, tiered hierarchy, responsive 4-col / 2-col / 1-col.
   =================================================================== */

.landing-block--pricing {
  position: relative;
  isolation: isolate;
  z-index: 0;
  padding: clamp(28px, 4vw, 48px) var(--landing-side-pad, 12px) 20px;
  color: #121212;
  min-width: 0;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
  background: transparent;
}

/* ── Pricing: full redesign (desktop + mobile) ── */

.pricing__head {
  position: relative;
  z-index: 2;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding-top: clamp(8px, 1.5vw, 16px);
}

.pricing__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.pricing__deco-star,
.pricing__deco-form {
  position: absolute;
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--pricing-deco-rotate, 0deg));
  opacity: var(--pricing-deco-opacity, 0.48);
}

.pricing__deco-star {
  width: var(--pricing-star-size, 44px);
}

.pricing__deco-form {
  width: var(--pricing-form-size, clamp(72px, 7vw, 96px));
}

.pricing__deco-star--l1 {
  left: 4%;
  top: 18%;
  --pricing-star-size: clamp(36px, 3.2vw, 48px);
  --pricing-deco-rotate: -12deg;
  --pricing-deco-opacity: 0.42;
}

.pricing__deco-star--l2 {
  left: 10%;
  top: 62%;
  --pricing-star-size: clamp(28px, 2.4vw, 38px);
  --pricing-deco-rotate: 8deg;
  --pricing-deco-opacity: 0.38;
}

.pricing__deco-star--l3 {
  left: 16%;
  top: 38%;
  --pricing-star-size: clamp(32px, 2.8vw, 42px);
  --pricing-deco-rotate: -6deg;
  --pricing-deco-opacity: 0.44;
}

.pricing__deco-form--left {
  left: 7%;
  top: 42%;
  --pricing-form-size: clamp(68px, 6.5vw, 88px);
  --pricing-deco-rotate: -10deg;
  --pricing-deco-opacity: 0.46;
}

.pricing__deco-star--r1 {
  right: 6%;
  left: auto;
  top: 24%;
  transform: translate(50%, -50%) rotate(10deg);
  --pricing-star-size: clamp(34px, 3vw, 46px);
  --pricing-deco-opacity: 0.4;
}

.pricing__deco-star--r2 {
  right: 12%;
  left: auto;
  top: 58%;
  transform: translate(50%, -50%) rotate(-8deg);
  --pricing-star-size: clamp(30px, 2.6vw, 40px);
  --pricing-deco-opacity: 0.36;
}

.pricing__deco-form--right {
  right: 8%;
  left: auto;
  top: 40%;
  transform: translate(50%, -50%) rotate(6deg);
  --pricing-form-size: clamp(68px, 6.5vw, 88px);
  --pricing-deco-opacity: 0.44;
}

.pricing__title {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-align: center;
  line-height: 1.05;
}

#pricing .pricing__title .landing-block2__mark--purple {
  background: transparent;
  color: #121212;
  padding: 0;
  border-radius: 0;
}

.pricing__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
}

.pricing__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 20px;
  margin: 0;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  color: #2e2e2e;
  background: #fff;
  border: 1px solid rgba(82, 71, 122, 0.1);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.pricing__tag::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.95;
}

.pricing__tag:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23624ca0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 5l9 5.5-9 5.5-9-5.5Z'/%3E%3Cpath d='M6 12.5V17l6 3.5 6-3.5v-4.5'/%3E%3C/svg%3E");
}

.pricing__tag:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23624ca0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4z'/%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M6.5 8.5h3M6.5 11h3M14.5 8.5h3M14.5 11h3'/%3E%3C/svg%3E");
}

.pricing__tag:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23624ca0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M7 16V9M12 16V6M17 16v-4'/%3E%3Cpath d='M5 9h4M10 6h4M15 12h4'/%3E%3C/svg%3E");
}

.pricing__tag:nth-child(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23624ca0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.64 5.64l2.12 2.12M16.24 16.24l2.12 2.12M18.36 5.64l-2.12 2.12M7.76 16.24l-2.12 2.12'/%3E%3C/svg%3E");
}

.pricing__scroll-wrap {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.pricing__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pricing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
  border: 2px solid rgba(52, 41, 84, 0.12);
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.pricing__card:hover {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
}

.pricing__card--popular {
  border-color: rgba(249, 115, 22, 0.45);
}

.pricing__card--demo {
  border-color: rgba(111, 44, 255, 0.22);
}

.pricing__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: #ff8a24;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.pricing__badge--demo {
  background: #7a58c9;
}

.pricing__media {
  position: relative;
  padding: 6px 6px 0;
}

.pricing__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pricing__card:nth-child(4) .pricing__image {
  background-image: url("/static/catalog/pricing/plan_sos.png?v=20260429-pricing-sos") !important;
  filter: none;
}

.pricing__card.pricing__card--demo .pricing__image {
  background-image: url("/static/catalog/pricing/demo_plan.png?v=20260429-pricing-demo") !important;
}

.pricing__card.pricing__card--popular .pricing__image {
  background-image: url("/static/catalog/pricing/plan_support.png?v=20260429-pricing-support") !important;
}

.pricing__card:not(.pricing__card--demo):nth-child(2) .pricing__image {
  background-image: url("/static/catalog/pricing/plan_start.png?v=20260429-pricing-start") !important;
}

.pricing__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 12px 14px 0;
}

.pricing__plan-name {
  margin: 0 0 6px;
  font-size: 0.98rem;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #121212;
}

.pricing__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.pricing__price {
  font-size: clamp(2rem, 2.4vw, 2.4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #4d2f88;
}

.pricing__period {
  font-size: 0.95rem;
  color: rgba(18, 18, 18, 0.66);
  font-weight: 500;
}

.pricing__period--prefix {
  margin-right: 2px;
}

.pricing__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing__feature {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.85);
}

.pricing__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  box-sizing: border-box;
  background: #6d58ad;
  color: #fff;
}

#pricing .pricing__feature-underline {
  text-decoration: underline;
  text-decoration-color: rgba(124, 108, 255, 0.95);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.04em;
  text-decoration-skip-ink: auto;
}

.pricing__card--popular .pricing__check {
  background: #f97316;
  color: #fff;
}

.pricing__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding: 12px 14px 14px;
}

.pricing__cta {
  flex: 1;
  min-width: 0;
  display: block;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  line-height: 1.1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pricing__cta--primary {
  border: none;
  background: #6c4bb6;
  color: #fff;
}

.pricing__cta--secondary {
  border: 1px solid rgba(39, 28, 73, 0.35);
  background: #fff;
  color: #3a2d63;
}

.pricing__cta--primary:hover,
.pricing__cta--secondary:hover {
  transform: translateY(-1px);
}

.pricing__card--popular .pricing__plan-name,
.pricing__card--popular .pricing__price,
.pricing__card--popular .pricing__period {
  color: #f97316;
}

.pricing__card--popular .pricing__cta--primary {
  background: #ff7a1f;
}

.pricing__card--popular .pricing__cta--secondary {
  border-color: rgba(249, 115, 22, 0.5);
  color: #ca5a0f;
}

@media (max-width: 1039px) {
  .pricing__deco {
    display: none;
  }

  .pricing__title {
    font-size: clamp(2rem, 8.6vw, 3rem);
  }

  .pricing__tags {
    max-width: 40rem;
  }

  .pricing__tag {
    font-size: 0.95rem;
    min-height: 34px;
    padding: 6px 14px;
  }

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

  .pricing__card {
    display: grid;
    grid-template-columns: minmax(180px, 48%) 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
    border-radius: 12px;
  }

  .pricing__media {
    grid-column: 1;
    grid-row: 1;
    padding: 6px;
  }

  .pricing__image {
    height: 100%;
    min-height: 155px;
    aspect-ratio: auto;
  }

  .pricing__content {
    grid-column: 2;
    grid-row: 1;
    padding: 8px 10px 0 6px;
  }

  .pricing__plan-name {
    font-size: 0.94rem;
    margin-bottom: 4px;
  }

  .pricing__price {
    font-size: clamp(1.9rem, 6.2vw, 2.35rem);
  }

  .pricing__period {
    font-size: 0.9rem;
  }

  .pricing__features {
    gap: 6px;
  }

  .pricing__feature {
    font-size: 0.84rem;
    line-height: 1.28;
  }

  .pricing__actions {
    grid-column: 2;
    grid-row: 2;
    padding: 8px 10px 10px 6px;
    margin-top: 0;
  }

  .pricing__cta {
    padding: 9px 8px;
    font-size: 0.86rem;
  }

  .pricing__badge {
    top: 12px;
    left: 12px;
    font-size: 0.62rem;
    padding: 3px 9px;
  }
}

@media (max-width: 560px) {
  .pricing__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .pricing__media {
    grid-column: 1;
    grid-row: 1;
  }

  .pricing__image {
    min-height: clamp(150px, 52vw, 230px);
    height: auto;
    aspect-ratio: auto;
  }

  .pricing__content {
    grid-column: 1;
    grid-row: 2;
    padding: 8px 10px 0;
  }

  .pricing__actions {
    grid-column: 1;
    grid-row: 3;
    padding: 10px;
  }

  .pricing__tag {
    font-size: 0.9rem;
  }
}

@media (min-width: 561px) and (max-width: 1039px) {
  .pricing__card {
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .pricing__card .pricing__media {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    align-self: stretch;
    min-height: 0;
    padding: 6px;
  }

  .pricing__card .pricing__image {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .pricing__card .pricing__content {
    grid-column: 2;
    grid-row: 1;
  }

  .pricing__card .pricing__actions {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ===================================================================
   BLOCK: Comparison — «Как можно готовиться к экзамену»
   =================================================================== */

.landing-block--comparison {
  margin-top: 120px;
  margin-bottom: 20px;
  padding: 0 var(--landing-side-pad, 12px);
  color: #121212;
  position: relative;
  isolation: isolate;
  z-index: 0;
}

/* ── Title ── */

#comparison .comparison__title-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 0 28px;
}

#comparison .comparison__title-wrap--desktop {
  display: none;
}

#comparison .comparison__title-wrap .comparison__title {
  margin: 0;
}

#comparison .comparison__title-wrap--mobile .comparison__title {
  container-name: block2-title;
  container-type: inline-size;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  overflow: visible;
  isolation: isolate;
  z-index: 1;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow:
    0 2px 4px rgba(18, 18, 18, 0.14),
    0 8px 20px rgba(18, 18, 18, 0.22);
}

#comparison .comparison__title-line {
  display: inline;
}

#comparison .comparison__title-br {
  display: none;
}

#comparison .comparison__title .landing-block2__mark {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

#comparison .comparison__title-mark {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.14em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(124, 108, 255, 0.95);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}

#comparison .comparison__title-wrap--mobile .comparison__title::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(calc(-50% - 140px), -28px);
  width: clamp(224px, 25.2vw, 392px);
  aspect-ratio: 1024 / 768;
  background-color: #7c6cff;
  -webkit-mask-image: url("/static/catalog/landing/comparison_connector.png");
  mask-image: url("/static/catalog/landing/comparison_connector.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
  pointer-events: none;
  z-index: -1;
}

/* ── Grid ── */

.comparison__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 1100px) {
  #comparison .comparison__title-wrap--mobile {
    display: none;
  }

  #comparison .comparison__title-wrap--desktop {
    display: flex;
    justify-content: center;
    margin: 0 0 28px;
    pointer-events: none;
    z-index: 5;
  }

  #comparison .comparison__title--desktop {
    width: fit-content;
    max-width: 100%;
    font-size: calc(34px * 1.5);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    position: relative;
    overflow: visible;
    isolation: isolate;
    z-index: 1;
    pointer-events: auto;
    transform: translate(150px, 50px);
    text-shadow:
      0 2px 4px rgba(18, 18, 18, 0.14),
      0 8px 20px rgba(18, 18, 18, 0.22);
  }

  #comparison .comparison__title-desktop-row {
    white-space: nowrap;
  }

  #comparison .comparison__title--desktop .founder-story__title-accent {
    margin-left: 0;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
  }

  #comparison .comparison__title--desktop::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(calc(-50% - 260px), -38px) rotate(5deg);
    width: clamp(224px, 25.2vw, 392px);
    aspect-ratio: 1024 / 768;
    background-color: #7c6cff;
    -webkit-mask-image: url("/static/catalog/landing/comparison_connector.png");
    mask-image: url("/static/catalog/landing/comparison_connector.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center top;
    mask-position: center top;
    filter:
      drop-shadow(0 3px 6px rgba(124, 108, 255, 0.62))
      drop-shadow(0 10px 22px rgba(124, 108, 255, 0.48))
      drop-shadow(0 22px 44px rgba(124, 108, 255, 0.34))
      drop-shadow(0 36px 72px rgba(124, 108, 255, 0.22));
    pointer-events: none;
    z-index: -1;
  }

  .comparison__grid {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: clamp(96px, 10.5vw, 156px);
  }
}

/* ── Hero column ── */

.comparison__highlight-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  position: relative;
  isolation: isolate;
  --comparison-circles-center-y: clamp(106px, 19vw, 136px);
  --comparison-circle-outer-size: clamp(176px, 35vw, 242px);
  --comparison-circle-inner-size: clamp(136px, 28vw, 196px);
  --comparison-circle-outer-size-hover: calc(var(--comparison-circle-outer-size) + 18px);
  --comparison-circle-inner-size-hover: calc(var(--comparison-circle-inner-size) + 14px);
  --comparison-circle-outer-size-current: var(--comparison-circle-outer-size);
  --comparison-circle-inner-size-current: var(--comparison-circle-inner-size);
  --comparison-hero-scale: 1;
  --comparison-hero-scale-hover: 1.045;
  --comparison-hero-scale-current: var(--comparison-hero-scale);
}

.comparison__highlight-wrap::before,
.comparison__highlight-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.comparison__highlight-wrap::before {
  width: var(--comparison-circle-outer-size-current);
  top: calc(var(--comparison-circles-center-y) - (var(--comparison-circle-outer-size-current) / 2));
  aspect-ratio: 1;
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              top 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  background: rgba(249, 115, 22, 0.2);
}

.comparison__highlight-wrap::after {
  width: var(--comparison-circle-inner-size-current);
  top: calc(var(--comparison-circles-center-y) - (var(--comparison-circle-inner-size-current) / 2));
  aspect-ratio: 1;
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              top 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  background: rgba(249, 115, 22, 0.14);
}

.comparison__highlight-wrap:has(.comparison__card--highlighted:hover),
.comparison__highlight-wrap:hover {
  --comparison-circle-outer-size-current: var(--comparison-circle-outer-size-hover);
  --comparison-circle-inner-size-current: var(--comparison-circle-inner-size-hover);
  --comparison-hero-scale-current: var(--comparison-hero-scale-hover);
}

.comparison__highlight-wrap .comparison__card--highlighted {
  width: 100%;
}

.comparison__hero-stars {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(220px, 42vw, 320px);
  height: clamp(140px, 24vw, 200px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.comparison__hero-star {
  position: absolute;
  width: var(--comparison-star-size, 36px);
  height: auto;
  opacity: var(--comparison-star-opacity, 0.85);
  transform: rotate(var(--comparison-star-rotate, 0deg));
}

.comparison__hero-star--01 {
  left: 2%;
  top: 8%;
  --comparison-star-size: clamp(28px, 5vw, 42px);
  --comparison-star-rotate: -12deg;
}

.comparison__hero-star--02 {
  left: 18%;
  top: 0;
  --comparison-star-size: clamp(22px, 4vw, 34px);
  --comparison-star-rotate: 8deg;
  --comparison-star-opacity: 0.72;
}

.comparison__hero-star--03 {
  left: 8%;
  top: 34%;
  --comparison-star-size: clamp(18px, 3.2vw, 28px);
  --comparison-star-rotate: 18deg;
  --comparison-star-opacity: 0.65;
}

.comparison__hero-sticker {
  display: block;
  width: auto;
  max-width: min(228px, 40vw);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  margin-bottom: clamp(-44px, -6.5vw, -30px);
  position: relative;
  transform: scale(var(--comparison-hero-scale-current));
  transform-origin: center bottom;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  pointer-events: none;
  user-select: none;
  filter:
    drop-shadow(0 3px 6px rgba(249, 115, 22, 0.58))
    drop-shadow(0 10px 22px rgba(249, 115, 22, 0.46))
    drop-shadow(0 22px 44px rgba(249, 115, 22, 0.32))
    drop-shadow(0 36px 72px rgba(18, 18, 18, 0.14));
}

@media (min-width: 1100px) {
  .comparison__highlight-wrap {
    display: block;
    overflow: visible;
    --comparison-circles-center-y: clamp(-46px, -2.6vw, -14px);
    --comparison-circle-outer-size: clamp(194px, 16.8vw, 262px);
    --comparison-circle-inner-size: clamp(156px, 13.5vw, 212px);
    --comparison-circle-outer-size-hover: calc(var(--comparison-circle-outer-size) + 14px);
    --comparison-circle-inner-size-hover: calc(var(--comparison-circle-inner-size) + 10px);
  }

  .comparison__hero-stars {
    left: 50%;
    top: clamp(-148px, -10.5vw, -88px);
    width: clamp(240px, 18vw, 320px);
    height: clamp(130px, 9.5vw, 170px);
    transform: translateX(-50%);
  }

  .comparison__hero-star--01 {
    left: 0;
    top: 6%;
    --comparison-star-size: clamp(30px, 2.4vw, 44px);
  }

  .comparison__hero-star--02 {
    left: 14%;
    top: -4%;
    --comparison-star-size: clamp(24px, 2vw, 36px);
  }

  .comparison__hero-star--03 {
    left: 6%;
    top: 18%;
    --comparison-star-size: clamp(20px, 1.6vw, 30px);
  }

  .comparison__hero-sticker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(var(--comparison-hero-scale-current));
    bottom: 100%;
    margin-bottom: clamp(-36px, -5vw, -24px);
  }

  .comparison__card--highlighted:hover {
    transform: translateY(-4px);
    box-shadow:
      0 2px 6px rgba(0, 0, 0, 0.06),
      0 14px 40px color-mix(in srgb, #f97316 16%, transparent),
      0 20px 48px rgba(249, 115, 22, 0.18);
  }
}

/* ── Cards (shared) ── */

.comparison__card {
  --comparison-accent: rgba(18, 18, 18, 0.82);
  --comparison-outcome-bg: rgba(18, 18, 18, 0.05);
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  background: #fff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s ease;
}

.comparison__card--fmshm {
  --comparison-accent: #f97316;
  --comparison-outcome-bg: rgba(249, 115, 22, 0.12);
}

.comparison__card--online_schools {
  --comparison-accent: #7c6cff;
  --comparison-outcome-bg: rgba(124, 108, 255, 0.12);
}

.comparison__card--tutor {
  --comparison-accent: #f472b6;
  --comparison-outcome-bg: rgba(244, 114, 182, 0.12);
}

.comparison__card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.07);
}

.comparison__card:not(.comparison__card--highlighted):hover {
  transform: none;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.05);
}

.comparison__card--highlighted {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #f97316 28%, transparent);
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 28px color-mix(in srgb, #f97316 10%, transparent),
    0 14px 42px rgba(249, 115, 22, 0.14);
  z-index: 3;
}

@media (max-width: 1099px) {
  #comparison .comparison__title-wrap--mobile .comparison__title::after {
    -webkit-mask-image: url("/static/catalog/landing/comparison_connector_mobile.png");
    mask-image: url("/static/catalog/landing/comparison_connector_mobile.png");
    width: clamp(180px, 20.2vw, 314px);
    transform: translate(calc(-50% + 70px), -26px) rotate(-25deg);
  }

  .comparison__grid {
    gap: 24px;
  }

  #comparison.comparison--mobile-auto-hover .comparison__highlight-wrap {
    --comparison-circle-outer-size-current: var(--comparison-circle-outer-size-hover);
    --comparison-circle-inner-size-current: var(--comparison-circle-inner-size-hover);
    --comparison-hero-scale-current: var(--comparison-hero-scale-hover);
  }

  .comparison__grid > .comparison__card,
  .comparison__highlight-wrap .comparison__card--highlighted {
    width: 100%;
    max-width: 486px;
    margin-inline: auto;
  }
}

/* ── Card head ── */

.comparison__card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.comparison__card-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--comparison-accent);
  color: #fff;
}

.comparison__card-badge svg {
  width: 20px;
  height: 20px;
}

.comparison__card-badge-logo {
  width: auto;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.comparison__heading {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: left;
  line-height: 1.25;
  color: rgba(18, 18, 18, 0.84);
}

.comparison__card--highlighted .comparison__heading,
.comparison__card--fmshm .comparison__heading {
  font-size: 1.05rem;
  color: var(--comparison-accent);
}

/* ── List with row dividers ── */

.comparison__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.comparison__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(18, 18, 18, 0.78);
}

.comparison__item-text {
  min-width: 0;
}

.comparison__mark {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.comparison__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 1px;
}

.comparison__icon svg {
  width: 12px;
  height: 12px;
}

.comparison__item--check .comparison__icon {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.comparison__item--cross .comparison__icon {
  background: rgba(239, 68, 68, 0.08);
  color: rgba(239, 68, 68, 0.55);
}

/* ── Price row ── */

.comparison__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.comparison__price-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--comparison-accent);
}

.comparison__price-icon svg {
  width: 18px;
  height: 18px;
}

.comparison__price {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  color: rgba(18, 18, 18, 0.88);
}

.comparison__card--fmshm .comparison__price {
  color: var(--comparison-accent);
  font-size: 1.05rem;
}

/* ── Outcome block ── */

.comparison__outcome {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--comparison-outcome-bg);
}

.comparison__outcome-label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--comparison-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.comparison__summary {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.62);
}

/* ── CTA ── */

.comparison__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  background: #f97316;
  color: #fff;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.comparison__cta-label {
  line-height: 1.2;
}

.comparison__cta-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.comparison__cta:hover {
  background: #ea6c10;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.comparison__cta:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  #comparison .comparison__title-wrap--mobile {
    margin-bottom: 20px;
  }

  .comparison__card--highlighted:hover {
    transform: translateY(-4px);
  }

  .comparison__card {
    padding: 18px 16px 16px;
  }
}

/* ===================================================================
   BLOCK: Reviews (testimonials grid)
   =================================================================== */

.landing-block--reviews {
  position: relative;
  margin-top: 20px;
  padding: 0 var(--landing-side-pad, 12px);
  color: #121212;
}

.reviews__shell {
  max-width: 1216px;
  margin: 0 auto;
  padding: clamp(24px, 3.2vw, 40px);
  border-radius: 30px;
  background: linear-gradient(135deg, #fff9e8 0%, #f3ecff 55%, #efe8ff 100%);
}

/* ── Header ── */

.reviews__head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(22px, 3vw, 32px);
}

.reviews__copy {
  align-self: start;
  justify-self: start;
  min-width: 0;
}

.reviews__label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #7c6cff;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.reviews__title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #121212;
  position: relative;
  isolation: isolate;
}

.reviews__title-line {
  display: inline;
}

.reviews__title-mark {
  display: inline;
  background: #ffdd2d;
  padding: 0.02em 0.12em 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.reviews__title-break {
  display: none;
}

.reviews__title-line--row2::before {
  content: " ";
}

.reviews__title::after {
  content: "";
  display: block;
  width: clamp(180px, 28vw, 260px);
  height: clamp(18px, 2.4vw, 28px);
  margin-top: 8px;
  background: url("/static/catalog/landing/comparison_connector.png") left center / contain no-repeat;
  filter: invert(58%) sepia(30%) saturate(760%) hue-rotate(292deg) brightness(103%) contrast(92%);
  pointer-events: none;
}

.reviews__lead {
  margin: 18px 0 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.58);
}

/* ── Header visual (right column: hero image) ── */

.reviews__visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
  min-height: 100%;
}

.reviews__hero {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  max-width: 100%;
}

.reviews__hero-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: clamp(220px, 36vw, 420px);
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

/* Legacy hero layers — kept for when doodles/stat card are re-enabled. */
.reviews__hero-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15 / 1;
  min-height: 220px;
}

.reviews__hero-doodles {
  position: absolute;
  inset: 8% 0 0 0;
  pointer-events: none;
}

.reviews__hero-doodle {
  position: absolute;
  opacity: 0.42;
  filter: invert(42%) sepia(52%) saturate(820%) hue-rotate(220deg) brightness(98%) contrast(92%);
}

.reviews__hero-doodle--formulas {
  left: 0;
  top: 8%;
  width: clamp(120px, 42%, 200px);
  height: auto;
}

.reviews__hero-doodle--practice {
  right: 4%;
  bottom: 10%;
  width: clamp(100px, 36%, 170px);
  height: auto;
}

.reviews__hero-doodle--star-1 {
  left: 18%;
  top: 0;
  width: clamp(28px, 8vw, 44px);
  height: auto;
  opacity: 0.55;
}

.reviews__hero-doodle--star-2 {
  right: 22%;
  top: 16%;
  width: clamp(22px, 6vw, 36px);
  height: auto;
  opacity: 0.5;
}

.reviews__hero-characters {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.reviews__stat-card {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: min(100%, 220px);
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(82, 71, 122, 0.12);
}

.reviews__stat-icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(124, 108, 255, 0.12);
  color: #7c6cff;
}

.reviews__stat-icon-wrap .landing-block3__stat-icon {
  width: 22px;
  height: 22px;
}

.reviews__stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reviews__stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #121212;
}

.reviews__stat-label {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.55);
}

/* ── Cards grid ── */

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.reviews__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(82, 71, 122, 0.08);
}

.reviews__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.reviews__person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.reviews__avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.reviews__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reviews__name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #121212;
}

.reviews__subject {
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.45);
}

.reviews__result {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  text-align: right;
}

.reviews__result--ege {
  background: #e8f8ef;
  color: #1f9d55;
}

.reviews__result--oge {
  background: #ede9ff;
  color: #6b5ce7;
}

.reviews__result-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.reviews__result-value {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.reviews__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #f5b942;
}

.reviews__star {
  display: block;
}

.reviews__quote {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.reviews__quote-mark {
  flex-shrink: 0;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 800;
  color: #7c6cff;
  margin-top: -2px;
}

.reviews__quote-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: rgba(0, 0, 0, 0.62);
}

/* ── Footer bar ── */

.reviews__footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(20px, 2.8vw, 28px);
  padding: 18px 8px 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0 0 20px 20px;
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: -8px;
  padding-left: clamp(12px, 2vw, 20px);
  padding-right: clamp(12px, 2vw, 20px);
}

.reviews__footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 14px;
}

.reviews__footer-item:not(:first-child) {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.reviews__footer-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #7c6cff;
}

.reviews__footer-icon svg {
  width: 22px;
  height: 22px;
}

.reviews__footer-text {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.68);
}

/* ── Tablet ── */

@media (max-width: 1024px) and (min-width: 769px) {
  .reviews__head {
    grid-template-columns: 1fr;
  }

  .reviews__copy {
    justify-self: stretch;
  }

  .reviews__visual {
    justify-content: center;
    align-items: flex-end;
  }

  .reviews__hero-img {
    max-height: 360px;
  }

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

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

  .reviews__footer-item:nth-child(odd) {
    border-left: 0;
  }

  .reviews__footer-item:nth-child(even) {
    border-left: 1px solid rgba(0, 0, 0, 0.08);
  }

  .reviews__footer-item:nth-child(n + 3) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

/* ── Mobile ── */

@media (max-width: 768px) {
  .reviews__shell {
    container-type: inline-size;
    container-name: reviews-shell;
    padding: 20px 16px 16px;
    border-radius: 24px;
  }

  .reviews__head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .reviews__copy {
    justify-self: center;
    width: 100%;
  }

  .reviews__label {
    display: none;
  }

  .reviews__lead {
    display: none;
  }

  .reviews__title {
    text-align: center;
  }

  .reviews__title-break {
    display: block;
  }

  .reviews__title-line--row2::before {
    content: none;
  }

  .reviews__title::after {
    position: absolute;
    left: calc(50% - 90px);
    top: calc(100% + 128px);
    width: min(220px, 70vw);
    height: clamp(18px, 2.4vw, 28px);
    margin: 0;
    z-index: -1;
    transform: translateX(-50%) rotate(-45deg) scale(7.8);
    transform-origin: center center;
    background-position: center center;
  }

  .reviews__visual {
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    z-index: 1;
  }

  .reviews__hero-img {
    max-height: 280px;
    object-position: center bottom;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .reviews__card-top {
    flex-wrap: wrap;
  }

  .reviews__result {
    margin-left: auto;
  }

  .reviews__footer {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .reviews__footer-item {
    padding: 10px 8px;
    border-left: 0 !important;
    border-top: 0;
  }

  .reviews__footer-item:not(:first-child) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

@container reviews-shell (max-width: 370px) {
  .reviews__title::after {
    left: calc(50% - 70px);
  }
}

@container reviews-shell (max-width: 340px) {
  .reviews__title::after {
    left: calc(50% - 55px);
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 390px) {
    .reviews__title::after {
      left: calc(50% - 70px);
    }
  }
}

/* ===================================================================
   BLOCK: FAQ (accordion with <details>)
   =================================================================== */

.landing-block--faq {
  padding: 0 var(--landing-side-pad, 12px);
  color: #121212;
}

.faq__title {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  text-align: center;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::marker {
  content: "";
}

.faq__question-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.faq__chevron {
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.faq__item[open] > .faq__question .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 4px 18px;
  animation: faqFadeIn 0.25s ease;
}

.faq__answer p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.55);
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   BLOCK: Final CTA (capture form + trust badges)
   =================================================================== */

.landing-block--final-cta {
  padding: 0 var(--landing-side-pad, 12px);
}

.final-cta__inner {
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.12), rgba(59, 130, 246, 0.08));
  border-radius: var(--card-radius, 18px);
  padding: 48px 32px;
  text-align: center;
}

.final-cta__title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  margin: 0 0 12px;
}

.final-cta__subtitle {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 auto 28px;
  max-width: 520px;
}

.landing-capture-form--final {
  max-width: 400px;
  margin: 0 auto;
}

.landing-capture-form--final .landing-capture-form__submit-wrap {
  position: relative;
  width: 100%;
  margin-top: 0;
}

.landing-capture-form--final .landing-capture-form__submit-wrap .landing-capture-form__submit {
  position: relative;
  z-index: 1;
  width: 100%;
}

.landing-capture-form--final .landing-capture-form__submit-cloud {
  position: absolute;
  z-index: 2;
  right: -10px;
  bottom: 100%;
  width: fit-content;
  max-width: 14rem;
  margin: 0;
  padding: 5px 11px 7px;
  pointer-events: none;
  transform: translateY(50%) rotate(2deg);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(17, 17, 17, 0.88);
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 0 12px 3px rgba(17, 17, 17, 0.1),
    0 2px 7px rgba(17, 17, 17, 0.14),
    0 6px 18px rgba(17, 17, 17, 0.1),
    0 10px 26px rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.07);
}

.final-cta__trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
}

.final-cta__trust--subtitle-benefits {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 520px;
  margin: 4px auto 28px;
  text-align: left;
}

.final-cta__trust--subtitle-benefits .final-cta__badge {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.55);
  min-width: 0;
  max-width: 100%;
}

.final-cta__trust--subtitle-benefits .final-cta__badge-lead {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.final-cta__trust--subtitle-benefits .final-cta__badge-u {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.final-cta__badge {
  font-size: 0.82rem;
  color: rgba(0, 0, 0, 0.45);
  position: relative;
  padding-left: 18px;
}

.final-cta__badge::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

.final-cta__trust--plain .final-cta__badge {
  padding-left: 0;
}

.final-cta__trust--plain .final-cta__badge::before {
  content: none;
}

@media (max-width: 768px) {
  .final-cta__inner {
    padding: 36px 18px;
  }

  .final-cta__trust {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}


/* future_block_2_after_steps — copy of #future_block_2 styles; customize independently */

#future_block_2_after_steps {
  position: relative;
  overflow: visible;
  margin-top: 100px;
  margin-bottom: 30px;
  --block2-tiles-stacked-max-width: 680px;
  --block2-tiles-column-gap: 16px;
  --future-block2-curl-pink: #f472b6;
  /* arrow offset from top of .landing-placeholder__glass (title margin + line box) */
  --after-steps-arrow-top: calc(25px + 38px);
  --after-steps-arrow-left: 50%;
  --after-steps-arrow-translate-x: 30px;
  --after-steps-arrow-translate-y: -30px;
  --after-steps-arrow-rotate: 10deg;
  --after-steps-block-gap: 25px;
}

#future_block_2_after_steps .landing-placeholder__title {
  position: relative;
  z-index: 2;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0;
  text-shadow:
    0 2px 4px rgba(18, 18, 18, 0.14),
    0 8px 20px rgba(18, 18, 18, 0.22);
}

#future_block_2_after_steps .landing-placeholder__line {
  font-size: clamp(19px, 2.4vw, 27px);
  line-height: 1.2;
  font-weight: 700;
}

#future_block_2_after_steps .landing-placeholder__glass {
  position: relative;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  row-gap: var(--after-steps-block-gap);
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

/* future_block_2_after_steps — glass star deco */
#future_block_2_after_steps .after-steps-glass-deco-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  overflow: visible;
}

#future_block_2_after_steps .after-steps-glass-deco-star {
  position: absolute;
  width: var(--after-steps-star-size, 40px);
  height: auto;
  transform: translate(-50%, -50%) rotate(var(--after-steps-star-rotate, 0deg));
  opacity: var(--after-steps-star-opacity, 0.5);
}

#future_block_2_after_steps .after-steps-glass-deco-star--01 {
  left: 8%;
  top: 10%;
  --after-steps-star-size: clamp(36px, 4vw, 52px);
  --after-steps-star-rotate: -12deg;
  --after-steps-star-opacity: 0.52;
}

#future_block_2_after_steps .after-steps-glass-deco-star--02 {
  left: 92%;
  top: 8%;
  --after-steps-star-size: clamp(38px, 4.2vw, 54px);
  --after-steps-star-rotate: 8deg;
  --after-steps-star-opacity: 0.55;
}

#future_block_2_after_steps .after-steps-glass-deco-star--03 {
  left: 4%;
  top: 42%;
  --after-steps-star-size: clamp(28px, 3.5vw, 44px);
  --after-steps-star-rotate: -18deg;
  --after-steps-star-opacity: 0.44;
}

#future_block_2_after_steps .after-steps-glass-deco-star--04 {
  left: 96%;
  top: 40%;
  --after-steps-star-size: clamp(26px, 3.2vw, 42px);
  --after-steps-star-rotate: 14deg;
  --after-steps-star-opacity: 0.46;
}

#future_block_2_after_steps .after-steps-glass-deco-star--05 {
  left: 10%;
  top: 82%;
  --after-steps-star-size: clamp(30px, 3.8vw, 48px);
  --after-steps-star-rotate: -8deg;
  --after-steps-star-opacity: 0.48;
}

#future_block_2_after_steps .after-steps-glass-deco-star--06 {
  left: 90%;
  top: 84%;
  --after-steps-star-size: clamp(28px, 3.5vw, 46px);
  --after-steps-star-rotate: 16deg;
  --after-steps-star-opacity: 0.45;
}

#future_block_2_after_steps .after-steps-glass-deco-star--07 {
  left: 20%;
  top: 58%;
  --after-steps-star-size: clamp(22px, 2.8vw, 34px);
  --after-steps-star-rotate: -22deg;
  --after-steps-star-opacity: 0.30;
}

#future_block_2_after_steps .after-steps-glass-deco-star--08 {
  left: 80%;
  top: 60%;
  --after-steps-star-size: clamp(22px, 2.8vw, 34px);
  --after-steps-star-rotate: 20deg;
  --after-steps-star-opacity: 0.28;
}

#future_block_2_after_steps .future-block2__title-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: var(--after-steps-block-gap);
}

#future_block_2_after_steps .future-block2__title-wrap .landing-block2__title {
  margin: 0;
}

#future_block_2_after_steps .future-block2__tiles-to-cta-arrow {
  display: none;
}

#future_block_2_after_steps .future-block2__tiles {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 0;
  padding-left: 20px;
  padding-right: 20px;
  overflow: visible;
}

#future_block_2_after_steps .future-block2__tiles-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--block2-tiles-column-gap, 16px);
  row-gap: 0;
  align-items: start;
  width: 100%;
  min-width: 0;
}

#future_block_2_after_steps .landing-block2__title {
  container-name: block2-title;
  container-type: inline-size;
  margin: 0;
  color: #111;
  background: transparent;
  padding: 0;
  border-radius: 0;
  overflow-wrap: normal;
  word-break: normal;
}

#future_block_2_after_steps .landing-block2__title br.landing-block2__title-br {
  display: none;
}

@container block2-title (max-width: 42rem) {
  #future_block_2_after_steps .landing-block2__title br.landing-block2__title-br--after-free {
    display: block;
  }
}


@supports not (container-type: inline-size) {
  @media (max-width: 672px) {
    #future_block_2_after_steps .landing-block2__title br.landing-block2__title-br--after-free {
      display: block;
    }
  }

}
#future_block_2_after_steps .landing-block2__tile {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: center;
  justify-items: center;
  container-name: block2-tile;
  container-type: inline-size;
  justify-self: center;
  width: 100%;
  max-width: 360px;
  aspect-ratio: auto;
  min-height: auto;
  padding: 18px 16px;
  border-radius: 14px;
  border: 0;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: none;
  overflow: hidden;
}

/* Desktop 3-col layout: tile height matches #future_block_2 (aspect-ratio 2.2:1). */
@media (min-width: 981px) {
  #future_block_2_after_steps .landing-placeholder__glass {
    min-height: 0;
  }

  #future_block_2_after_steps .landing-block2__tile {
    min-height: 0;
    height: auto;
    aspect-ratio: 2.2 / 1;
    gap: 4px;
    padding: 8px 10px;
    align-content: center;
  }

  /* Same gap as title → tiles (via --after-steps-block-gap). */
  #future_block_2_after_steps .future-block2__capture-wrap {
    position: relative;
    z-index: 1;
  }

  #future_block_2_after_steps .future-block2__title-wrap .landing-block2__title {
    position: relative;
    z-index: 4;
    font-size: calc(34px * 1.3);
  }

  /* Hidden: replaced by .future-block2__tiles-row::after (no_back_narrow.png) */
  #future_block_2_after_steps .future-block2__tiles-to-cta-arrow {
    display: none;
    position: absolute;
    top: var(--after-steps-arrow-top, calc(25px + 38px));
    left: var(--after-steps-arrow-left, 50%);
    transform: translate(
      var(--after-steps-arrow-translate-x, 0),
      var(--after-steps-arrow-translate-y, -30px)
    ) rotate(var(--after-steps-arrow-rotate, 10deg));
    transform-origin: left top;
    z-index: 1;
    margin: 0;
    width: auto;
    pointer-events: none;
    line-height: 0;
  }

  #future_block_2_after_steps .future-block2__tiles {
    position: relative;
    z-index: 3;
  }

  /* Pink mask — same treatment as #future_block_2 .future-block2__curl-img */
  #future_block_2_after_steps .future-block2__tiles-to-cta-arrow-img {
    --curl-max-h: clamp(312px, 46.8vw, 624px);
    display: block;
    width: var(--curl-max-h);
    height: var(--curl-max-h);
    background-color: var(--future-block2-curl-pink, #f472b6);
    -webkit-mask-image: url("landing/future_block2_after_steps_narrow2.png");
    mask-image: url("landing/future_block2_after_steps_narrow2.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    user-select: none;
  }

  /* Pink arrow flush under tiles row (desktop only, out of flow) */
  #future_block_2_after_steps .future-block2__tiles-row {
    position: relative;
    --after-steps-narrow-top: calc(100% - 70px);
    --after-steps-narrow-width: calc(100% / 1.5);
  }

  #future_block_2_after_steps .future-block2__tiles-row::before,
  #future_block_2_after_steps .future-block2__tiles-row::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: var(--after-steps-narrow-width);
    aspect-ratio: 2172 / 724;
    margin: 0;
    pointer-events: none;
    user-select: none;
    z-index: 2;
  }

  /* Arrow shadow on center tile + capture-wrap */
  #future_block_2_after_steps .future-block2__tiles-row::before {
    top: calc(var(--after-steps-narrow-top) + 12px);
    background: url("landing/no_back_narrow.png") top center / 100% 100% no-repeat;
    filter: brightness(0) blur(12px);
    opacity: 0.48;
  }

  #future_block_2_after_steps .future-block2__tiles-row::after {
    top: var(--after-steps-narrow-top);
    background-color: var(--future-block2-curl-pink, #f472b6);
    -webkit-mask-image: url("landing/no_back_narrow.png");
    mask-image: url("landing/no_back_narrow.png");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: top center;
    mask-position: top center;
    filter: drop-shadow(0 8px 18px rgba(18, 18, 18, 0.28));
  }

  /* Arrow over center tile only; side tiles paint on top of the PNG */
  #future_block_2_after_steps .landing-block2__tile--1,
  #future_block_2_after_steps .landing-block2__tile--3 {
    z-index: 3;
  }

  #future_block_2_after_steps .landing-block2__tile--2 {
    z-index: 1;
  }
}

#future_block_2_after_steps .landing-block2__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.34);
}

#future_block_2_after_steps .landing-block2__tile--1 {
  background-color: #fff;
  --tile-icon: url("landing/5plus_transparent.png");
  --tile-icon-size: 172px;
  --tile-icon-position: right 10px bottom 10px;
}

#future_block_2_after_steps .landing-block2__tile--1::after {
  opacity: 0.5;
}

#future_block_2_after_steps .landing-block2__tile-br--narrow-only {
  display: none;
}

@container block2-tile (max-width: 340px) {
  #future_block_2_after_steps .landing-block2__tile-br--narrow-only {
    display: block;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 403px) {
    #future_block_2_after_steps .landing-block2__tile-br--narrow-only {
      display: block;
    }
  }
}

#future_block_2_after_steps .landing-block2__tile--2 {
  background-color: #fff;
  --tile-icon: url("landing/tile2_calendar_photo.png");
  --tile-icon-size: 310px;
  --tile-icon-position: right -24px bottom -2px;
}

#future_block_2_after_steps .landing-block2__tile--3 {
  background-color: #fff;
  --tile-icon: url("landing/trial_platform_tile3.png");
  --tile3-screenshot-top-gap: 151px;
  /* 576×1024 source (full-height phone UI, not cropped like old 1024×930) */
  --tile3-screenshot-aspect: 9 / 16;
}

#future_block_2_after_steps .landing-block2__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--tile-icon);
  background-size: var(--tile-icon-size, 86px) auto;
  background-position: var(--tile-icon-position, right 12px center);
  background-repeat: no-repeat;
  filter: grayscale(1);
}

#future_block_2_after_steps .landing-block2__tile--3::after {
  inset: auto;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: var(--tile3-screenshot-aspect);
  top: calc(100% - var(--tile3-screenshot-top-gap) + var(--tile3-screenshot-shift-y, 0px));
  background-size: 100% auto;
  background-position: center top;
  opacity: 0.74;
}

/* Desktop tile deco — must follow base tile rules (same specificity, later in file). */
@media (min-width: 981px) {
  #future_block_2_after_steps .landing-block2__tile--1 {
    --tile-icon-size: 120px;
    --tile-icon-position: right 8px bottom 8px;
  }

  #future_block_2_after_steps .landing-block2__tile--2 {
    --tile-icon-size: calc(310px / 1.5);
  }

  #future_block_2_after_steps .landing-block2__tile--3 {
    --tile3-screenshot-top-gap: 178px;
    --tile3-screenshot-shift-y: 100px;
  }

  #future_block_2_after_steps .landing-block2__tile--3::after {
    left: auto;
    right: 0;
    width: 76%;
  }
}

#future_block_2_after_steps .landing-block2__tile .landing-placeholder__line {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(17px, 9cqi, 30px);
  line-height: 1.25;
  font-weight: 700;
  color: rgba(19, 19, 19, 0.95);
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-align: center;
}

/* Tile 2: three explicit lines (<br />); avoid balance/anywhere reflowing on narrow tiles */
#future_block_2_after_steps .landing-block2__tile--2 .landing-placeholder__line.landing-block2__tile2-plan-lines {
  text-wrap: unset;
  overflow-wrap: normal;
  word-break: normal;
}

#future_block_2_after_steps .landing-block2__mark {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#future_block_2_after_steps .landing-block2__tile .landing-block2__mark {
  box-shadow:
    0 2px 4px rgba(18, 18, 18, 0.14),
    0 8px 20px rgba(18, 18, 18, 0.22);
}

#intro_scroll_story .scroll-story__line .landing-block2__mark {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

#future_block_2_after_steps .landing-block2__title .landing-block2__mark {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

#future_block_2_after_steps .landing-block2__title .landing-block2__mark--purple {
  background: rgba(124, 108, 255, 0.95);
  color: #fff;
  padding: 0.05em 0.14em;
  border-radius: 0;
}

#future_block_2_after_steps .landing-block2__title .landing-block2__mark--yellow {
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.05em 0.14em;
  border-radius: 0;
}

#future_block_2_after_steps .landing-block2__title .landing-block2__mark--orange {
  background: #d4d4d4;
  color: #000;
  padding: 0.05em 0.14em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow:
    0 2px 4px rgba(18, 18, 18, 0.14),
    0 8px 20px rgba(18, 18, 18, 0.22);
}

/* Подчёркивание как у .landing-block2__underline-green в #future_block_2, цвет — голубой. */
#future_block_2_after_steps .landing-block2__title .landing-block2__underline-blue {
  text-decoration: underline;
  text-decoration-color: #38bdf8;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

#future_block_2_after_steps .future-block2__capture-wrap {
  width: 100%;
  margin-top: var(--after-steps-block-gap);
  container-type: inline-size;
  container-name: future-block2-capture;
}

#future_block_2_after_steps .future-block2__capture-wrap .future-block2__cta-title {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.2em 0.45em;
}

#future_block_2_after_steps .future-block2__capture-wrap .future-block2__cta-title-text {
  line-height: 1.12;
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}

#future_block_2_after_steps .future-block2__capture-wrap .future-block2__cta-title-phone {
  display: inline-flex;
  flex-shrink: 0;
  color: rgba(17, 17, 17, 0.38);
  transform: translateY(3px) scaleX(-1) rotate(10deg);
  line-height: 0;
}

#future_block_2_after_steps .future-block2__capture-wrap .future-block2__cta-title-phone svg {
  width: auto;
  height: clamp(44px, 1.9em, 60px);
  max-height: 60px;
}

/* Узкая карточка (~≤480px): иконка в 1.5 раза меньше базовой формулы */
@container future-block2-capture (max-width: 480px) {
  #future_block_2_after_steps .future-block2__capture-wrap .future-block2__cta-title-phone svg {
    height: clamp(24px, calc(clamp(44px, 1.9em, 60px) / 1.5), 40px);
    max-height: 40px;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 480px) {
    #future_block_2_after_steps .future-block2__capture-wrap .future-block2__cta-title-phone svg {
      height: clamp(24px, calc(clamp(44px, 1.9em, 60px) / 1.5), 40px);
      max-height: 40px;
    }
  }
}

#future_block_2_after_steps .future-block2__capture-wrap .landing-capture-form {
  margin-top: 0;
  overflow: visible;
}

/* Form uses .landing-capture-form--final: same global styles as #final_cta (no block-2 overrides). */

#future_block_2_after_steps .future-block2__capture-wrap .landing-capture-form__submit {
  background: #f97316;
  color: #fff;
  border: 0;
  box-shadow:
    0 2px 8px rgba(234, 88, 12, 0.42),
    0 6px 20px rgba(17, 17, 17, 0.14);
}

#future_block_2_after_steps .future-block2__capture-wrap .landing-capture-form__submit:hover {
  background: #ea580c;
  color: #fff;
  box-shadow:
    0 3px 12px rgba(234, 88, 12, 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
}

#future_block_2_after_steps .future-block2__capture-wrap .landing-capture-form__submit-wrap {
  position: relative;
  width: 100%;
  /* Same vertical rhythm as #final_cta: grid gap handles space after switch; button keeps global 2px top margin */
  margin-top: 0;
}

#future_block_2_after_steps .future-block2__capture-wrap .landing-capture-form__submit-wrap .landing-capture-form__submit {
  position: relative;
  z-index: 1;
  width: 100%;
}

#future_block_2_after_steps .future-block2__capture-wrap .landing-capture-form__submit-cloud {
  position: absolute;
  z-index: 2;
  right: -10px;
  bottom: 100%;
  width: fit-content;
  max-width: 14rem;
  margin: 0;
  padding: 5px 11px 7px;
  pointer-events: none;
  /* Half on the top of the button, half above; out of flow — same form geometry as without cloud */
  transform: translateY(50%) rotate(2deg);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  color: rgba(17, 17, 17, 0.88);
  background: #fff;
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 0 12px 3px rgba(17, 17, 17, 0.1),
    0 2px 7px rgba(17, 17, 17, 0.14),
    0 6px 18px rgba(17, 17, 17, 0.1),
    0 10px 26px rgba(17, 17, 17, 0.06);
  border: 1px solid rgba(17, 17, 17, 0.07);
}

/* Capture form only: three bullets one line each; font scales to THIS row width (not whole viewport). */
#future_block_2_after_steps .future-block2__capture-wrap .final-cta__trust--subtitle-benefits {
  container-type: inline-size;
  container-name: future-block2-subtitle-benefits;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

#future_block_2_after_steps .future-block2__capture-wrap .final-cta__trust--subtitle-benefits .final-cta__badge {
  display: inline-block;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  margin-inline: auto;
  text-align: left;
  /* min(1rem, …): shrink below 1rem when the row is narrow; divisor tuned to longest bullet + check padding */
  font-size: min(1rem, calc(100cqw / 30));
}
@media (max-width: 980px) {
  #future_block_2_after_steps .after-steps-glass-deco-star--01 {
    left: 6%;
    top: 6%;
    --after-steps-star-size: clamp(26px, 7vw, 40px);
  }

  #future_block_2_after_steps .after-steps-glass-deco-star--02 {
    left: 94%;
    top: 5%;
    --after-steps-star-size: clamp(28px, 7.5vw, 42px);
  }

  #future_block_2_after_steps .after-steps-glass-deco-star--03 {
    left: 3%;
    top: 28%;
    --after-steps-star-size: clamp(24px, 6.5vw, 36px);
  }

  #future_block_2_after_steps .after-steps-glass-deco-star--04 {
    left: 97%;
    top: 26%;
    --after-steps-star-size: clamp(22px, 6vw, 34px);
  }

  #future_block_2_after_steps .after-steps-glass-deco-star--05 {
    left: 8%;
    top: 88%;
    --after-steps-star-size: clamp(24px, 6.5vw, 38px);
  }

  #future_block_2_after_steps .after-steps-glass-deco-star--06 {
    left: 92%;
    top: 90%;
    --after-steps-star-size: clamp(22px, 6vw, 36px);
  }

  #future_block_2_after_steps .after-steps-glass-deco-star--07 {
    left: 18%;
    top: 48%;
    --after-steps-star-size: clamp(20px, 5.5vw, 28px);
    --after-steps-star-opacity: 0.26;
  }

  #future_block_2_after_steps .after-steps-glass-deco-star--08 {
    left: 82%;
    top: 50%;
    --after-steps-star-size: clamp(20px, 5.5vw, 28px);
    --after-steps-star-opacity: 0.24;
  }

  #future_block_2_after_steps .future-block2__tiles {
    max-width: var(--block2-tiles-stacked-max-width, 680px);
    margin-inline: auto;
    width: 100%;
  }

  #future_block_2_after_steps .future-block2__tiles-row {
    grid-template-columns: 1fr;
    row-gap: 12px;
    column-gap: 0;
  }

  #future_block_2_after_steps .landing-block2__tile .landing-placeholder__line {
    font-size: clamp(22px, 2.9vw, 30px);
    text-wrap: wrap;
  }

  #future_block_2_after_steps .landing-block2__tile {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  /* On compact layout, soften photo contrast under text in tile 2 */
  #future_block_2_after_steps .landing-block2__tile--2::before,
  #future_block_2_after_steps .landing-block2__tile--3::before {
    background: rgba(255, 255, 255, 0.7);
  }

  #future_block_2_after_steps .landing-block2__tile--2::after,
  #future_block_2_after_steps .landing-block2__tile--3::after {
    opacity: 0.62;
    filter: grayscale(1);
  }

  /* Tile 2 (compact): fill tile top→bottom (no top crop from overflow); keep horizontal anchor */
  #future_block_2_after_steps .landing-block2__tile--2::after {
    background-size: auto 100%;
    background-position: right calc(-24px - var(--tile-icon-size) / 2 + 58px) center;
  }

  @container block2-tile (max-width: 420px) {
    #future_block_2_after_steps .landing-block2__tile--2::after {
      background-size: auto 86%;
      background-position: right calc(-24px - var(--tile-icon-size) / 2 + 48px) center;
      transform: none;
    }
  }

  @container block2-tile (max-width: 400px) {
    #future_block_2_after_steps .landing-block2__tile--2::after {
      background-size: auto 72%;
      background-position: right calc(-24px - var(--tile-icon-size) / 2 + 36px) center;
      transform: none;
    }
  }

  /* Tile 3 (compact): small strip, top-right flush with card (right:0; top:0 + small lift) */
  #future_block_2_after_steps .landing-block2__tile--3 {
    --tile3-mobile-screenshot-lift: -18px;
  }

  #future_block_2_after_steps .landing-block2__tile--3::after {
    left: auto;
    right: 0;
    top: 0;
    bottom: auto;
    width: min(22%, 108px);
    height: auto;
    aspect-ratio: var(--tile3-screenshot-aspect);
    transform: translateY(var(--tile3-mobile-screenshot-lift, 0px));
    background-position: right top;
    background-size: 100% auto;
  }

  /*
   * Stacked tiles by inline size: narrow (<539) default, mid (539–630), wide (631+).
   */
  @container block2-tile (min-width: 539px) and (max-width: 630px) {
    #future_block_2_after_steps .landing-block2__tile--2::after {
      background-size: auto 104%;
      background-position: right calc(-24px - var(--tile-icon-size) / 2 + 94px) center;
      transform: scale(1.14);
      transform-origin: right center;
    }

    #future_block_2_after_steps .landing-block2__tile--3 {
      --tile3-mobile-screenshot-lift: -16px;
    }

    #future_block_2_after_steps .landing-block2__tile--3::after {
      width: min(32%, 178px);
    }
  }

  @container block2-tile (min-width: 631px) {
    #future_block_2_after_steps .landing-block2__tile--2::after {
      background-size: auto 108%;
      background-position: right calc(-24px - var(--tile-icon-size) / 2 + 132px) center;
      transform: scale(1.26);
      transform-origin: right center;
    }

    #future_block_2_after_steps .landing-block2__tile--3 {
      --tile3-mobile-screenshot-lift: -14px;
    }

    #future_block_2_after_steps .landing-block2__tile--3::after {
      width: min(44%, 248px);
    }
  }
}

@media (max-width: 480px) {
  #future_block_2_after_steps .after-steps-glass-deco-star--07,
  #future_block_2_after_steps .after-steps-glass-deco-star--08 {
    display: none;
  }
}

/* No container queries: approximate tile width with viewport (stacked layout only) */
@supports not (container-type: inline-size) {
  @media (max-width: 980px) and (max-width: 484px) {
    #future_block_2_after_steps .landing-block2__tile--2::after {
      background-size: auto 86%;
      background-position: right calc(-24px - var(--tile-icon-size) / 2 + 48px) center;
      transform: none;
    }
  }

  @media (max-width: 980px) and (max-width: 464px) {
    #future_block_2_after_steps .landing-block2__tile--2::after {
      background-size: auto 72%;
      background-position: right calc(-24px - var(--tile-icon-size) / 2 + 36px) center;
      transform: none;
    }
  }

  @media (max-width: 980px) and (min-width: 560px) and (max-width: 659px) {
    #future_block_2_after_steps .landing-block2__tile--2::after {
      background-size: auto 104%;
      background-position: right calc(-24px - var(--tile-icon-size) / 2 + 94px) center;
      transform: scale(1.14);
      transform-origin: right center;
    }

    #future_block_2_after_steps .landing-block2__tile--3 {
      --tile3-mobile-screenshot-lift: -16px;
    }

    #future_block_2_after_steps .landing-block2__tile--3::after {
      width: min(32%, 178px);
    }
  }

  @media (max-width: 980px) and (min-width: 660px) {
    #future_block_2_after_steps .landing-block2__tile--2::after {
      background-size: auto 108%;
      background-position: right calc(-24px - var(--tile-icon-size) / 2 + 132px) center;
      transform: scale(1.26);
      transform-origin: right center;
    }

    #future_block_2_after_steps .landing-block2__tile--3 {
      --tile3-mobile-screenshot-lift: -14px;
    }

    #future_block_2_after_steps .landing-block2__tile--3::after {
      width: min(44%, 248px);
    }
  }
}

/* Mid-narrow layout only: keep "5" icon from overlapping text in tile 1 */
@media (max-width: 980px) and (min-width: 620px) {
  #future_block_2_after_steps .landing-block2__tile--1 {
    --tile-icon-size: 98px;
    --tile-icon-position: right 6px center;
  }
}

@media (max-width: 619px) and (min-width: 420px) {
  #future_block_2_after_steps .landing-block2__tile--1 {
    --tile-icon-size: 84px;
    --tile-icon-position: right 4px center;
  }
}

@media (max-width: 419px) {
  #future_block_2_after_steps .landing-block2__tile--1 {
    --tile-icon-size: 62px;
    --tile-icon-position: right 2px center;
  }
}

/* ===================================================================
  BLOCK: Plan Calculator
  =================================================================== */

.landing-block--plan-calculator {
  padding: 0 var(--landing-side-pad, 12px);
}

/* Hero above the card — same idea as #future_block_2 .future-block2__phone-photo (separate, no shared card). */
.landing-block--plan-calculator .plan-calculator__hero,
.landing-block--plan-presentation .plan-calculator__hero {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background: none;
  border: none;
}

.landing-block--plan-calculator .plan-calculator__hero-img,
.landing-block--plan-presentation .plan-calculator__hero-img {
  display: block;
  width: min(420px, 100%);
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: none;
}

.landing-block--plan-calculator .plan-calculator__hero + .plan-calculator,
.landing-block--plan-presentation .plan-calculator__hero + .plan-presentation {
  margin-top: 0;
}

.plan-calculator {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(16px, 2.2vw, 28px);
  background:
    radial-gradient(circle at top left, rgba(124, 108, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(57, 202, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 255, 0.96));
  box-shadow:
    0 24px 64px rgba(43, 25, 108, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.plan-calculator__sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.plan-calculator__layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.plan-calculator__visual-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 16px;
}

.plan-calculator__stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 240, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.plan-calculator__stage-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, rgba(124, 108, 255, 0.12), rgba(124, 108, 255, 0.02)),
    linear-gradient(135deg, rgba(245, 245, 255, 0.95), rgba(255, 255, 255, 0.95));
  overflow: hidden;
}

.plan-calculator__stage-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: plan-calculator-fade-in 0.36s ease;
}

.plan-calculator__stage-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: rgba(88, 66, 234, 0.92);
}

.plan-calculator__stage-content {
  padding: 16px;
}

.plan-calculator__stage-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.12);
  color: rgba(78, 59, 212, 1);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.plan-calculator__stage-title {
  margin: 12px 0 0;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: rgba(19, 19, 26, 0.96);
}

.plan-calculator__stage-text {
  margin: 8px 0 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(19, 19, 19, 0.75);
}

.plan-calculator__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.plan-calculator__summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 650;
  color: rgba(28, 30, 41, 0.86);
}

.plan-calculator__content {
  min-width: 0;
}

.plan-calculator__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-calculator__fields-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.plan-calculator__field {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(16, 24, 40, 0.10);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  padding: 14px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
  backdrop-filter: blur(8px);
}

.plan-calculator__field[data-field-key="classGrade"] {
  align-self: start;
}

.plan-calculator__field:hover {
  border-color: rgba(124, 108, 255, 0.20);
  transform: translateY(-1px);
}

.plan-calculator__field.is-active {
  border-color: rgba(124, 108, 255, 0.42);
  box-shadow:
    0 14px 28px rgba(124, 108, 255, 0.10),
    inset 0 0 0 1px rgba(124, 108, 255, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

.plan-calculator__field.is-disabled {
  opacity: 0.92;
}

.plan-calculator__field.is-energized::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  pointer-events: none;
  background: radial-gradient(circle at var(--spark-x, 75%) 18%, rgba(124, 108, 255, 0.22), transparent 40%);
  animation: plan-calculator-field-flash 0.42s ease;
}

.plan-calculator__label {
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  line-height: 1.35;
  font-weight: 750;
  color: rgba(15, 18, 26, 0.96);
}

/* Titles in fieldset/radio blocks use a div (not <legend>) so the text stays inside the card. */
fieldset.plan-calculator__field > .plan-calculator__label {
  width: 100%;
  max-width: 100%;
  align-items: flex-start;
}

/* Wrapper lets flex + grid shrink and wrap. */
.plan-calculator__label-text {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.plan-calculator__step-badge {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 1), rgba(88, 66, 234, 1));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(88, 66, 234, 0.22);
}

.plan-calculator__segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.plan-calculator__field[data-field-key="subject"] > .plan-calculator__segment {
  margin-top: auto;
  margin-bottom: auto;
}

.plan-calculator__segment--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-calculator__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-calculator__segment-option {
  min-height: 44px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
  color: rgba(18, 21, 31, 0.76);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  padding: 8px 10px;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.plan-calculator__segment-option:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 108, 255, 0.26);
}

.plan-calculator__radio:checked + .plan-calculator__segment-option {
  border-color: rgba(124, 108, 255, 0.72);
  color: rgba(50, 41, 122, 1);
  background: linear-gradient(180deg, rgba(124, 108, 255, 0.14), rgba(124, 108, 255, 0.08));
  box-shadow: 0 10px 22px rgba(124, 108, 255, 0.12);
}

.plan-calculator__range-head {
  display: flex;
  justify-content: flex-end;
}

.plan-calculator__field[data-field-key="targetScore"] > .plan-calculator__range-head {
  margin-top: auto;
}

.plan-calculator__value {
  font-weight: 800;
  font-size: 1.08rem;
  color: rgba(19, 19, 19, 0.94);
}

.plan-calculator__range-shell {
  position: relative;
  --range-progress: 50%;
}

.plan-calculator__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  margin: 0;
  outline: none;
  background:
    linear-gradient(
      90deg,
      rgba(124, 108, 255, 0.98) 0%,
      rgba(124, 108, 255, 0.98) var(--range-progress),
      rgba(124, 108, 255, 0.14) var(--range-progress),
      rgba(124, 108, 255, 0.14) 100%
    );
  box-shadow: inset 0 1px 3px rgba(16, 24, 40, 0.08);
}

.plan-calculator__range::-webkit-slider-runnable-track {
  height: 12px;
  border-radius: 999px;
  background: transparent;
}

.plan-calculator__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(124, 108, 255, 0.98);
  box-shadow: 0 8px 22px rgba(80, 62, 200, 0.28);
  cursor: pointer;
  margin-top: -5px;
}

.plan-calculator__range::-moz-range-track {
  height: 12px;
  border-radius: 999px;
  background: transparent;
  border: none;
}

.plan-calculator__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(124, 108, 255, 0.98);
  box-shadow: 0 8px 22px rgba(80, 62, 200, 0.28);
  cursor: pointer;
}

.plan-calculator__range:disabled {
  opacity: 0.5;
}

.plan-calculator__range-glow {
  position: absolute;
  top: 50%;
  left: var(--range-progress);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.28), transparent 68%);
  opacity: 0;
}

.plan-calculator__field.is-energized .plan-calculator__range-glow {
  opacity: 1;
  animation: plan-calculator-spark 0.42s ease;
}

.plan-calculator__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.79rem;
  color: rgba(19, 19, 19, 0.52);
}

.plan-calculator__checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.91rem;
  line-height: 1.35;
  color: rgba(19, 19, 19, 0.82);
}

.plan-calculator__checkbox {
  inline-size: 16px;
  block-size: 16px;
  accent-color: rgba(124, 108, 255, 0.95);
}

.plan-calculator__select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.95);
  color: rgba(19, 19, 19, 0.92);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-calculator__select:focus {
  border-color: rgba(124, 108, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.10);
}

.plan-calculator__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.plan-calculator__submit {
  border: none;
  border-radius: 14px;
  min-height: 52px;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 108, 255, 1), rgba(88, 66, 234, 1));
  box-shadow: 0 16px 34px rgba(88, 66, 234, 0.22);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.plan-calculator__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(88, 66, 234, 0.25);
  filter: brightness(1.02);
}

.plan-calculator__ghost {
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 14px;
  min-height: 52px;
  padding: 0 18px;
  font-size: 0.96rem;
  font-weight: 700;
  color: rgba(23, 24, 31, 0.84);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.plan-calculator__ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 108, 255, 0.24);
}

.plan-calculator__overlay {
  position: fixed;
  inset: 0;
  z-index: 480;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 18, 28, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.plan-calculator__overlay[hidden] {
  display: none !important;
}

.plan-calculator__overlay-card {
  width: min(100%, 520px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 28px 68px rgba(22, 18, 58, 0.22);
  padding: clamp(20px, 3vw, 28px);
  text-align: left;
  animation: plan-calculator-fade-in 0.28s ease;
}

.plan-calculator__overlay-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.12);
  color: rgba(76, 58, 205, 1);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.plan-calculator__overlay-badge--success {
  background: rgba(46, 193, 108, 0.12);
  color: rgba(28, 140, 74, 1);
}

.plan-calculator__loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 1.06rem;
  font-weight: 750;
  color: rgba(19, 19, 19, 0.9);
}

.plan-calculator__overlay-text {
  margin: 14px 0 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(19, 19, 19, 0.72);
}

.plan-calculator__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(124, 108, 255, 0.22);
  border-top-color: rgba(124, 108, 255, 0.95);
  animation: plan-calculator-spin 0.9s linear infinite;
}

.plan-calculator__result-title {
  margin: 14px 0 0;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
  font-weight: 850;
  line-height: 1.15;
  color: rgba(19, 19, 19, 0.96);
}

.plan-calculator__result-text {
  margin: 12px 0 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: rgba(19, 19, 19, 0.78);
}

.plan-calculator__overlay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.plan-calculator-overlay-open {
  overflow: hidden;
}

.plan-calculator__mobile-preview {
  display: none;
}

@keyframes plan-calculator-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes plan-calculator-mobile-preview-pop {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-2px) scale(1.012);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes plan-calculator-mobile-preview-glow {
  0% {
    box-shadow: 0 0 0 rgba(124, 108, 255, 0);
  }
  40% {
    box-shadow: 0 0 0 7px rgba(124, 108, 255, 0.12);
  }
  100% {
    box-shadow: 0 0 0 rgba(124, 108, 255, 0);
  }
}

@keyframes plan-calculator-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes plan-calculator-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.35);
  }
}

@keyframes plan-calculator-field-flash {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 1120px) {
  .plan-calculator__layout {
    grid-template-columns: 1fr;
  }

  .plan-calculator__visual-panel {
    position: static;
  }

  /* Mobile/tablet flow:
     assistant -> form fields -> dynamic stage -> submit button */
  .plan-calculator__visual-panel {
    display: contents;
  }

  .plan-calculator__content {
    display: contents;
  }

  .plan-calculator__form {
    display: contents;
  }

  .plan-calculator__form > .plan-calculator__fields-wrap {
    order: 2;
  }

  .plan-calculator__stage {
    order: 4;
    margin-top: 4px;
  }

  .plan-calculator__form > .plan-calculator__actions {
    order: 5;
    margin-top: 2px;
  }
}

@media (max-width: 920px) {
  .plan-calculator__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .plan-calculator {
    overflow: visible;
    border-radius: 20px;
    padding: 14px;
  }

  .landing-block--plan-calculator .plan-calculator__hero-img {
    width: min(100%, 380px);
  }

  .plan-calculator__layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .plan-calculator__content {
    order: 2;
    display: block;
    position: relative;
    width: 100%;
  }

  .plan-calculator__stage {
    order: 3;
  }

  .plan-calculator__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

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

  .plan-calculator__grid .plan-calculator__field {
    padding: 12px 10px 10px;
    border-radius: 14px;
    gap: 8px;
  }

  .plan-calculator__grid .plan-calculator__label {
    gap: 8px;
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .plan-calculator__fields-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .plan-calculator__mobile-preview-slot {
    min-height: 99px;
    margin: 0 0 12px;
  }

  .plan-calculator__mobile-preview {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 78px;
    margin: 0;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(124, 108, 255, 0.22);
    background:
      radial-gradient(circle at top left, rgba(124, 108, 255, 0.16), transparent 42%),
      rgba(255, 255, 255, 0.94);
    box-shadow:
      0 14px 34px rgba(33, 21, 79, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
  }

  .plan-calculator__mobile-preview-media {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 108, 255, 0.14), rgba(255, 255, 255, 0.92));
    color: rgba(88, 66, 234, 1);
    font-size: 1.55rem;
  }

  .plan-calculator__mobile-preview-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .plan-calculator__mobile-preview-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .plan-calculator__mobile-preview-kicker {
    font-size: 0.72rem;
    line-height: 1.2;
    font-weight: 800;
    color: rgba(88, 66, 234, 0.96);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .plan-calculator__mobile-preview-title {
    font-size: 0.86rem;
    line-height: 1.12;
    font-weight: 850;
    color: rgba(18, 21, 31, 0.96);
    white-space: normal;
    overflow: visible;
  }

  .plan-calculator__mobile-preview-text {
    font-size: 0.74rem;
    line-height: 1.18;
    color: rgba(19, 19, 19, 0.66);
    overflow: visible;
    white-space: pre-line;
  }

  .plan-calculator__mobile-preview.is-updating {
    animation: plan-calculator-mobile-preview-pop 0.36s ease;
  }

  .plan-calculator__mobile-preview.is-updating .plan-calculator__mobile-preview-media {
    animation: plan-calculator-mobile-preview-glow 0.36s ease;
  }

  .plan-calculator__mobile-preview.is-viewport-fixed {
    position: fixed;
    top: calc(56px + 5px + env(safe-area-inset-top, 0px));
    z-index: 110;
    margin: 0;
    box-sizing: border-box;
  }

  .plan-calculator__segment--triple {
    grid-template-columns: 1fr;
  }

  .plan-calculator__submit,
  .plan-calculator__ghost {
    width: 100%;
  }

  .plan-calculator__overlay-actions {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .plan-calculator__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .plan-calculator__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .plan-calculator__segment {
    grid-template-columns: 1fr;
  }

  .plan-calculator__grid .plan-calculator__field {
    padding: 13px 12px 12px;
    border-radius: 16px;
  }

  .plan-calculator__stage-content {
    padding: 14px;
  }

  .plan-calculator__summary {
    gap: 6px;
  }

  .plan-calculator__summary-chip {
    font-size: 0.8rem;
    min-height: 32px;
    padding: 0 10px;
  }
}

/* ===================================================================
   BLOCK: Speech bubbles (founder personal note)
   Комикс-пузыри по центру: вопрос → основной → рукописная приписка → сноска
   =================================================================== */

.landing-block--bubbles {
  min-height: 0;
  padding: 0 var(--landing-side-pad, 12px);
}

#founder_personal_note {
  margin-top: 70px;
  margin-bottom: 70px;
}

#founder_personal_note .bubbles {
  container-type: inline-size;
  container-name: founder-bubbles;
}

.bubbles {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3.5vw, 30px);
}

/* ── Базовый пузырь ── */
.bubble {
  --rot: 0deg;
  --bx: 0px;
  position: relative;
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: clamp(16px, 3.2vw, 30px) clamp(20px, 4vw, 40px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  color: rgba(19, 19, 19, 0.98);
  text-wrap: balance;
  transform: translateX(var(--bx)) rotate(var(--rot));
}

/* Хвостик пузыря (та же геометрия, что у .landing-hint-cloud::after, но вниз от пузыря) */
.bubble::after {
  content: "";
  position: absolute;
  top: calc(100% - 1px);
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 18px solid #fff;
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.06));
}

/* ── Вопрос-крючок ── */
.bubble--q {
  --rot: -2deg;
  border-radius: 34px 34px 34px 10px;
  font-weight: 800;
  font-size: clamp(40px, 9vw, 82px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.bubble--q::after {
  left: 38px;
  transform: rotate(-6deg);
}

/* ── Основной текст ── */
.bubble--main {
  --rot: 1.5deg;
  width: 100%;
  box-sizing: border-box;
  border-radius: 30px 30px 10px 30px;
  font-weight: 700;
  font-size: clamp(22px, 4.6vw, 40px);
  line-height: 1.52;
  letter-spacing: -0.015em;
  text-wrap: wrap;
}

.bubble--main__body {
  display: block;
  width: 100%;
  container-type: inline-size;
  container-name: bubble-main;
}

.bubble--main__variant--narrow {
  display: none;
}

.bubble--main__variant--wide {
  display: block;
}

/* 389px пузырь = 3 строки; 335px = 4 строки → порог между ними */
@container bubble-main (max-width: 388px) {
  .bubble--main__variant--wide {
    display: none;
  }

  .bubble--main__variant--narrow {
    display: block;
  }
}

.bubble--main::after {
  right: 46px;
  transform: rotate(6deg);
}

/* Жёлтая подсветка ключевых слов внутри пузырей */
.landing-block--bubbles .landing-block2__mark {
  background: none;
  padding: 0;
  vertical-align: baseline;
}

.landing-block--bubbles .landing-block2__mark-text {
  display: inline-block;
  max-width: 100%;
  background: var(--c-yellow, #ffdd2d);
  color: var(--c-text, #121212);
  padding: 0.04em 0.14em;
  border-radius: 0.12em;
  white-space: nowrap;
}

.landing-block--bubbles .bubbles__underline-purple {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(124, 108, 255, 0.95);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: none;
}

.landing-block--bubbles .landing-block5__underline-orange {
  text-decoration: underline;
  text-decoration-color: #f97316;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

/* ── Рукописная приписка «как репетитор» (заметка на полях, без пузыря) ── */
.bubbles__note {
  --rot: -3deg;
  --bx: 18%;
  --bubbles-note-pink: #f472b6;
  align-self: center;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  margin: clamp(-6px, -1vw, 0px) 0 0;
  transform: translateX(var(--bx)) rotate(var(--rot));
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1;
  color: var(--bubbles-note-pink);
}

.bubbles__note-arrow {
  flex: none;
  margin-top: 0.1em;
  color: var(--bubbles-note-pink);
  transform: translateY(6px) rotate(8deg) scaleY(-1);
}

.bubbles__note-arrow svg {
  display: block;
  width: clamp(42px, 7.5vw, 58px);
  height: auto;
}

/* ── CTA под пузырями ── */
#founder_personal_note .bubbles__cta-wrap {
  --rot: -2deg;
  --bx: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: 100%;
  max-width: min(100%, 430px);
  margin: clamp(-8px, -0.6vw, 0px) 0 0;
  gap: clamp(8px, 1.8vw, 12px);
}

#founder_personal_note .bubbles__cta {
  --rot: -2deg;
  --bx: 0px;
  --step-accent: #7b61ff;
  align-self: stretch;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  font-size: clamp(16px, calc(6px + 2.5cqw), 24px);
  min-height: clamp(56px, calc(36px + 4.5cqw), 80px);
  padding: clamp(14px, 2.2cqw, 18px) clamp(20px, 3.6cqw, 28px);
  border-radius: clamp(14px, 2.4cqw, 18px);
  line-height: 1.15;
  white-space: nowrap;
  filter: brightness(1.06);
  box-shadow: 0 10px 28px rgba(123, 97, 255, 0.25);
}

#founder_personal_note .bubbles__cta:hover {
  filter: brightness(1.14);
  box-shadow: 0 14px 38px rgba(123, 97, 255, 0.4);
  transform: translateY(-2px) translateX(var(--bx)) rotate(var(--rot)) scale(1.02);
}

#founder_personal_note .bubbles__cta:focus-visible {
  outline-color: rgba(123, 97, 255, 0.55);
}

#founder_personal_note .bubbles__cta:active {
  filter: brightness(1.02);
  box-shadow: 0 8px 22px rgba(123, 97, 255, 0.22);
  transform: translateY(0) translateX(var(--bx)) rotate(var(--rot)) scale(1.01);
}

#founder_personal_note .bubbles__cta-subline {
  margin: 0;
  max-width: min(100%, 360px);
  font-size: clamp(12px, 2.6vw, 14px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(19, 19, 19, 0.55);
  text-align: center;
  text-wrap: balance;
}

/* ── Появление по скроллу (реюз data-step-animate → .is-visible) ── */
.bubbles__note,
.bubbles__cta-wrap {
  transform: translateX(var(--bx)) rotate(var(--rot));
}

.bubbles .bubble,
.bubbles .bubbles__note,
.bubbles .bubbles__cta-wrap {
  opacity: 0;
  transform: translateY(24px) translateX(var(--bx)) rotate(var(--rot));
  transition:
    opacity 0.5s ease,
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bubbles.is-visible .bubble,
.bubbles.is-visible .bubbles__note,
.bubbles.is-visible .bubbles__cta-wrap {
  opacity: 1;
  transform: translateY(0) translateX(var(--bx)) rotate(var(--rot));
}

.bubbles.is-visible .bubble--q {
  transition-delay: 0.05s;
}

.bubbles.is-visible .bubble--main {
  transition-delay: 0.2s;
}

.bubbles.is-visible .bubbles__note {
  transition-delay: 0.38s;
}

.bubbles.is-visible .bubbles__cta-wrap {
  transition-delay: 0.52s;
}

/* Узкие экраны: гасим наклоны, чтобы текст не «уезжал» и не вылезал */
@media (max-width: 520px) {
  .bubble--q {
    --rot: -1deg;
  }

  .bubble--main {
    --rot: 0.8deg;
    width: 100%;
  }

  .bubbles__note {
    --rot: -3deg;
    --bx: 10%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles .bubble,
  .bubbles .bubbles__note,
  .bubbles .bubbles__cta {
    opacity: 1;
    transform: translateX(var(--bx)) rotate(var(--rot));
    transition: none;
  }
}

/* ===================================================================
   Landing page footer (service info)
   =================================================================== */

.landing-footer {
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  background: #2b2b2b;
  padding: 20px var(--landing-side-pad, 12px) 24px;
}

.landing-footer__inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.landing-footer__account-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.landing-footer__account-link:hover {
  color: rgba(255, 255, 255, 0.78);
}

/* ===== Messengers contact block ===== */
.landing-block--messengers {
  text-align: center;
  overflow: visible;
}

/* Tight gap so the messengers block sits right under the future_block_2 tiles
   (grid still uses --landing-block-gap: 80px; counteract most of it). */
#future_block_2 + #messengers_contact {
  margin-top: -60px;
}

.landing-messengers__inner {
  position: relative;
  margin: 0 auto;
  max-width: 480px;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  padding: 26px 24px 20px;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(124, 108, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(44, 30, 111, 0.05);
}

.landing-messengers__title {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 700;
  line-height: 1.2;
}

/* Розовое подчёркивание как у .landing-block2__underline-green в #future_block_2. */
#messengers_contact .landing-messengers__title .landing-block2__underline-pink {
  text-decoration: underline;
  text-decoration-color: #f472b6;
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.14em;
  text-decoration-skip-ink: auto;
}

/* Синяя подсветка как у .landing-block2__mark--blue на других блоках. */
#messengers_contact .landing-messengers__title .landing-block2__mark--blue {
  background: #94d9fc;
  color: #121212;
  padding: 0.05em 0.14em;
  border-radius: 0;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.landing-messengers__list {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.landing-messengers__btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  color: #1f2937;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}

.landing-messengers__btn svg {
  width: 30px;
  height: 30px;
}

.landing-messengers__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.landing-messengers__btn--tg:hover {
  background: #2aabee;
}

.landing-messengers__btn--vk:hover {
  background: #0077ff;
}

.landing-messengers__btn--wa:hover {
  background: #25d366;
}

.landing-messengers__owl {
  margin: 4px auto 0;
  width: min(148px, 40vw);
  pointer-events: none;
  user-select: none;
  animation: landing-messengers-owl-float 3.4s ease-in-out infinite;
}

.landing-messengers__owl-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(44, 30, 111, 0.14));
}

@keyframes landing-messengers-owl-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-messengers__owl {
    animation: none;
  }
}

@media (max-width: 768px) {
  .landing-messengers__inner {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px 16px;
    border-radius: 18px;
  }

  .landing-messengers__btn {
    width: 56px;
    height: 56px;
  }
}

/* ======================================================================
 * plan-presentation — native "presentation" plan builder (below plan_calculator)
 * ==================================================================== */
.landing-block--plan-presentation {
  position: relative;
  margin: 50px 0 20px;
  padding: 0 var(--landing-side-pad, 12px);
  overflow: visible;
}

#plan_presentation .plan-presentation__scheme-bg {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: clamp(120px, 22vw, 200px);
  width: min(55.2%, 408px);
  height: auto;
  transform: translate(-50%, calc(-45% + 50px));
  opacity: 0.38;
  pointer-events: none;
  user-select: none;
}

#plan_presentation .plan-presentation__stars-bg {
  position: absolute;
  z-index: 0;
  display: none;
  top: clamp(120px, 22vw, 200px);
  width: min(55.2%, 408px);
  height: auto;
  transform: translate(-50%, calc(-45% - 100px));
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 769px) {
  /* Центр левой половины .plan-presentation (ширина карточки = content area секции). */
  #plan_presentation .plan-presentation__scheme-bg {
    left: calc(var(--landing-side-pad, 12px) + (100% - 2 * var(--landing-side-pad, 12px)) * 0.25);
  }

  /* Центр правой половины .plan-presentation — звёздочки. */
  #plan_presentation .plan-presentation__stars-bg {
    display: block;
    left: calc(var(--landing-side-pad, 12px) + (100% - 2 * var(--landing-side-pad, 12px)) * 0.75);
  }
}

@media (max-width: 768px) {
  #plan_presentation .plan-presentation__scheme-bg {
    display: none;
  }

  #plan_presentation .plan-presentation__stars-bg {
    display: block;
    left: calc(50% - 30px);
    width: min(38.64%, 285.6px);
    transform: translate(-50%, calc(-45% - 160px));
  }
}

.landing-block--plan-presentation .plan-calculator__hero {
  position: relative;
  z-index: 2;
}

.landing-block--plan-presentation .plan-presentation {
  z-index: 1;
}

.plan-presentation {
  --pp-accent-rgb: 249, 115, 22;
  --pp-accent-strong-rgb: 234, 88, 12;
  --pp-accent: #f97316;
  --pp-accent-strong: #ea580c;
  --pp-purple-rgb: 124, 108, 255;
  --pp-purple: #7c6cff;
  --pp-purple-strong: #6c5ce7;
  --pp-checkline-slot: 42px;
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  overflow: hidden;
}

.landing-block--plan-presentation .plan-presentation.card.card--soft {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: none;
}

.plan-presentation__surface {
  --pp-surface-pad: 10px;
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background: #fff;
  border-radius: clamp(24px, 4vw, 32px);
  box-shadow:
    0 24px 64px rgba(43, 25, 108, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.plan-presentation__fixed-chrome,
.plan-presentation__slides-layer,
.plan-presentation__progress-anchor {
  position: relative;
  z-index: 1;
}

.plan-presentation__head {
  text-align: center;
}

.plan-presentation__progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.plan-presentation__slides-layer {
  display: grid;
}

.plan-presentation__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.12);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.plan-presentation__dot.is-done {
  background: rgba(var(--pp-purple-rgb), 0.45);
}

.plan-presentation__dot.is-active {
  width: 26px;
  background: rgba(var(--pp-purple-rgb), 0.98);
}

.plan-presentation__stage {
  position: relative;
  display: grid;
  margin-top: clamp(18px, 3vw, 28px);
}

/* All slides stack in one grid cell so the stage sizes to the tallest slide
 * and never changes height between questions. Visibility (not display:none)
 * keeps inactive slides contributing to that fixed size. */
.plan-presentation__slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.plan-presentation__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.plan-presentation__slide[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .plan-presentation__slide {
    transition: none;
  }
}

.plan-presentation__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(var(--pp-accent-rgb), 0.08);
  box-shadow: 0 22px 54px rgba(22, 18, 58, 0.16);
}

.plan-presentation__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plan-presentation__media-img[hidden] {
  display: none;
}

.plan-presentation__media-img.is-confirm:not([hidden]) {
  animation: plan-presentation-confirm-pop 0.5s ease;
}

.plan-presentation__media--shared {
  display: none;
}

.plan-presentation__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 769px) {
  .plan-presentation {
    --pp-desktop-panel-min-h: 310px;
    --pp-desktop-progress-gap: 10px;
    --pp-desktop-progress-slot: 25px;
    --pp-desktop-meta-h: 30px;
    --pp-desktop-right-stack-h: calc(
      var(--pp-desktop-panel-min-h) + var(--pp-desktop-progress-gap) + var(--pp-desktop-progress-slot)
    );
  }

  .plan-presentation.card.card--soft {
    display: flex;
    flex-direction: column;
  }

  .plan-presentation__form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .plan-presentation__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(18px, 3vw, 36px);
    margin-top: var(--pp-desktop-balance-top, 0px);
    margin-left: var(--pp-desktop-balance-left, 0px);
    align-items: start;
  }

  .plan-presentation__slides-layer {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: start;
  }

  .plan-presentation__slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .plan-presentation__slide .plan-presentation__media {
    aspect-ratio: auto;
    width: var(--pp-media-sync-w);
    height: var(--pp-media-sync-h);
    align-self: start;
    justify-self: end;
    margin-top: 0;
    box-sizing: border-box;
    border-radius: clamp(24px, 4vw, 32px);
  }

  .plan-presentation__slide .plan-presentation__panel {
    align-self: center;
    transform: translateY(calc(var(--pp-desktop-progress-slot) / -2));
  }

  .plan-presentation__fixed-chrome {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transform: translateY(calc(var(--pp-desktop-right-stack-h) / -2 + var(--pp-desktop-meta-h) / 2));
  }

  .plan-presentation__fixed-chrome[hidden] {
    display: none !important;
  }

  .plan-presentation__fixed-chrome .plan-presentation__step-meta {
    justify-content: center;
    transform: translateX(-10px);
  }

  .plan-presentation__progress-anchor {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    z-index: 2;
    width: 100%;
    height: var(--pp-desktop-progress-slot);
    margin-top: 0;
    padding-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(calc(var(--pp-desktop-right-stack-h) / 2 - var(--pp-desktop-progress-slot) / 2));
  }

  .plan-presentation__slide:not(.plan-presentation__final) .plan-presentation__panel {
    min-height: var(--pp-desktop-panel-min-h);
    padding-top: calc(var(--pp-desktop-meta-h) + 16px);
    box-sizing: border-box;
  }

  .plan-presentation__final .plan-presentation__panel {
    min-height: var(--pp-desktop-panel-min-h);
    box-sizing: border-box;
  }

  .plan-presentation__panel > .plan-presentation__question,
  .plan-presentation__slide[data-kind="branch"] .plan-presentation__branch-panel:not([hidden]) .plan-presentation__question {
    text-align: center;
  }

  .plan-presentation__slide[data-field-key="subject"] .plan-presentation__options {
    margin-top: 20px;
  }

  .plan-presentation__slide[data-field-key="classGrade"] .plan-presentation__options--quad,
  .plan-presentation__slide[data-field-key="universityLevel"] .plan-presentation__options--quad {
    margin-top: -10px;
  }

  .plan-presentation__panel > .plan-presentation__options,
  .plan-presentation__panel > .plan-presentation__slider,
  .plan-presentation__slide[data-kind="branch"] .plan-presentation__branch-panel:not([hidden]) .plan-presentation__options,
  .plan-presentation__slide[data-kind="branch"] .plan-presentation__branch-panel:not([hidden]) .plan-presentation__slider {
    box-sizing: border-box;
    width: calc(100% - 30px);
    max-width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
  }

  .plan-presentation__slide[data-kind="branch"] .plan-presentation__branch-panel:not([hidden]) {
    display: contents;
  }

  .plan-presentation__surface {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    width: 100%;
    height: calc(var(--pp-desktop-right-stack-h) + 2 * var(--pp-surface-pad));
    transform: none;
  }

}

.plan-presentation__fixed-chrome[hidden] {
  display: none;
}

.plan-presentation__fixed-chrome .plan-presentation__step-meta {
  justify-content: center;
}

.plan-presentation__step-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(19, 19, 19, 0.55);
  font-weight: 750;
  font-size: 0.9rem;
}

.plan-presentation__step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(var(--pp-purple-rgb), 0.95);
  color: #fff;
  font-weight: 850;
}

.plan-presentation__question {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 820;
  line-height: 1.18;
  color: rgba(19, 19, 19, 0.96);
  text-align: center;
}

.plan-presentation__question .plan-presentation__mark-purple {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(var(--pp-purple-rgb), 0.95);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none;
}

.plan-presentation__question-variant--split {
  display: none;
}

.plan-presentation__question-variant--single {
  display: block;
  white-space: nowrap;
}

.plan-presentation:not(.plan-presentation--questions-split) .plan-presentation__question {
  min-height: 0;
}

.plan-presentation--questions-split .plan-presentation__question-variant--single {
  display: none;
}

.plan-presentation--questions-split .plan-presentation__question-variant--split {
  display: block;
}

.is-confirming .plan-presentation__question {
  animation: plan-presentation-question-confirm 0.5s ease;
}

.plan-presentation__final-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(19, 19, 19, 0.72);
}

/* Choice options */
.plan-presentation__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-presentation__option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-presentation__option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  background: var(--pp-accent);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  box-shadow:
    0 2px 8px rgba(var(--pp-accent-strong-rgb), 0.42),
    0 6px 20px rgba(17, 17, 17, 0.14);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.plan-presentation__option:hover {
  background: var(--pp-accent-strong);
  box-shadow:
    0 3px 12px rgba(var(--pp-accent-strong-rgb), 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
  transform: translateY(-1px);
}

.plan-presentation__option-input:checked + .plan-presentation__option {
  background: var(--pp-accent-strong);
  color: #fff;
  box-shadow:
    0 3px 12px rgba(var(--pp-accent-strong-rgb), 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
}

.plan-presentation__options:has(.plan-presentation__option-input:checked)
  .plan-presentation__option-input:not(:checked)
  + .plan-presentation__option {
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(var(--pp-accent-rgb), 0.45);
  color: var(--pp-accent-strong);
  box-shadow: none;
  transform: none;
}

.plan-presentation__options:has(.plan-presentation__option-input:checked)
  .plan-presentation__option-input:not(:checked)
  + .plan-presentation__option:hover {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(var(--pp-accent-rgb), 0.62);
  transform: translateY(-1px);
}

.plan-presentation__option-input:focus-visible + .plan-presentation__option {
  outline: 3px solid rgba(var(--pp-accent-rgb), 0.45);
  outline-offset: 2px;
}

/* Class question: 2×2 — col1: 8/9, col2: 10/11 */
.plan-presentation__options--quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
}

.plan-presentation__options--goal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 96px;
}

.plan-presentation__options--goal .plan-presentation__option:last-of-type {
  grid-column: 1 / -1;
}

/* Slider control */
.plan-presentation__slider {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reserve vertical slot on range-head so all slider steps align */
.plan-presentation__range-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: var(--pp-checkline-slot, 42px);
}

.plan-presentation__range-head:not(:has(.plan-presentation__checkline)) {
  justify-content: center;
}

.plan-presentation__range-head:has(.plan-presentation__checkline) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.plan-presentation__range-head .plan-presentation__value {
  flex: 0 0 auto;
}

.plan-presentation__range-head:has(.plan-presentation__checkline) .plan-presentation__value {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  width: max-content;
  transform: translateX(calc(-100% - 10px));
}

.plan-presentation__range-head:has(.plan-presentation__checkline) .plan-presentation__value[data-value-for="trialScore"] {
  box-sizing: content-box;
  flex: 0 0 3ch;
  width: 3ch;
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.plan-presentation__range-head .plan-presentation__checkline {
  flex: 0 1 auto;
}

.plan-presentation__range-head:has(.plan-presentation__checkline) .plan-presentation__checkline {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  margin-left: 0;
}

/* Trial Q3 fallback: value stays full size, checkline scales to fit */
.plan-presentation__range-head--fit:has(.plan-presentation__checkline) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.plan-presentation__range-head--fit:has(.plan-presentation__checkline) .plan-presentation__value {
  grid-column: auto;
  grid-row: auto;
  transform: none;
  justify-self: auto;
  flex: 0 0 3ch;
  width: 3ch;
  min-width: 3ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.plan-presentation__range-head--fit:has(.plan-presentation__checkline) .plan-presentation__checkline {
  grid-column: auto;
  grid-row: auto;
  justify-self: auto;
  flex: 0 0 auto;
  min-width: auto;
  white-space: nowrap;
  font-size: calc(0.92rem * var(--pp-checkline-scale, 1));
  padding: calc(10px * var(--pp-checkline-scale, 1)) calc(14px * var(--pp-checkline-scale, 1));
  gap: calc(10px * var(--pp-checkline-scale, 1));
  border-radius: calc(14px * var(--pp-checkline-scale, 1));
}

.plan-presentation__range-head--fit:has(.plan-presentation__checkline) .plan-presentation__checkbox {
  flex-basis: calc(20px * var(--pp-checkline-scale, 1));
  width: calc(20px * var(--pp-checkline-scale, 1));
  height: calc(20px * var(--pp-checkline-scale, 1));
  border-width: calc(2px * var(--pp-checkline-scale, 1));
  border-radius: calc(6px * var(--pp-checkline-scale, 1));
}

.plan-presentation__range-head--fit:has(.plan-presentation__checkline) .plan-presentation__checkbox:checked {
  background-size: calc(11px * var(--pp-checkline-scale, 1)) calc(9px * var(--pp-checkline-scale, 1));
}

.plan-presentation__value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 850;
  color: var(--pp-accent-strong);
}

.plan-presentation__value[data-value-for="schoolGrade"],
.plan-presentation__value[data-value-for="trialScore"],
.plan-presentation__value[data-value-for="targetScore"] {
  font-size: clamp(2rem, 3.9vw, 2.6rem);
}

.plan-presentation__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(19, 19, 19, 0.5);
  font-weight: 650;
}

.plan-presentation__checkline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  color: rgba(19, 19, 19, 0.78);
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.plan-presentation__checkline:hover {
  background: rgba(255, 255, 255, 0.62);
  color: rgba(19, 19, 19, 0.92);
}

.plan-presentation__checkline:has(.plan-presentation__checkbox:checked) {
  background: rgba(255, 255, 255, 0.5);
  color: var(--pp-accent-strong);
}

.plan-presentation__checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid rgba(19, 19, 19, 0.2);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.plan-presentation__checkbox:hover {
  border-color: rgba(19, 19, 19, 0.35);
}

.plan-presentation__checkbox:checked {
  border-color: rgba(19, 19, 19, 0.35);
  background-color: rgba(19, 19, 19, 0.82);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1.5 5.2 4.8 8.5 10.5 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 9px;
}

.plan-presentation__checkbox:focus-visible {
  outline: 3px solid rgba(19, 19, 19, 0.22);
  outline-offset: 2px;
}

/* Range slider — orange accent (matches future_block_2 submit #f97316) */
.plan-presentation .plan-calculator__range {
  background:
    linear-gradient(
      90deg,
      rgba(var(--pp-accent-rgb), 0.98) 0%,
      rgba(var(--pp-accent-rgb), 0.98) var(--range-progress),
      rgba(var(--pp-accent-rgb), 0.14) var(--range-progress),
      rgba(var(--pp-accent-rgb), 0.14) 100%
    );
}

.plan-presentation .plan-calculator__range::-webkit-slider-thumb {
  border-color: rgba(var(--pp-accent-rgb), 0.98);
  box-shadow: 0 8px 22px rgba(var(--pp-accent-strong-rgb), 0.28);
}

.plan-presentation .plan-calculator__range::-moz-range-thumb {
  border-color: rgba(var(--pp-accent-rgb), 0.98);
  box-shadow: 0 8px 22px rgba(var(--pp-accent-strong-rgb), 0.28);
}

.plan-presentation .plan-calculator__range-glow {
  background: radial-gradient(circle, rgba(var(--pp-accent-rgb), 0.28), transparent 68%);
}

.plan-presentation__final-actions {
  flex: 0 0 auto;
}

.plan-presentation__final-actions .plan-presentation__create {
  width: 100%;
}

.plan-presentation__create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: 14px;
  background: var(--pp-accent);
  color: #fff;
  font-weight: 820;
  font-size: 1.02rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  box-shadow:
    0 2px 8px rgba(var(--pp-accent-strong-rgb), 0.42),
    0 6px 20px rgba(17, 17, 17, 0.14);
}

.plan-presentation__create:hover {
  transform: translateY(-1px);
  background: var(--pp-accent-strong);
  box-shadow:
    0 3px 12px rgba(var(--pp-accent-strong-rgb), 0.48),
    0 8px 26px rgba(17, 17, 17, 0.16);
}

.plan-presentation__create:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.plan-presentation__final .plan-presentation__question {
  white-space: nowrap;
  line-height: 1.12;
}

.plan-presentation__final-body {
  flex: 0 0 auto;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.plan-presentation__final-recap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.plan-presentation__recap-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 650;
  color: rgba(28, 30, 41, 0.86);
}

.plan-presentation__final-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: center;
  width: max-content;
  max-width: 100%;
}

.plan-presentation__final-step {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 22px;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
  text-align: left;
  color: rgba(19, 19, 19, 0.42);
  transition: color 0.25s ease;
}

.plan-presentation__final-step.is-active {
  color: rgba(var(--pp-accent-strong-rgb), 0.96);
}

.plan-presentation__final-step.is-done {
  color: rgba(19, 19, 19, 0.72);
}

.plan-presentation__final-step-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-sizing: border-box;
}

.plan-presentation__final-step.is-pending .plan-presentation__final-step-icon {
  border: 2px solid rgba(var(--pp-accent-rgb), 0.16);
  background: transparent;
}

.plan-presentation__final-step.is-active .plan-presentation__final-step-icon {
  border: 2px solid rgba(var(--pp-accent-rgb), 0.22);
  border-top-color: rgba(var(--pp-accent-rgb), 0.95);
  background: transparent;
  animation: plan-calculator-spin 0.9s linear infinite;
}

.plan-presentation__final-step.is-done .plan-presentation__final-step-icon {
  position: relative;
  border: none;
  background: rgba(var(--pp-accent-rgb), 0.14);
}

.plan-presentation__final-step.is-done .plan-presentation__final-step-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border-right: 2px solid rgba(var(--pp-accent-strong-rgb), 0.95);
  border-bottom: 2px solid rgba(var(--pp-accent-strong-rgb), 0.95);
  transform: rotate(45deg);
}

.plan-presentation__final-step-label {
  min-width: 0;
}

/* Mobile: question on top, shared fixed image below */
@media (max-width: 768px) {
  .plan-presentation.card.card--soft {
    max-width: 513px;
    margin-inline: auto;
  }

  .plan-presentation {
    --pp-mobile-outer-gap: clamp(14px, 4vw, 20px);
    --pp-mobile-control-inline-inset: 20px;
    --pp-mobile-inner-pad: 10px;
    --pp-mobile-panel-gap: 16px;
    --pp-mobile-meta-h: 30px;
    --pp-mobile-question-h: 56px;
    --pp-mobile-media-h: 220px;
    --pp-mobile-options-h: 132px;
    --pp-surface-pad: var(--pp-mobile-outer-gap);
    padding: var(--pp-mobile-outer-gap);
  }

  .plan-presentation__stage {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    grid-template-rows: none;
    padding-top: var(--pp-mobile-inner-pad);
    padding-bottom: var(--pp-mobile-inner-pad);
  }

  .plan-presentation__slides-layer {
    display: grid;
    position: relative;
    flex-shrink: 0;
    grid-column: auto;
    grid-row: auto;
  }

  .plan-presentation__progress {
    grid-column: auto;
    grid-row: auto;
    flex-shrink: 0;
  }

  .plan-presentation__progress-anchor {
    flex-shrink: 0;
    margin-top: var(--pp-mobile-panel-gap);
  }

  .plan-presentation__footnote {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    margin: 8px 0 0;
  }

  .plan-presentation__surface {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: var(--pp-mobile-white-h, auto);
  }

  .plan-presentation__fixed-chrome {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
  }

  .plan-presentation__fixed-chrome .plan-presentation__step-meta {
    flex: 0 0 auto;
    min-height: var(--pp-mobile-meta-h);
    align-items: center;
    white-space: nowrap;
  }

  .plan-presentation__slide {
    grid-area: 1 / 1;
    grid-template-columns: 1fr;
    gap: 0;
    align-self: start;
    width: 100%;
  }

  .plan-presentation__slide[data-kind="slider"] {
    align-self: stretch;
  }

  .plan-presentation__slide[data-kind="branch"] {
    align-self: stretch;
  }

  .plan-presentation__slide[data-kind="slider"] .plan-presentation__panel {
    height: 100%;
    box-sizing: border-box;
  }

  .plan-presentation__slide[data-kind="branch"] .plan-presentation__panel {
    height: 100%;
    box-sizing: border-box;
  }

  .plan-presentation__branch-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: var(--pp-mobile-panel-gap);
    flex: 1 1 auto;
    height: 100%;
    box-sizing: border-box;
  }

  .plan-presentation__branch-panel:not([hidden]) .plan-presentation__options,
  .plan-presentation__branch-panel:not([hidden]) .plan-presentation__slider {
    box-sizing: border-box;
    align-self: center;
    width: calc(100% - 2 * var(--pp-mobile-control-inline-inset));
    max-width: calc(100% - 2 * var(--pp-mobile-control-inline-inset));
    min-width: 0;
    margin-inline: auto;
  }

  .plan-presentation__branch-panel:not([hidden]) .plan-presentation__slider {
    margin-top: auto;
  }

  .plan-presentation__slide .plan-presentation__media {
    display: none;
  }

  .plan-presentation__panel {
    display: flex;
    flex-direction: column;
    gap: var(--pp-mobile-panel-gap);
  }

  .plan-presentation__question {
    flex: 0 0 auto;
    min-height: 0;
  }

  .plan-presentation--questions-split .plan-presentation__question {
    min-height: var(--pp-mobile-question-h);
  }

  .plan-presentation__final .plan-presentation__question {
    flex: 0 0 auto;
    min-height: 0;
    line-height: 1.12;
    white-space: nowrap;
  }

  .plan-presentation__options,
  .plan-presentation__slider,
  .plan-presentation__final-text,
  .plan-presentation__final-body {
    flex: 0 0 auto;
  }

  .plan-presentation__panel > .plan-presentation__options,
  .plan-presentation__panel > .plan-presentation__slider {
    box-sizing: border-box;
    align-self: center;
    width: calc(100% - 2 * var(--pp-mobile-control-inline-inset));
    max-width: calc(100% - 2 * var(--pp-mobile-control-inline-inset));
    min-width: 0;
    margin-inline: auto;
  }

  .plan-presentation__panel > .plan-presentation__slider > .plan-presentation__range-head,
  .plan-presentation__panel > .plan-presentation__slider > .plan-calculator__range-shell,
  .plan-presentation__panel > .plan-presentation__slider > .plan-presentation__ticks {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .plan-presentation__slide[data-kind="slider"] .plan-presentation__slider {
    margin-top: auto;
  }

  .plan-presentation__options--quad {
    min-height: 96px;
    gap: 8px;
  }

  .plan-presentation__options--quad .plan-presentation__option {
    min-height: 34px;
    padding: 0 10px;
    font-size: 14px;
  }

  .plan-presentation__final-body {
    flex: 0 0 auto;
    min-height: var(--pp-mobile-options-h);
  }

  .plan-presentation__final-actions {
    flex: 0 0 auto;
  }

  .plan-presentation__media--shared {
    display: block;
    flex-shrink: 0;
    align-self: center;
    width: var(--pp-mobile-media-w, 100%);
    max-width: 100%;
    height: var(--pp-mobile-media-h);
    aspect-ratio: auto;
    margin: calc(var(--pp-mobile-outer-gap) + var(--pp-mobile-inner-pad)) 0 0;
    margin-inline: auto;
    box-sizing: border-box;
    border-radius: clamp(24px, 4vw, 32px);
  }

  .plan-presentation__options:not(.plan-presentation__options--quad):not(.plan-presentation__options--goal) {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    min-height: 96px;
    gap: 8px;
  }

  .plan-presentation__options--goal {
    min-height: 96px;
    gap: 8px;
  }

  .plan-presentation__options--goal .plan-presentation__option {
    min-height: 34px;
    padding: 0 10px;
    font-size: 14px;
  }

  .plan-presentation__options:not(.plan-presentation__options--quad) .plan-presentation__option {
    min-height: 34px;
    padding: 0 10px;
    font-size: 14px;
  }

  .plan-presentation__final-actions .plan-presentation__create {
    width: 100%;
    max-width: none;
  }
}

@keyframes plan-presentation-confirm-pop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes plan-presentation-question-confirm {
  0% {
    color: rgba(19, 19, 19, 0.96);
  }
  35% {
    color: var(--pp-accent-strong);
  }
  100% {
    color: rgba(19, 19, 19, 0.96);
  }
}

