@media (max-width: 37rem) {
  .solutions__icon {
    --icon-size: 2.55rem;
  }
}
@media (max-width: 35rem) {
  .solutions__icon {
    --icon-size: 2.2rem;
  }
}
@media (max-width: 30rem) {
  .button-mobile {
    display: inline-flex;
  }
  html {
    font-size: 1vw;
  }
  :root {
    /* ===== Typography MOBILE ===== */

    /* H1 — 40px */
    --h1-fs: 10.2rem; /* 40px / 10.2rem */
    --h1-lh: 1.14;
    --h1-ls: -0.02em;

    /* H2 — 32px */
    --h2-fs: 8.15rem; /* 32px / 8.15rem */
    --h2-lh: 1.2;
    --h2-ls: -0.015em;

    /* H3 — 24px */
    --h3-fs: 6.1rem; /* 24px / 6.1rem */
    --h3-lh: 1.34;
    --h3-ls: -0.01em;

    /* H4-LARGE — 24px */
    --h4l-fs: 6.1rem; /* 24px / 6.1rem */
    --h4l-lh: 1.34;
    --h4l-ls: -0.01em;

    /* H4 — 20px */
    --h4-fs: 5.1rem; /* 20px / 5.1rem */
    --h4-lh: 1.24;
    --h4-ls: -0.01em;

    /* DESCRIPTION — 12px */
    --desc-fs: 3.06rem; /* 12px / 3.06rem */
    --desc-lh: 1.34;
    --desc-ls: 0.04em;

    /* TEXT-SIZE-SMALL — 13px */
    --text-sm-fs: 3.31rem; /* 13px / 3.31rem */
    --text-sm-lh: 1.44;
    --text-sm-ls: 0.01em;

    /* TEXT-SIZE-MEDIUM — 15px */
    --text-md-fs: 3.8rem; /* 15px / 3.8rem */
    --text-md-lh: 1.44;
    --text-md-ls: 0;

    /* TEXT-SIZE-LARGE — 16px */
    --text-lg-fs: 4.08rem; /* 16px / 4.08rem */
    --text-lg-lh: 1.44;
    --text-lg-ls: 0;

    /* BTN-TEXT — 13px */
    --btn-text-fs: 3.31rem; /* 13px / 3.31rem */
    --btn-text-lh: 1;
    --btn-text-ls: 0.02em;

    --page-gutter: 2rem;
    
    
        --thanks-gap: 4.071rem;
  }
  .br-table,
  .br-mobile {
    display: none;
  }
  .trust__container,
  .tariff__container,
  .instr__container,
  .solutions__container {
    padding-inline: 0;
  }
  .hero__top-pill.is-compact:not(.hero__top-pill--bottom) {
    top: 4.0711rem;
  }
  .hero__top-pill {
    padding: 2.0356rem 2.0356rem 2.0356rem 3.1069rem;
    inline-size: max-content;
    gap: 6.1069rem;
    top: 4.0711rem;
  }
  .hero__top-pill--bottom {
    bottom: 4.071rem;
    top: auto;
  }
  .hero__brand img {
    width: 30.5344rem;
    height: 6.6158rem;
  }

  .hero__cta {
    width: 47.073rem;
    height: 11.195rem;
  }
  .hero__cta:hover {
    font-size: 3.6rem;
  }
  .hero__countdown {
    padding: 2.544rem 6.361rem;
    margin-bottom: 6.106rem;
  }
  .hero__title {
    margin-bottom: 8.142rem;
        font-size: var(--h1-fs);
    line-height: var(--h1-lh);
    letter-spacing: var(--h1-ls);
  }
  .hero__scroll {
    display: none;
  }
  .hero__content {
    left: 4.0712rem;       /* 16px */
    right: 4.0712rem;      /* 16px */
    bottom: 8.1425rem;     /* 32px */
  }
  .hero__pill {
    flex-direction: column;
    width: 100%;
    gap: 8.1425rem;
    padding: 8.1421rem 3.0532rem 3.0532rem 3.0532rem;
    
  }
  .hero__pill-btn{
      height: 11.195rem;
  }
  .hero__clip {
    top: 5.09rem;
    bottom: 5.09rem;

    inline-size: 2.9rem;
  }

  .proof {
    padding: 20.36rem 4.07rem 12.21rem;
    margin: 0;
    max-width: 100%;
  }
  .proof__actors {
    display: flex;
    gap: calc(4.071rem * 2); /* 32px = 16 сверху + 16 снизу */
    flex-direction: column;
    height: calc(100% * 1.25);
    margin: 0 auto 12.2137rem;
    background-image: linear-gradient(
      to right,
      var(--background-black-50),
      var(--background-black-50)
    );
    background-repeat: no-repeat;
    background-size: calc(100% - 8.16rem) 0.2545rem; /* теперь линия горизонтальная */
    background-position: 1.0178rem 50%; /* сместите как нужно */
    max-width: 100%;
    padding: 0 4.07rem;
    background-position-x: center;
  }
  .actor__desc {
    margin-top: 0.508rem;
  }
  .actor__media {
    inline-size: 20.356rem;
    block-size: 20.356rem;
  }
  .actor[data-state="active"] .actor__media,
  .actor[data-state="paused"] .actor__media {
    z-index: 10;
  }

  /* видео — снизу */
  .actor__video {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
    z-index: 1;
  }

  /* кольцо — сверху */
  .actor__ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
  }
  .actor__media::after {
    inset: 0;
    z-index: 2;
    margin: auto;
    translate: 0;
    width: 4rem;
    height: 4rem;
  }
  .proof__actors .actor {
    padding: 0;
    width: 100%;
  }
  .actor:nth-child(2) {
    grid-template-columns: 1fr auto;
  }
  .proof__title.table,
  .trust__text.trust__downText.table {
    display: none;
  }
  .proof__title.mobile,
  .trust__text.trust__downText.mobile {
    display: block;
    white-space: pre-line;
  }
  .trust {
    padding: 8rem 4.0712rem 12rem;
  }
  .trust__container {
    inline-size: auto;
  }
  .trust__card--lg {
    padding: 5.0891rem 6.1069rem;
  }
  .trust__icon--hat {
    inline-size: 14.76rem;
    block-size: 14.76rem;
  }
  .trust__card.trust__card--lg div img {
    width: 14.76rem;
    height: 9.923rem;
    margin-block-end: 7.03rem;
  }
  .trust__card--lg .trust__title,
  .trust__card--lg .trust__text {
    max-inline-size: 100%;
    white-space: normal;
  }
  .trust__title {
    max-width: 71.246rem;
  }
  .trust__illust {
    width: min(100%, 67.43rem);
    padding: 0 0 12.468rem;
  }
  .trust__icon {
    margin-block-end: 0;
  }
  .trust__icon--dumbbell {
    margin-block-end: 15.012rem;
    inline-size: 14.503rem;
    block-size: 10.687rem;
  }
  .trust__icon--watch {
    margin-block-end: 15.012rem;
    inline-size: 10.178rem;
    block-size: 11.959rem;
  }
  .trust__card {
    padding: 5.0891rem 6.1069rem;
    margin-block-end: 4.071rem;
  }
  .solutions {
    padding: 12.2137rem 0;
  }
  .solutions__navigation-block {
    margin-top: 11.195rem;
  }
  .solutions__card {
    inline-size: min(66.257rem, 100%);
  }
  .solutions__flex {
    padding-inline: 4.071rem;
    scroll-padding-inline: 4.071rem;
    gap: 4.071rem;
  }
  .solutions__navigation-block {
    justify-content: space-between;
    padding: 0 4.071rem;
  }
  .solutions__navigation-block .tariff__cta {
    margin: 0;
    width: auto;
  }
  .solutions__navigation-block .solutions__nav {
    position: relative;
    right: 0; /* или нужный отступ */
  }
  .solutions__content {
    padding: 5.0891rem 6.1069rem;
  }
  .solutions__eyebrow {
    margin: 0 0 2.544rem 0;
  }
  .solutions__title {
    margin-bottom: 12.2137rem;
  }
  .solutions__nav {
    margin-top: 12.2137rem;
    margin-right: 4.0712rem;
  }
  .solutions__icon {
    --icon-size: 6.106rem;
  }
  .solutions__bar {
    bottom: 6.106rem;
  }
  #model-more .model__card .model__col.model__col--media {
    bottom: -12.722rem;
  }
  .model__arrow,
  .reviews__arrow {
    inline-size: 9.16rem;
    block-size: 9.16rem;
  }
  .model__arrow::after,
  .reviews__arrow::after,
  .legal__navArrow::after {
    inline-size: 3rem;
    block-size: 4.553rem;
  }
  .instr {
    padding: 20.3562rem 0;
  }
  .instr__slide {
    padding: 7.124rem 4.07rem;
  }
  .instr__card {
    padding: 8.1425rem 6.1069rem 0;
    inline-size: auto;
    width: 100%;
    max-inline-size: 91.8575rem;
    max-height: 100%;
  }
  .instr__card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
  }
