body {
    overflow: auto !important;
    overflow-x: hidden;
    user-select: text;
    -webkit-user-select: text;
    -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
}

body .about-page {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
}

/* About: шапка в самом верху страницы, при скролле — sticky к верху окна */
.about-header {
    position: -webkit-sticky;
    position: fixed;
    top: 0;
    left: auto;
    right: auto;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    flex-shrink: 0;
}

/* Якорь «How it works» — отступ сверху под sticky-шапку при scrollIntoView */
.about-how-it-works-target,
.about-faq-target {
    scroll-margin-top: 120px;
}
@media (max-width: 1100px) {
    .about-how-it-works-target,
    .about-faq-target {
        scroll-margin-top: 88px;
    }
}

.about-header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-header-link {
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.about-header-link:hover {
    color: #fff;
    background: rgba(255, 158, 75, 0.15);
}

.about-header-link:active {
    background: rgba(255, 91, 75, 0.2);
}

.about-header-lang {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.about-header-lang-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.2s;
}

.about-header-lang-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-header-lang-btn.active {
    color: #fff;
    background: linear-gradient(133deg, rgba(255, 158, 75, 0.9) 0%, rgba(255, 91, 75, 0.9) 100%);
    border-color: rgba(255, 158, 75, 0.5);
}

/* Мобильная версия — burger в правом углу */
@media (max-width: 800px) {
    .about-header {
        height: 60px;
        min-height: 60px;
        padding: 5px 15px;
    }
    .about-header-desktop {
        display: none;
    }
    .about-header-burger {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
    }
    .about-header-burger-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.9);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .about-header-burger-btn:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    .about-header-mobile-menu-root {
        position: fixed;
        inset: 0;
        z-index: 200;
    }

    .about-header-mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        z-index: 201;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 24px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }
    .about-header-mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }

    /* Телефоны: панель меню в потоке, по центру экрана (relative), без прилипания к краю */
    @media (max-width: 480px) {
        .about-header-mobile-menu-root {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
            pointer-events: none;
        }

        .about-header-mobile-menu-overlay {
            position: absolute;
            inset: 0;
            z-index: 0;
            pointer-events: auto;
        }

        .about-header-mobile-menu {
            position: relative;
            top: auto;
            right: auto;
            bottom: auto;
            left: auto;
            z-index: 1;
            width: min(340px, calc(100vw - 32px));
            max-height: min(85vh, calc(100dvh - 32px));
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            border-left: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
            pointer-events: auto;
        }
    }
    .about-header-mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .about-header-mobile-nav .about-header-link {
        width: 100%;
        padding: 14px 20px;
        text-align: left;
        border-radius: 10px;
    }
    .about-header-mobile-lang {
        display: grid;
        grid-template-columns: repeat(4, auto);
        gap: 15px;
        justify-content: center;
        justify-items: center;
    }
    .about-header-mobile-lang-label {
        grid-column: 1 / -1;
        width: 100%;
        font-size: 12px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.5);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 4px;
    }
}
@media (min-width: 801px) {
    .about-header-desktop {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        width: 100%;
    }
    .about-header-burger {
        display: none;
    }
}

.about-title {
    margin: 0;
    padding: clamp(16px, 5vw, 48px) clamp(12px, 4vw, 32px);
    font-size: clamp(16px, 4.5vw, 45px);
    font-weight: 700;
    text-align: center;
    color: #fff;
}

.about-title-accent {
    color: #FF9E4B;
}

/* Резиновая типографика — на мобиле шрифты заметно меньше, на десктопе — крупнее */
body .about-page .about-text-intro {
    font-size: clamp(11px, 1.8vw + 0.5rem, 38px);
    line-height: 1.3;
    padding: 0 clamp(12px, 4vw, 32px);
}

@media (max-width: 480px) {
    body .about-page .about-text-intro,
    body .about-page .about-safe-text {
        font-size: clamp(11px, 2.2vw + 0.35rem, 16px);
    }
}

@media (max-width: 360px) {
    body .about-page .about-text-intro,
    body .about-page .about-safe-text {
        font-size: 12px;
    }
}

body .about-page .about-heading {
    font-size: clamp(16px, 3vw + 1.5rem, 41px);
    line-height: 1.2;
    margin: clamp(24px, 5vw, 70px) auto;
}

