/* ==========================================================================
   MORE VPS — адаптивность
   Desktop-first: от широких экранов к узким. Внутри каждого брейкпоинта
   сохранён исходный порядок правил.
   ========================================================================== */

/* ===== ≤ 980px — планшеты ===== */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .pricing-cards { flex-direction: column; align-items: center; }
    .price-card-glass { width: 100%; max-width: 400px; }
    .price-card-glass.popular { transform: none; }
    .price-card-glass.popular:hover { transform: translateY(-8px); }
}

/* ===== ≤ 700px — компактная мобильная вёрстка (раньше — блок <style> в index.html) ===== */
@media (max-width: 700px) {
    html { font-size: 14px; }
    body { overflow-x: hidden; }
    .wrap { width: min(100% - 20px, 560px); margin: 0 auto; }

    .glass-header {
        padding: 10px 12px !important;
        margin: 10px 0 16px !important;
        border-radius: 20px !important;
        gap: 8px !important;
        min-height: 0 !important;
    }
    .brand { gap: 9px !important; }
    .logo { width: 42px !important; height: 42px !important; font-size: 20px !important; }
    .brand strong { font-size: 15px !important; }
    .brand small { font-size: 10px !important; }
    .glass-header nav {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px !important;
        width: 100%;
    }
    .glass-header nav a {
        min-height: 34px !important;
        padding: 7px 9px !important;
        font-size: 12px !important;
        text-align: center;
        white-space: nowrap;
        border-radius: 14px !important;
    }
    .glass-header nav .btn-free { padding: 7px 9px !important; }

    .hero {
        padding: 10px 0 20px !important;
        gap: 18px !important;
    }
    .hero h1 { font-size: clamp(28px, 8vw, 40px) !important; line-height: 1.05 !important; margin-bottom: 12px !important; }
    .lead { font-size: 15px !important; line-height: 1.45 !important; margin-bottom: 12px !important; }
    .badges { gap: 6px !important; }
    .badge { padding: 7px 9px !important; font-size: 11px !important; }
    .cta-mega-wrap { margin-top: 14px !important; }
    .cta-mega-btn {
        min-height: 54px !important;
        padding: 9px 12px !important;
        border-radius: 16px !important;
    }
    .cta-mega-icon { font-size: 20px !important; }
    .cta-mega-title { font-size: 14px !important; }
    .cta-mega-sub { font-size: 10px !important; }
    .cta-perks { gap: 7px !important; margin-top: 9px !important; flex-wrap: wrap; font-size: 10px !important; }
    .hero-visual { display: none !important; }

    section { margin-top: 18px !important; }
    .section-title { font-size: 25px !important; line-height: 1.1 !important; margin-bottom: 7px !important; }
    .section-subtitle { font-size: 13px !important; line-height: 1.45 !important; margin-bottom: 14px !important; }
    .features { gap: 12px !important; }
    .feature {
        padding: 18px !important;
        border-radius: 22px !important;
    }
    .feature-icon { width: 52px !important; height: 52px !important; font-size: 24px !important; margin-bottom: 12px !important; }
    .feature h3 { font-size: 19px !important; line-height: 1.2 !important; margin-bottom: 7px !important; }
    .feature p { font-size: 13px !important; line-height: 1.45 !important; }

    .pricing-section { padding-top: 4px !important; }
    .pricing-cards { gap: 12px !important; }
    .price-card-glass {
        padding: 18px !important;
        border-radius: 22px !important;
    }
    .card-title { font-size: 18px !important; }
    .price { font-size: 30px !important; margin: 8px 0 12px !important; }
    .features-list { gap: 7px !important; font-size: 12px !important; }
    .glass-btn { min-height: 42px !important; padding: 9px 13px !important; font-size: 12px !important; }

    #faq details { padding: 12px 14px !important; margin-bottom: 8px !important; border-radius: 16px !important; font-size: 12px !important; }
    #faq summary { font-size: 13px !important; }
    .final-cta { padding: 24px 14px !important; border-radius: 22px !important; }
    .final-cta h2 { font-size: 24px !important; }
    footer { padding: 20px 0 90px !important; font-size: 11px !important; }

    /* Bottom CTA: shorter and less intrusive on phones */
    .sticky-bar {
        padding: 7px 10px !important;
        min-height: 58px !important;
    }
    .sticky-bar-inner { gap: 8px !important; }
    .sticky-bar-text { min-width: 0; }
    .sticky-live { font-size: 12px !important; }
    .sticky-sub { display: none !important; }
    .sticky-btn {
        padding: 10px 14px !important;
        min-height: 40px !important;
        font-size: 12px !important;
        white-space: nowrap;
        border-radius: 14px !important;
    }
    .sticky-close { width: 24px !important; height: 24px !important; font-size: 13px !important; }
}

/* ===== ≤ 600px ===== */
@media (max-width: 600px) {
    .cta-mega-btn { min-width: unset; width: 100%; padding: 18px 20px; }
    .cta-mega-title { font-size: 17px; }
    .cta-mega-wrap { align-items: stretch; }
    .cta-secondary-link { text-align: center; justify-content: center; }
    h1 { font-size: 38px; }
    .section-title { font-size: 32px; }
}

/* ===== ≤ 500px — попапы и нижняя панель ===== */
@media (max-width: 500px) {
    .ret-modal { padding: 32px 20px 24px; }
    .ret-title { font-size: 19px; }
    .sticky-bar-inner { gap: 12px; }
    .sticky-sub { display: none; }
    .sticky-btn { padding: 11px 20px; font-size: 14px; }
}

/* ===== ≤ 420px — узкие телефоны ===== */
@media (max-width: 420px) {
    .wrap { width: calc(100% - 14px); }
    .glass-header { padding: 8px 9px !important; border-radius: 17px !important; }
    .glass-header nav a { font-size: 11px !important; min-height: 31px !important; }
    .feature, .price-card-glass { padding: 15px !important; }
    .feature h3 { font-size: 18px !important; }
    .section-title { font-size: 23px !important; }
}
