/* --- Основные стили --- */
:root {
    --bg-color: #0a0a0f;
    --card-bg: #1a1a2e;
    --accent-pink: #ff006e;
    --accent-purple: #8b5cf6;
    --accent-blue: #00d9ff;
    --accent-grad: linear-gradient(135deg, #ff006e 0%, #8b5cf6 50%, #00d9ff 100%);
    --cosmic-grad: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.3) 0%, transparent 50%),
                    radial-gradient(circle at 40% 20%, rgba(0, 217, 255, 0.2) 0%, transparent 50%);
    --text-color: #ffffff;
    --gray-text: #b0b0c0;
    --border-color: rgba(139, 92, 246, 0.2);
    --header-bg: rgba(10, 10, 15, 0.85);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Светлая тема - "Дневная" версия */
body.light-theme {
    --bg-color: #e0f2fe;
    --card-bg: #ffffff;
    --text-color: #0c4a6e;
    --gray-text: #64748b;
    --border-color: rgba(14, 165, 233, 0.2);
    --header-bg: rgba(255, 255, 255, 0.9);
    --accent-blue: #38bdf8;
    --accent-purple: #8b5cf6;
    --accent-pink: #ff006e;
    --accent-grad: linear-gradient(135deg, #ff006e 0%, #8b5cf6 50%, #00d9ff 100%);
    --cosmic-grad: radial-gradient(circle at 20% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
                    radial-gradient(circle at 40% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

/* --- Анимированный фон --- */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.8;
    animation: float-orb 60s ease-in-out infinite; /* Было 20s */
    z-index: 2;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.7) 0%, rgba(255, 0, 110, 0.3) 40%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
    animation-duration: 75s; /* Было 25s */
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.7) 0%, rgba(139, 92, 246, 0.3) 40%, transparent 70%);
    top: 40%;
    right: -150px;
    animation-delay: -10s;
    animation-duration: 90s; /* Было 30s */
}

.orb-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.6) 0%, rgba(0, 217, 255, 0.3) 40%, transparent 70%);
    bottom: -200px;
    left: 30%;
    animation-delay: -5s;
    animation-duration: 105s; /* Было 35s */
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, 100px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(80px, -50px) scale(1.05);
    }
}

    #particlesCanvas {
        pointer-events: none; /* Убираем отладочную рамку если была */
    }

/* Мерцающие звезды */
.animated-bg .star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1),
                0 0 20px rgba(147, 51, 234, 0.8),
                0 0 5px rgba(0, 240, 255, 0.6);
    animation: twinkle 6s ease-in-out infinite; /* Было 3s */
    z-index: 8;
    will-change: opacity;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.star:nth-child(4n) { animation-delay: 0s; }
.star:nth-child(4n+1) { animation-delay: 0.5s; }
.star:nth-child(4n+2) { animation-delay: 1s; }
.star:nth-child(4n+3) { animation-delay: 1.5s; }

/* Подсветка курсора */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, rgba(255, 20, 147, 0.15) 30%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    opacity: 0;
    z-index: 8;
    mix-blend-mode: screen;
    will-change: transform;
}

body.light-theme .cursor-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

/* Мобильные устройства - отключаем тяжелые эффекты */
@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
    
    .bg-gradient-orb {
        filter: blur(60px);
        opacity: 0.25;
        animation-duration: 40s;
    }
    
    .animated-bg::before,
    .animated-bg::after {
        display: none;
    }
    
    .star {
        display: none;
    }
    
    /* Упрощенная анимация частиц на мобильных */
    #particlesCanvas {
        opacity: 0.3;
    }
}

/* Энергосбережение - замедляем анимации вместо отключения */
@media (prefers-reduced-motion: reduce) {
    .bg-gradient-orb,
    .animated-bg::before,
    .animated-bg::after,
    .star {
        animation-duration: 100s !important; /* Очень медленно вместо отключения */
    }
}

/* Световые волны */
.animated-bg::before,
.animated-bg::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, transparent 50%);
    animation: wave 40s linear infinite; /* Было 20s */
    pointer-events: none;
    z-index: 3;
}

.animated-bg::before {
    top: -50%;
    left: -50%;
    animation-delay: 0s;
}

.animated-bg::after {
    bottom: -50%;
    right: -50%;
    animation-delay: -10s;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.22) 0%, transparent 50%);
}

@keyframes wave {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

/* Светлая тема - менее интенсивные эффекты */
body.light-theme .animated-bg {
    opacity: 0.3;
}

body.light-theme .animated-bg .star {
    display: none;
}

body.light-theme .bg-gradient-orb {
    display: none;
}

body.light-theme .animated-bg::before,
body.light-theme .animated-bg::after {
    display: none;
}

body.light-theme #particlesCanvas {
    opacity: 0;
}

/* --- Затемнение контента (20-60-20) --- */
.content-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5; /* Ниже контента (10), но выше фона (1) */
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(10, 10, 15, 0.4) 10%, 
        rgba(10, 10, 15, 0.92) 30%, 
        rgba(10, 10, 15, 0.92) 70%, 
        rgba(10, 10, 15, 0.4) 90%, 
        transparent 100%
    );
}

/* Светлая тема - убираем затемнение */
body.light-theme .content-backdrop {
    display: none;
}

/* Контент должен быть выше анимированного фона */
header {
    position: fixed;
    z-index: 100;
}

.hero,
.container,
.info-section {
    position: relative;
    z-index: 10;
}

.modal-overlay {
    z-index: 1000;
}

.cart-panel {
    z-index: 200;
}

/* Убрали glow-pulse для производительности - вместо этого используем статичные тени */

/* Убрали scroll reveal для производительности */
.series-block {
    margin-bottom: 50px;
}

