@media (max-width: 62rem) {
  /* :root{

--h1-fs: 10.4rem; 
--h1-lh: 1.04;
--h1-ls: -0.03em;

--h2-fs: 7.3rem; 
--h2-lh: 1.04;
--h2-ls: -0.02em;

--h3-fs: 5.21rem; 
--h3-lh: 1.24;
--h3-ls: -0.02em;

--h4l-fs: 3.64rem; 
--h4l-lh: 1.14;
--h4l-ls: -0.02em;

--h4-fs: 3.125rem;
--h4-lh: 1.14;
--h4-ls: -0.02em;

--desc-fs: 1.57rem;
--desc-lh: 1.34;
--desc-ls: 0.04em;

--text-sm-fs: 1.83rem;
--text-sm-lh: 1.4;
--text-sm-ls: 0.01em;

--text-md-fs: 2.08rem; 
--text-md-lh: 1.4;
--text-md-ls: 0;

--text-lg-fs: 2.34rem;
--text-lg-lh: 1.34;
--text-lg-ls: -0.01em;

--btn-text-fs: 1.83rem;
--btn-text-lh: 1;
--btn-text-ls: 0.01em;

  } */
  .proof {
    padding: 13.8889rem 2.777rem 6.9444rem;
  }
  .trust__container{
    padding-inline: 2.777rem;
  }
  html {
    font-size: 14.4px;
  }
  .button-desktop {
    display: none;
  }
  .button-mobile {
    position: absolute;
    bottom: 1.666667rem;
    left: 1.666667rem;
    right: 1.666667rem;
    width: auto;
    display: inline-flex !important;
  }
  .br-none {
    display: none;
  }
  .br-table {
    display: block;
  }
    .plans__nav {
    display: none;
  }
  .plans__track {
    transform: none !important;
    transition: none !important;
  }
  /* ========== HERO block ========== */
  .hero {
    min-height: var(--stable-vh, 100svh);
    display: flex;
    flex-direction: column;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: absolute;
    left: 2.7778rem;       /* 40px */
    right: 2.7778rem;      /* 40px */
    bottom: 3.8889rem;     /* 56px */
    margin: 0;
  }

  .hero__scroll {
    display: none;
  }

  .hero__pill {
    flex-direction: column;
    width: 100%;
    padding: 2.222rem 0.8333rem 0.8333rem 0.8333rem;
    gap: 2.222rem;
  }
  .hero__title{
      margin-bottom: 2.777rem;
  }
  .hero__pill-btn{
      width: 100%;
  }
  .hero__top-pill {
    bottom: auto;
    transition: top 0.4s ease, bottom 0.4s ease;
  }

  .hero__top-pill--bottom {
    top: auto;
    bottom: 1.388889rem; /* расстояние от нижнего края */
  }
  /* ===== PROOF block ===== */
  .proof__actors {
    background-image: linear-gradient(
      var(--background-black-50),
      var(--background-black-50)
    );
    background-repeat: no-repeat;
    background-size: 0.069444rem calc(100% - 0.555556rem);
    background-position: 50% 0.277778rem;
    /* max-width: 100%;
    max-width: 0 0 5.5556rem;
    display: flex;
    justify-content: space-between; */

  }
  .proof__title.table,
  .trust__text.trust__downText.table {
    display: block;
  }
  .proof__title.desktop,
  .trust__text.trust__downText.desktop {
    display: none;
  }
  .proof__title{
    white-space: normal;
  }
  .actor {
    padding: 0;
    gap: 3.333333rem;
  }
.actor__text {
    margin-right: 0;
    width: auto;
}
  .actor:nth-child(1) {
    padding-right: 3.75rem;
  }

  .actor:nth-child(2) {
    padding-left: 3.75rem;
  }

  /* ===== TRUST block ===== */
  .trust__card {
    padding: 3.3333rem;
  }
  .trust__card--lg {
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    padding: 3.333333rem;
  }

  /* делаем div "прозрачным" контейнером */
  .trust__card--lg > div {
    display: contents;
  }

  /* маленькая иконка слева сверху */
  .trust__icon--hat {
    justify-self: start;
    margin: 0;
  }

  /* большая иллюстрация — по центру */
  .trust__illust {
    grid-row: 2;
    grid-column: 1;
    justify-self: center;
    align-self: center;
    width: min(80%, 32.5rem);
    height: auto;
    padding: 4.027778rem 0 5.208333rem;
  }

  .trust__row {
    display: flex;
    flex-direction: column;
  }

  .trust__icon {
    margin-block-end: 5.625rem;
  }

  /* ===== solutions block ===== */
  .solutions {
    padding: 6.944444rem 0rem 9.722222rem;
  }

  /* ===== solutions block (tablet) ===== */
  .solutions__flex {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    /* ВОТ ЭТО ДАЁТ 40px СЛЕВА И СПРАВА */
    padding-inline: 2.777778rem; /* 40px */

    /* чтобы снап учитывал паддинги */
    scroll-padding-inline: 2.777778rem; /* 40px */

    /* убираем старое */
    margin-left: 0;

    /* прячем полосу */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  /* На ПК не прилипаем к карточкам */
  @media (pointer: fine) {
    .solutions__flex {
      scroll-snap-type: none !important;
    }
  }

  /* И на время драга тоже отключаем snap, чтобы не дергало */
  html.is-solutions-dragging .solutions__flex {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
  }

  .solutions__flex::-webkit-scrollbar {
    display: none;
  }
  .solutions__navigation-block{
    margin-top: 3.888rem;
  }
  .solutions__navigation-block .solutions__nav{
    position: absolute;
    right: 2.77rem;               /* или нужный отступ */
    transform: translateY(-50%);
  }
  
  .solutions__card {
    flex: 0 0 auto;
    scroll-snap-align: start;

    /* было: 100% - 40px (это под один край)
     стало: 100% - 80px (40 слева + 40 справа) */
    inline-size: min(
      31.458333rem,
      100% - 5.555556rem
    ); /* 453px, либо (100% - 80px) */
  }

  /* больше не нужно */
  .solutions__card:last-child {
    margin-right: 0;
  }

  /* показываем стрелки под блоком */
  .solutions__nav {
    display: flex !important;
    justify-content: flex-end;
    gap: 1.111111rem;
    margin-top: 5.555556rem;
    margin-right: 2.777778rem;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .solutions__icon {
    --icon-size: 2.95rem;
  }

  /* ===== INSTRUMENTS block (итог) ===== */
  .instr {
    padding: 9.7222rem 0 6.9444rem;
  }
  /* контейнер на всю ширину, как и в других блоках */
  .instr__container {
    inline-size: 100%;
    margin-inline: 0;
  }
  .instr__slide{
    padding: 4.53rem 2.77rem 4rem;
  }
  /* карточка становится вертикальной */
  .instr__card {
    /* вместо большого горизонтального clamp’а */
    inline-size: 100%;
    max-inline-size: 100%; /* 688px при 16px */
    aspect-ratio: 688 / 860; /* как в макете 688×900 */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    /* паддинги по макету: примерно 40px по бокам и сверху */
    padding: 3.472222rem 3.472222rem 0 3.958333rem; /* top/right/left, bottom без паддинга — там телефон */

    gap: 0; /* между верхом и телефоном расстояние задаём маргинами */
    border-radius: 12.8px; /* можно чуть меньше, чем на десктопе, если нужно */
  }

  /* контент сверху, растягиваем по ширине */
  .instr__card-content {
    order: 1;
    align-self: stretch;
    margin: 0;
    max-width: none;

    position: relative; /* для абсолютной иконки */
    padding-right: 3.888889rem; /* запас под иконку справа */
  }

  /* иконка в правом верхнем углу */
  .instr__icon {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0;
    margin: 0;
  }

  .instr__eyebrow {
    margin-top: 0;
  }

  .instr__heading {
    margin-top: 0.833333rem;
  }

  /* блок с телефоном — внизу, по центру */
  .instr__card-media {
    order: 2;
    margin-top: auto; /* выталкиваем к низу карточки */

    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-left: 0;
  }

  .instr__phone {
    /* телефон по ширине поменьше, чтобы красиво смотрелся внутри вертикальной карты */
    inline-size: min(22.361111rem, 60%);
    block-size: auto;
    max-height: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
  }
  .instr__scroller{
    margin-top: 1.388rem;
    height: calc(var(--slides, 4) * var(--stable-vh, 100svh));
  }
  .instr__pin {
    height: var(--stable-vh, 100svh);
  }

  /* ===== MORE block (итог) ===== */
  .more {
    padding: 9.7222rem 0 6.95rem;
  }
  .more__viewport {
    padding-inline: 1.111rem;
  }
  /* общая геометрия карточек: вертикальная 512×824 */
  .more__slide {
    flex: 0 0 100%;
    min-width: 0;
  }
  .more__track {
    max-width: 35.5555rem;
    margin: auto;
  }
  .more__dots {
    margin: 2.777778rem auto;
  }
  .more__card {
    aspect-ratio: 512 / 824;
    border-radius: 12.8px;
    max-height: 57.222222rem;
  }
  .cta__cover{
    right: 3.5px;
  }
  /* =========
     Кураторы, Геймификация, Розыгрыши
     (обычные двухколоночные карточки)
     ========= */
  .more__card:not(.more__card--community):not(.more__card--hogwarts) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--text-accent-25);
  }

  .more__cardCol--text {
    max-width: none;
    padding: 3.888889rem 6.666667rem 0 4.444444rem;
    margin: 0;
  }

  .more__heading {
    margin-bottom: 0.833333rem;
  }

  .more__cardCol--media,
  .more__cardCol--media-tripleman {
    margin-top: auto; /* прижимаем медиа к низу */
    padding: 0 3.541667rem 4.166667rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  .more__cardCol--media-tripleman {
    margin: auto 0 0 0;
  }

  .more__cardCol--media-tripleman .more__illust {
    max-width: 100%;
    height: auto;
    padding-bottom: 1.366667rem;
  }

  .more__chatMock,
  .raffles {
    inline-size: 100%;
  }
  .solutions__container {
    padding-inline: 0; /* 40px */
  }
    .more__slide[data-more-slide="4"] .more__card{
    padding: 0;
  }
  .more__slide[data-more-slide="4"] .more__cardCol--media {
    margin: auto 1.666667rem 1.666667rem 1.666667rem;
    justify-content: flex-end;
    width: auto;
    height: auto;
  }
  .raffles__item img {
    height: 100%;
    padding-inline: 0;
  }

  .more__slide[data-more-slide="4"] .raffles__viewport {
    max-height: none;
  }

  .more__chatMock-content {
    transform-origin: bottom;
    transform: none;
  }

  .more__chatMock-content img:nth-child(1) {
    /* 409px при 768px, дальше уменьшается пропорционально */
    width: calc(100vw * 600 / 768);
    max-width: 28.402778rem; /* не больше 409px в любом случае */
    top: 0;
    margin: auto;
    position: relative;
    right: 0;
  }

  /* =========
     Комьюнити
     (ты сам потом разложишь мемоджи, просто подгоняем размер)
     ========= */
  .more__card.more__card--community {
    aspect-ratio: 512 / 824;
    border-radius: 12.8px;
  }

  .model__dialog {
    width: min(47.777778rem, calc(100% - 2.222222rem)); /* 688px */
    height: min(65.555556rem, calc(100svh - 2.222222rem)); /* 944px */
    grid-template-columns: 1fr; /* вместо 27.430556rem 1fr */
    gap: 0;
  }

  /* трек по-прежнему занимает всё окно, но проще работать с flex-колонкой */
  .model__card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
  }
  #model-more .model__card .model__col.model__col--media{
    bottom: -6.25rem;
  }
  /* текст сверху, прижат к левому краю */
  .model__col--text {
    padding: 3.888889rem 12.333333rem 0 4.166667rem;
    margin-right: 0;
  }

  /* блок с телефоном — внизу по центру */
  .model__col--media {
    position: relative;
    margin-top: auto; /* выталкиваем к низу */
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }

  /* телефон не абсолютный, а обычный блок по центру */
  .model__phone {
    position: static;
    width: min(27.361111rem, 100%); /* около 394px при 688 ширине */
    height: auto;
  }

  /* точки — по центру, поверх телефона, с большим z-index */
  .model__dots {
    left: 50%;
    bottom: 3.055556rem;
    transform: translateX(-50%);
    margin: 0;
    z-index: 3; /* выше телефона */
  }

  /* стрелки — по бокам от телефона */
  .model__arrow {
    top: auto;
    bottom: 50%; /* примерно по центру телефона */
    transform: translateY(50%);
  }

  .model__arrow--prev {
    right: auto;
    left: 2.152778rem;
  }

  .model__arrow--next {
    left: auto;
    right: 2.152778rem;
  }

  /* =========
     Хогвартс
     ========= */
  .hogwartsCover__badge {
    width: auto;
    max-width: 455px;
    margin-top: 1.111111rem;
  }

  .more__card.more__card--hogwarts {
    aspect-ratio: 512 / 824;
    border-radius: 12.8px;

    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Хогвартс: модалка 464×824, одна колонка */
  .model--hogwarts .model__dialog {
    width:
      32.222222rem;/* 32.222222rem = 464px */
    height:
      57.222222rem; /* 57.222222rem = 824px */

    display: grid;
    grid-template-columns: auto 1fr; /* вместо 27.430556rem 1fr */

    border-radius: 17.07px;
    overflow: hidden;
  }

  /* все дети (стрелки, вьюпорт, bottom-block, крестик) на всю ширину */
  .model--hogwarts .model__dialog > * {
    grid-column: 1 / -1;
  }

  /* фон остаётся на всю карточку, как и раньше */
  .hogwartsCover {
    position: absolute;
    inset: 0;
  }

  /* контентный слой: текст сверху слева, кнопка внизу на всю ширину */
  .hogwartsContent {
    position: relative;
    z-index: 2;

    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hogwartsContent__text {
    margin-bottom: auto; /* текст вверху */
  }

  .hogwartsContent__btn {
    width: 100%;
    padding: 1.666667rem;
  }

  #HogwartsModule {
    width: 100%;
  }
  .more__card.more__card--community .communityFaces__img {
    inline-size: auto;
  }
  /* позиции — в процентах, чтобы карточка до ~770px ужималась без правок */
  .more__card.more__card--community .communityFaces__img.f1 {
    top: 0;
    left: 2.361111rem;
  }
  .more__card.more__card--community .communityFaces__img.f2 {
    top: 12.013889rem;
    left: 2.847222rem;
  }
  .more__card.more__card--community .communityFaces__img.f3 {
    top: 7.222222rem;
    left: 14.791667rem;
  }
  .more__card.more__card--community .communityFaces__img.f4 {
    top: 0;
    right: 0;
  }
  .more__card.more__card--community .communityFaces__img.f5 {
    top: 15.486111rem;
    right: 2.708333rem;
  }
  .more__card.more__card--community .communityFaces__img.f6 {
    bottom: 14.027778rem;
    left: 3.541667rem;
    top: auto;
  }
  .more__card.more__card--community .communityFaces__img.f7 {
    bottom: 4.652778rem;
    right: 0rem;
    left: auto;
    top: auto;
  }
  .more__card.more__card--community .communityFaces__img.f8 {
    bottom: 1.666667rem;
    left: 1.597222rem;
    top: auto;
  }
  .more__card.more__card--community .communityFaces__img.f9 {
    bottom: 6.805556rem;
    left: 14.861111rem;
    top: auto;
  }
  .more__card.more__card--community .communityFaces__img.f10 {
    bottom: 15.763889rem;
    right: 5.347222rem;
    top: auto;
  }
  /* ===== PEOPLE block (итог) ===== */

  .headline {
    max-width: 47.777778rem;
  }

  /* ===== TARIFF block (итог) ===== */
  .tariff {
    /* НУЖНЫЙ ОТСТУП ПО БОКАМ: 105px = 7.291667rem */
    --tariff-gutter: 2.777778rem;
    --tariff-pad-top: 3.3333rem;
    --tariff-pad-bot: 4.1666rem;
  }
  /* ряд превращаем во вертикальный список */
  .tariff__row {
    display: flex;
    flex-direction: column;
    gap: 16px; /* 16px между карточками */
    margin: 6.944444rem 0 4.444444rem; /* можно поджать верхний отступ, по вкусу */
    align-items: center;
  }

  .tariff__chips {
    max-width: 33.888889rem;
  }
  .chips-display{
    display: block;
  }
  /* каждая карточка на всю ширину, с одинаковым соотношением сторон */
  .tariff__card--sm,
  .tariff__card--lg {
    block-size: auto;
    aspect-ratio: 4 / 3; /* 688×516 ≈ 4:3 */
  }
    .tariff__card:nth-child(3)::before {
    background: var(--bg) 92% 25% / 117% no-repeat;
}
  .tariff__chip-all{
    flex: 0 0 auto;
    order: 1;
  }

  /* =========================
     Дом + Зал (card--lg)
     Порядок как на твоём скрине:
     Всё из… → Йога → Чат → Бонусы → Калькулятор → Розыгрыши
     ========================= */

  /* Йога (в твоём HTML это 5-й элемент) */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(5){ order: 2; }

  /* Чат (4-й) */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(4){ order: 3; }

  /* Калькулятор (6-й) */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(6){ order: 5; }

  /* Розыгрыши (3-й) */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(3){ order: 6; }

  /* ВАЖНО:
     На твоём скрине в центре есть "Бонусы", но в присланном HTML его нет.
     Если ты добавил "Бонусы" в центр 7-м чипом — он станет 4-м по порядку:
  */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(7){ order: 4; }

  /* А "Тренировки" в центре на скрине нет.
     Если на tablet его нужно скрыть (в твоём HTML это 2-й элемент) — включи:
  */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(2){
    display: none;
  }


  /* =========================
     Дом и Зал (оба card--sm)
     Порядок как на твоём скрине:
     Тренировки → Йога → Чат → Бонусы → Калькулятор → Розыгрыши
     ========================= */

  /* Тренировки (1) */
  .tariff__card--sm .tariff__chips .tariff__chip:nth-child(1){ order: 1; }
  /* Йога (2) */
  .tariff__card--sm .tariff__chips .tariff__chip:nth-child(2){ order: 2; }
  /* Чат (4) */
  .tariff__card--sm .tariff__chips .tariff__chip:nth-child(4){ order: 3; }
  /* Бонусы (5) */
  .tariff__card--sm .tariff__chips .tariff__chip:nth-child(5){ order: 4; }
  /* Калькулятор (3) */
  .tariff__card--sm .tariff__chips .tariff__chip:nth-child(3){ order: 5; }
  /* Розыгрыши (6) */
  .tariff__card--sm .tariff__chips .tariff__chip:nth-child(6){ order: 6; }

  /* порядок: 2-я карточка (Дом+Зал) → первая (Дом) → третья (Зал) */
  .tariff__row .tariff__card:nth-child(1) {
    order: 2; /* Дом */
  }

  .tariff__row .tariff__card:nth-child(2) {
    order: 1; /* Дом + Зал */
  }

  .tariff__row .tariff__card:nth-child(3) {
    order: 3; /* Зал */
  }

  /* ===== REVIEWS block (итог, планшет) ===== */
  .reviews__container {
    width: auto;
  }

  .reviews__track {
    display: flex;
    gap: 1.111111rem;
    align-items: stretch;
  }
  .reviews__fs-block {
    margin: auto 0 1.6667rem 0;
    padding: 0 1.666667rem;
  }
  .reviews__cta {
    width: 100%;
  }
  /* карточка чуть уже вьюпорта, чтобы справа был виден кусочек следующей */
  .reviews__card {
    flex: 0 0 100%; /* ширина < 100% */
    max-width: 688px;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;

    margin-inline: 0; /* убираем auto, чтобы не было отступа справа */

    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #000;
  }
  .reviews__viewport {
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box;
  }

  /* карточка занимает всю внутреннюю ширину (V - 80px) */
  .reviews__card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }
  /* остальное — как у тебя было */
  .reviews__photo {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .reviews__img {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .reviews__img--before {
    left: 0;
    right: auto;
    opacity: 1;
  }

  .reviews__img--after {
    right: 0;
    left: auto;
    opacity: 1;
  }

  .reviews__card:hover .reviews__img--before,
  .reviews__card:hover .reviews__img--after {
    opacity: 1;
  }
  .modal--reviews .modal__dialog {
    position: relative;
    margin: auto;
    top: 50% !important;
    transform: translateY(-50%);
    width: 100%; /* 688px */
    height: 100%; /* 944px */
    border-radius: 17.07px;
    overflow: hidden; /* всё внутри обрежем по 944px */
  }

  /* вся модалка – скроллится целиком */
  .modal-rev {
    display: flex;
    flex-direction: column;
    height: 100%; /* 65.555556rem */
    overflow-y: auto; /* скролл по всей модалке */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* старый Edge/IE */
  }

  .modal-rev::-webkit-scrollbar {
    display: none; /* Chrome / Safari / Opera */
  }

  /* верхняя часть под фото – фикс 695px */
  .modal-rev__left {
    position: relative;
    flex: 0 0 48.263889rem; /* 695px */
    width: 100%;
    max-width: none;
    border-radius: 10.67px 10.67px 0 0;
    overflow: hidden;
    max-height: 48.263889rem;
  }

  .modal-rev__viewport {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
  }

  /* тёмный оверлей поверх фото, чтобы фон #0000004d реально был виден */

  .modal-rev__track {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    height: 100%;
    transition: transform 0.35s ease;
    z-index: 0;
  }

  .modal-rev__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* стрелки и точки поверх фото */
  .modal-rev__nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .modal-rev__arrow,
  .modal-rev__dots {
    pointer-events: auto;
  }

  .modal-rev__dots {
    left: 50%;
    bottom: 2.222222rem;
    transform: translateX(-50%);
  }

  /* нижняя часть с текстом – 944 - 695 = 249px */
  .modal-rev__right {
    flex: 0 0 auto;
    min-height: 17.291667rem; /* 249px */
    padding: 1.666667rem 2.222222rem 2.222222rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background: #ffffff;
  }

  /* блок "Отзыв" + текст, с градиентом внизу */
  .modal-rev__text {
    position: relative;
    width: 100%;
    margin-top: auto;
    padding-top: 3.888889rem;
    padding-bottom: 1.666667rem;
    min-height: 7.916667rem; /* те же 114px */
    overflow: hidden; /* текст не вылезает за дымку */
  }

  /* лёгкая дымка поверх текста снизу вверх */
  .modal-rev__right::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 20%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      #ffffff 91.83%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
  }
  .modal-rev__slide {
    max-height: 48.263889rem;
    width: 100% !important;
  }
  /* когда JS повесил класс - плавно тушим дымку */
  .modal-rev__right.modal-rev__right--no-fade::after {
    opacity: 0;
  }

  .modal-rev__text > * {
    position: relative;
    z-index: 1; /* текст поверх градиента */
  }

  /* ===== FAQ block (итог) ===== */
  .faq {
    padding: 6.9444rem 2.777rem;
  }

  .faq__container {
    display: flex;
    flex-direction: column;
    gap: 5.555556rem;
  }
  .faq__left {
    max-width: 438px;
    position: static;
    text-align: center;

    margin: auto;
  }
  /* ===== PLAN block (итог) ===== */

  .plans__title, .plans__bar, .plans__grid{
    padding: 0 2.777rem;

  }
  .plans__bar{
    margin: 5.5556rem 0;
    padding-bottom: 2.777rem;
  }
  .plan__fade,
  .plan__more {
    display: none;
  }
  .plan {
    min-height: 53.888889rem;
  }
  .plan__head {
    padding: 1.6667rem 1.3887rem 1.1111rem 1.944rem;
  }
  .plans__grid {
    grid-template-columns: auto;
  }
  .plan__bonuses{
    margin-top: 1.6667rem;
  }
  .plan__bonuses-title {
    margin-bottom: 1.388889rem;
    margin-top: 0;
  }
  .plan__price{
    margin-bottom: 0;
  }
  .plan__list{
    margin: 0;
    max-width: 36.805rem;
  }
  /* ===== FOOTER block (итог) ===== */
  .footer {
    padding: 2.777778rem;
  }

  /* контейнер как у тебя */
  .footer__container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  /* порядок элементов */
  .footer__ticker {
    order: 1;
    width: 100%;
    /* margin-bottom: 14.236111rem; */
    margin-bottom: 0;
  }

  .footer__logo {
    order: 2;
    /* margin-bottom: 5.4166rem; */
    padding: 0 3.611111rem;
  }

  /* талисман */
  .footer__mascot {
    order: 3;
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
  }

  /* фиксируем рамку под все кадры анимации */
  .footer__mascot-img {
    display: block;
    width: 23.611111rem; /* 340px */
    height: 23.333333rem; /* 336px, под самый высокий кадр */
    max-width: none;
    max-height: none;
  }

  /* нижний блок: соцсети, затем строка копирайт + юр.инфо */
  .footer__bar {
    order: 4;
    /* margin: 3.866667rem 2.222222rem 2.222222rem;  55.7px сверху от талисмана */
    margin: 0 2.222222rem 2.222222rem;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    row-gap: 2.916667rem; /* 42px между иконками и копирайтом */
    column-gap: 1.805556rem; /* 26px между копирайтом и юр.инфо */
    justify-content: center;
    align-items: center;
  }

  .footer__socials {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .footer__copy {
    grid-row: 2;
    grid-column: 1;
    margin: 0;
  }

  .footer__legal-btn {
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
    margin: 0;
  }

  .legal__page.is-active {
    padding-bottom: 2.222222rem;
  }
  /* модалка в одну колонку, размеры по макету */
  .legal__dialog {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* важно: не даём выезжать */
    width: min(47.777778rem, calc(100% - 2.222222rem)); /* 688px */
    height: min(65.555556rem, calc(100% - 2.222222rem)); /* 944px */
    grid-template-columns: 1fr;
    grid-auto-rows: auto 1fr;
    gap: 1.666667rem;
    gap: 0;
  }

  .legal__close {
    top: 1.666667rem;
    right: 1.666667rem;
  }

  /* добавил паддинг справа, чтобы навигация и стрелка не залезали под крестик */
  .legal__col--nav {
    padding: 1.666667rem 5rem 0 2.222222rem; /* слева 32px, справа 72px */
    position: relative; /* опорный контейнер для стрелок */
  }

  .legal__col--content {
    height: auto;
  }

  .legal__scroll {
    padding: 3.333333rem 3.888889rem 0rem;
  }

  /* табы в строку, х-скролл, максимум 558px, но может сжиматься */
  .legal__nav {
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    width: 100%; /* при сужении диалога полоска подстраивается */
  }

  .legal__nav::-webkit-scrollbar {
    display: none;
  }

  .legal__tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* стрелки для горизонтального скролла табов */
  .legal__navArrow {
    position: absolute;
    top: 1.666667rem;
    height: 4.166667rem; /* 60px */
    width: 5.555556rem; /* 80px */
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
  }

  /* сама стрелка – поверх градиента, прижата к правому краю */
  .legal__navArrow::after {
    content: "";
    position: absolute;
    right: 1.388889rem; /* 20px от правого края */
    width: 1.111111rem;
    height: 1.111111rem;
    background-color: var(--text-black-700);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 50% 50%;
    mask-position: 50% 50%;
    -webkit-mask-size: contain;
    mask-size: contain;
    pointer-events: none;
  }

  .legal__navArrow.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* левая кнопка: градиент + маска Arrow-Left */
  .legal__navArrow--prev {
    border-top-left-radius: 6.4px;
    border-bottom-left-radius: 6.4px;
    left: 2.111111rem; /* совпадает с padding-left у .legal__col--nav */
    background: linear-gradient(
      270deg,
      rgba(243, 245, 246, 0) 0%,
      #f3f5f6 53.3%
    );
  }

  .legal__navArrow--prev::after {
    right: 0;
    left: 1.388889rem;
    -webkit-mask-image: url("/assets/img/arrow-left.svg");
    mask-image: url("/assets/img/arrow-left.svg");
  }

  /* правая кнопка: градиент + маска Arrow-Right */
  .legal__navArrow--next {
    border-top-right-radius: 6.4px;
    border-bottom-right-radius: 6.4px;
    right: 4.888889rem; /* привязка к правому padding у .legal__col--nav */
    background: linear-gradient(
      90deg,
      rgba(243, 245, 246, 0) 0%,
      #f3f5f6 53.3%
    );
  }

  .legal__navArrow--next::after {
    -webkit-mask-image: url("/assets/img/arrow-right.svg");
    mask-image: url("/assets/img/arrow-right.svg");
  }
  .legal__col--nav {
    flex: 0 0 auto;
  }

  .legal__col--content {
    flex: 1 1 auto; /* это заменяет твой 1fr */
    min-height: 0; /* КРИТИЧНО для скролла во flex */
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
  }
  .legal__fade {
    position: sticky;
    bottom: 0;
    height: 13.333333rem;
    margin-top: -13.333333rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 91.83%);
  }
  .legal__fade.is-on {
    opacity: 1;
  }

  /* wrapper НЕ скроллится, он держит стрелки */
  .more__tabs {
    position: relative;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden; /* важно: чтобы стрелки не ездили */
  }

  /* скроллится только внутренняя лента */
  .more__tabs > .legal__nav {
    display: flex;
    gap: 0.277778rem;
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .more__tabs > .legal__nav::-webkit-scrollbar {
    display: none;
  }

  .more__tabs .more__tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* стрелки прибиты к КРАЯМ wrapper’а и всегда видимы при прокрутке */
  .more__tabs .legal__navArrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 5;
  }
  .more__tabs .legal__navArrow--prev {
    left: 0;
  }
  .more__tabs .legal__navArrow--next {
    right: 0;
  }

  body.thanksPage {
    /* 40px */
    --thanks-pad-x: 2.777778rem;
  }

  .thanks {
    padding-inline: var(--thanks-pad-x);
  }

  /* верхняя карточка */
  .thanksHero {
    grid-template-columns: 1fr;
    gap: 2.222222rem;
    /* высота 860px */
    min-block-size: 59.722222rem;
    position: relative;
    overflow: hidden;
  }

  .thanksHero__right {
    justify-content: center;
  }
  .thanksHero__mascot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5.555556rem;
    z-index: 0;
    height: auto;
    pointer-events: none;

    /* отступы по бокам: максимум 110px, но на узких экранах уменьшаются */
    --mascot-side-pad: clamp(
      1.111111rem,
      10vw,
      7.638889rem
    ); /* 16px .. 110px */

    width: min(32.569444rem, calc(100% - (2 * var(--mascot-side-pad))));
    max-width: calc(100% - (2 * var(--mascot-side-pad)));
  }

  /* 3 карточки - в столбик на всю ширину */
  .thanksCards {
    grid-template-columns: 1fr;
  }

  .storeBtn,
  .thanksBtn {
    inline-size: 100%;
  }
  .model--hogwarts .model__dots{
    transform: none;
  }
  /* ========== INFO BLOCK — tablet ========== */

  .info-block {
    padding: 6.9444rem 2.7778rem; /* 100px 40px */
  }

  .info-block__card {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .info-block__text {
    padding: 3.888rem 3.4722rem 3.4722rem 3.4722rem; /* 56 & 50 */
  }

  .info-block__visual {
    justify-content: center;
  }

  .info-block__img {
    width: 24.375rem;
    height: 38rem;
    object-fit: cover;
    object-position: 0 0;
  }

  /* ========== SUBSCRIPTION BLOCK — tablet ========== */
.sub-block__item-text{
    white-space: normal;
}
  .sub-block {
    padding: 6.9444rem 2.7778rem 9.7222rem; /* 100px 40px 140px */
  }

  .sub-block__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-block__item {
    height: 19.4rem;
  }

  /* «Личный кабинет» в hero — позиция для планшета */
  .hero__account {
    top: 3.3333rem;    /* 48px */
    right: 2.7778rem;  /* 40px */
  }

  /* Хедер на первом экране — прижат влево (чтобы не наслаивался на «Личный кабинет»);
     в нижнем состоянии (--bottom) — снова по центру */
  .hero__top-pill:not(.hero__top-pill--bottom) {
    margin-inline: 2.7778rem auto;   /* 40px слева, справа auto */
  }
  
.hero__countdown{
  margin-bottom: 2.2222rem; /* 32px */
  }
}

/* ===== Узкие планшеты (≤800px): компактный хедер, текст сокращён как на мобилке ===== */
@media (max-width: 41rem) {
  .hero__brand img { width: 9rem; height: auto; }            /* логотип чуть компактнее */
  .hero__top-pill {                                     /* 8px (было ~24) */
    padding: 0.5556rem 0.5556rem 0.5556rem 1rem;             /* лево ~14px (было ~24) */
  }
  .hero__cta { width: auto; padding-inline: 1.0417rem; }      /* по ширине текста */
  .hero__cta-full  { display: none; }                         /* «Записаться» */
  .hero__cta-short { display: inline; }
  .hero__top-pill--bottom .hero__cta-full  { display: inline; } /* снизу — полный текст */
  .hero__top-pill--bottom .hero__cta-short { display: none; }
  .hero__account { padding: 0 1.1111rem; }                    /* 16px по бокам */
  .hero__account-full  { display: none; }                     /* «Войти» */
  .hero__account-short { display: inline; }
}