/* ===================================
   VIBERIMENYA MOBILE STYLES
   Полностью заменить файл style-mobile.css
=================================== */

@media (max-width: 860px) {

    .vip-header {
        position: sticky;
        top: 0;
        z-index: 10000;
        background: rgba(250, 247, 242, 0.96);
        backdrop-filter: blur(16px);
    }

    .vip-header-inner {
        min-height: 70px;
        gap: 10px;
    }

    .vip-nav {
        display: none;
    }

    .vip-logo {
        gap: 8px;
    }

    .vip-logo-mark {
        font-size: 22px;
    }

    .vip-logo-text strong {
        font-size: 22px;
        line-height: 1;
    }

    .vip-logo-text small {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .vip-cart {
        font-size: 15px;
    }

    .vip-header-actions {
        gap: 10px;
    }

    .vip-header-actions .vip-btn {
        display: none;
    }

    .vip-burger {
        display: flex;
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    .vip-mobile-menu {
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        z-index: 9999;
        display: none;
        padding: 14px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border);
        border-radius: 0 0 24px 24px;
        box-shadow: 0 20px 45px rgba(60, 40, 30, 0.14);
    }

    .vip-mobile-menu.is-open {
        display: grid;
        gap: 10px;
    }

    .vip-mobile-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
        border-radius: 14px;
        background: var(--bg);
        font-size: 16px;
        font-weight: 700;
    }
}

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .vip-container {
        width: calc(100% - 32px);
    }

    .vip-hero,
    .vip-page-hero,
    .vip-section {
        padding: 36px 0;
    }

    .vip-page-hero {
        padding-top: 42px;
    }

    .vip-hero h1,
    .vip-page-title {
        font-size: 38px;
        line-height: 0.95;
        letter-spacing: -1px;
        margin: 14px 0 14px;
    }

    .vip-section-title {
        font-size: 34px;
        line-height: 1;
        margin-bottom: 16px;
    }

    .vip-hero p,
    .vip-page-subtitle,
    .vip-section-subtitle {
        font-size: 16px;
        line-height: 1.45;
    }

    .vip-badge {
        font-size: 13px;
        padding: 8px 13px;
        margin-bottom: 14px;
    }

    .vip-hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .vip-hero-actions .vip-btn,
    .vip-hero-actions .vip-btn-light {
        width: 100%;
        min-height: 50px;
        font-size: 15px;
    }

    .vip-hero-image {
        height: 300px;
        min-height: 300px;
        max-height: 320px;
        border-radius: 26px;
    }

    .vip-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .vip-category-card {
        min-height: 82px;
        padding: 18px;
        border-radius: 22px;
        font-size: 16px;
    }

    .vip-benefits-grid,
    .vip-how-grid,
    .vip-delivery-grid,
    .vip-reminder-grid,
    .vip-reminders-grid,
    .vip-about-values,
    .vip-sale-grid,
    .vip-bundle-grid,
    .vip-sale-kits,
    .vip-subscriptions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vip-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .vip-product-card,
    .vip-benefit-card,
    .vip-how-card,
    .vip-sub-card,
    .vip-delivery-card,
    .vip-reminder-card,
    .vip-event-card,
    .vip-about-value,
    .vip-contact-card,
    .vip-faq-item,
    .vip-sale-card,
    .vip-bundle-card,
    .vip-sale-kit {
        padding: 22px;
        border-radius: 22px;
        min-height: auto;
    }

    .vip-product-card {
        padding: 0;
        overflow: hidden;
    }

    .vip-product-card img,
    .vip-product-card .woocommerce-loop-product__link img {
        width: 100%;
        height: 220px;
        object-fit: cover;
    }

    .vip-product-info {
        padding: 14px;
    }

    .vip-product-info h3,
    .vip-product-card h2,
    .vip-product-card h3,
    .woocommerce-loop-product__title {
        font-size: 16px;
        line-height: 1.15;
    }

    .vip-product-price,
    .vip-product-card .price {
        font-size: 16px;
    }

    .vip-subscribe-layout,
    .vip-payment-layout,
    .vip-reminder-cta,
    .vip-about-layout,
    .vip-about-story,
    .vip-sale-cta,
    .vip-contacts-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .vip-subscribe-box,
    .vip-payment-box,
    .vip-about-card {
        position: static;
    }

    .vip-sub-card h3,
    .vip-benefit-card h3,
    .vip-how-card h3,
    .vip-delivery-card h3,
    .vip-reminder-card h3,
    .vip-sale-card h3,
    .vip-sale-kit h3 {
        font-size: 20px;
    }

    .vip-sub-card p,
    .vip-benefit-card p,
    .vip-how-card p,
    .vip-delivery-card p,
    .vip-reminder-card p,
    .vip-sale-card p,
    .vip-sale-kit p,
    .vip-sub-card li {
        font-size: 16px;
        line-height: 1.45;
    }

    .vip-how-card {
        text-align: center;
    }

    .vip-how-number {
        width: 62px;
        height: 62px;
        font-size: 22px;
        margin: 0 auto 18px;
    }

    .vip-reminders-new {
        padding: 42px 0;
        overflow: hidden;
    }

    .vip-reminders-new h2 {
        font-size: 34px;
        line-height: 1;
    }

    .vip-reminder-dark-card {
        padding: 20px;
        border-radius: 24px;
    }

    .vip-footer {
        padding: 34px 0 22px;
    }

    .vip-footer-top,
    .vip-footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .vip-footer-brand p,
    .vip-footer-column a,
    .vip-footer-bottom {
        font-size: 15px;
        line-height: 1.5;
    }

    .vip-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .vip-back-to-top {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {

    .vip-container {
        width: calc(100% - 28px);
    }

    .vip-hero,
    .vip-page-hero,
    .vip-section {
        padding: 30px 0;
    }

    .vip-hero h1,
    .vip-page-title {
        font-size: 34px;
    }

    .vip-section-title {
        font-size: 30px;
    }

    .vip-page-subtitle,
    .vip-section-subtitle,
    .vip-hero p {
        font-size: 15px;
    }

    .vip-products-grid {
        grid-template-columns: 1fr;
    }

    .vip-product-card img,
    .vip-product-card .woocommerce-loop-product__link img {
        height: 260px;
    }

    .vip-category-card {
        min-height: 78px;
        padding: 16px;
        font-size: 15px;
    }

    .vip-sub-card,
    .vip-benefit-card,
    .vip-how-card,
    .vip-delivery-card,
    .vip-reminder-card,
    .vip-event-card,
    .vip-about-value,
    .vip-contact-card,
    .vip-faq-item,
    .vip-sale-card,
    .vip-bundle-card,
    .vip-sale-kit {
        padding: 20px;
    }
}

/* FIX: hero image on mobile */
@media (max-width: 768px) {

    .vip-hero-image img,
    .vip-hero-image picture,
    .vip-hero-image figure {
        display: block;
        width: 100%;
        height: 100%;
    }

    .vip-hero-image img {
        object-fit: cover;
    }

    .vip-hero-image {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .vip-hero-image {
        height: 280px;
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .vip-hero {
        padding: 46px 0 54px;
    }

    .vip-hero .vip-container {
        display: block;
    }

    .vip-hero-visual {
        position: relative;
        min-height: auto;
        margin-top: 34px;
    }

    .vip-hero-image {
        width: 100%;
        height: 420px !important;
        min-height: 420px !important;
        max-height: none !important;
        border-radius: 28px;
        overflow: hidden;
        background:
            linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
            url("http://viberimenya.ru/wp-content/uploads/2026/06/vika-fleysher-O23yH7htu-c-unsplash-scaled.jpg") !important;
        background-size: cover !important;
        background-position: center top !important;
        background-repeat: no-repeat !important;
    }

    .vip-floating-top,
    .vip-floating-bottom {
        left: 16px;
        right: 16px;
        padding: 13px 18px;
        text-align: center;
        justify-content: center;
        font-size: 14px;
    }

    .vip-floating-top {
        top: 16px;
    }

    .vip-floating-bottom {
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    .vip-hero-image {
        height: 390px !important;
        min-height: 390px !important;
        background-position: center top !important;
    }
}

/* FIX: убираем пустоту в карточках товаров на мобильной */

@media (max-width: 768px) {

    .vip-featured-card,
    .vip-product-card,
    .woocommerce ul.products li.product {
        height: auto !important;
        min-height: 0 !important;
    }

    .vip-featured-card img,
    .vip-product-card img,
    .woocommerce ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        display: block !important;
    }

    .vip-featured-card-content,
    .vip-product-card-content {
        padding: 16px !important;
    }
}

/* POLICY PAGE MOBILE */

@media (max-width: 768px) {
    .vip-policy-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .vip-policy-content,
    .vip-policy-box {
        padding: 24px;
        border-radius: 24px;
    }

    .vip-policy-content h2 {
        font-size: 28px;
    }

    .vip-policy-box {
        position: static;
    }
}