/* ============================================================
   MOBILE LAYOUT — applies at <= 560px.
   Converts the absolute 1728px desktop design into a clean
   vertical flow. Desktop (>560px) is untouched.
   ============================================================ */
.mobile_divider{
  display: none;
}
@media (max-width: 560px) {

  /* ---------- base / scaler reset ---------- */
  .page-scale { height: auto !important; overflow: visible; }
  .page {
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    overflow: hidden;
  }

  :root { --m-pad: 8px; }

  /* generic section reset */
  .hero, .pr, .ban, .photo, .how, .price,
  .trener, .equ, .que, .contact, .footer {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  /* buttons become full-width inline blocks */
  .btn {
    position: static;
    left: auto; top: auto;
    width: 100%;
    max-width: 320px;
    height: 56px;
  }

  /* hide giant decorative watermarks (they overflow on mobile) */
  .price__watermark{
    top: -17px;
    transform: translateX(-141px);
    font-size: 94px;
  }
  .photo__watermark{
    font-size: 99px;
  }

  /* shared section heading sizing */
  .how__heading,
  .price__heading,
  .trener__heading,
  .equ__heading,
  .que__heading,
  .contact__heading {
    position: static;
    left: auto; top: auto;
    transform: none;
    width: 100%;
    padding: 0 var(--m-pad);
    font-size: 30px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  /* ============================================================
     HERO
     ============================================================ */
  .hero { height: auto; padding: 112px 0 0;}

  .hero__slider-wrap {
    position: relative;
    inset: auto;
    height: auto;
    z-index: 1;
  }
  .hero__slider {
    width: 100%;
    height: auto;
    display: grid;
  }
  .hero__slide {
    position: relative;
    grid-area: 1 / 1;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: 870px;
    padding: 515px var(--m-pad) 50px;
    overflow: hidden;
    text-align: center;
  }

  .hero__bg { position: absolute; inset: 0; }
  .hero__bg-photo {
    width: 100%;
    height: 100%;
    background-image: url('../images/png/sl_01_mob.jpg');
    background-size: cover;
    background-position: 50% 0%;
  }
  .hero__slide--equipment .hero__bg-photo {
    background-image: url('../images/png/sl_02_mob.jpg');
  }

  /* in-slide content -> static flow, z-index above .hero__bg */
  .hero__cta-top { display: none; }
  .hero__title {
    position: relative;
    z-index: 2;
    left: auto; top: auto;
    width: 100%;
    font-size: 29px;
    line-height: 34px;
    text-align: center;
  }
  .hero__subtitle {
    position: relative;
    z-index: 2;
    left: auto; top: auto;
    width: 100%;
    margin-top: 16px;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
  }
  .hero__price {
    position: relative;
    z-index: 2;
    left: auto; top: auto;
    height: auto;
    margin-top: 26px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: center;
  }
  .hero__price-from { position: static; }
  .hero__price-value { position: static; left: auto; top: auto; font-size: 50px; }
  .hero__price-rub { position: static; left: auto; top: auto; display: inline-block; vertical-align: middle; }
  .hero__price-period { position: static; left: auto; top: auto; }
  .hero__cta-bottom {
    position: relative;
    z-index: 2;
    margin-top: 20px;

    left: 50%;
    top: auto;
    transform: translateX(-50%);
  }

  /* fixed overlay: logo repositioned below header bar */
  .logo {
    position: absolute;
    left: 50%;
    top: 128px;
    transform: translateX(-50%);
    z-index: 5;
  }
  .hero__nav { display: none; }
  .hero__header-booking {
    display: block;
    position: absolute;
    left: 153px;
    right: 64px;
    top: 79px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    text-decoration: underline;
    white-space: nowrap;
    z-index: 5;
  }
  .hero__profile-btn {
    position: absolute;
    left: auto;
    right: 7px;
    top: 62px;
    width: 50px;
    height: 50px;
    z-index: 5;
  }

  /* Burger → gradient "Меню" button */
  .hero__burger {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    left: 7px;
    top: 62px;
    width: 139px;
    height: 50px;
    padding: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffc587, #f7ad5d);
    z-index: 5;
    cursor: pointer;
  }
  .hero__burger-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: 14px;
    flex-shrink: 0;
  }
  .hero__burger-bars span:nth-child(1),
  .hero__burger-bars span:nth-child(3) {
    display: block;
    width: 27px;
    height: 3px;
    background: #000;
    border-radius: 1.5px;
  }
  .hero__burger-bars span:nth-child(2) {
    display: block;
    width: 18px;
    height: 3px;
    background: #000;
    border-radius: 1.5px;
  }
  .hero__burger-label {
    flex: 1;
    text-align: center;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 17px;
    color: #000;
    padding-right: 8px;
  }

  /* ============================================================
     MOBILE MENU — redesigned to match Figma "Главное меню"
     ============================================================ */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #1e1812;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-menu { visibility: visible; opacity: 1; }

  /* Top bar inside the menu */
  .mobile-menu__topbar {
    position: relative;
    height: 121px;
    flex-shrink: 0;
  }
  .mobile-menu__close {
    position: absolute;
    left: 7px;
    top: 62px;
    width: 139px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffc587, #f7ad5d);
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    cursor: pointer;
    border: none;
  }
  .mobile-menu__close-icon {
    position: relative;
    width: 21px;
    height: 21px;
    margin-left: 14px;
    flex-shrink: 0;
  }
  .mobile-menu__close-icon span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 27px;
    height: 3px;
    background: #000;
    border-radius: 1.5px;
  }
  .mobile-menu__close-icon span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .mobile-menu__close-icon span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .mobile-menu__close-label {
    flex: 1;
    text-align: center;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 17px;
    color: #000;
    padding-right: 8px;
  }
  .mobile-menu__topbar-link {
    position: absolute;
    left: 153px;
    right: 64px;
    top: 79px;
    text-align: center;
    font-size: 14px;
    color: #fff;
    text-decoration: underline;
    white-space: nowrap;
  }
  .mobile-menu__topbar-profile {
    position: absolute;
    right: 7px;
    top: 62px;
    left: auto;
    width: 50px;
    height: 50px;
  }
  .mobile-menu__topbar-profile img { width: 50px; height: 50px; }

  /* Navigation links */
  .mobile-menu__nav {
    padding-left: 88px;
    margin-top: 13px;
  }
  .mobile-menu__nav a {
    display: block;
    font-size: 22px;
    font-family: var(--font-text);
    color: #fff;
    line-height: 59px;
    text-decoration: none;
  }
  .mobile-menu__nav a:hover { color: var(--color-accent-1); }

  /* Separator */
  .mobile-menu__sep {
    height: 1px;
    background: rgba(217, 217, 217, 0.2);
    margin: 16px 8px 0;
  }

  /* CTA */
  .mobile-menu__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 216px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ffc587, #f7ad5d);
    color: #000;
    font-size: 16px;
    font-family: var(--font-text);
    white-space: nowrap;
    text-decoration: none;
    margin: 34px auto 0;
  }

  /* Logo (dimmed) */
  .mobile-menu__logo {
    position: relative;
    text-align: center;
    margin-top: 23px;
    padding-top: 40px;
    height: 130px;
  }
  .mobile-menu__logo-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 40px;
  }
  .mobile-menu__logo-icon img { width: 100%; height: 100%; }
  .mobile-menu__logo-name {
    display: block;
    font-family: var(--font-watermark);
    font-size: 41px;
    color: #5c5c5c;
    line-height: 1;
    margin-top: 18px;
  }
  .mobile-menu__logo-tag {
    display: block;
    font-size: 12px;
    color: #838383;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 8px;
  }
  .mobile-menu__logo-divider {
    display: block;
    height: 0.5px;
    background: rgba(217, 217, 217, 0.3);
    width: 163.5px;
    margin: 16px auto 0;
  }

  /* Social icons */
  .mobile-menu__social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 38px;
    opacity: 0.5;
  }
  .mobile-menu__social img { height: 32px; width: auto; }

  /* Documents */
  .mobile-menu__docs {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: #fff;
    line-height: 30px;
  }

  /* Disclaimer */
  .mobile-menu__disclaimer {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 22px;
    margin: 24px 12px 40px;
  }

  /* slider controls pinned to bottom */
  .hero__carousel-nav {
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 5;
  }

  /* ============================================================
     PR — 4 features stacked
     ============================================================ */
  .pr { padding: 40px var(--m-pad); }
  .pr__line { display: none; }
  .pr__item {
    position: static;
    left: auto; top: auto;
    width: 100%;
    margin-bottom: 34px;
  }
  .pr__item:last-child { margin-bottom: 0; }
  .pr__num { font-size: 80px; line-height: 40px; }
  .pr__title { white-space: normal; }
  .pr__text { width: 84% !important; margin-top: 16px; }

  /* ============================================================
     BAN
     ============================================================ */
  .ban { padding: 0 var(--m-pad) 0; }
  .ban__card {
    position: relative;
    left: auto; top: auto;
    width: 100%;
    aspect-ratio: 379 / 589;
    height: auto;
    border-radius: 20px;
  }
  .ban__photo {
    width: 100%;
    height: 100%;
    background-image: url('../images/png/ban-photo_mob.png');
    background-size: cover;
    background-position: 50% 0%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ban__text {
    position: absolute;
    left: 50%;
    top: 55%;
    transform: translateX(-50%);
    width: 85%;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
  }
  .ban__price {
    position: absolute;
    left: 50%;
    top: 77%;
    transform: translateX(-50%);
    height: auto;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
  }
  .ban__price-from,
  .ban__price-value,
  .ban__price-rub,
  .ban__price-period { position: static; left: auto; top: auto; }
  .ban__price-from,
  .ban__price-period { font-size: 14px; }
  .ban__price-value { font-size: 50px; }
  .ban__price-rub { display: inline-block; vertical-align: middle; }
  .ban__cta {
    position: absolute;
    left: 50%;
    top: 86%;
    transform: translateX(-50%);
    margin: 0;
  }

  /* ============================================================
     PHOTO gallery
     ============================================================ */
  .photo { padding: 40px var(--m-pad); }
  .photo__heading {
    position: static;
    left: auto; top: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .photo__heading-mark { position: static; width: 90px; height: 80px; }
  .photo__heading-rule { display: none; }
  .photo__heading-text {
    position: static;
    left: auto; top: auto;
    width: 100%;
    margin-top: 16px;
    font-size: 22px;
    line-height: 32px;
  }
  .photo__toolbar {
    position: static;
    left: auto; top: auto;
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 12px;
    background: transparent;
    padding: 0;
    margin-top: 24px;
  }
  .photo__toolbar .btn { position: static; left: auto; top: auto; margin: 0 auto; }
  .photo__toolbar-link {
    position: static;
    left: auto; top: auto;
    width: 100%;
    height: auto;
  }
  .photo__slider-wrap {
    position: static;
    left: auto; top: auto;
    width: 100%;
    height: auto;
    margin-top: 24px;
    overflow: hidden;
  }
  .photo__card {
    width: 86vw !important;
    max-width: 404px;
    height: 220px !important;
    margin: 0;
  }
  .photo__card-inner { transform: none !important; }
  .photo__nav {
    position: relative;
    left: auto; top: auto;
    transform: none;
    margin: 22px auto 0;
  }

  /* ============================================================
     HOW
     ============================================================ */
  .how { padding: 40px var(--m-pad); }
  .how__heading { margin-bottom: 24px; }
  .how__card {
    position: relative;
    left: auto; top: auto;
    width: 100%;
    aspect-ratio: 379 / 261;
    height: auto;
    border-radius: 20px;
  }
  .how__photo {
    background-image: url('../images/png/how-photo_mob.png');
    background-position: 50% 50%;
  }
  .how__card-fade { display: none; }
  .how__card img.how__play {
    width: 70px;
    height: 49px;
  }
  .how__step {
    position: static;
    left: auto; top: auto;
    width: 100%;
    margin-top: 28px;
    text-align: left;
    padding: 0 43px;
  }
  .how__step-num { position: static; }
  .how__step-text { position: static; top: auto; margin-top: 14px; }
  .how__arrow { display: none; }
  .how__step-arrow {
    display: block;
    width: 24px;
    height: 60px;
    margin: 24px 0 0 49px;
  }

  /* ============================================================
     PRICE
     ============================================================ */
  .price { padding: 40px var(--m-pad); }
  .price__heading { margin-bottom: 28px; }
  .price__lines { display: none; }
  .price__item {
    position: static;
    left: auto; top: auto;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .price__time {
    position: static;
    left: auto; top: auto;
    width: auto;
    justify-content: flex-start;
  }
  .price__rule { display: none; }
  .price__cost {
    position: static;
    left: auto; top: auto;
    width: auto;
    text-align: right;
  }
  .price__cost-value { font-size: 34px; }
  .price__cta {
    position: static;
    left: auto; top: auto;
    margin: 30px auto 0;
  }
  .price__cost-rub {
    width: 12px;
    height: 16px;
  }
  .price__cost-period {
    font-size: 12px;
  }

  /* ============================================================
     TRENER
     ============================================================ */
  .trener { padding: 40px var(--m-pad); }
  .trener__intro {
    position: static;
    left: auto; top: auto;
    transform: none;
    width: 100%;
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 24px;
  }
  .trener__slider-wrap { display: none; }
  .trener__cta {
    position: static;
    left: auto; top: auto;
    margin: 28px auto 0;
  }

  .trener-mobile { display: block; margin-top: 24px; }
  .trener-mobile__cards {
    position: relative;
    width: 100%;
    aspect-ratio: 345 / 452;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
  }
  .trener-mobile__card {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  .trener-mobile__card.is-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
  }
  .trener-mobile__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .trener-mobile__fade {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%);
  }
  .trener-mobile__name {
    position: absolute;
    left: 50%;
    top: 73%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 26px;
    color: var(--color-white);
    white-space: nowrap;
  }
  .trener-mobile__exp {
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: var(--color-white);
  }
  .trener-mobile__desc {
    position: absolute;
    left: 50%;
    top: 88%;
    transform: translateX(-50%);
    width: 88%;
    text-align: center;
    font-size: 14px;
    line-height: 22px;
    color: #c7c7c7;
  }
  .trener-mobile__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
  }
  .trener-mobile__arrow {
    position: relative;
    width: 26px;
    height: 15px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .trener-mobile__arrow img {
    position: absolute;
    top: 0;
    width: 280px;
    height: 15px;
    max-width: none;
    pointer-events: none;
  }
  .trener-mobile__arrow--prev img { left: 0; }
  .trener-mobile__arrow--next img { left: -254px; }
  .trener-mobile__dots {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .trener-mobile__dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(217, 217, 217, 0.4);
    transition: background 0.25s ease;
  }
  .trener-mobile__dots button.is-active { background: #f8af61; }

  /* ============================================================
     EQU — 2-column grid
     ============================================================ */
  .equ { margin-top: 0;
    padding: 35px var(--m-pad) 0; display: flex; flex-wrap: wrap; gap: 10px; }
  .equ__heading {
    flex: 0 0 100%;
    order: -1;
    margin-bottom: 32px;
  }
  .equ__watermark{
    top: -11px;
    transform: translateX(-246px);
    font-size: 79px;
  }
  .equ__card {
    position: relative !important;
    left: auto !important; top: auto !important;
    width: calc(50% - 5px) !important;
    height: 192px !important;
  }
  .equ__label { font-size: 14px; left: 14px; bottom: 16px; white-space: normal; }

  /* ============================================================
     QUE — FAQ + contacts
     ============================================================ */
  .que { padding: 40px var(--m-pad); }
  .que__heading { margin-bottom: 24px; }
  .que__faq {
    position: static;
    left: auto; top: auto;
    width: 100%;
  }
  .que__row { width: 100%; padding: 22px 48px 22px 20px; }
  .que__row-q { font-size: 16px; }
  .que__row-a { font-size: 18px; line-height: 28px; }
  .que__chevron { right: 20px; }
  .que__divider { display: none; }
  .que__tel {
    position: static;
    left: auto; top: auto;
    width: 100%;
    margin-top: 40px;
  }
  .que__messengers {
    position: relative;
    left: auto; top: auto;
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0;
  }
  .que__watermark{
    top: -3px;
    transform: translateX(-230px);
    font-size: 76px;
  }

  /* ============================================================
     CONTACT
     ============================================================ */
  .contact { padding: 0 var(--m-pad); }
  .contact__watermark{
    top: -25px;
    transform: translateX(-217px);
    font-size: 88px;
  }
  .contact__heading { margin-bottom: 46px;
    margin-top: 25px; }
  .contact__map {
    position: relative;
    left: auto; top: auto;
    width: 100%;
    height: 360px;
  }
  .contact__map img {top: -176px; left: -458px;}
  .contact__map img.contact__map-pin{
    left: 230px;
    top: 164px;
  }
  .contact__card {
    position: relative;
    left: auto; top: auto;
    width: 100%;

    margin: 18px auto 0;
  }
  .contact__card-city{
    width: auto;
  }
  .contact__card-logo{
    text-align: center;
    display: flex;
    justify-content: center;
  }
  .contact__card-cta.btn { left: auto; top: auto; }

  /* ============================================================
     FOOTER
     ============================================================ */
  .footer {
    height: auto;
    padding: 40px var(--m-pad);
    margin-top: 0;
    padding-top: 0;
  }
  .footer__nav {
    display: none;
    position: static;
    left: auto; top: auto;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 22px;
    font-size: 16px;
  }
  .footer__cta {
    position: static;
    left: auto; top: auto;
    margin: 24px auto 0;
    display: none;
  }
  .footer__profile-btn { display: none; }
  .footer__logo {
    position: static;
    left: auto; top: auto;
    transform: none;
    margin: 30px auto 0;
  }
  .footer__social {
    position: static;
    left: auto; top: auto;
    transform: none;
    margin: 26px auto 0;
    justify-content: center;
  }
  .footer__dogovor {
    position: static;
    left: auto; top: auto;
    transform: none;
    margin: 26px auto 0;
    justify-content: center;
    text-align: center;
  }
  .footer__disclaimer {
    position: static;
    left: auto; top: auto;
    transform: none;
    width: 100%;
    margin: 24px auto 0;
  }
  .mobile_divider{
    display: block;
  }
}