/* --- Шапка и Корзина --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 100;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    isolation: isolate;
}

.logo-left {
    justify-self: start;
}

.logo-center {
    justify-self: center;
    font-size: 22px;
}

.header-actions {
    justify-self: end;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(0, 217, 255, 0.15) 100%);
    border: 2px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle i {
    font-size: 1.3rem;
    color: var(--accent-purple);
    transition: transform 0.3s ease, color 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

.theme-toggle:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(0, 217, 255, 0.3) 100%);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.theme-toggle:hover i {
    transform: rotate(360deg) scale(1.15);
    color: var(--accent-blue);
    filter: drop-shadow(0 4px 15px rgba(139, 92, 246, 0.7))
            drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    background: var(--accent-grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;

    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: 0.02em;

    background: linear-gradient(135deg, rgba(255, 0, 110, 0.18) 0%, rgba(139, 92, 246, 0.18) 50%, rgba(0, 217, 255, 0.12) 100%);
    border: 1px solid rgba(139, 92, 246, 0.45);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.cart-btn i {
    font-size: 1.1rem;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.cart-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.28) 0%, rgba(139, 92, 246, 0.28) 50%, rgba(0, 217, 255, 0.18) 100%);
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow:
        0 14px 38px rgba(139, 92, 246, 0.22),
        0 0 22px rgba(255, 0, 110, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.cart-btn:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 6px 18px rgba(139, 92, 246, 0.7))
            drop-shadow(0 0 20px rgba(255, 0, 110, 0.5));
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;

    background: var(--accent-pink);
    color: white;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;

    box-shadow: 0 10px 20px rgba(255, 0, 110, 0.25);
}

body.light-theme .cart-btn {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
    color: #0c4a6e;
}

body.light-theme .cart-btn:hover {
    border-color: rgba(186, 230, 253, 0.8);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
    transform: translateY(-1px);
}

body.light-theme .cart-btn i {
    color: #0ea5e9;
}

body.light-theme .theme-toggle {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1);
}

body.light-theme .theme-toggle:hover {
    border-color: rgba(186, 230, 253, 0.8);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
    transform: translateY(-1px);
}

body.light-theme .theme-toggle i {
    color: #0ea5e9;
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    box-shadow: 
        0 4px 16px rgba(148, 163, 184, 0.1),
        0 12px 40px rgba(186, 230, 253, 0.3),
        0 24px 72px rgba(255, 255, 255, 0.9);
}

/* ===== СЧЕТЧИК АКЦИИ ===== */
.promo-counter {
    position: fixed;
    top: 180px;
    left: 4%;
    z-index: 99;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 12px 16px;
    min-width: 200px;
    border: 2px solid transparent;
    background-image: 
        linear-gradient(rgba(26, 26, 46, 0.85), rgba(26, 26, 46, 0.85)),
        linear-gradient(135deg, #ff006e 0%, #8b5cf6 50%, #00d9ff 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(255, 0, 110, 0.3);
    animation: floatProduct 35s ease-in-out infinite;
    animation-delay: -12s;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-counter:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(139, 92, 246, 0.6),
        0 0 80px rgba(255, 0, 110, 0.4);
}

.promo-badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff006e 0%, #ff1a8c 100%);
    color: white;
    font-size: 1.4rem;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.6);
    animation: softPulse 4s ease-in-out infinite;
}

.promo-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff006e;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.promo-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-text);
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.promo-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.promo-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff006e 0%, #8b5cf6 50%, #00d9ff 100%, #ff006e 150%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.8);
    transition: width 0.5s ease;
    animation: progressShimmer 2s linear infinite;
    background-size: 200% auto;
    transform-origin: left center;
}

@keyframes progressShimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: 0% center;
    }
}

.promo-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
}