/*   .instr__card-media {
  padding-top: 10.941rem;
} */
  .instr__icon {
    position: relative;
    padding-bottom: 8.1425rem;
    width: 14.503rem;
  }
  .instr__heading {
    margin: 2.035rem 0;
  }
  .instr__phone {
    inline-size: min(71.5rem, 100%); /* Было 71.5rem */
    height: auto;
  }
  .more {
    padding: 15.2672rem 0 12.2137rem;
  }
  .more__titleHeader {
    margin-bottom: 5.0891rem;
  }
  .more__title {
    margin: 0 auto 12.2137rem;
    max-width: 100%;
  }
  .more__tabs {
    margin: 0 4.071rem 6.1069rem;
    /* [СКРЫТО 2026-09] гасим width:fit-content из style.css: на мобилке плашка
       тянется по ширине экрана минус margin, а табы внутри скроллятся по горизонтали.
       fit-content здесь считался бы от 100% контейнера БЕЗ учёта margin -> горизонтальный сдвиг страницы. */
    width: auto;
    max-width: 100%;
    padding: 1.017rem;
  }
  .more__tabs > .legal__nav {
    gap: 1.017rem;
  }
  .more__tab {
    padding: 3.95rem 4.071rem;
  }
  .legal__navArrow {
    width: 20.356rem;
    height: 100%;
  }
  .legal__navArrow::after {
    padding-right: 5.089rem;
  }
  .more__track {
    max-width: 100%;
    gap: 16px;
  }
  .more__viewport {
    padding-inline: inherit;
    padding: 0 16px;
  }
  .model--hogwarts .hg__video::before {
    width: 16rem;
    height: 16rem;
  }
  .model--hogwarts .hg__play {
    width: 4.4583rem;
  }
  .more__card {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 361 / 642;
    border-radius: 24px !important;
  }
  .more__cardCol--text {
    padding: 12.2137rem 6.1069rem 0;
    text-align: center;
  }
  .more__card.more__card--community,
  .more__card.more__card--hogwarts {
    aspect-ratio: 361 / 642;
  }
  .more__card.more__card--community .community__content {
    max-inline-size: 100%;
  }
  .more__eyebrow {
    margin: 2.544rem 8.142rem 0;
  }
  .more__heading {
    margin-bottom: 2.544rem;
  }
  .more__heading br {
    display: none;
  }
  .more__cardCol--media-tripleman .more__illust {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 110.942rem;
    max-width: none;
  }
  .more__cardCol--media,
  .more__cardCol--media-tripleman {
    padding: 0 0 12.213rem;
    position: relative;
    overflow: visible;
  }
  .hogwartsCover__badge {
    width: 91.603rem;
    top: 55%;
  }
  #HogwartsModule {
    height: 11.195rem;
    position: sticky;
  }
  .hogwartsContent__btn {
    padding: 5.089rem;
  }
  .more__desc .br-none {
    display: block;
  }
  .more__slide {
    max-height: 152.617rem;
  }
  .more__slide[data-more-slide="4"] .more__cardCol--media {
    margin: 15.356rem 4.071rem 4.071rem 4.071rem;
  }
  .raffles__item img {
    object-position: top;
  }
  .raffles__cap {
    left: 9.414rem;
    right: 9.414rem;
    bottom: 15.776rem;
    max-width: 100%;
  }

  .raffles__item::after {
    max-height: 60%;
  }
  .more__slide[data-more-slide="4"] [data-raffles-dots].more__dots {
    bottom: 8.142rem;
    gap: 5.089rem;
  }
  .model__arrow--prev,
  .reviews__arrow--prev,
  .modal-rev__arrow--prev {
    left: 5.089rem;
  }
  .model__arrow--next,
  .reviews__arrow--next {
    right: 5.089rem;
  }
  .model__dialog .model__arrow--next,
  .model__dialog .reviews__arrow--next,
  .model__dialog .model__arrow--prev,
  .model__dialog .reviews__arrow--prev {
    inline-size: 9.16rem;
    block-size: 9.16rem;
  }

  .more__dots,
  .reviews__dots {
    gap: 5.089rem;
    padding: 3.816rem 8.015rem;
  }
  .more__container .more__dots {
    margin-top: 6.106rem;
  }
  .cta {
    --plus-box: 9.16rem;
    --plus-inset: 1.13rem;
    bottom: 6.106rem;
    right: 6.106rem;
    left: 6.106rem;
    height: 11.195rem;
    padding: 1.017rem;
    border-radius: 8px;
    height: 11.195rem;
  }
  .cta__cover {
    right: 1.017rem;
  }
  .cta__label {
    left: 6.79rem;
    height: 4.9rem;
  }
  .cta__plus img {
    width: 3.562rem;
    height: 3.562rem;
  }

  /* позиции — в процентах, чтобы карточка до ~770px ужималась без правок */
  .more__card.more__card--community .communityFaces__img.f1 {
    top: 0;
    left: 8.905rem;
    width: 16.539rem;
  }
  .more__card.more__card--community .communityFaces__img.f2 {
    top: 35.623rem;
    left: 11.45rem;
    width: 18rem;
  }
  .more__card.more__card--community .communityFaces__img.f3 {
    top: 14rem;
    right: 28.753rem;
    width: 23.575rem;
    left: auto;
  }
  .more__card.more__card--community .communityFaces__img.f4 {
    right: -1.25rem;
    top: -1rem;
    width: 23.847rem;
  }
  .more__card.more__card--community .communityFaces__img.f5 {
    top: 40.203rem;
    right: 8.396rem;
    width: 20rem;
  }
  .more__card.more__card--community .communityFaces__img.f6 {
    bottom: 34.605rem;
    left: 19.083rem;
    width: 23.083rem;
  }
  .more__card.more__card--community .communityFaces__img.f7 {
    top: auto;
    left: auto;
    bottom: 8.905rem;
    right: -3.5rem;
    width: 20.865rem;
  }
  .more__card.more__card--community .communityFaces__img.f8 {
    top: auto;
    bottom: 3.816rem;
    left: 8.396rem;
    width: 17.811rem;
  }
  .more__card.more__card--community .communityFaces__img.f9 {
    bottom: 13.486rem;
    left: auto;
    right: 33.333rem;
    width: 19.083rem;
  }
  .more__card.more__card--community .communityFaces__img.f10 {
    top: auto;
    bottom: 35.877rem;
    right: 8.651rem;
    width: 19.083rem;
  }
  .more__cardCol.more__cardCol--media .more__chatMock-content img {
    width: 86.514rem;
  }
  .more__cardCol.more__cardCol--media {
    margin-bottom: 0;
  }
  .more__chatMock-content img:nth-child(1) {
    max-width: 100%;
  }
  .cta .more__chatMock-content img:nth-child(1) {
    margin: 0;
    max-width: max-content;
    width: 100%;
  }
  .more__cardCol--media {
    padding: 0 2.799rem 12.2137rem;
  }
  .tariff {
    padding: 12.2137rem 16px 20.3562rem;
    margin-bottom: 0;
  }
  .tariff__title,
  .tariff__container {
    inline-size: auto;
    max-width: 100%;
  }
  .tariff__row {
    margin: 12.2137rem 0 10.1781rem;
    gap: 16px;
  }
  .tariff__content {
    padding: 5.089rem 3rem 8.231rem;
  }
  .tariff__chip {
    padding: 2.417rem 3.053rem;
  }
  .tariff__chips {
    gap: 2.035rem;
    max-width: 100%;
  }

  .tariff__card--sm,
  .tariff__card--lg {
    inline-size: 100%;
    aspect-ratio: 3 / 3.75;
  }
  .tariff__cta {
    width: 100%;
    padding: 3.816rem;
  }

  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(2) {
    order: 2;
    display: block;
  } /* Тренировки */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(3) {
    order: 3;
  } /* Розыгрыши */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(4) {
    order: 4;
  } /* Чат */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(5) {
    order: 5;
  } /* Йога */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(6) {
    order: 6;
  } /* Калькулятор КБЖУ */
  .tariff__card--lg .tariff__chips .tariff__chip:nth-child(7) {
    display: none;
  } /* Калькулятор КБЖУ */

  .headline {
    max-width: 86rem;
  }
  .reviews__head {
    /* margin: 20.3562rem 0 12.2137rem; */
    max-width: 100%;
    gap: 4.071rem;
  }
  .reviews__viewport {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .reviews__name {
    padding-top: 6.107rem;
  }
  .reviews__viewport .reviews__nav {
    margin: 12.213rem 0 0.2778rem;
  }
  .reviews__subtitle {
    max-width: 74rem;
  }
  .reviews {
    /* margin-bottom: 20.356rem 0 12.213rem; */
    padding: 12.2137rem 0;
  }
  .faq {
    padding: 12.2137rem 4.0712rem 20.3562rem;
  }
  .faq__container {
    gap: 12.2137rem;
  }
  .faq__q-text {
    padding-right: 8.1425rem;
  }
  .faq__a {
    padding-right: 0;
  }
  .faq__eyebrow {
    margin: 0;
  }
  .faq__q {
    padding: 4.071rem 0;
  }
  .faq__a-inner {
    padding: 3rem 0 4.071rem;
  }
  .faq__toggle {
    inline-size: 9.16rem;
    block-size: 9.16rem;
  }
  .faq__toggle svg {
    width: 3.562rem;
    height: 3.562rem;
  }
  .faq__title {
    margin-top: 5.089rem;
  }
  .plans {
    padding: 20.3562rem 0 12.2137rem;
  }
  .plan__bonuses{
      max-height: fit-content;
  }
  .plan{
      aspect-ratio: auto;
      max-height: max-content;
      min-height: auto;
  }
  .plan__body {
    padding: 5.089rem 6.106rem;
  }
  .plan__list {
    max-width: 100%;
  }
  .plans__container {
    margin: 0;
    padding: 0;
  }
  .plans__title,
  .plans__bar,
  .plans__grid {
    padding-inline: 4.0712rem; /* 47px */
  }
  .plans__title {
    text-align: center;
  }
  .plans__bar {
    display: flex;
    flex-direction: column;
    border-bottom: none;
    align-items: center;
    gap: 12.214rem;
    margin: 12.214rem 0 6.106rem;
    padding-bottom: 0;
  }
  .plans__toggle {
    margin: 0 auto !important;
    padding: 1.017rem;
    gap: 1.017rem;
  }
  .plan__head {
    padding: 5.089rem 5.089rem 3.053rem 6.106rem;
  }
  .plans__switch {
    inline-size: 10.1781rem; /* 40 / 3.93 */
    block-size: 6.1069rem; /* 24 / 3.93 */
  }
  .plans__switch-ui::after {
    inline-size: 5.0891rem; /* 20 / 3.93 */
    block-size: 5.0891rem; /* 20 / 3.93 */
    top: 0.5089rem; /* 2 / 3.93 */
    left: 0.5089rem; /* 2 / 3.93 */
  }
  .plans__period-input:checked + .plans__switch-ui::after {
    transform: translateX(4.0891rem); /* 20 / 3.93 */
  }
  /* divider exactly in the middle of the gap (between 2 items) */
  .plans__bar {
    display: grid;
    grid-template-rows: auto 0.2545rem auto; /* 1px / 3.93 */
    row-gap: 6.107rem; /* gap/2 (12.214/2) */
    justify-content: center;
  }

  .plans__bar::before {
    content: "";
    grid-row: 2;
    height: 0.2545rem; /* 1px / 3.93 */
    background: #cfd1d2;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .plans__period {
    gap: 2.5445rem;
    margin: 0 auto;
  }
  .plan__list,
  .plan__bonuses-list {
    gap: 3.053rem;
  }
  .plan__bonuses {
    margin-top: 8.142rem;
  }
  .plan__bonuses-title {
    margin-bottom: 3.053rem;
  }
  .plan__li {
    padding-left: 6.615rem;
  }
  .plan__li::before {
    width: 4.58rem;
    height: 4.58rem;
    background-size: 2rem;
  }
  .plans__tbtn {
    width: 35.114rem;
    height: 11.195rem;
  }
  .plans__grid {
    gap: 4.071rem;
  }
  .plan__foot {
    margin: 5.089rem;
  }
  .plan__foot .cta {
    position: sticky;
  }
  .plan__badge {
    top: 5.089rem;
    right: 5.089rem;
    padding: 1.272rem 3.562rem;
  }
  .plan__sub {
    margin: 0.508rem 0 8.142rem;
  }
  .is-desktop {
    display: none;
  }
  .is-mobile {
    display: block;
  }
  .footer {
    padding: 4.0712rem;
  }
  /* .footer__ticker {
    margin-bottom: 26.4631rem;
  } */
  .footer__logo {
    padding: 0 10.1781rem;
    /* margin-bottom: 8.142rem; */
  }
  .footer__mascot-img {
    height: 73.2824rem;
    width: auto;
    padding: 3.0534rem;
    max-width: 100%;
  }
  .footer__legal-btn {
    order: 2;
    padding: 8.1425rem 0 4.0712rem;
  }
  .footer__socials {
    gap: 8.142rem;
  }
  .footer__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    /* margin-top: 21.628rem; */
    margin-bottom: 6.106rem;
  }
  .footer__social svg {
    width: 5.089rem;
  }
  .footer__socials {
    order: 1;
  }
  .footer__copy {
    order: 3;
    text-align: center;
    max-width: 54rem;
  }
  .footer__ticker-track {
    margin-top: 8.142rem;
  }
  body.thanksPage {
    /* 16px */
    --thanks-pad-x: 4.0712rem;
    --thanks-card-h: 68.7023rem;
  }

  .thanks {
    padding-inline: var(--thanks-pad-x);
  }

  /* верхняя карточка: логотип -> картинка -> заголовок -> подтекст */
  .thanksHero {
    display: flex !important;
    flex-direction: column;

    /* высота 658px */
    min-block-size: 167.43rem;

    padding: 8.1425rem 6.1069rem 8.1425rem;
    gap: 0;
  }
  .thanksHero__left {
    display: contents !important;
  }

  .thanksHero__logo {
    order: 1;
    
    /* 60px между логотипом и SVG по центру */
    margin: auto auto 15.2672rem auto;
    inline-size: 30.5345rem;
  }
  .thanksHero__right {
    order: 2;
  }
  .thanksHero__title {
    order: 3;
  }
  .thanksHero__sub {
    order: 4;
  }
  /* делаем элементы внутри thanksHero переупорядочиваемыми */
  .thanksHero__left {
    display: contents;
  }

  .thanksHero__right {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15.2672rem;
  }

  .thanksHero__mascot {
    inline-size: clamp(56.9975rem, 70vw, 81.4249rem);
    margin-inline: auto;
    position: inherit;
    transform: none;
    --mascot-side-pad: clamp(4.0712rem, 6vw, 12.2137rem);
  }

  .thanksHero__title {
    order: 3;
    margin-top: 0;
  }

  .thanksHero__sub {
    order: 4;
    margin-top: 5.0891rem;
    max-inline-size: 100%;
  }

  /* 3 карточки - в столбик на всю ширину */
  .thanksCards {
    grid-template-columns: 1fr;
  }

  .storeBtn,
  .thanksBtn {
    inline-size: 100%;
  }
  .storeRow {
    gap: 4.071rem;
  }
  .storeBtn,
  .thanksBtn {
    height: 15.521rem;
  }
  .thanksBtn {
    font-size: 3.562rem;
  }
  /* чтобы на мобильном карточки не были слишком "жирными" по внутренним отступам */
  .thanksCard {
    padding: 5.0891rem 6.1069rem 6.1069rem;
  }
  .thanksCard--bot .thanksCard__text {
    max-width: 187px;
  }
  /* телефон в карточке бота чуть компактнее, чтобы не давил контент */
  .thanksCard__phone {
    height: 65.1399rem;
    right: 4.0712rem;
    bottom: -1.0178rem;
  }
  .model__dialog,
  .modal--reviews .modal__dialog,
  .legal__dialog,
  .model--hogwarts .model__dialog {
    height: 100%;
    max-height: 95%;
    width: 100%;
    max-width: 90%;
    inset: 0;
    padding: 0;
  }
  .modal {
    padding: 0;
  }
  .reviews__card {
    border-radius: 24px;
  }
  .model__col--text {
    padding: 25.445rem 10.178rem 0;
    text-align: center;
  }

  .legal__close {
    top: 4.071rem;
    right: 4.071rem;
    width: 9.16rem;
    height: 9.16rem;
  }
  .legal__closeIcon {
    width: 3rem;
    height: 3rem;
  }
  .model__heading {
    margin-bottom: 2.544rem;
  }
  .model__phone {
    width: 76.335rem;
  }
  .model__col--media {
    margin-top: 0;
  }
  .tile {
    border-radius: 4px;
  }
  /* ===============================
   DOM + GYM (LG) — 2 / 3 / 1
   =============================== */

  /* верхний ряд (2) */
  .tariff__card--lg .tariff__chip-all {
    grid-column: 1 / span 3;
  }

  .tariff__card--lg .tariff__chip:nth-child(2) {
    /* Тренировки */
    grid-column: 4 / span 3;
  }

  /* средний ряд (3) */
  .tariff__card--lg .tariff__chip:nth-child(5) {
    /* Розыгрыши */
    grid-column: 1 / span 2;
  }

  .tariff__card--lg .tariff__chip:nth-child(4) {
    /* Чат */
    grid-column: 3 / span 2;
  }

  .tariff__card--lg .tariff__chip:nth-child(3) {
    /* Йога */
    grid-column: 5 / span 2;
  }

  /* нижний ряд (1, по центру) */
  .tariff__card--lg .tariff__chip:nth-child(6) {
    /* Калькулятор КБЖУ */
    grid-column: 2 / span 4;
  }

  /* ===============================
     HOME (SM) — порядок как в дизайне
     =============================== */

  .tariff__card--sm:first-child .tariff__chip {
    order: 10;
  }

  .tariff__card--sm:first-child .tariff__chip:nth-child(5) {
    order: 1;
  } /* Бонусы */
  .tariff__card--sm:first-child .tariff__chip:nth-child(1) {
    order: 2;
  } /* Тренировки */
  .tariff__card--sm:first-child .tariff__chip:nth-child(6) {
    order: 3;
  } /* Розыгрыши */
  .tariff__card--sm:first-child .tariff__chip:nth-child(4) {
    order: 4;
  } /* Чат */
  .tariff__card--sm:first-child .tariff__chip:nth-child(2) {
    order: 5;
  } /* Йога */
  .tariff__card--sm:first-child .tariff__chip:nth-child(3) {
    order: 6;
  } /* КБЖУ */

  /* ===============================
     GYM (SM) — тот же порядок
     =============================== */

  .tariff__card--sm:last-child .tariff__chip {
    order: 10;
  }

  .tariff__card--sm:last-child .tariff__chip:nth-child(5) {
    order: 1;
  } /* Бонусы */
  .tariff__card--sm:last-child .tariff__chip:nth-child(1) {
    order: 2;
  } /* Тренировки */
  .tariff__card--sm:last-child .tariff__chip:nth-child(6) {
    order: 3;
  } /* Розыгрыши */
  .tariff__card--sm:last-child .tariff__chip:nth-child(4) {
    order: 4;
  } /* Чат */
  .tariff__card--sm:last-child .tariff__chip:nth-child(2) {
    order: 5;
  } /* Йога */
  .tariff__card--sm:last-child .tariff__chip:nth-child(3) {
    order: 6;
  } /* КБЖУ */
  .reviews__track {
    gap: 4.071rem;
  }
  .reviews__second {
    margin: 0 0 6.106rem 0;
  }
  .reviews__cta {
    padding: 3.944rem 0;
  }
  .reviews__fs-block {
    padding: 0 5.089rem 5.089rem 5.089rem;
  }
  .reviews__nav {
    margin: 12.213rem 4.071rem 12.213rem 0;
    gap: 4.071rem;
  }

  .modal-rev__left {
    flex: 0 0 131.806rem;
    max-height: 100%;
  }
  .modal-rev__slide {
    max-height: 100%;
  }
  .modal-rev__dots {
    bottom: 8.142rem;
    gap: 5.089rem;
  }
  .modal-rev__dot,
  .model .more__dot,
  .model .reviews__dot {
    width: 8px;
    height: 8px;
  }
  .modal-rev__right {
    padding: 7.124rem 8.142rem;
  }
  .footer__ticker-track span::after,
  .footer__ticker-item::after {
    width: 1.017811rem;
    height: 1.017811rem;
    margin: 0 6.106rem;
  }
  .legal__col.legal__col--nav {
    padding: 17.302rem 4.071rem 0;
  }
  .legal__nav {
    flex-direction: column;
    padding: 1.017rem;
    gap: 1.017rem;
  }
  .legal__nav li {
    width: 100%;
  }
  .legal__nav li button {
    padding: 3.944rem 0;
    text-align: center;
  }
  .legal__scroll {
    padding: 6.615rem 4.071rem;
  }

  .instr__slide {
    box-sizing: border-box;
  }

  /* карточка должна жить ВНУТРИ .instr__slide (после padding) */
  .instr__card {
    box-sizing: border-box;
    height: 100%;
    max-height: 100%;
    overflow: hidden;

    /* на мобилке лучше колонкой */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    /* PERF: blur теперь управляется из JS (как на десктопе) */
    will-change: transform, filter;
  }

  /* NOTE: content-visibility: hidden убран — он скрывал карточки полностью,
     из-за чего они резко "появлялись" при скролле вместо плавного подъёма.
     Карточки скрыты визуально через transform (ty: 90px) + blur — этого достаточно. */

  /* blur управляется из JS inline — CSS-правила убраны, чтобы не конфликтовали */

  /* очень важно: убрать десктопные margin/padding-left, которые могут ломать геометрию */
  .instr__card-content {
    margin: 0;
    max-width: none;
  }

  /* зона под телефон — это "остаток высоты", и она режет телефон */
  .instr__card-media {
    flex: 1 1 auto;
    min-height: 0; /* ключ: разрешить сжиматься ниже контента */
    width: 100%;
    overflow: hidden; /* режем телефон внутри */
    padding-left: 0; /* сброс десктопного */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* телефон прижат к низу */
    padding-top: 0;
  }
  .model--hogwarts .model__dialog {
    width: 91.857rem;
    height: 163.358rem;
  }



  .pay-modal__panel {
    width: 127.226rem;
    max-width: calc(100vw - 6.108rem);
  }
  
  .pay-modal__head {
    padding: 5.089rem 6.108rem;
  }
  
  .pay-modal__sub {
    margin-top: 1.019rem;
  }
  
  .pay-modal__body {
    padding: 6.108rem;
    transform: translateY(1.528rem);
  }
  
  .pay-modal__inputs {
    gap: 2.037rem;
    margin-bottom: 10.179rem;
  }
  
  .pay-modal__input {
    height: 12.722rem;
    padding: 0 11.198rem 0 6.108rem;
  }
  
  .pay-modal__warn {
    right: 3.562rem;
    width: 5.089rem;
    height: 5.089rem;
  }
  
  .pay-modal__error {
    margin-top: 2.543rem;
  }
  
  .pay-modal__section {
    margin-left: 1.019rem;
  }
  
  .pay-modal__body > .pay-modal__section + .pay-modal__section {
    margin-top: 8.134rem;
  }
  
  .pay-modal__sectionTitle {
    margin-bottom: 2.543rem;
  }
  
  .pay-modal__radio {
    gap: 3.052rem;
    padding: 2.037rem 0;
  }
  
  .pay-modal__radioUi {
    width: 5.089rem;
    height: 5.089rem;
  }
  
  .pay-modal__radioUi::after {
    inset: 2px;
  }
  
  .pay-modal__promo {
    grid-template-columns: 1fr 9.160rem;
    gap: 2.543rem;
    padding-bottom: 1.528rem;
  }
  
  .pay-modal__promoInput {
    height: 10.688rem;
    font-size: 4.071rem;
  }
  
  .pay-modal__promoBtn {
    width: 9.160rem;
    height: 9.160rem;
  }
  
  .pay-modal__agree {
    margin-top: 5.089rem;
    grid-template-columns: 4.580rem 1fr;
    gap: 3.052rem;
  }
  
  .pay-modal__checkUi {
    width: 5.089rem;
    height: 5.089rem;
  }
  
  .pay-modal__agreeText a {
    text-underline-offset: 0.253rem;
  }
  
  .pay-modal__actions {
    margin-top: 7.632rem;
  }
  
  .pay-modal__alt {
    margin-top: 6.108rem;
  }
  
  .pay-modal.is-open.is-content .pay-modal__body {
    transform: translateY(0rem);
  }
  .pay-modal__panel {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    border-left: 0;
  }

  /* чтобы не было зазора справа из-за max-width calc(...) на десктопе */
  .pay-modal__panel {
    right: 0;
  }
  /* ========== INFO BLOCK — mobile ========== */

  .info-block {
    padding: 12.2137rem 4.0712rem; /* 48px 16px */
  }

  .info-block__card {
    display: flex;
    flex-direction: column;
max-height: 240rem;
        height: 100%;
  }

  .info-block__text {
    padding: 12.2137rem 6.106rem; /* 20px */
    text-align: center;
  }

  .info-block__heading {
    margin-top: 4.0712rem;  /* 16px */
    margin-bottom: 4.0712rem; /* 16px */
  }

  .info-block__desc {
    margin-bottom: 6.1069rem; /* 24px */
  }

  .info-block__btn {
    margin: 0 auto;
    height: 11.195rem;
    width: 61rem;;
  }

  .info-block__visual {
    justify-content: center;
        align-items: flex-start;
  }

  .info-block__img {
    width: 100%;
    height: auto;
    object-fit: contain;
            object-position: 0 4.35rem;
  }

  /* ========== SUBSCRIPTION BLOCK — mobile ========== */