body .about-page .about-tariff-benefit {
    font-size: clamp(11px, 1.8vw + 0.5rem, 23px);
}

body .about-page .about-tariff-price {
    font-size: clamp(24px, 3.5vw + 1rem, 53px);
}

body .about-page .about-tariff-period {
    font-size: clamp(11px, 1.5vw + 0.5rem, 23px);
}

body .about-page .about-tariff-toggle-btn {
    font-size: clamp(11px, 1.2vw + 0.5rem, 17px);
}

body .about-page .about-tariff-submit {
    font-size: clamp(13px, 1.5vw + 0.5rem, 20px);
}

body .about-page .about-step-label {
    font-size: clamp(12px, 1.3vw + 0.5rem, 18px);
}

body .about-page .about-step-text {
    font-size: clamp(14px, 1.8vw + 0.6rem, 40px);
    font-weight: 700;
}

/* От 1860px и выше — шрифт шагов уменьшается сильнее с ростом экрана */
@media (min-width: 1860px) {
    body .about-page .about-step-text {
        font-size: clamp(20px, 80px - 2vw, 40px);
    }
}

body .about-page .about-step-text a:hover {
    text-decoration: underline;
}

body .about-page .about-step3-discord-link:hover {
    text-decoration: underline;
}

body .about-page .about-safe-text {
    font-size: clamp(11px, 1.8vw + 0.5rem, 38px);
    line-height: 1.3;
    font-weight: 700;
    color: #ACACAC;
}

body .about-page .about-footer-logo {
    font-size: clamp(11px, 1.3vw + 0.5rem, 18px);
}

body .about-page .about-footer-logo-img {
    max-width: 200px;
}

body .about-page .about-footer-links {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
}

body .about-page .about-page-footer {
    padding-left: 65px !important;
    padding-right: 65px !important;
}

body .about-page .about-scroll-btn {
    font-size: clamp(12px, 1.2vw + 0.5rem, 16px);
}

/* Паддинги и размеры карточек — адаптивны, на мобиле компактнее */
body .about-page .about-step-card {
    padding: clamp(12px, 2.5vw, 24px);
}

body .about-page .about-steps-section {
    display: flex;
    flex-direction: column;
    gap: clamp(25px, 3vw, 50px);
    width: 100%;
    margin: 0 auto 48px;
}

body .about-page .about-steps-row {
    display: flex;
    width: 100%;
    gap: 50px;
    padding-left: 65px;
    padding-right: 65px;
}

body .about-page .about-step-card-full {
    margin-left: 65px;
    margin-right: 65px;
    width: auto;
    max-width: none;
}

body .about-page .about-step-card-full-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 32px);
    flex-wrap: wrap;
}

body .about-page .about-step-card-full-text {
    flex: 1 1 240px;
    min-width: 0;
}

body .about-page .about-step3-qr-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
}

body .about-page .about-step3-qr {
    display: block;
    width: clamp(96px, 16vw, 152px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    vertical-align: top;
}

@media (max-width: 670px) {
    body .about-page .about-step3-qr-link {
        display: none !important;
    }
}

/* Step 1 и Step 2 в одну линию, равная ширина 1fr 1fr при ширине > 800px; ниже 800px — друг под другом */
@media (min-width: 801px) {
    body .about-page .about-steps-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    body .about-page .about-step-card {
        max-width: none;
    }
}
@media (max-width: 800px) {
    body .about-page .about-steps-row {
        flex-direction: column;
        gap: 25px;
        padding-left: 25px;
        padding-right: 25px;
    }
    body .about-page .about-step-card-full {
        margin-left: 25px;
        margin-right: 25px;
    }
    body .about-page .about-step-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    body .about-page .about-page-footer {
        flex-direction: column;
        gap: 25px;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

body .about-page .about-tariff-card {
    padding: clamp(20px, 4vw, 32px) clamp(16px, 3vw, 24px);
}

/* На мобиле — ширина 100%, высота 97vh для прокрутки; на ПК высоту задаёт useViewportBanner */
@media (max-width: 1000px) {
    body .about-page .about-banner-main{
        width: 100% !important;
        min-height: 97vh !important;
        height: 97vh !important;
    }
}