.promo-current {
    font-size: 1.1rem;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.promo-total {
    color: var(--gray-text);
}

/* Светлая тема для счетчика */
body.light-theme .promo-counter {
    background: #ffffff;
    background-image: 
        linear-gradient(#ffffff, #ffffff),
        linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 4px 16px rgba(148, 163, 184, 0.15),
        0 12px 32px rgba(148, 163, 184, 0.1);
}

body.light-theme .promo-counter:hover {
    box-shadow: 
        0 6px 24px rgba(148, 163, 184, 0.2),
        0 16px 48px rgba(148, 163, 184, 0.15);
}

body.light-theme .promo-badge {
    background: linear-gradient(135deg, #ff006e 0%, #8b5cf6 100%);
}

body.light-theme .promo-label {
    color: #ff006e;
    text-shadow: 0 0 8px rgba(255, 0, 110, 0.4);
}

body.light-theme .promo-text {
    color: #64748b;
}

body.light-theme .promo-progress {
    background: rgba(226, 232, 240, 0.5);
}

body.light-theme .promo-count {
    color: #0f172a;
}

body.light-theme .promo-current {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .promo-total {
    color: #64748b;
}

@media (max-width: 768px) {
    .promo-counter {
        position: relative;
        top: auto;
        left: auto;
        margin: 20px auto;
        max-width: 92%;
        min-width: auto;
        padding: 12px 14px;
        animation: none;
        border-radius: 12px;
        transform: none !important; /* Disable hover transform */
    }
    
    .promo-counter:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); /* Reset to default shadow */
    }

    .promo-badge {
        font-size: 1.05rem;
        padding: 5px 12px;
        border-radius: 10px;
        animation: none; /* Disable pulse animation */
    }
    
    .promo-progress-bar {
        animation: none; /* Disable shimmer animation */
    }

    /* Disable hero animations */
    .hero-title-main,
    .hero-title-accent,
    .hero-highlight i,
    .stat-number,
    .hero-number {
        animation: none;
    }

    .hero-badge,
    .hero-badge::before {
        animation: none;
    }

    /* Hide floating models on mobile */
    .floating-products,
    .product-with-smoke {
        display: none;
    }
    
    .promo-label {
        font-size: 0.65rem;
    }

    .promo-text {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

    .promo-progress {
        height: 5px;
        margin-bottom: 6px;
    }
    
    .promo-count {
        font-size: 0.82rem;
    }
    
    .promo-current {
        font-size: 1.05rem;
    }
}

body.light-theme .logo span {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Главный блок --- */
.hero {
    margin-top: 80px;
    padding: 100px 20px 120px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.15) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    /* Квадратная форма с мягкими углами */
    padding: 40px 10px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    /* Градиентная неоновая граница */
    border: 2px solid transparent;
    background-image: 
        linear-gradient(rgba(10, 10, 15, 0.92), rgba(10, 10, 15, 0.92)),
        linear-gradient(135deg, #ff006e 0%, #8b5cf6 50%, #00d9ff 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(255, 0, 110, 0.4),
        inset 0 0 60px rgba(139, 92, 246, 0.15);
}

/* Hero секция в светлой теме - эффект облака */
body.light-theme .hero {
    /* Более насыщенное небо для контраста с белым дымом */
    background: linear-gradient(180deg, 
        #38bdf8 0%,    /* sky-400 */
        #7dd3fc 45%,   /* sky-300 */
        #bae6fd 75%,   /* sky-200 */
        #e0f2fe 100%   /* sky-50 */
    );
}

body.light-theme .hero-content {
    background: #ffffff;
    /* Пушистые облачные края */
    box-shadow: 
        0 0 0 1px rgba(226, 232, 240, 0.3),
        0 2px 8px rgba(148, 163, 184, 0.08),
        0 8px 24px rgba(186, 230, 253, 0.4),
        0 16px 48px rgba(224, 242, 254, 0.5),
        0 24px 72px rgba(255, 255, 255, 0.8),
        0 32px 96px rgba(240, 249, 255, 0.6),
        /* Дополнительные тени сверху */
        0 -16px 48px rgba(255, 255, 255, 0.7),
        0 -32px 64px rgba(240, 249, 255, 0.6);
    border: 1px solid rgba(241, 245, 249, 0.8);
    border-radius: 24px;
    padding: 40px 10px;
    position: relative;
    z-index: 10;
}

body.light-theme .hero-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
}

body.light-theme .hero-content::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
}

/* Летающие модельки */
.floating-products {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Контейнер летает вместе с дымом */
.product-with-smoke {
    position: absolute;
    z-index: 2;
    will-change: transform;
}

/* Картинка внутри (только светится, не летает отдельно) */
.float-product {
    position: relative;
    width: 180px;
    height: auto;
    opacity: 0.8; /* Чуть ярче */
    filter: brightness(0.96) contrast(1) saturate(1);
    transition: transform 0.3s ease-out, filter 0.35s ease-out;
    /* Перед выпуском дыма усиливаем яркость/контраст без неонового ореола */
    animation: vapeGlow 10s ease-out infinite;
}

/* Позиционирование и тайминги полета контейнеров */
.product-with-smoke:nth-child(1) {
    top: 10%; right: 8%;
    animation: floatProduct 38s ease-in-out infinite;
}
.product-with-smoke:nth-child(1) .float-product,
.product-with-smoke:nth-child(1) .smoke { animation-delay: 2s; }

.product-with-smoke:nth-child(2) {
    top: 30%; left: 11%;
    animation: floatProduct 42s ease-in-out infinite;
    animation-delay: -10s;
}
.product-with-smoke:nth-child(2) .float-product,
.product-with-smoke:nth-child(2) .smoke { animation-delay: 5s; }

.product-with-smoke:nth-child(3) {
    bottom: 6%; left: 15%;
    animation: floatProduct 45s ease-in-out infinite;
    animation-delay: -5s;
}
.product-with-smoke:nth-child(3) .float-product,
.product-with-smoke:nth-child(3) .smoke { animation-delay: 0s; }

.product-with-smoke:nth-child(4) {
    bottom: 6%; right: 15%;
    animation: floatProduct 36s ease-in-out infinite;
    animation-delay: -15s;
}
.product-with-smoke:nth-child(4) .float-product,
.product-with-smoke:nth-child(4) .smoke { animation-delay: 7s; }

.product-with-smoke:nth-child(5) {
    top: 50%; left: 2%;
    animation: floatProduct 40s ease-in-out infinite;
    animation-delay: -20s;
}
.product-with-smoke:nth-child(5) .float-product,
.product-with-smoke:nth-child(5) .smoke { animation-delay: 3.5s; }
.product-with-smoke:nth-child(5) .smoke {
    animation-name: smokeEffectTilted; /* Дым под углом вправо */
}

.product-with-smoke:nth-child(6) {
    top: 45%; right: 5%;
    animation: floatProduct 37s ease-in-out infinite;
    animation-delay: -8s;
}
.product-with-smoke:nth-child(6) .float-product,
.product-with-smoke:nth-child(6) .smoke { animation-delay: 8.5s; }
.product-with-smoke:nth-child(6) .smoke {
    animation-name: smokeEffectTilted; /* Дым под углом вправо */
}

/* Эффект дыма (сверху) */
.smoke {
    position: absolute;
    top: -30px; /* Сдвинули наверх над вейпом */
    left: 50%;
    transform: translateX(-50%);
    width: 65px; /* Чуть шире */
    height: 65px;
    /* Более плотный центр (0.8) и насыщенный край */
    background: radial-gradient(circle, rgba(230, 230, 255, 0.85) 0%, rgba(139, 92, 246, 0.3) 55%, transparent 85%);
    border-radius: 50%;
    filter: blur(12px); /* Чуть меньше блюра для плотности */
    opacity: 0;
    animation: smokeEffect 10s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Анимация дыма (поднимается вверх) */
@keyframes smokeEffect {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(25px) scale(0.6);
    }
    10% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(-15px) scale(1.4);
    }
    30% {
        opacity: 0.6;
        transform: translateX(-50%) translateY(-70px) scale(2.2);
    }
    60% {
        opacity: 0;
        transform: translateX(-50%) translateY(-120px) scale(3.0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-120px) scale(3.0);
    }
}

/* Дым с наклоном вправо (для 5-й и 6-й моделей) */
@keyframes smokeEffectTilted {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(25px) scale(0.6);
    }
    10% {
        opacity: 0.95;
        transform: translateX(calc(-50% + 5px)) translateY(-15px) scale(1.4);
    }
    30% {
        opacity: 0.6;
        transform: translateX(calc(-50% + 15px)) translateY(-70px) scale(2.2);
    }
    60% {
        opacity: 0;
        transform: translateX(calc(-50% + 28px)) translateY(-120px) scale(3.0);
    }
    100% {
        opacity: 0;
        transform: translateX(calc(-50% + 28px)) translateY(-120px) scale(3.0);
    }
}

/* Анимация свечения вейпа (синхронно с дымом) */
@keyframes vapeGlow {
    0% {
        filter: brightness(0.96) contrast(1) saturate(1);
    }
    8% {
        filter: brightness(1.28) contrast(1.24) saturate(1.2);
    }
    18% {
        filter: brightness(1.14) contrast(1.14) saturate(1.12);
    }
    40% {
        filter: brightness(1.02) contrast(1.03) saturate(1.03);
    }
    100% {
        filter: brightness(0.96) contrast(1) saturate(1);
    }
}

@keyframes floatProduct {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(-5deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(3deg);
    }
    50% {
        transform: translateY(-15px) translateX(-15px) rotate(-3deg);
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(5deg);
    }
}

/* Старая реализация дыма удалена и заменена новой выше */
body.light-theme .float-product {
    opacity: 1;
    filter: brightness(1) contrast(1.05);
    /* Убираем drop-shadow полностью, оставляем только цветокоррекцию */
    box-shadow: none; 
    animation-name: vapeGlowLight;
}

body.light-theme .smoke {
    width: 80px;
    height: 80px;
    /* Делаем дым белым и пушистым как облако */
    background: radial-gradient(circle at 40% 40%, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(240, 249, 255, 0.6) 50%, 
        transparent 80%);
    filter: blur(8px);
    /* Естественная тень от облачка */
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.2);
    opacity: 0;
}

body.light-theme .smoke-ring {
    /* Колечко тоже белое, как пар */
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.15);
    filter: blur(1px);
}

/* Анимация "вспышки" яркости перед выдохом (без цветного свечения) */
@keyframes vapeGlowLight {
    0% {
        filter: brightness(1) contrast(1.05);
        transform: scale(1);
    }
    10% {
        /* Резкое повышение яркость перед выдохом */
        filter: brightness(1.3) contrast(1.2);
        transform: scale(1.02);
    }
    20% {
        /* Возврат */
        filter: brightness(1.1) contrast(1.1);
        transform: scale(1.01);
    }
    100% {
        filter: brightness(1) contrast(1.05);
        transform: scale(1);
    }
}

/* Мобильные устройства - упрощаем анимацию */
@media (max-width: 768px) {
    .float-product {
        width: 120px;
        opacity: 0.4;
    }
    
    .product-with-smoke:nth-child(n) {
        animation-duration: 30s;
    }
    
    .smoke {
        width: 40px;
        height: 40px;
        filter: blur(10px);
    }
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
    color: var(--text-color);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    animation: float 6s ease-in-out infinite, border-glow 6s ease-in-out infinite; /* Было 3s */
    background-clip: padding-box;
    position: relative;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, 
        var(--accent-pink), 
        var(--accent-purple), 
        var(--accent-blue), 
        var(--accent-pink)
    );
    border-radius: 50px;
    z-index: -1;
    animation: border-rotate 8s linear infinite; /* Было 4s */
    background-size: 300% 100%;
}

