/* ========================================
   ОТКЛЮЧЕНИЕ АНИМАЦИЙ КОРЗИНЫ
   ======================================== */
.cart-item-controls button,
.cart-item-controls button:active,
.cart-item-controls button:hover,
.cart-item-controls button:focus,
.cart-item-remove,
.cart-item-remove:active,
.cart-item-remove:hover,
.cart-item-remove:focus,
.cart-item,
.cart-item:hover,
.cart-item:active,
.cart-button,
.cart-button:hover,
.cart-button:active,
#checkoutBtn,
#checkoutBtn:hover,
#checkoutBtn:active {
    transform: none !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Final strong overrides for very small screens to match desktop modal look */


/* ========================================
   ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ КНОПКИ ЗАКРЫТИЯ КОРЗИНЫ
   ======================================== */
.cart-close {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative !important;
    display: inline-block !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    text-align: center !important;
    color: #999 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cart-close:hover,
.cart-close:focus,
.cart-close:active {
    cursor: pointer !important;
    pointer-events: auto !important;
    color: #333 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 50% !important;
}

/* ========================================
   BASE STYLES & VARIABLES
   ======================================== */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Purple Theme Color Palette */
    --purple-dark: #3715b5;
    --purple-medium: #6b44e8;
    --purple-light: #9073fe;
    --purple-gradient: linear-gradient(135deg, #3715b5, #6b44e8, #9073fe);
    --purple-accent: #3ff5e6;
    --purple-white: #ffffff;
    --purple-light-bg: #f8f6ff;
    --purple-text-light: rgba(255, 255, 255, 0.9);
    --purple-text-dark: #2d1b69;
    --purple-border: rgba(107, 68, 232, 0.3);
    
    /* Apple-style shadows and effects */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    
    /* Smooth transitions */
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--purple-text-dark);
    background: var(--purple-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove any gaps between sections */
section {
    display: block;
    margin: 0;
    padding: 0;
}

section + section {
    margin-top: 0;
}

section + .wave-divider {
    margin-top: 0;
}

.wave-divider + section {
    margin-top: 0;
}

/* Ensure seamless section transitions */
.hero, .products, .simple-tabs-section, .footer {
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Utility classes */
.highlight {
    color: #3ff5e6;
}

/* Animation classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-up.delay-1 {
    animation-delay: 0.2s;
}

.animate-fade-up.delay-2 {
    animation-delay: 0.4s;
}

.animate-fade-up.delay-3 {
    animation-delay: 0.6s;
}

.animate-fade-up.delay-4 {
    animation-delay: 0.8s;
}

.animate-fade-up.delay-5 {
    animation-delay: 1.0s;
}

.animate-slide-in {
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 1s ease-out 0.3s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Enhanced mobile styles */
.is-mobile {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.is-mobile input,
.is-mobile textarea,
.is-mobile select {
    -webkit-user-select: text;
    user-select: text;
}

.is-ios {
    -webkit-overflow-scrolling: touch;
}

/* Touch feedback for interactive elements */
.touch-feedback {
    transition: transform 0.1s ease-out;
}

.touch-feedback:active {
    transform: scale(0.95);
}
/* ========================================
   COMPONENTS STYLES
   ======================================== */

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: white;
    color: black;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-medium);
    white-space: nowrap;
}

.btn-primary:hover {
    background: #f0f0f0;
    color: black;
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--purple-white);
    border: 2px solid var(--purple-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--purple-white);
    color: var(--purple-dark);
    transform: translateY(-3px);
}

.btn-product {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-product:hover {
    background: rgba(63, 245, 230, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: black;
    border-color: rgba(63, 245, 230, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(63, 245, 230, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-product.primary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-product.primary:hover {
    background: rgba(63, 245, 230, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: black;
    border-color: rgba(63, 245, 230, 0.5);
    box-shadow: 0 8px 25px rgba(63, 245, 230, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Стили для кнопки "Добавить в корзину" */
.btn-cart {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: black !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    position: relative;
    overflow: hidden;
}

/* Анимация бегущих полосок для кнопки "Добавить в корзину" ТОЛЬКО на карточках */
.product-card .btn-cart::before,
.product-card .btn-cart::after {
    content: '';
    position: absolute;
    display: block;
}

/* Верхняя полоска */
.product-card .btn-cart::before {
    top: -2px;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3ff5e6, #3ff5e6, transparent);
    animation: animateTop 2s linear infinite;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 0 20px #3ff5e6;
}

/* Правая полоска */
.product-card .btn-cart span:nth-child(1) {
    position: absolute;
    top: -100%;
    right: -2px;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #3ff5e6, #3ff5e6, transparent);
    animation: animateRight 2s linear infinite;
    animation-delay: 0.5s;
    border-radius: 0 25px 25px 0;
    box-shadow: 0 0 20px #3ff5e6;
}

/* Нижняя полоска */
.product-card .btn-cart span:nth-child(2) {
    position: absolute;
    bottom: -2px;
    right: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(270deg, transparent, #3ff5e6, #3ff5e6, transparent);
    animation: animateBottom 2s linear infinite;
    animation-delay: 1s;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 0 20px #3ff5e6;
}

/* Левая полоска */
.product-card .btn-cart span:nth-child(3) {
    position: absolute;
    bottom: -100%;
    left: -2px;
    width: 4px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #3ff5e6, #3ff5e6, transparent);
    animation: animateLeft 2s linear infinite;
    animation-delay: 1.5s;
    border-radius: 25px 0 0 25px;
    box-shadow: 0 0 20px #3ff5e6;
}

/* Анимации для полосок */
@keyframes animateTop {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes animateRight {
    0% {
        top: -100%;
    }
    50%, 100% {
        top: 100%;
    }
}

@keyframes animateBottom {
    0% {
        right: -100%;
    }
    50%, 100% {
        right: 100%;
    }
}

@keyframes animateLeft {
    0% {
        bottom: -100%;
    }
    50%, 100% {
        bottom: 100%;
    }
}

.product-card .btn-cart:hover {
    background: rgba(63, 245, 230, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-color: rgba(63, 245, 230, 0.5) !important;
    color: black !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(63, 245, 230, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

.btn-cart.primary {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: black !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 
                inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   MODAL WINDOWS
   ======================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Router modal - мобильная версия: галерея сверху, описание ниже, кнопка покупки внизу */


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 1;
    transition: var(--transition-fast);
}

.close:hover,
.close:focus {
    color: var(--purple-dark);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}

.modal-left {
    background: var(--purple-light-bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-right {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-right h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: black;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* Анимация переливания для кнопки в модальном окне */
.modal-actions .btn-primary {
    position: relative;
    overflow: hidden;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.product-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    border: none;
}

.product-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 
                0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-card.featured {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-badge {
    display: none !important;
}

.product-image {
    height: 220px;
    width: 100%;
    background: linear-gradient(135deg, var(--purple-medium), var(--purple-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    padding: 15px;
}

.router-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 180px;
    min-height: 120px;
}

.product-card:hover .router-image {
    transform: scale(1.05);
}

/* Специальные стили для webp изображений */
.router-image[src*=".webp"] {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: 180px;
    min-height: 120px;
    transform: scale(1.2);
}

.product-router {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    position: relative;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-router.cudy-wr300 {
    background: linear-gradient(145deg, #3498db, #2980b9);
}

.product-router.cudy-wr1200e {
    background: linear-gradient(145deg, #27ae60, #229954);
}

.product-router.cudy-wr1500 {
    background: linear-gradient(145deg, var(--purple-dark), #333);
}

.product-router.xiaomi-3000t {
    background: linear-gradient(145deg, #e67e22, #d35400);
}

.product-router.cudy-wr3600 {
    background: linear-gradient(145deg, #8e44ad, #9b59b6);
    position: relative;
}

.product-router.cudy-wr3600::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(145deg, #663399, #7d4cad);
    border-radius: 13px;
    z-index: -1;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgb(255, 255, 255);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(255, 255, 255);
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: rgb(255, 255, 255);
    position: relative;
    padding-left: 2rem;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgb(255, 255, 255);
    font-weight: bold;
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

/* Улучшенные стили для мобильных кнопок */
@media (max-width: 768px) {
    .product-buttons {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .product-buttons .btn-product {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .product-buttons .btn-product:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .product-buttons .btn-product:focus {
        outline: 2px solid var(--purple-accent);
        outline-offset: 2px;
    }
}

/* ========================================
   CAROUSEL COMPONENTS
   ======================================== */

.router-carousel-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.router-carousel {
    position: relative;
    width: 400px;
    height: 280px;
    margin: 0 auto 1rem;
}

.router-carousel-slide {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    background: #808080;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    will-change: transform, opacity;
    /* Оптимизация для GPU */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Улучшение производительности на iOS */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Оптимизация рендеринга */
    contain: layout style paint;
}

.router-carousel-slide.cudy-wr300 {
    background: #808080;
}

.router-carousel-slide.cudy-wr1200e {
    background: #808080;
}

.router-carousel-slide.cudy-wr1500 {
    background: #808080;
}

.router-carousel-slide.xiaomi-3000t {
    background: #808080;
}

.router-carousel-slide.cudy-wr3600 {
    background: #808080;
}

/* Анимации для свайпов карусели */
.router-carousel-slide.swipe-left {
    transform: translateX(-100%);
    opacity: 0.7;
}

.router-carousel-slide.swipe-right {
    transform: translateX(100%);
    opacity: 0.7;
}

.router-carousel-slide.swipe-transition {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-in-out;
}

.router-carousel-slide img {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    /* Оптимизация для GPU */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Улучшение производительности на iOS */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Оптимизация изображений */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Предотвращение размытия при масштабировании */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.router-carousel-slide img.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.router-carousel-slide img.fade-in {
    opacity: 1;
    transform: scale(1);
}

.router-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2;
}

.router-carousel .carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.router-carousel .carousel-btn.prev {
    left: -15px;
}

.router-carousel .carousel-btn.next {
    right: -15px;
}

.router-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.router-carousel .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #808080 !important;
    cursor: pointer;
    transition: var(--transition-fast);
}

.router-carousel .carousel-dot.active {
    background: black !important;
}

.router-carousel .carousel-dot:hover {
    background: #666666 !important;
}

.image-counter {
    font-size: 0.875rem;
    color: black;
    font-weight: 500;
}

.carousel-hint {
    margin-top: 0.5rem;
    text-align: center;
    transition: opacity 0.3s ease;
}

.hint-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    opacity: 0.8;
}

.router-info {
    text-align: center;
}

.router-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: black;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
}

/* ========================================
   SPECIFICATIONS LIST
   ======================================== */

.specs-list {
    margin-bottom: 2rem;
}

.specs-list .spec-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.specs-list .spec-item:last-child {
    border-bottom: none;
}

.specs-list .spec-label {
    font-weight: 600;
    color: black;
    min-width: 120px;
    margin-right: 1rem;
}

.specs-list .spec-value {
    color: black;
}
/* ========================================
   LAYOUT STYLES
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--purple-gradient);
    background: url('../images/background1.png') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(107, 68, 232, 0.3) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(144, 115, 254, 0.2) 0%, transparent 60%),
                rgba(55, 21, 181, 0.1);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.hero-title .title-line {
    display: inline;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hero-subtitle .subtitle-line {
    display: block;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}



/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products {
    padding: 2.5rem 0 2rem 0;
    background: var(--purple-gradient);
    background-attachment: fixed;
    position: relative;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
    margin-top: 2rem;
}

/* ========================================
   TABS SECTION
   ======================================== */

.simple-tabs-section {
    padding: 60px 0;
    text-align: center;
    background: var(--purple-gradient);
    background-attachment: fixed;
    margin: 0;
}

.simple-tabs {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 4px;
}

.simple-tab-btn {
    padding: 16px 32px;
    background: transparent;
    border: none;
    border-radius: 40px;
    font-size: 1.4rem;
    font-weight: 600;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.simple-tab-btn:hover {
    color: black;
    transform: translateY(-2px);
}

.simple-tab-btn.active {
    background: var(--purple-accent);
    color: black;
    box-shadow: 0 4px 15px rgba(196, 148, 90, 0.3);
}

.simple-tab-btn:active {
    transform: scale(0.98);
}

/* Контент вкладок */
.tab-content {
    margin-top: 2rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Стили для инструкции */
.instruction-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.instruction-content h3 {
    color: rgb(255, 255, 255);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.instruction-image {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.instruction-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.instruction-text {
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* Стили для видео */
.video-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.video-content h3 {
    color: rgb(255, 255, 255);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.video-placeholder {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.video-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.video-placeholder p {
    color: rgb(255, 255, 255);
    font-size: 1.1rem;
    margin: 0;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
    background: var(--purple-gradient);
    padding: 4rem 0;
    position: relative;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* Убираем любые символы из FAQ элементов */
.faq-item::before,
.faq-item::after {
    content: none !important;
    display: none !important;
}

.faq-item {
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.faq-question {
    color: var(--purple-white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    padding: 0;
    outline: none;
    display: block;
    transition: all 0.3s ease;
    list-style: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.faq-question:hover {
    color: var(--purple-accent);
}

/* Иконка для интерактивного FAQ */
.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--purple-accent);
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.faq-question.active .faq-icon {
    content: '−';
    transform: none;
}

.faq-answer {
    color: var(--purple-text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
    opacity: 0.95;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    opacity: 0.95;
}

.faq-answer p {
    color: var(--purple-text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-answer li {
    color: var(--purple-text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0.95;
}

.faq-answer li::before {
    content: '•';
    color: var(--purple-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 1.2rem;
}

/* Анимации для FAQ */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.footer {
    background: var(--purple-dark);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    left: 0;
    right: 0;
    overflow-x: hidden;
}

/* Убираем любые ограничения ширины для футера */
.footer * {
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--purple-accent);
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--purple-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ========================================
   WAVE DIVIDERS
   ======================================== */

.wave-divider {
    height: 100px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

/* Hero to Products wave */
.wave-divider.hero-to-products {
    background: transparent;
    margin-top: -1px;
    margin-bottom: -1px;
    display: none;
}

.wave-divider.hero-to-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    clip-path: polygon(0 0, 100% 0, 100% 60%, 75% 80%, 50% 60%, 25% 80%, 0 60%);
}

/* Products to Footer wave */
.wave-divider.products-to-footer {
    background: var(--purple-gradient);
    background-attachment: fixed;
    margin-top: -1px;
    margin-bottom: -1px;
}

.wave-divider.products-to-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--purple-dark);
    clip-path: polygon(0 40%, 25% 20%, 50% 40%, 75% 20%, 100% 40%, 100% 100%, 0 100%);
}

/* Alternative smoother wave */
.wave-divider.smooth {
    height: 80px;
}

.wave-divider.smooth::before {
    clip-path: ellipse(100% 80px at 50% 100%);
}

/* Animated wave effect */
@keyframes waveFlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.wave-divider.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: waveFlow 3s ease-in-out infinite;
}
/* ========================================
   CART STYLES
   ======================================== */

/* ========================================
   CART MODAL
   ======================================== */

.cart-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    width: 90%;
    background: white;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--purple-light-bg);
    border-radius: 20px 20px 0 0;
}

.cart-header h2 {
    margin: 0;
    color: black;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-header-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(0%);
}

.cart-count {
    background: var(--purple-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: none; /* Скрываем синий кружок с количеством товаров */
}

.cart-close {
    color: black;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    outline: none;
    box-shadow: none;
    position: relative;
    z-index: 10;
    float: none;
    right: auto;
    top: auto;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cart-close:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.cart-close:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.cart-items {
    padding: 1rem 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    background: white;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.cart-item:hover {
    box-shadow: var(--shadow-medium);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-image {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.cart-router-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: black;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.cart-item-price {
    color: black;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    position: relative;
    z-index: 5;
}

.cart-item-controls button {
    background: var(--purple-accent);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    min-width: 28px;
    min-height: 28px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.cart-item-controls button:hover {
    background: #C4945A;
}

.cart-item-controls span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: black;
    font-size: 1rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: var(--transition-fast);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: var(--purple-medium);
    background: rgba(231, 76, 60, 0.1);
}

.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--purple-light-bg);
    border-radius: 0 0 20px 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: black;
}

.total-price {
    color: black;
    font-size: 1.5rem;
}

#checkoutBtn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ========================================
   EMPTY CART
   ======================================== */

.cart-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: black;
}

.cart-empty-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-empty-icon img {
    width: 64px;
    height: 64px;
    filter: brightness(0) saturate(100%) invert(0%);
    opacity: 0.3;
}

.cart-empty p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* ========================================
   FIXED CART BUTTON
   ======================================== */

.cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-smooth);
    z-index: 9999;
    border: none;
}

.cart-button:hover {
    background: #f8f9fa;
    box-shadow: 0 15px 40px rgba(196, 148, 90, 0.4);
}

.cart-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(0%);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--purple-medium);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
    transition: var(--transition-fast);
}

.cart-badge.hidden {
    display: none;
}

/* ========================================
   CHECKOUT MODAL
   ======================================== */

.checkout-modal .modal-content {
    max-width: 500px;
    padding: 1.5rem;
    height: auto;
    max-height: none;
    overflow: visible;
    margin: 3% auto;
    position: relative;
}

/* Styles for JS-driven scale-fit mode: scale modal to fit viewport without internal scrolling */
.checkout-modal .modal-content.scaled {
    transform-origin: top center !important;
    will-change: transform;
    transition: transform 160ms var(--transition-fast) !important;
    overflow: visible !important;
}



/* Slight shrink for checkbox labels when modal scaled */
.checkout-modal .modal-content.scaled .checkbox-wrapper-4 .cbx span:last-child { font-size: 0.9rem !important; }

.checkout-modal .checkout-actions {
    margin-top: 1rem !important;
    padding: 0 !important;
    background: transparent !important;
    border-top: none !important;
    z-index: 1 !important;
}

.checkout-modal .modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.checkout-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.checkout-header h2 {
    color: var(--purple-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-form .form-group {
    margin-bottom: 0;
}

.checkout-form .form-group input,
.checkout-form .form-group textarea,
.checkout-form .form-group select {
    width: 100%;
    background: var(--purple-white);
    border: 1px solid var(--purple-border);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--purple-dark);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
}

.checkout-form .form-group input:focus,
.checkout-form .form-group textarea:focus,
.checkout-form .form-group select:focus {
    outline: none;
    border-color: var(--purple-accent);
    background: var(--purple-white);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.checkout-form .form-group input::placeholder,
.checkout-form .form-group textarea::placeholder {
    color: var(--purple-text-light);
}

.checkout-form .form-group label {
    position: static;
    display: block;
    margin-bottom: 0.25rem;
    background: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--purple-text-dark);
    font-weight: 500;
}

/* Стили для согласия на обработку персональных данных */
.consent-group {
    margin: 0.25rem 0;
}

/* Стили для группы чекбоксов в форме оформления заказа */
.checkbox-group {
    margin: 0.75rem 0;
}

/* Кастомные чекбоксы */
.checkbox-wrapper-4 * {
    box-sizing: border-box;
}

.checkbox-wrapper-4 .cbx {
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    /* allow the check SVG to overflow slightly for nicer visuals */
    overflow: visible;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.checkbox-wrapper-4 .cbx:not(:last-child) {
    margin-right: 6px;
}

.checkbox-wrapper-4 .cbx:hover {
    background: rgba(107, 68, 232, 0.06);
}

.checkbox-wrapper-4 .cbx span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}

.checkbox-wrapper-4 .cbx span:first-child {
    /* visual square for the checkbox */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    transform: scale(1);
    border: 2px solid rgba(0,0,0,0.15);
    background: transparent;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(2,8,30,0.04);
    box-sizing: border-box;
}

.checkbox-wrapper-4 .cbx span:first-child svg {
    /* center the checkmark inside the square */
    position: relative;
    width: 12px;
    height: 10px;
    display: block;
    margin: 0;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.25s ease;
}

.checkbox-wrapper-4 .cbx span:last-child {
    line-height: 1.2;
    color: var(--purple-text-dark);
    font-size: 0.95rem;
    /* allow wrapping for longer links/text */
    word-break: break-word;
}

.checkbox-wrapper-4 .cbx span:last-child a {
    color: var(--purple-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-wrapper-4 .cbx span:last-child a:hover {
    color: var(--purple-dark);
}

.checkbox-wrapper-4 .cbx:hover span:first-child {
    border-color: var(--purple-accent);
}

.checkbox-wrapper-4 .inp-cbx {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child {
    background: var(--purple-accent);
    border-color: var(--purple-accent);
    animation: wave-4 0.36s ease;
    box-shadow: 0 6px 18px rgba(79, 30, 255, 0.12);
    transform: translateY(-1px) scale(1.02);
}

.checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
}

.checkbox-wrapper-4 .inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    user-select: none;
}

@-moz-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@-webkit-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@-o-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--purple-accent);
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 18px;
    min-height: 18px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    transition: all 0.2s ease;
    border: 2px solid #000000;
    border-radius: 0;
    background: white;
    display: block;
    visibility: visible;
    opacity: 1;
}

.consent-checkbox input[type="checkbox"]:checked {
    background: var(--purple-accent);
    border-color: var(--purple-accent);
}

.consent-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.consent-label {
    color: black;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 0.6rem;
    margin-left: 0.3rem;
}

.consent-link {
    color: var(--purple-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.consent-link:hover {
    color: var(--purple-dark);
}

.checkout-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.checkout-actions .btn-secondary,
.checkout-actions .btn-primary {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.checkout-actions .btn-secondary {
    background: var(--purple-white);
    color: var(--purple-dark);
    border: 2px solid var(--purple-border);
}

.checkout-actions .btn-secondary:hover {
    background: var(--purple-light-bg);
    border-color: var(--purple-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.checkout-actions .btn-primary {
    background: var(--purple-dark);
    color: var(--purple-white);
}

.checkout-actions .btn-primary:hover {
    background: var(--purple-text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.checkout-actions .btn-secondary {
    background: var(--purple-white);
    color: var(--purple-dark);
    border: 2px solid var(--purple-border);
}

.checkout-actions .btn-secondary:hover {
    background: var(--purple-light-bg);
    border-color: var(--purple-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.checkout-actions .btn-primary {
    background: var(--purple-dark);
    color: var(--purple-white);
}

.checkout-actions .btn-primary:hover {
    background: var(--purple-text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Стили для виджета СДЭК */
#cdekWidgetGroup {
    margin-bottom: 1rem;
}

#cdek-map {
    border: 1px solid var(--purple-border) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

/* Стили для select элемента */
.checkout-form .form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Стили для валидации всех полей */
.checkout-form .form-group input.valid,
.checkout-form .form-group textarea.valid,
.checkout-form .form-group select.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.checkout-form .form-group input.invalid,
.checkout-form .form-group textarea.invalid,
.checkout-form .form-group select.invalid {
    border-color: var(--purple-medium);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Исключаем чекбоксы из стилей валидации */
.checkout-form .form-group input[type="checkbox"].valid,
.checkout-form .form-group input[type="checkbox"].invalid {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

/* Дополнительно убираем все возможные рамки для чекбоксов */
.checkout-form .form-group input[type="checkbox"] {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.checkout-form .form-group input[type="checkbox"]:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.checkout-form .form-group input.valid:focus,
.checkout-form .form-group textarea.valid:focus,
.checkout-form .form-group select.valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.checkout-form .form-group input.invalid:focus,
.checkout-form .form-group textarea.invalid:focus,
.checkout-form .form-group select.invalid:focus {
    border-color: var(--purple-medium);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Стили для placeholder в поле телефона */
.checkout-form .form-group input[type="tel"]::placeholder {
    color: var(--purple-text-light);
    opacity: 0.7;
}

.checkout-form .form-group select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23D4A574' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* ========================================
   SUCCESS PAYMENT MODAL
   ======================================== */

.success-payment-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 2rem;
}

.success-payment-header h2 {
    color: #28a745;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.success-payment-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.contact-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-height: 60px;
    justify-content: center;
    text-align: center;
}

.contact-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-text {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    display: block;
}

.contact-value {
    color: #007bff;
    font-weight: 600;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.25rem;
}

.success-actions {
    margin-top: 1.5rem;
}

.success-actions .btn-primary {
    background: #28a745;
    border-color: #28a745;
    padding: 0.75rem 2rem;
}

.success-actions .btn-primary:hover {
    background: #218838;
    border-color: #1e7e34;
}

/* ========================================
   COOPERATION MODAL
   ======================================== */

.cooperation-modal .modal-content {
    max-width: 500px;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cooperation-header h2 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.cooperation-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.cooperation-content .contact-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cooperation-content .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cooperation-content .contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: left;
}

.cooperation-content .contact-link:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cooperation-content .contact-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.cooperation-content .contact-text {
    font-weight: 500;
    font-size: 1rem;
}

.cooperation-content .contact-value {
    color: #007bff;
    font-weight: 600;
    font-size: 0.95rem;
}

.cooperation-actions {
    margin-top: 1.5rem;
}

.cooperation-actions .btn-primary {
    background: #007bff;
    border-color: #007bff;
    padding: 0.75rem 2rem;
}

.cooperation-actions .btn-primary:hover {
    background: #0056b3;
    border-color: #004085;
}
/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* ========================================
   LARGE TABLETS AND SMALL DESKTOPS
   ======================================== */



/* ========================================
   TABLETS
   ======================================== */



/* ========================================
   MOBILE PHONES
   ======================================== */



/* Extra tweaks to lift buttons and left-align checkboxes on very small screens */


/* ========================================
   EXTRA SMALL DEVICES
   ======================================== */





/* ========================================
   LANDSCAPE ORIENTATION FOR CART
   ======================================== */



/* ========================================
   MOBILE DEVICE SPECIFIC OPTIMIZATIONS
   ======================================== */

.is-mobile {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.is-mobile input,
.is-mobile textarea,
.is-mobile select {
    -webkit-user-select: text;
    user-select: text;
}

.is-ios {
    -webkit-overflow-scrolling: touch;
}

/* Enhanced mobile navigation animations */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Touch feedback for interactive elements */
.touch-feedback {
    transition: transform 0.1s ease-out;
}

.touch-feedback:active {
    transform: scale(0.95);
}

/* Enhanced mobile styles */


/* Progressive enhancement for modern mobile browsers */
@supports (backdrop-filter: blur(20px)) {
    .nav-menu {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

@supports (overscroll-behavior: none) {
    .is-mobile {
        overscroll-behavior: none;
    }
}

/* Мобильная адаптация для корзины */


/* Мобильная адаптация для кнопок продуктов */


/* Мобильная адаптация для модального окна роутера */











/* ========================================
   MAIN STYLES - MODULAR CSS Architecture
   ======================================== */

/* Import all CSS modules */
@import url('base.css');
@import url('components.css');
@import url('layout.css');
@import url('cart.css');
@import url('responsive.css');

/* ========================================
   ADDITIONAL GLOBAL STYLES
   ======================================== */

/* Notification styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    max-width: 400px;
    border-left: 4px solid #3498db;
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-content {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-message {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #333;
}

/* Carousel modal styles */
.carousel-modal {
    max-width: 800px;
    background: transparent;
    box-shadow: none;
}

.carousel-container {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.carousel-slide {
    width: 100%;
    height: 500px;
    background: var(--purple-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #808080;
    cursor: pointer;
    transition: var(--transition-fast);
}

.carousel-dot.active {
    background: black;
}

.carousel-dot:hover {
    background: #3ff5e6;
}

/* Ripple effect animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile navigation styles */
.nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Form focused states */
.form-group.focused label {
    color: var(--purple-accent);
    transform: translateY(-5px);
}

.animate-in {
    animation-play-state: running !important;
}

/* Mobile specific styles */


/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Optimize animations for better performance */
* {
    will-change: auto;
}

.animate-fade-up,
.animate-slide-in,
.product-card,
.btn-primary,
.btn-secondary,
.btn-product {
    will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */


/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus indicators for better accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--purple-accent);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--purple-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10001;
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */


/* ========================================
   PRINT STYLES
   ======================================== */



/* ========================================
   CART CLOSE BUTTON FIXES
   ======================================== */

/* Принудительное удаление всех обводок для cart-close */
.cart-close {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.cart-close:hover,
.cart-close:focus,
.cart-close:active,
.cart-close:visited {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Мобильные стили для cart-close */


/* ========================================
   NAVIGATION STYLES
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--purple-accent);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--purple-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--purple-accent);
    background: rgba(139, 69, 19, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--purple-accent);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   OPTIMIZED MOBILE STYLES - FINAL VERSION
   ======================================== */

/* Base mobile optimizations */


/* Landscape orientation optimizations */


/* Small mobile devices (iPhone SE, etc.) */


/* Large mobile devices (iPhone Plus, etc.) */


/* ========================================
   ПРИНУДИТЕЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ КНОПОК КОРЗИНЫ
   ======================================== */


/* Mobile buy button hidden on desktop by default */
#modalBuyBtnMobile {
    display: none;
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ МОБИЛЬНЫЕ СТИЛИ ДЛЯ КНОПОК
   ======================================== */

@media (max-width: 768px) {
    /* Improved button states for mobile */
    button,
    .btn-primary,
    .btn-secondary,
    .btn-product,
    .btn-submit {
        position: relative;
        overflow: hidden;
        min-height: 48px;
        min-width: 48px;
    }
    
    button::after,
    .btn-primary::after,
    .btn-secondary::after,
    .btn-product::after,
    .btn-submit::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
    }
    
    button:active::after,
    .btn-primary:active::after,
    .btn-secondary:active::after,
    .btn-product:active::after,
    .btn-submit:active::after {
        width: 200px;
        height: 200px;
    }
    
    /* Убираем hover эффекты на мобильных */
    .btn-details:hover,
    .btn-cart:hover {
        transform: none !important;
    }
    
    /* Улучшенные активные состояния */
    .btn-details:active,
    .btn-cart:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Улучшенные touch состояния */
    .btn-details:focus,
    .btn-cart:focus {
        outline: 2px solid var(--purple-accent);
        outline-offset: 2px;
    }
    
    /* Круглая обводка для крестиков закрытия в мобильной версии */
    .close {
        border-radius: 50%;
        border: 2px solid rgba(0, 0, 0, 0.2);
        background: rgba(255, 255, 255, 0.9);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        padding: 0;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .close:active {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.4);
        transform: scale(0.9);
    }
    
    /* Стили для крестиков уведомлений в мобильной версии */
    .notification-close {
        border-radius: 50%;
        border: 2px solid rgba(0, 0, 0, 0.2);
        background: rgba(255, 255, 255, 0.9);
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        padding: 0;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .notification-close:active {
        background: rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.4);
        transform: scale(0.9);
    }
}
