/* ============================================
   RESPONSIVE.CSS
   Адаптивность для всех устройств
   Версия: 5.0.0
   ============================================ */

/* ============================================
   ПЛАНШЕТЫ (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    .header-search {
        max-width: 250px;
    }
    
    .nav-desktop {
        gap: var(--spacing-md);
    }
    
    .header-right {
        gap: var(--spacing-md);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-preview-plates {
        left: 100px;
    }
    
    .hero-content {
        padding: calc(var(--spacing-4xl) + 60px) var(--spacing-2xl) var(--spacing-2xl) 100px;
        max-width: 60%;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   МОБИЛЬНЫЕ (≤768px)
   ============================================ */
@media (max-width: 768px) {
    /* Общие */
    :root {
        --hero-title: 32px;
        --hero-subtitle: 18px;
        --registration-title: 22px;
    }
    
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .section {
        padding: var(--spacing-4xl) 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .gradient-text {
        -webkit-text-fill-color: var(--color-primary);
        color: var(--color-primary);
        background: none;
        animation: none;
    }
    
    /* Плавающие пятна */
    .floating-blob {
        filter: blur(50px);
    }
    
    .floating-blob.gold {
        width: 400px;
        height: 400px;
        left: -100px;
        opacity: 0.3;
    }
    
    .floating-blob.silver {
        width: 400px;
        height: 400px;
        right: -100px;
        opacity: 0.45;
    }
    
    .floating-blob.purple {
        width: 300px;
        height: 300px;
        left: 20%;
        opacity: 0.15;
    }
    
    /* Хедер */
    .site-header .container {
        flex-wrap: nowrap;
        gap: 4px;
        padding: 6px 10px;
    }
    
    .site-header + * {
        margin-top: 50px;
    }
    
    .header-left {
        flex: 0 0 auto;
        gap: 4px;
    }
    
    .site-logo img {
        width: 30px;
    }
    
    .logo-text {
        display: none;
    }
    
    .header-search {
        flex: 1 1 auto;
        max-width: none;
        margin: 0 4px;
    }
    
    .dgwt-wcas-search-form input {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .social-icons {
        display: none;
    }
    
    /* Менеджер */
    .manager-btn {
        padding: var(--spacing-xs);
    }
    
    .manager-btn span {
        display: none;
    }
    
    .manager-avatar {
        width: 28px;
        height: 28px;
    }
    
    .manager-dropdown {
        min-width: 280px;
        right: -10px;
    }
    
    .header-right {
        flex: 0 0 auto;
        gap: 0;
    }
    
    /* Бургер-меню */
    .primary-menu-container {
        max-width: 100%;
    }
    
    .menu-two-columns {
        flex-direction: column;
        gap: 0;
    }
    
    /* Hero */
    .fullscreen-hero .swiper-slide {
        align-items: flex-start;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 100px 20px 120px 20px !important;
        text-align: left;
    }
    
    .hero-badge {
        font-size: 10px;
        margin-bottom: var(--spacing-sm);
    }
    
    /* Стрелки свайпера */
    .fullscreen-hero .swiper-button-next,
    .fullscreen-hero .swiper-button-prev {
        width: 40px;
        height: 40px;
        bottom: 100px;
        right: auto;
    }
    
    .fullscreen-hero .swiper-button-next {
        left: 70px;
    }
    
    .fullscreen-hero .swiper-button-prev {
        left: 20px;
    }
    
    /* Превью-плашки */
    .hero-preview-plates {
        left: 15px;
        bottom: 100px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .preview-plate-item {
        padding: 6px 10px 6px 6px;
    }
    
    .preview-plate-icon {
        width: 36px;
        height: 36px;
    }
    
    .preview-plate-title {
        font-size: 11px;
    }
    
    .preview-plate-desc {
        display: none;
    }
    
    .preview-plate-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    /* Преимущества */
    .advantages-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md) !important;
    }
    
    .advantage-card {
        min-height: 160px !important;
    }
    
    /* Плитки */
    .tiles-grid,
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-sm);
    }
    
    /* Шаги */
    .steps-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: var(--spacing-md);
        padding-bottom: var(--spacing-md);
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .steps-container::-webkit-scrollbar {
        display: none;
    }
    
    .step-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
    
    .step-info p {
        display: block;
        margin-bottom: var(--spacing-xs);
    }
    
    .step-info p:not(:last-child):after {
        content: "";
        display: none;
    }
    
    /* Товары */
    .products-slider-header {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .products-slider-header .section-title {
        margin-bottom: 0;
        width: 100%;
        text-align: center;
    }
    
    .products-slider-header .btn-outline {
        align-self: flex-end;
    }
    
    .product-actions {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .product-add-to-cart {
        width: 40px;
        height: 40px;
        padding: 0 !important;
        font-size: 0 !important;
        border-radius: 50% !important;
        flex: 0 0 auto !important;
        order: 1;
    }
    
    .product-add-to-cart::before {
        content: "\f07a";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 16px;
        color: var(--color-white);
    }
    
    .product-action-icons {
        order: 2;
        margin-left: auto;
    }
    
    /* Табы */
    .tab-container {
        width: 100%;
        justify-content: center;
    }
    
    .tab, .tab_label {
        width: 140px;
        font-size: 12px;
    }
    
    .indicator {
        width: 140px;
        height: 40px;
    }
    
    .tab--2:checked ~ .indicator {
        left: calc(140px + 3px);
    }
    
    /* Горизонтальный скролл для табов */
    .gift-guide,
    .expert-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: var(--spacing-md) !important;
        padding-bottom: var(--spacing-md) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .gift-guide::-webkit-scrollbar,
    .expert-grid::-webkit-scrollbar {
        display: none;
    }
    
    .gift-item,
    .expert-card {
        flex: 0 0 75% !important;
        scroll-snap-align: center !important;
    }
    
    /* Баннер */
    .banner-collection {
        aspect-ratio: 3/4 !important;
        min-height: auto !important;
        align-items: flex-start;
    }
    
    .banner-collection .content {
        padding: var(--spacing-xl) !important;
        max-width: 100% !important;
    }
    
    .banner-collection h3 {
        font-size: var(--text-2xl);
    }
    
    /* Параллакс */
    .parallax-section {
        background-attachment: scroll !important;
        min-height: 400px;
        display: flex;
        align-items: center;
    }
    
    /* О бренде */
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* Регистрация */
    .registration {
        padding: var(--spacing-xl) var(--spacing-md);
        margin: var(--spacing-2xl) 0;
        width: 100%;
        border-radius: var(--border-radius-xl);
    }
    
    section:has(.registration) > .container,
    section:has(.bonus-form-section) > .container,
    .registration .container,
    .bonus-form-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    section:has(.registration),
    section:has(.bonus-form-section) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .registration__inner__item--second {
        min-width: 100%;
        width: 100%;
    }
    
    .registration__inner__item__img img {
        width: 150px;
        height: 150px;
    }
    
    .registration__inner__item--second h3 {
        font-size: var(--text-xl);
    }
    
    /* Бонусная программа */
    .bonus-form-section {
        padding: var(--spacing-xl) var(--spacing-md);
        margin: var(--spacing-2xl) 0;
        width: 100%;
        border-radius: var(--border-radius-xl);
    }
    
    .bonus-form-right {
        min-width: 100%;
        width: 100%;
    }
    
    .bonus-form-left {
        padding: var(--spacing-md);
    }
    
    .bonus-form-left h3 {
        font-size: var(--text-xl);
    }
    
    /* Футер */
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-col {
        width: 100%;
    }
    
    /* Sticky корзина */
    .sticky-cart-wrapper {
        padding: 6px 0;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .sticky-cart-wrapper .container {
        gap: var(--spacing-sm);
        padding: 0 var(--spacing-sm);
    }
    
    .sticky-left {
        gap: var(--spacing-sm);
    }
    
    .sticky-logo img {
        width: 35px;
        height: 35px;
    }
    
    .sticky-text p {
        font-size: 10px;
        line-height: 1.3;
    }
    
    .widget_shopping_cart {
        font-size: 12px;
    }
    
    /* Консультант */
    .online-consultant {
        bottom: 60px !important;
        right: var(--spacing-md) !important;
        z-index: calc(var(--z-sticky) + 10) !important;
    }
    
    /* Story-circle */
    .story-circle {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .step-card {
        flex: 0 0 90%;
    }
    
    .hero-preview-plates {
        left: 10px;
        bottom: 100px;
    }
    
    .fullscreen-hero .swiper-button-next {
        left: 60px;
    }
    
    .fullscreen-hero .swiper-button-prev {
        left: 15px;
    }
}