@keyframes border-rotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

@keyframes border-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(139, 92, 246, 0.6), 0 0 40px rgba(255, 0, 110, 0.3);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-4px) scale(1.02); /* Было -10px и 1.05 */
    }
}

/* Убрали electric анимацию для производительности */

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.hero-title-main {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, #ff006e, #8b5cf6, #00d9ff, #ff006e);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    line-height: 1;
    filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.5));
    animation: shimmerTitle 8s linear infinite; /* Было 3s */
}

@keyframes shimmerTitle {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 150% center;
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-title-accent {
    font-size: 2.2rem;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(90deg, var(--text-color) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-logo-wrap {
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}

.hero-logo {
    height: 144px;
    width: auto;
    vertical-align: middle;
    /* Темная тема: перекрашиваем черный в розовый (#ff006e) */
    filter: brightness(0) saturate(100%) invert(19%) sepia(88%) saturate(7483%) hue-rotate(325deg) brightness(98%) contrast(106%) drop-shadow(0 0 10px rgba(255, 0, 110, 0.5));
    transition: filter 0.3s ease, height 0.3s ease;
}

body.light-theme .hero-logo {
    /* Светлая тема: перекрашиваем черный в голубой (#0ea5e9) */
    filter: brightness(0) saturate(100%) invert(53%) sepia(89%) saturate(1945%) hue-rotate(176deg) brightness(97%) contrast(94%) drop-shadow(0 4px 12px rgba(14, 165, 233, 0.3));
}

@media (max-width: 768px) {
    .hero-logo {
        height: 80px;
    }
}

.hero-description {
    color: var(--gray-text);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 50px;
    font-weight: 400;
}

.hero-description strong {
    color: var(--accent-blue);
    font-weight: 800;
    font-size: 1.3em;
}

.hero-highlight {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--accent-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-highlight i {
    background: var(--accent-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    margin-right: 4px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: shimmer 4s linear infinite;
}

.hero-number {
    font-weight: 700;
    background: var(--accent-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

.hero-stat:nth-child(1) .stat-number {
    animation-delay: 0s;
}

.hero-stat:nth-child(2) .stat-number {
    animation-delay: 0.5s;
}

.hero-stat:nth-child(3) .stat-number {
    animation-delay: 1s;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .hero-title-main {
        font-size: 3rem;
    }
    .hero-title-accent {
        font-size: 1.8rem;
    }
    .hero-stats {
        gap: 30px;
    }
    .stat-number {
        font-size: 2rem;
    }
}

/* --- Сетка товаров --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.series-block {
    margin-bottom: 50px;
}

.series-title {
    font-size: 1.8rem;
    margin: 10px 0 30px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 14px 18px 18px;
    border-radius: 16px;
    isolation: isolate;
    
    /* Яркий белый текст вместо градиента */
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(139, 92, 246, 0.65),
        0 0 30px rgba(0, 217, 255, 0.35),
        0 0 25px rgba(255, 0, 110, 0.30),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.series-title::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    /* Светлее, чтобы заголовок не "тонул" */
    background: rgba(20, 20, 30, 0.42);
    border: 1px solid rgba(139, 92, 246, 0.30);
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.18),
        0 0 28px rgba(139, 92, 246, 0.22),
        0 0 18px rgba(0, 217, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    z-index: -1;
}

.series-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    background: var(--accent-grad);
    border-radius: 999px;
    box-shadow:
        0 0 18px rgba(139, 92, 246, 0.75),
        0 0 34px rgba(0, 217, 255, 0.24),
        0 0 30px rgba(255, 0, 110, 0.20);
}

/* --- Карточка товара --- */
.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

body.light-theme .product-card::before {
    display: none;
}

body.light-theme .product-card {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 12px rgba(148, 163, 184, 0.12);
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

body.light-theme .product-card:hover {
    box-shadow: 
        0 4px 12px rgba(148, 163, 184, 0.15),
        0 12px 32px rgba(148, 163, 184, 0.2);
    transform: translateY(-8px);
    border-color: rgba(186, 230, 253, 0.6);
}

body.light-theme .product-name {
    color: #0f172a !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none;
    font-weight: 700;
}

body.light-theme .product-price {
    color: #3499d4 !important;
    text-shadow: none;
    font-weight: 800;
}

body.light-theme .product-short-desc {
    color: #334155 !important;
    font-weight: 500;
}

body.light-theme .modal-title {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .modal-desc {
    color: #334155 !important;
}

body.light-theme .modal-feature {
    
    border: none;
    color: #475569;
}

body.light-theme .modal-feature .feature-icon {
    color: #0ea5e9;
}

body.light-theme .modal-price {
    color: #0c4a6e !important;
}

/* ===== МОДАЛЬНОЕ ОКНО АКЦИИ ===== */
.promo-modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(20, 20, 35, 0.98) 100%);
    backdrop-filter: blur(20px);
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    padding: 25px 30px;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.5),
                0 0 100px rgba(255, 0, 110, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .promo-modal-content {
    transform: scale(1);
}

.promo-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.promo-modal-badge-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.promo-modal-badge {
    display: inline-block;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: softPulse 4s ease-in-out infinite;
}

.promo-modal-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-pink);
    letter-spacing: 0.08em;
    text-shadow: 0 0 15px rgba(255, 0, 110, 0.6);
}

@keyframes softPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.03);
    }
}

.promo-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.promo-modal-body {
    margin-bottom: 20px;
}

.promo-modal-section {
    margin-bottom: 15px;
    padding: 14px 16px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.promo-modal-section h3 {
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.promo-modal-section p {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin: 0;
    line-height: 1.5;
}

.promo-modal-icon {
    font-size: 1.2rem;
    color: var(--accent-purple);
    margin-bottom: 6px;
    display: block;
}

.promo-modal-progress-wrapper {
    background: rgba(139, 92, 246, 0.1);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.promo-modal-progress {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.promo-modal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-purple) 50%, #00d9ff 100%, var(--accent-pink) 150%);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    transition: width 0.5s ease;
    transform-origin: left center;
    animation: progressShimmer 2s linear infinite;
    background-size: 200% auto;
}

.promo-modal-count {
    text-align: center;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.promo-modal-current {
    color: var(--accent-pink);
    font-size: 1.3rem;
    font-weight: 700;
}

.promo-modal-total {
    color: var(--gray-text);
}

.promo-modal-cta {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.promo-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.promo-modal-cta i {
    font-size: 1.1rem;
}

/* Светлая тема для модального окна акции */
body.light-theme .promo-modal-content {
    background: #ffffff;
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15),
                0 0 30px rgba(96, 165, 250, 0.2);
}

body.light-theme .promo-modal-title {
    color: #0f172a;
    text-shadow: none;
}

body.light-theme .promo-modal-section {
    background: rgba(96, 165, 250, 0.05);
    border-color: rgba(96, 165, 250, 0.2);
}

body.light-theme .promo-modal-section h3 {
    color: #0f172a;
}

body.light-theme .promo-modal-section p {
    color: #475569;
}

body.light-theme .promo-modal-icon {
    color: #3b82f6;
}

body.light-theme .promo-modal-progress-wrapper {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.3);
}

body.light-theme .promo-modal-progress {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .promo-modal-count {
    color: #0f172a;
}

body.light-theme .promo-modal-current {
    color: #d946ef;
}

body.light-theme .promo-modal-label {
    color: #ff006e;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.4);
}

body.light-theme .promo-modal-cta {
    box-shadow: 0 4px 20px rgba(217, 70, 239, 0.3);
}

body.light-theme .promo-modal-cta:hover {
    box-shadow: 0 6px 30px rgba(217, 70, 239, 0.4);
}

body.light-theme .hero-title-accent {
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
}

body.light-theme .btn-primary {
    background: linear-gradient(135deg, #ff006e 0%, #8b5cf6 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

body.light-theme .btn-primary:hover {
    background: linear-gradient(135deg, #ff1a8c 0%, #a855f7 100%) !important;
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
    transform: translateY(-2px);
}

body.light-theme .btn-secondary {
    background: rgba(226, 232, 240, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #475569;
}

body.light-theme .btn-secondary:hover {
    background: rgba(186, 230, 253, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.15);
}

body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(139, 92, 246, 0.2);
}

body.light-theme .cart-panel {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(139, 92, 246, 0.2);
}

body.light-theme .info-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 2px 8px rgba(148, 163, 184, 0.1),
        0 8px 24px rgba(148, 163, 184, 0.08);
}

body.light-theme .info-card:hover {
    box-shadow: 
        0 4px 16px rgba(148, 163, 184, 0.15),
        0 16px 48px rgba(148, 163, 184, 0.12);
    transform: translateY(-5px);
    border-color: rgba(186, 230, 253, 0.6);
}

body.light-theme .info-card-icon {
    filter: none;
}

body.light-theme .info-card:hover .info-card-icon {
    filter: drop-shadow(0 4px 8px rgba(148, 163, 184, 0.2));
}

body.light-theme .info-card-title {
    color: #0f172a;
}

body.light-theme .info-card-text {
    color: #475569;
}

body.light-theme .info-section {
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

body.light-theme .info-section::before {
    background: linear-gradient(90deg, transparent 0%, rgba(186, 230, 253, 0.6) 50%, transparent 100%);
}

body.light-theme .info-title {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .why-us-section {
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
}

body.light-theme .close-modal {
    color: var(--text-color);
}

body.light-theme .modal-img-placeholder {
    background: linear-gradient(135deg, #e0e0e5, #d0d0d8);
}

body.light-theme .hero::before {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
}

body.light-theme .series-title {
    color: #0c4a6e;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body.light-theme .series-title::after {
    box-shadow: none;
    display: none;
}

body.light-theme .series-title::before {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow:
        0 4px 12px rgba(148, 163, 184, 0.1),
        0 12px 32px rgba(148, 163, 184, 0.08);
}

body.light-theme .product-image.gradient-1 { 
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.2);
}

body.light-theme .product-image.gradient-2 { 
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.2);
}

body.light-theme .product-image.gradient-3 { 
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

body.light-theme .cart-item {
    border-bottom-color: rgba(139, 92, 246, 0.15);
}

body.light-theme .qty-btn {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.25);
}

body.light-theme .qty-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.4);
}

body.light-theme .cart-item-remove {
    background: rgba(255, 0, 110, 0.15);
    border-color: rgba(255, 0, 110, 0.25);
}

body.light-theme .cart-item-remove:hover {
    background: rgba(255, 0, 110, 0.25);
    border-color: rgba(255, 0, 110, 0.4);
}

body.light-theme .cart-summary {
    border-top-color: rgba(139, 92, 246, 0.2);
}

/* Статистика в светлой теме */
body.light-theme .stat-number,
body.light-theme .hero-number {
    background: linear-gradient(135deg, 
        #38bdf8 0%,
        #0ea5e9 35%,
        #2563eb 65%,
        #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    filter: none;
}

body.light-theme .stat-label {
    color: #64748b;
}

/* Hero подсветка в светлой теме */
body.light-theme .hero-description {
    color: #4a4a55 !important;
}

body.light-theme .hero-title-main {
    filter: none;
    background: linear-gradient(90deg, #60a5fa, #38bdf8, #2563eb, #38bdf8, #60a5fa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerDay 8s ease-in-out infinite;
}

@keyframes shimmerDay {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 200% center;
    }
}

body.light-theme .hero-highlight {
    color: #1a1a1f !important;
    background: rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08),
                0 4px 16px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

body.light-theme .hero-highlight i {
    background: linear-gradient(135deg, 
        #38bdf8 0%, 
        #0ea5e9 35%, 
        #2563eb 65%, 
        #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .cart-close {
    background: rgba(255, 0, 110, 0.08);
    border-color: rgba(255, 0, 110, 0.2);
}

body.light-theme .cart-close:hover {
    background: rgba(255, 0, 110, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(0, 217, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4),
                0 0 30px rgba(255, 0, 110, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.6);
}

.product-card > * {
    position: relative;
    z-index: 1;
}

.product-image {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
}

.product-image.series-trio40000 img {
    object-position: center 28%;
}

.product-image.series-bc45000 img {
    object-position: center 69%;
}

/* Космические градиенты для картинок */
.product-image.gradient-1 { 
    background: linear-gradient(135deg, #6a0dad 0%, #ff006e 50%, #4a148c 100%);
    box-shadow: 0 4px 20px rgba(106, 13, 173, 0.5);
}
.product-image.gradient-2 { 
    background: linear-gradient(135deg, #ff006e 0%, #8b5cf6 50%, #d946ef 100%);
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.5);
}
.product-image.gradient-3 { 
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 50%, #ec4899 100%);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.5);
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 12px 0 8px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-short-desc {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    color: var(--accent-blue);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    letter-spacing: 0.05em;
}

/* --- Модальное окно (Подробное описание) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(20, 20, 35, 0.95) 100%);
    backdrop-filter: blur(20px);
    width: 90%;
    max-width: 850px;
    border-radius: 24px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.5),
                0 0 100px rgba(255, 0, 110, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-image-col {
    flex: 1;
    background: #25252b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #331020, #101030);
}

.modal-info-col {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(255, 0, 110, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.5);
    border-color: rgba(255, 0, 110, 0.6);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 10px;
    background: var(--accent-grad);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.tag.sour { 
    background: linear-gradient(135deg, #d4ff00 0%, #84cc16 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 15px rgba(212, 255, 0, 0.4);
}
.tag.icy { 
    background: linear-gradient(135deg, #00f2ea 0%, #06b6d4 100%);
    color: #0a0a0f;
    box-shadow: 0 2px 15px rgba(0, 242, 234, 0.4);
}
.tag.sweet { 
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 15px rgba(251, 191, 36, 0.4);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.6);
}

.modal-desc {
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.modal-features {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: default;
}

.modal-feature .feature-icon {
    font-size: 1.1rem;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.feature-icon {
    font-size: 1.1rem;
}

.feature-text {
    color: var(--text-color);
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(30, 30, 45, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
}

body.light-theme .quantity-selector {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.3);
}

.qty-btn-modal {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 8px;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.qty-btn-modal:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
    transform: scale(1.1);
}

.qty-btn-modal:active {
    transform: scale(0.95);
}

body.light-theme .qty-btn-modal {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

body.light-theme .qty-btn-modal:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
}

.qty-value {
    min-width: 35px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.add-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.05rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 110, 0.5),
                0 0 30px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-btn .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.add-btn:hover .btn-icon {
    transform: scale(1.2) rotate(12deg);
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.add-btn > * {
    position: relative;
    z-index: 1;
}

.add-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-btn:hover {
    background: linear-gradient(135deg, #ff1a8c 0%, #a855f7 100%);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 0, 110, 0.7),
                0 0 40px rgba(139, 92, 246, 0.5);
}

/* --- Панель корзины --- */
.cart-panel {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 340px;
    max-height: calc(100vh - 130px);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(20, 20, 35, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
                0 0 60px rgba(139, 92, 246, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
    padding: 24px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    z-index: 200;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-panel.open {
    display: flex;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-title {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cart-close {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid rgba(255, 0, 110, 0.3);
    color: var(--accent-pink);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.cart-close:hover {
    background: rgba(255, 0, 110, 0.2);
    transform: rotate(90deg);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.5);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a30;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-color);
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 110, 0.2);
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: 6px;
    color: var(--accent-pink);
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.cart-item-remove:hover {
    background: rgba(255, 0, 110, 0.3);
    border-color: rgba(255, 0, 110, 0.5);
    transform: scale(1.1);
}

.cart-item-remove:active {
    transform: scale(0.95);
}

.cart-item-remove:hover {
    background: rgba(255, 0, 110, 0.1);
    color: #ff1a8c;
    text-shadow: 0 0 10px rgba(255, 0, 110, 0.5);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    font-size: 1.1rem;
}

.cart-summary #cartTotal {
    color: var(--accent-blue);
    font-size: 1.3rem;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    flex: 1;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: var(--accent-purple);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    border: none;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1a8c 0%, #a855f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.6);
}

/* --- Оплата и доставка --- */
.info-section {
    padding: 60px 20px 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.5) 100%);
    position: relative;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.5) 50%, transparent 100%);
}

.info-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.info-title {
    font-size: 2rem;
    margin-bottom: 35px;
    text-align: center;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(26, 26, 46, 0.3) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px 32px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
}

.info-card:hover .info-card-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.7))
            drop-shadow(0 0 25px rgba(255, 0, 110, 0.4));
}

.info-card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 15px rgba(139, 92, 246, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.info-card-title {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--text-color);
}

.info-card-text {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.9;
    text-align: left;
    width: 100%;
}

.info-card-text i {
    color: var(--accent-purple);
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.info-card-text i.fa-brands {
    color: var(--accent-blue);
}

.info-card-text i.fa-lock,
.info-card-text i.fa-gift {
    color: var(--accent-pink);
}

.info-card:hover .info-card-text i {
    transform: scale(1.15);
}

.info-card:hover .info-card-text i.fa-brands {
    color: var(--accent-pink);
}

/* ===== БЛОК "ПОЧЕМУ МЫ" ===== */
.why-us-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.5) 0%, rgba(20, 20, 30, 0.5) 100%);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(26, 26, 46, 0.4) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.why-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3),
                0 0 30px rgba(255, 0, 110, 0.1);
}

.why-card:hover .why-icon {
    animation-play-state: paused;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.6))
            drop-shadow(0 0 25px rgba(255, 0, 110, 0.4))
            drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

.why-icon {
    font-size: 3.5rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 16px rgba(139, 92, 246, 0.5))
            drop-shadow(0 0 20px rgba(255, 0, 110, 0.3));
    animation: float 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}

.why-card:nth-child(2) .why-icon { animation-delay: -1s; }
.why-card:nth-child(3) .why-icon { animation-delay: -2s; }
.why-card:nth-child(4) .why-icon { animation-delay: -3s; }
.why-card:nth-child(5) .why-icon { animation-delay: -1.5s; }
.why-card:nth-child(6) .why-icon { animation-delay: -2.5s; }

.why-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.03em;
}