.sub-block__title {
    margin: 0 0 6.106rem 0;
    font-size: 14.25rem;
    
}
.sub-block__header{
    margin-bottom: 16.284rem;;
}
  .sub-block {
    padding: 12.2137rem 4.0712rem 20.356rem; /* 48px 16px 80px */
  }
.sub-block__subtitle{
        white-space: normal;
}
  .sub-block__grid {
    grid-template-columns: 1fr;
    gap: 4.0712rem; /* 16px */
  }
.sub-block__item-title{
    margin-bottom: 2.035rem;
}
  .sub-block__item {
      padding: 6.106rem;
    height: 58.5rem;
    justify-content: space-between;
  }
  .sub-block__icon{
      width: 9.16rem;
      height: 9.16rem;
  }
  .sub-block__icon img{
      width: 5.08rem;
      height: 5.08rem;
  }
  /* AUTH STEP — mobile */
  .pay-modal__auth {
    padding: 10.178rem;
  }
  .pay-modal__auth-close {
    top: 5.0891rem;
    right: 5.0891rem;
  }
  .pay-modal__auth-body {
    max-width: 100%;
  }
  .pay-modal__auth-title {
    margin-bottom: 3.0534rem;
  }
  .pay-modal__auth-desc {
    margin-bottom: 12.2137rem;
  }
  .pay-modal__auth-buttons {
    gap: 3.0534rem;
    max-width: 100%;
  }
  .pay-modal__auth-btn {
    grid-template-columns: 5.0891rem 1fr;
    gap: 3.0534rem;
    height: 12.7226rem;
    padding: 0 6.1069rem;
  }
  .pay-modal__auth-icon {
    width: 5.0891rem;
    height: 5.0891rem;
  }

  /* ===== «Личный кабинет» → «Войти» в hero (мобилка) ===== */
  .hero__account {
    top: 6.1069rem;        /* ~24px */
    right: 4.0711rem;      /* ~16px */
    height: 11.195rem;     /* 44px (как у CTA) */
    padding: 0 4.0711rem;  /* ~16px */
  }
  .hero__account-full  { display: none; }    /* мобилка — короткое «Войти» */
  .hero__account-short { display: inline; }

  /* CTA: на первом экране (пилюля сверху) показываем «Записаться»,
     когда хедер уходит вниз (--bottom) — полное «Записаться на поток» */
  .hero__cta { width: auto; padding-inline: 4.0711rem; }
  .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; }

  /* «Личный кабинет» на thanks (мобилка) */
  .thanksHero__account {
    order: 5;              /* под текстом (sub = order 4) — кнопка снизу, как в дизайне */
    height: 11.195rem;     /* 44px */
    margin-top: 3.0534rem; /* ~12px */
    padding: 0 6.3603rem;  /* ~25px */
  }

  /* Хедер на первом экране — прижат влево; в нижнем состоянии (--bottom) — снова по центру */
  .hero__top-pill:not(.hero__top-pill--bottom) {
    margin-inline: 4.0711rem auto;   /* ~16px слева, справа auto */
  }
}

/* ═══ [ПРАВКА 2026-07] Reviews: статичная колонка на телефонах ═══
   Класс .reviews__viewport--static ставит reviews.js, когда карточек ≤ 5
   и ширина окна ≤ 480px (30rem). Вернуть карусель: reviews.js → REVIEWS_STATIC_MAX = 0. */
@media (max-width: 30rem) {
  .reviews__viewport--static .reviews__track {
    flex-direction: column; /* track на мобилке — flex (tablet.css) */
    gap: 4.0712rem; /* ≈16px при root 1vw — как прежний gap карусели (~1rem дизайна) */
    transform: none !important; /* сбрасываем сдвиг карусели */
    transition: none;
  }
  .reviews__viewport--static .reviews__card {
    flex: 0 0 auto !important; /* вместо 0 0 100% слайдера */
  }
  .reviews__viewport--static .reviews__nav {
    display: none; /* стрелки/точки без карусели не нужны */
  }
}
/* ═══ /[ПРАВКА 2026-07] ═══ */