.why-text {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
}

/* Светлая тема */
body.light-theme .why-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 2px 8px rgba(148, 163, 184, 0.1),
        0 8px 24px rgba(148, 163, 184, 0.08);
}

body.light-theme .why-card:hover {
    box-shadow: 
        0 4px 16px rgba(148, 163, 184, 0.15),
        0 16px 48px rgba(148, 163, 184, 0.12);
    transform: translateY(-8px);
    border-color: rgba(186, 230, 253, 0.6);
}

body.light-theme .why-icon {
    filter: none;
}

body.light-theme .why-card:hover .why-icon {
    filter: drop-shadow(0 4px 8px rgba(148, 163, 184, 0.2));
}

body.light-theme .why-title {
    color: #0f172a;
}

body.light-theme .why-description {
    color: #475569;
}

/* Адаптив для планшетов */
@media (max-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Header: 2 строки, без перекосов по сетке */
    header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px 12px;
        padding: 12px 14px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 1px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .logo-left {
        order: 1;
        flex: 1 1 auto;
        justify-self: unset;
    }

    .header-actions {
        order: 2;
        flex: 0 0 auto;
        justify-self: unset;
    }

    .logo-center {
        order: 3;
        flex: 1 0 100%;
        justify-self: unset;
        text-align: center;
        font-size: 13px;
        letter-spacing: 0.12em;
        opacity: 0.9;
        white-space: normal;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .cart-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .cart-count {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
        padding: 0 6px;
    }

    /* Чтобы hero не уезжал под увеличенный header */
    .hero {
        margin-top: 110px;
        padding: 46px 14px 60px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 20px;
    }

    /* Hero: типографика и отступы под мобильные */
    .hero-content {
        padding: 22px 16px;
        border-radius: 18px;
        max-width: 560px;
    }

    .hero-title {
        gap: 8px;
        margin-bottom: 16px;
    }

    .hero-title-main {
        font-size: clamp(2.35rem, 10vw, 3.1rem);
        letter-spacing: 0.06em;
        line-height: 1;
    }

    .hero-title-accent {
        font-size: clamp(1.05rem, 4.6vw, 1.35rem);
        letter-spacing: 0.14em;
        line-height: 1.2;
        opacity: 0.95;
    }

    .hero-description {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 22px;
    }

    .hero-highlight {
        display: block;
        margin-top: 10px;
        font-size: 0.82rem;
        letter-spacing: 0.04em;
        line-height: 1.35;
    }

    .hero-stats {
        margin-top: 22px;
        gap: 16px 18px;
        flex-wrap: wrap;
    }

    .hero-stat {
        flex: 1 1 92px;
        gap: 6px;
        min-width: 92px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.74rem;
        letter-spacing: 0.08em;
    }
    
    /* Модалка товара: компактнее на мобильных */
    .modal-overlay {
        align-items: center;
        padding: 14px 12px;
        box-sizing: border-box;
    }

    .modal-content {
        flex-direction: column;
        width: 100%;
        margin: 0;
        max-width: 560px;
        max-height: 82vh;
        overflow: hidden;
        border-radius: 18px;
    }
    
    .modal-image-col {
        flex: 0 0 auto;
        min-height: 120px;
        border-bottom: 1px solid rgba(139, 92, 246, 0.18);
    }

    .modal-img-container,
    .modal-img-placeholder {
        /* Фиксируем высоту, чтобы текст не "наезжал" на картинку */
        height: clamp(160px, 26vh, 240px);
        min-height: 160px;
        max-height: 240px;
    }

    .modal-product-image {
        /* На мобильных кадрируем карточку, чтобы убрать текст на картинке */
        object-fit: cover;
        object-position: center 22%;
    }
    
    .modal-info-col {
        flex: 1 1 auto;
        padding: 16px 14px 14px;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .modal-title {
        font-size: 1.25rem;
        margin-bottom: 8px;
    }

    .modal-tags {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 12px;
    }

    .tag {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .modal-desc {
        font-size: 0.86rem;
        line-height: 1.55;
        margin-bottom: 14px;
    }
    
    .modal-features {
        gap: 8px;
    }
    
    .modal-feature {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .close-modal {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .modal-actions {
        flex-direction: row;
        width: 100%;
        gap: 10px;
        align-items: stretch;
    }
    
    .quantity-selector {
        flex: 0 0 auto;
        width: auto;
        justify-content: center;
        padding: 6px 10px;
        gap: 8px;
        border-radius: 10px;
    }

    .qty-btn-modal {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        border-radius: 8px;
    }

    .qty-value {
        min-width: 28px;
        font-size: 1.1rem;
    }
    
    .add-btn {
        flex: 1 1 auto;
        width: auto;
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .modal-footer {
        gap: 12px;
    }

    .modal-price {
        font-size: 1.4rem;
    }
    
    .cart-panel {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .why-card {
        padding: 25px;
    }
    
    .why-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
    }
    
    .why-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 16px;
        letter-spacing: 0.8px;
    }

    .logo-center {
        font-size: 12px;
        letter-spacing: 0.1em;
    }

    .cart-btn {
        padding: 8px 10px;
        gap: 6px;
    }

    /* На очень узких экранах текст "Корзина" мешает */
    .cart-text {
        display: none;
    }

    /* Если не помещается в одну строку — позволяем перенос */
    .modal-actions {
        flex-wrap: wrap;
    }

    .hero {
        margin-top: 120px;
    }

    .hero-content {
        padding: 20px 14px;
    }

    .hero-title-main {
        font-size: clamp(2.15rem, 11vw, 2.8rem);
        letter-spacing: 0.05em;
    }

    .hero-title-accent {
        letter-spacing: 0.12em;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .modal-content {
        width: 96%;
        border-radius: 18px;
    }
}

/* ===== ПРОВЕРКА ВОЗРАSTA (18+) ===== */
.age-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 15, 25, 0.95), rgba(0, 0, 0, 0.98));
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.age-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.age-modal {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.2),
                inset 0 0 30px rgba(139, 92, 246, 0.05);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.age-overlay.active .age-modal {
    transform: scale(1);
}

.age-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 0, 110, 0.6));
    animation: pulse 3s infinite;
}

.age-modal h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.age-modal p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.age-confirm, .age-deny {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.age-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.age-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.age-deny {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.age-deny:hover {
    background: rgba(255, 0, 110, 0.2);
    border-color: rgba(255, 0, 110, 0.4);
    color: white;
}

/* Светлая тема для модального окна */
body.light-theme .age-modal {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.15);
}

body.light-theme .age-deny {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ===== КОЛЕЧКИ ДЫМА ===== */
.smoke-ring {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%) rotateX(70deg); /* 3D перспектива */
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.6); /* Светлый ободок */
    border-radius: 50%;
    filter: blur(2px);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); /* Фиолетовое свечение */
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Одно кольцо с плавной анимацией */
.smoke-ring {
    animation: smokeRing 10s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Синхронизация с дымом для каждой модели */
.product-with-smoke:nth-child(1) .smoke-ring { animation-delay: 2.5s; }
.product-with-smoke:nth-child(2) .smoke-ring { animation-delay: 5.5s; }
.product-with-smoke:nth-child(3) .smoke-ring { animation-delay: 0.5s; }
.product-with-smoke:nth-child(4) .smoke-ring { animation-delay: 7.5s; }
.product-with-smoke:nth-child(5) .smoke-ring { 
    animation-delay: 4.0s;
    animation-name: smokeRingTilted; /* Кольцо под углом вправо */
}
.product-with-smoke:nth-child(6) .smoke-ring { 
    animation-delay: 9.0s;
    animation-name: smokeRingTilted; /* Кольцо под углом вправо */
}

@keyframes smokeRing {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.6) rotateX(70deg);
        border-width: 3.5px;
    }
    5% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(-10px) scale(1.0) rotateX(70deg);
        border-width: 3px;
    }
    15% {
        opacity: 0.75;
        transform: translateX(-50%) translateY(-35px) scale(1.8) rotateX(70deg);
        border-width: 2.5px;
    }
    30% {
        opacity: 0.5;
        transform: translateX(-50%) translateY(-70px) scale(2.8) rotateX(70deg);
        border-width: 1.8px;
    }
    45% {
        opacity: 0.2;
        transform: translateX(-50%) translateY(-110px) scale(4.0) rotateX(70deg);
        border-width: 1px;
    }
    60% {
        opacity: 0;
        transform: translateX(-50%) translateY(-140px) scale(5.0) rotateX(70deg);
        border-width: 0.5px;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-140px) scale(5.0) rotateX(70deg);
    }
}

/* Кольцо дыма с наклоном вправо (для 5-й и 6-й моделей) */
@keyframes smokeRingTilted {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.6) rotateX(70deg);
        border-width: 3.5px;
    }
    5% {
        opacity: 0.5;
        transform: translateX(calc(-50% + 3px)) translateY(-10px) scale(1.0) rotateX(70deg);
        border-width: 3px;
    }
    15% {
        opacity: 0.75;
        transform: translateX(calc(-50% + 8px)) translateY(-35px) scale(1.8) rotateX(70deg);
        border-width: 2.5px;
    }
    30% {
        opacity: 0.5;
        transform: translateX(calc(-50% + 15px)) translateY(-70px) scale(2.8) rotateX(70deg);
        border-width: 1.8px;
    }
    45% {
        opacity: 0.2;
        transform: translateX(calc(-50% + 22px)) translateY(-110px) scale(4.0) rotateX(70deg);
        border-width: 1px;
    }
    60% {
        opacity: 0;
        transform: translateX(calc(-50% + 28px)) translateY(-140px) scale(5.0) rotateX(70deg);
        border-width: 0.5px;
    }
    100% {
        opacity: 0;
        transform: translateX(calc(-50% + 28px)) translateY(-140px) scale(5.0) rotateX(70deg);
    }
}

.back-btn {
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn i {
    font-size: 1rem;
    color: var(--accent-purple);
    transition: transform 0.3s ease, color 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

.back-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(-3px);
}

.back-btn:hover i {
    transform: translateX(-3px) scale(1.1);
    color: var(--accent-blue);
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.6))
            drop-shadow(0 0 15px rgba(0, 217, 255, 0.4));
}

.checkout-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 0 40px;
}

.checkout-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ff006e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
}

.section-title {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    font-size: 1.4rem;
    color: var(--accent-purple);
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.5));
}

.section-title:first-child {
    margin-top: 0;
}

/* Форма оформления */
.checkout-form-section,
.checkout-summary-section {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

body.light-theme .checkout-form-section,
body.light-theme .checkout-summary-section {
    background: rgba(245, 245, 247, 0.8);
    border-color: rgba(139, 92, 246, 0.2);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    font-size: 1rem;
    color: var(--accent-blue);
    filter: drop-shadow(0 2px 6px rgba(0, 217, 255, 0.4));
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 30, 45, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    margin-top: 20px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ff006e 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.submit-btn i {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.submit-btn:hover i {
    transform: scale(1.2) rotate(360deg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Товары в заказе */
.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(30, 30, 45, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.light-theme .order-item {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(139, 92, 246, 0.2);
}

.order-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(3px);
}

.order-item-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.order-item-name {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item-name i {
    font-size: 0.9rem;
    color: var(--accent-blue);
    filter: drop-shadow(0 2px 6px rgba(0, 217, 255, 0.4));
}

.order-item-qty {
    color: rgba(139, 92, 246, 1);
    font-weight: 700;
}

.order-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.empty-cart-message i {
    font-size: 2rem;
    color: var(--accent-purple);
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.6));
    margin-bottom: 10px;
}

.empty-cart-message a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Итоги заказа */
.order-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: var(--text-color);
    align-items: center;
}

.total-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.total-row i {
    font-size: 1rem;
    color: var(--accent-purple);
    filter: drop-shadow(0 2px 6px rgba(139, 92, 246, 0.5));
}

.total-row.total-final {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.total-row.total-final i {
    font-size: 1.3rem;
    color: var(--accent-pink);
    filter: drop-shadow(0 3px 10px rgba(255, 0, 110, 0.6));
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(139, 92, 246, 0.3);
}

/* Адаптив */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-summary-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-container {
        padding: 0 14px;
        /* header фиксированный и в 2 строки */
        margin: 132px auto 40px;
    }
    
    .checkout-title {
        font-size: 1.65rem;
        margin-bottom: 18px;
    }
    
    .checkout-form-section,
    .checkout-summary-section {
        padding: 20px 16px;
        border-radius: 16px;
        width: 100%;
        max-width: 100%;
        overflow: hidden; /* Prevent overflow from children */
    }
    
    .section-title {
        font-size: 1.15rem;
        margin: 20px 0 12px;
    }

    .section-title i {
        font-size: 1.15rem;
    }

    .checkout-grid {
        gap: 18px;
    }

    /* Кнопка "назад" в шапке на мобилках */
    .back-btn {
        padding: 8px 10px;
        border-radius: 10px;
        gap: 8px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Поля формы: без iOS-зума и удобная высота тапов */
    .form-group label {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* важно для iOS */
        padding: 12px 14px;
        border-radius: 10px;
    }

    .form-group input,
    .form-group select {
        min-height: 44px;
    }

    .form-group textarea {
        min-height: 96px;
    }

    .submit-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Список товаров в заказе: переносы, чтобы ничего не уезжало */
    .order-items {
        gap: 10px;
        margin-bottom: 18px;
    }

    .order-item {
        padding: 12px;
        flex-wrap: wrap;
        gap: 8px 10px;
        align-items: flex-start;
    }

    .order-item-info {
        flex: 1 1 auto;
        min-width: 0;
        gap: 10px;
        flex-wrap: wrap;
        align-items: baseline;
    }

    .order-item-name {
        line-height: 1.25;
        word-break: break-word;
    }

    .order-item-price {
        margin-left: auto;
        font-size: 1rem;
        white-space: nowrap;
    }

    .order-totals {
        gap: 10px;
        padding-top: 16px;
    }

    .total-row {
        font-size: 0.95rem;
    }

    .total-row.total-final {
        font-size: 1.25rem;
    }
    
    /* Модальное окно акции на мобильных */
    .promo-modal-content {
        width: 95%;
        padding: 20px 16px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .promo-modal-badge {
        font-size: 1.6rem;
    }
    
    .promo-modal-title {
        font-size: 1.2rem;
    }
    
    .promo-modal-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .promo-modal-section h3 {
        font-size: 0.95rem;
    }
    
    .promo-modal-section p {
        font-size: 0.85rem;
    }
    
    .promo-modal-icon {
        font-size: 1.1rem;
    }
    
    .promo-modal-progress-wrapper {
        padding: 12px;
    }
    
    .promo-modal-cta {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 420px) {
    .back-btn-text {
        display: none;
    }

    .checkout-container {
        margin-top: 142px;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    position: relative;
    z-index: 10;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    padding: 60px 0 0;
    color: var(--text-color);
}

body.light-theme .footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(14, 165, 233, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    animation: fadeInUp 0.6s ease-out;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-logo-accent {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

body.light-theme .footer-badge {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-grad);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-text);
    font-size: 0.95rem;
}

.footer-links li i {
    color: var(--accent-purple);
    font-size: 1rem;
    width: 20px;
}

body.light-theme .footer-links li i {
    color: var(--accent-blue);
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-purple);
    transform: translateX(3px);
}

body.light-theme .footer-links a:hover {
    color: var(--accent-blue);
}

.footer-schedule {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-schedule li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    font-size: 0.95rem;
}

body.light-theme .footer-schedule li {
    border-bottom-color: rgba(14, 165, 233, 0.1);
}

.schedule-day {
    color: var(--gray-text);
    font-weight: 500;
}

.schedule-time {
    color: var(--accent-purple);
    font-weight: 600;
}

body.light-theme .schedule-time {
    color: var(--accent-blue);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--accent-purple);
    border-radius: 50%;
    color: var(--accent-purple);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

body.light-theme .social-link {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.social-link:hover {
    background: var(--accent-purple);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

body.light-theme .social-link:hover {
    background: var(--accent-blue);
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding: 25px 0;
    margin-top: 20px;
}

body.light-theme .footer-bottom {
    border-top-color: rgba(14, 165, 233, 0.15);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: 0;
}

.footer-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-pink);
    font-size: 0.9rem;
    font-weight: 600;
}

.footer-warning i {
    font-size: 1rem;
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность footer */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-schedule li {
        font-size: 0.9rem;
    }
}
