
/* ========================================
   ОТКЛЮЧЕНИЕ АНИМАЦИЙ КОРЗИНЫ
   ======================================== */
.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;
}

/* ========================================
   МОБИЛЬНЫЕ СТИЛИ - HEAT IMAGE MENU
   ======================================== */

/* Heat Image Menu Styles */
.heat-image {
    position: fixed;
    top: 20px;
    right: 50px;
    width: auto;
    height: auto;
    z-index: 5;
    display: none; /* Скрыто по умолчанию на десктопе */
}

/* Показываем меню на десктопе */
@media (min-width: 769px) {
    .heat-image {
        display: block;
        transform: scale(1.5);
        transform-origin: top right;
    }
}

.page-favicon {
    position: absolute;
    top: 5px;
    right: 18px;
    width: 26px;
    height: 25px;
    z-index: 15;
}

.questions-image {
    position: absolute;
    top: 4px;
    left: 70px;
    width: 29px;
    height: 27px;
    z-index: 16;
}

.menu-image {
    position: absolute;
    top: 5px;
    left: 17px;
    width: 24px;
    height: 24px;
    z-index: 17;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.menu-image:hover {
    opacity: 0.8;
}

.menu-image.menu-open {
    position: absolute;
    top: 5px;
    left: 17px;
    width: 24px;
    height: 24px;
    z-index: 17;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.menu-image.menu-open:hover {
    opacity: 0.8;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 38px;
    left: 7px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu-content {
    background: white;
    border-radius: 17px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    width: 160px;
    height: 180px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-menu-item {
    display: block;
    padding: 8px 12px;
    color: #000000;
    text-decoration: none;
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    margin: 1px 4px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Мобильные стили для body и базовых элементов */
@media (max-width: 768px) {
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        line-height: 1.6 !important;
        color: #FFFFFF !important;
        background: #8471CC !important;
        background-attachment: fixed !important;
        overflow-x: hidden !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
    
    /* Переопределение шрифта для модальных окон */
    .modal, .modal * {
        font-family: 'Coolvetica', Arial, sans-serif !important;
    }
    
    /* Специфичное переопределение для модального окна контактов */
    .contact-modal, .contact-modal *,
    .contact-modal h2, .contact-modal p,
    .contact-modal .contact-link,
    .contact-modal .contact-text,
    .contact-modal .contact-value,
    .contact-modal .btn-primary {
        font-family: 'Coolvetica', Arial, sans-serif !important;
    }
    
    /* Переопределение стилей кнопки в модальном окне контактов */
    .contact-actions .btn-primary,
    .contact-actions .contact-close-btn {
        background: #8471CC !important;
        color: white !important;
        border-radius: 30px !important;
        font-family: 'Coolvetica', Arial, sans-serif !important;
        min-height: 48px !important;
        min-width: 80px !important;
        max-width: 120px !important;
        width: auto !important;
        padding: 14px 20px !important;
        display: inline-block !important;
    }

    body input,
    body textarea,
    body select {
        -webkit-user-select: text !important;
        user-select: text !important;
    }

    html {
        overflow-x: hidden !important;
        max-width: 100% !important;
        font-size: 10px !important;
    }
}

/* Мобильные стили для heat menu */
@media (max-width: 768px) {
    .heat-image {
        display: block;
        top: 15px;
        right: 15px;
    }
    
    .page-favicon {
        top: 3px;
        right: 18px;
        width: 26px;
        height: 25px;
    }
    
    .questions-image {
        top: 4px;
        left: 70px;
    }
    
    .menu-image {
        top: 5px;
        left: 17px;
    }
    
    .menu-image.menu-open {
        top: 5px;
        left: 17px;
    }
    
    .dropdown-menu {
        top: 42px;
        left: 0px;
        right: auto;
    }
    
    .dropdown-menu-content {
        width: 160px;
        height: 180px;
        padding: 10px 0;
    }
    
    .dropdown-menu-item {
        padding: 5px 12px;
        font-size: 15px;
        font-weight: 700;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* ========================================
   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-accent: #9075FF;
    --purple-gradient: linear-gradient(135deg, #3715b5, #6b44e8, #9073fe);
    --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;
}

/* Переопределение для мобильной версии */
.mobile-hero-title .mobile-title-line.mobile-highlight {
    color: white !important;
}

/* Стили для заголовков с выделением заглавных букв */
.hero-title .title-line {
    color: white !important;
    position: relative;
}

.hero-title .title-line::first-letter {
    color: #3ff5e6 !important;
}

.hero-title .title-line.no-highlight-first-letter::first-letter {
    color: white !important;
}

/* Специальный стиль для строки "На роутере" на десктопе */
.hero-title .title-line.highlight {
    color: white !important;
}

.hero-title .title-line.highlight::first-letter {
    color: #3ff5e6 !important;
}

/* Мобильная версия - весь текст белый, только заглавные буквы #3ff5e6 */
.mobile-hero-title {
    color: white !important;
}

.mobile-hero-title .mobile-title-line {
    color: white !important;
    position: relative;
}

.mobile-hero-title .mobile-title-line::first-letter {
    color: #3ff5e6 !important;
}

/* Для строки "На роутере" в мобильной версии - весь текст белый */
.mobile-hero-title .mobile-title-line.mobile-highlight {
    color: white !important;
}

.mobile-hero-title .mobile-title-line.mobile-highlight::first-letter {
    color: #3ff5e6 !important;
}

/* 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: 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;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 50px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 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;
}

/* Make left and right panels follow modal rounding on desktop */
.modal-left {
    border-radius: 20px 0 0 20px; /* rounded left side */
    overflow: hidden;
}
.modal-right {
    border-radius: 0 20px 20px 0; /* rounded right side */
    overflow: hidden;
}

.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(280px, 1fr));
    gap: 2rem;
    max-width: 1400px; /* Увеличиваем максимальную ширину */
    margin: 0 auto;
    justify-content: center;
    padding: 0 60px; /* Увеличиваем боковые отступы для лучшего соответствия мобильной версии */
}

.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: 25px; /* Увеличиваем внутренние отступы для лучшего соответствия мобильной версии */
}

.router-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 30px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

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

/* Специальные стили для webp изображений */
.router-image[src*=".webp"] {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 30px;
    transform: scale(1.1); /* Уменьшаем масштаб для лучшего отображения */
}

.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 2rem; /* Увеличиваем горизонтальные отступы для лучшего соответствия мобильной версии */
}

.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);
    }
}

/* Адаптивные настройки для разных размеров экрана */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        padding: 0 20px;
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2-3 колонки на планшетах */
        max-width: 100%;
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr); /* Точно 3 колонки на средних экранах */
        max-width: 1200px;
    }
}

/* Дополнительные отступы для больших экранов */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Адаптивно на очень больших экранах */
        padding: 0 60px; /* Еще больше отступов на больших экранах */
        max-width: 1600px;
    }
    
    .product-image {
        padding: 30px; /* Больше внутренних отступов на больших экранах */
    }
}

/* ========================================
   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: grid;
    grid-template-columns: 1fr auto; /* label / value columns */
    align-items: center;
    gap: 16px;
    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;
    font-size: 1rem;
    margin-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.specs-list .spec-value {
    color: black;
    min-width: 80px;
    text-align: right; /* right align values */
}

@media (max-width: 600px) {
    .specs-list .spec-label {
        white-space: normal;
    }
    .specs-list .spec-value {
        min-width: 60px;
        font-size: 0.95rem;
    }
}
/* ========================================
   LAYOUT STYLES
   ======================================== */

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

/* Мобильные стили для hero секции */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        background: var(--purple-gradient) !important;
        background-image: url('../images/mobilebackground.png') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        position: relative !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 8px 0 20px !important;
    }

    .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: 100% !important;
        margin: 0 !important;
        padding: 0 20px 0 0px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        position: absolute !important;
        top: 8px !important;
        left: 20px !important;
        font-size: 20px;
        z-index: 1 !important;
        width: auto !important;
    }

    .hero-content {
        margin-bottom: 24px;
        width: 100%;
        text-align: left;
    }

    .hero-text {
        margin-bottom: 24px;
        width: 100%;
        text-align: left;
    }

    .hero-title {
        font-size: 40px !important;
        font-weight: 400 !important;
        line-height: 1.1 !important;
        margin-bottom: 20px !important;
        margin-top: 0 !important;
        color: white !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        text-align: left !important;
        width: 100% !important;
        font-family: 'Coolvetica', Arial, sans-serif !important;
    }

    .hero-title .title-line {
        display: block !important;
        color: white !important;
        position: relative !important;
    }

    .hero-title .title-line::first-letter {
        color: #3ff5e6 !important;
    }

    .hero-title .title-line.highlight {
        color: white !important;
    }

    .hero-title .title-line.highlight::first-letter {
        color: #3ff5e6 !important;
    }

    .hero-subtitle {
        display: none !important;
    }

    .hero-subtitle .subtitle-line {
        display: none !important;
    }

    .hero-buttons {
        display: none !important;
    }

    .btn-primary, .btn-secondary {
        font-size: min(1.8rem, 7.2vw) !important;
        padding: min(10px, 2.5vw) min(16px, 4vw) !important;
        min-height: min(40px, 10vw) !important;
        border-radius: 30px !important;
        font-family: 'Coolvetica', Arial, sans-serif !important;
        font-weight: 400 !important;
        border: none !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .btn-primary {
        background: white !important;
        color: #3715b5 !important;
    }

    .btn-secondary {
        background: transparent !important;
        color: white !important;
        border: 1px solid white !important;
    }
}

/* ========================================
   ПУРПУРНЫЙ ПЕРЕХОДНЫЙ БЛОК
   ======================================== */

.purple-transition-block {
    background: #5223d8;
    height: 50px; /* Небольшая высота для закрытия щели */
    width: 100vw;
    position: absolute; /* Абсолютное позиционирование */
    top: 100vh; /* Расположен сразу после hero секции */
    left: 0;
    z-index: 1; /* Под products, но над всем остальным */
    box-sizing: border-box;
    pointer-events: none; /* Не блокирует клики */
}

/* Мобильные стили для пурпурного блока */
@media (max-width: 768px) {
    .purple-transition-block {
        background: #5223d8 !important;
        height: 50px !important; /* Небольшая высота для закрытия щели */
        width: 100vw !important;
        position: absolute !important; /* Абсолютное позиционирование */
        top: 100vh !important; /* Расположен сразу после hero секции */
        left: 0 !important;
        z-index: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        pointer-events: none !important; /* Не блокирует клики */
    }
}

/* ========================================
   HERO SECTION (DESKTOP)
   ======================================== */

.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;
}



/* ========================================
   ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ
   ======================================== */

@font-face {
    font-family: 'Coolvetica';
    src: url('../fonts/Coolvetica/coolvetica rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Дополнительные варианты шрифта Coolvetica для лучшей совместимости */
@font-face {
    font-family: 'Coolvetica';
    src: url('../fonts/Coolvetica/coolvetica rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Coolvetica';
    src: url('../fonts/Coolvetica/coolvetica rg.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   МОБИЛЬНАЯ СЕКЦИЯ ПРОДУКТОВ (ПЕРЕНЕСЕНА ИЗ MOBILE.CSS)
   ======================================== */

.mobile-products {
    padding: 40px 0;
    background: white;
    border-radius: 30px;
    position: relative;
    z-index: 2;
}

.mobile-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-section-title {
    font-family: 'Coolvetica', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    color: #000000;
}

.mobile-products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Десктопная верстка - 2 ряда по 3 карточки */
@media (min-width: 1024px) {
    .mobile-products-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    .mobile-product-card {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    
    /* Фиксированное позиционирование карточек */
    .mobile-product-card:nth-child(1) { grid-column: 1; grid-row: 1; } /* Чудо роутер */
    .mobile-product-card:nth-child(2) { grid-column: 2; grid-row: 1; } /* Супер роутер */
    .mobile-product-card:nth-child(3) { grid-column: 3; grid-row: 1; } /* Мега роутер */
    .mobile-product-card:nth-child(4) { grid-column: 1; grid-row: 2; } /* Гипер роутер */
    .mobile-product-card:nth-child(5) { grid-column: 2; grid-row: 2; } /* Самый лучший роутер */
    .mobile-product-card:nth-child(6) { grid-column: 3; grid-row: 2; } /* Чудесный роутер с сим */
}

.mobile-product-card {
    background: rgba(55, 21, 180, 0.3);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    border: none;
}

.mobile-product-card:active {
    transform: scale(0.98);
}

.mobile-product-image {
    height: 200px;
    width: 330px;
    left: 50%;
    transform: translateX(-50%);
    top: 17px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    padding: 0;
    border: 2px solid #ffffff;
}

.mobile-router-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 10px;
}

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

.mobile-product-info {
    padding: 20px;
    position: relative;
    overflow: visible;
}

.mobile-product-info h3 {
    font-family: 'Coolvetica', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0px;
    color: rgb(255, 255, 255);
}

.mobile-product-price-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 15px;
    padding: 5px;
}

.mobile-product-price-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 1);
    border-radius: 30px;
    padding: 8px 12px;
    position: relative;
    width: min(250px, 70vw);
    max-width: 85%;
    transform: translateX(-10px);
    flex-shrink: 0;
}

.mobile-product-main-price {
    font-family: 'Coolvetica', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgb(0, 0, 0);
}

.mobile-product-installment-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mobile-product-installment-label {
    font-family: 'Montserrat', serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    text-align: left;
}

.mobile-product-installment {
    font-family: 'Montserrat', serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    text-align: left;
}

.mobile-product-like-icon {
    width: 21px;
    height: 55px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 49%;
    right: 9px;
    transform: translateY(-50%) scale(1.8);
    object-fit: contain;
    flex-shrink: 0;
    max-width: none;
    max-height: none;
    display: block;
    /* Улучшение для touch устройств */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-product-like-icon:hover {
    opacity: 1;
}

/* Состояния кнопки "любимое" */
.mobile-product-like-icon.liked {
    /* Используем те же стили что и для обычной иконки */
    width: 21px;
    height: 55px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 49%;
    right: 8px;
    transform: translateY(-50%) scale(1.8);
    object-fit: contain;
    flex-shrink: 0;
    max-width: none;
    max-height: none;
    display: block;
    /* Улучшение для touch устройств */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-product-like-icon.liked:hover {
    opacity: 1;
}

/* Анимация при клике */
.mobile-product-like-icon:active {
    transform: translateY(-50%) scale(1.6);
    transition: transform 0.1s ease;
}

.mobile-product-like-icon.liked:active {
    transform: translateY(-50%) scale(1.6);
    transition: transform 0.1s ease;
}

.mobile-product-cart-icon {
    width: min(70px, 18vw);
    height: min(50px, 13vw);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 42%; /* Перемещаем выше на 3% (с 47% до 44%) */
    right: min(20px, 5vw);
    transform: translateY(-50%);
    z-index: 10;
    flex-shrink: 0;
}

.mobile-product-cart-icon:hover {
    opacity: 1;
}

.mobile-product-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.mobile-product-buttons .mobile-btn-primary,
.mobile-product-buttons .mobile-btn-secondary {
    width: 100%;
}

.mobile-btn-secondary {
    background: transparent;
    color: var(--purple-white);
    border: 2px solid var(--purple-white);
    padding: min(12px, 3vw) min(20px, 5vw);
    border-radius: 30px;
    font-family: 'Coolvetica', Arial, sans-serif;
    font-weight: 600;
    font-size: min(1.8rem, 7.6vw);
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: min(44px, 11vw);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.mobile-btn-secondary:active {
    background: var(--purple-white);
    color: var(--purple-dark);
    transform: scale(0.98);
}

/* Специальные стили для кнопки "Подробнее" */
.mobile-btn-details {
    position: relative;
    z-index: 10;
}

.mobile-btn-details:focus {
    outline: 2px solid var(--purple-accent);
    outline-offset: 2px;
}

/* ========================================
   МОБИЛЬНЫЕ МЕДИА-ЗАПРОСЫ
   ======================================== */

/* Малые мобильные экраны */
@media (max-width: 480px) {
    .mobile-product-image {
        height: 180px;
        width: 88%;
        left: 50%;
        transform: translateX(-50%);
        top: 15px;
        width: 320px;
    }
    
    .mobile-section-title {
        font-size: 3.4rem;
        color: #000000;
    }
    
    /* Адаптивность для блоков цены и корзины на средних мобильных экранах */
    .mobile-product-price-group {
        width: min(240px, 68vw);
        padding: 7px 11px;
        gap: 7px;
    }
    
    .mobile-product-cart-icon {
        width: min(65px, 17vw);
        height: min(48px, 12.5vw);
        right: min(18px, 4.5vw);
    }
    
    .mobile-product-main-price {
        font-size: 2rem;
    }
    
    .mobile-product-installment-label,
    .mobile-product-installment {
        font-size: 1.5rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .mobile-product-price-group {
        width: min(220px, 65vw);
        padding: 6px 10px;
        gap: 6px;
    }
    
    .mobile-product-cart-icon {
        width: min(60px, 16vw);
        height: min(45px, 12vw);
        right: min(15px, 4vw);
    }
    
    .mobile-product-main-price {
        font-size: 20px;
    }
    
    .mobile-product-installment-label,
    .mobile-product-installment {
        font-size: 0.7rem;
    }
    
    .mobile-btn-secondary {
        font-size: min(1.6rem, 6.4vw);
        padding: min(8px, 2vw) min(12px, 3vw);
        min-height: min(36px, 9vw);
        border-radius: 30px;
    }
}

@media (pointer: coarse), (max-width: 768px) {
    /* На большинстве мобильных браузеров фон с background-attachment: fixed некорректно рендерится.
       Отключаем фиксированное прикрепление и принудительно задаём размер/положение фона. */
    .mobile-products {
        background-attachment: scroll !important;
        -webkit-background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        /* Иногда аппаратные ускорения помогают, добавим трансформ */
        transform: translateZ(0);
    }
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
    margin-top: 0.5rem;
    position: relative;
    z-index: 3;
    transform: none;
}

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

.simple-tabs-section {
    padding: 60px 0;
    text-align: center;
    background: #8471CC;
    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;
    font-family: 'Coolvetica', Arial, sans-serif;
    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: #8471CC;
    color: white;
    box-shadow: 0 4px 15px rgba(132, 113, 204, 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-family: 'Montserrat', sans-serif;
    font-size: 14px;
    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: #8471CC;
    padding: 40px 0;
    position: relative;
}

.faq-container {
    width: calc(100% + 40px);
    max-width: none;
    margin: 0px -20px;
    position: relative;
    z-index: 1;
    text-align: left;
    background: white;
    border-radius: 30px;
    padding: 30px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 15px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

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

.faq-item:active {
    background: transparent;
}

.faq-question {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
    text-shadow: none;
    cursor: pointer;
    border: none;
    background: rgba(144, 117, 255, 0.21);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 30px;
    width: 100%;
    text-align: left;
    padding: 20px 20px 20px 75px;
    outline: none;
    display: block;
    position: relative;
    transition: all 0.3s ease;
    list-style: none;
}

.faq-question:active {
    background: rgba(144, 117, 255, 0.3);
}

.faq-icon {
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px !important;
    height: 50px !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0;
    min-height: 0;
    transition: transform 0.3s ease;
    display: block;
}

.faq-question.active .faq-icon {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    color: #666;
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 0;
    margin-top: 15px;
    opacity: 1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    padding-left: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.faq-answer.active {
    max-height: 1000px;
    margin-top: 15px;
}

.faq-answer p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    left: 30px; /* меняйте это значение, чтобы смещать текст влево/вправо */
    transition: left 0.2s ease;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    max-width: calc(100% - 30px);
}

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

.faq-answer li {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    padding: 5px 0 5px 20px;
    position: relative;
    left: 30px; /* меняйте это значение, чтобы смещать элементы списка */
    transition: left 0.2s ease;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    max-width: calc(100% - 50px);
}

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

/* Анимации для 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: #8471CC;
    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;
    align-items: start;
}

.footer-left {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-logo-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Coolvetica', sans-serif;
}

.footer-working-hours {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

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

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    font-family: 'Coolvetica', sans-serif;
    font-size: 13px;
    text-align: left;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.2rem;
    transition: var(--transition-fast);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    text-align: left;
}

.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;
}

/* ======= Мобильная версия: копия стилей мобильной корзины ======= */
/* Начиная с .mobile-cart-white-window до конца мобильных правил */
.mobile-cart-white-window {
    max-width: 356px;
    max-height: 90vh; /* Увеличиваем максимальную высоту */
    width: 90%;
    min-height: 400px; /* Минимальная высота вместо фиксированной */
    background: white;
    border-radius: 30px;
    position: relative;
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    touch-action: pan-y !important; /* Разрешаем вертикальную прокрутку с приоритетом */
    -webkit-overflow-scrolling: touch; /* Включаем плавную прокрутку на iOS */
    overscroll-behavior: contain; /* Предотвращаем прокрутку родительского элемента */
}

/* ========================================
   МОДАЛЬНОЕ ОКНО КОРЗИНЫ
   ======================================== */

.cart-modal-content {
    width: 445px;
    height: 543px;
    background: white;
    border-radius: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.cart-modal-header {
    position: absolute;
    top: 20px;
    left: 42%;
    transform: translateX(-40%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    width: 380px;
    height: 60px;
    left: 185px;
    background: linear-gradient(135deg, #e8d5ff 0%, #d1b3ff 100%);
    border-radius: 30px;
    padding: 0 15px;
}

.cart-header-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-header-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cart-header-title {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 0;
    line-height: 1;
}

.modal-exit-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.modal-exit-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

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

.exit-icon {
    width: 55px;
    height: 55px;
    left: -5px;
    top: 8px;
    object-fit: contain;
    position: relative;
}

.cart-promo-block {
    width: 400px;
    height: 113px;
    left: -11px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    margin: 15px auto 0 auto; /* Отступ сверху и центрирование */
    position: relative;
    z-index: 10; /* Высокий z-index для блока промокода */
}

.promo-code-title {
    font-size: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.promo-code-container {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin-bottom: 6px;
}

.promo-code-input {
    flex: 1;
    height: 44px;
    border: 1px solid #E0E0E0;
    border-radius: 25px;
    padding: 0 19px;
    font-size: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    outline: none !important;
    box-shadow: none !important;
    transition: none !important;
    background: #F8F9FA;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    position: relative;
    z-index: 25 !important; /* Максимальный z-index для поля ввода */
    /* Критически важно для мобильных устройств */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.promo-code-input:focus {
    border-color: #E0E0E0;
    background: white;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    /* Дополнительные стили для фокуса на мобильных */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.promo-code-input:active {
    border-color: #E0E0E0;
    background: white;
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

.promo-code-input:hover {
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.promo-code-input::placeholder {
    color: #999;
    font-size: 16px;
}

.promo-code-btn {
    height: 44px;
    padding: 0 23px;
    background: #333;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: none !important;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    position: relative;
    z-index: 25 !important; /* Максимальный z-index для кнопки */
}

.promo-code-btn:hover {
    background: #555;
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.promo-code-btn:active {
    transform: none !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.promo-code-error {
    font-size: 11px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #FF4444;
    text-align: center;
    line-height: 1.2;
}

/* Глобальное правило для предотвращения изменений размеров input элементов в корзине */
#cartModal input,
#cartModal input:focus,
#cartModal input:active,
#cartModal input:hover,
#cartModal button,
#cartModal button:focus,
#cartModal button:active,
#cartModal button:hover {
    transform: none !important;
    transition: none !important;
    box-sizing: border-box !important;
}

.cart-checkout-block {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    background: white;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 5; /* Увеличиваем z-index для checkout блока */
}

.cart-total-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-total-price {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: 24px;
    margin-bottom: 2px;
}

.cart-total-label {
    font-family: 'Montserrat', Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 14px;
}

.cart-items-container {
    position: absolute;
    top: 100px;
    bottom: 70px; /* Оставляем место только для checkout блока */
    left: 0;
    right: 0;
    padding: 0 31px 20px 31px; /* Добавляем отступ снизу для блока промокода */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 19px;
    align-items: center;
    z-index: 1; /* Низкий z-index для контейнера */
}

/* Кастомный скроллбар для контейнера товаров */
.cart-items-container::-webkit-scrollbar {
    width: 4px;
}

.cart-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.cart-items-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Контейнер товаров в модальном окне "Избранное" */
.favorites-items-container {
    position: absolute;
    top: 100px;
    bottom: 20px; /* Отступ снизу для избранного (нет checkout блока) */
    left: 0;
    right: 0;
    padding: 0 31px 20px 31px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 19px;
    align-items: center;
    z-index: 1;
}

/* Кастомный скроллбар для контейнера избранного */
.favorites-items-container::-webkit-scrollbar {
    width: 4px;
}

.favorites-items-container::-webkit-scrollbar-track {
    background: transparent;
}

.favorites-items-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.favorites-items-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.cart-item-card {
    width: 400px;
    height: 188px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    flex-shrink: 0;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image-container {
    width: 140px;
    height: 150px;
    background: rgba(144, 140, 140, 0.21);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cart-product-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 15px;
    opacity: 1;
    background: transparent;
}

.cart-item-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(144, 140, 140, 0.21);
    border-radius: 20px;
    opacity: 1;
}

.cart-item-placeholder span {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    padding-top: 10px;
    position: relative;
}

/* Десктопная версия названия товара */
.cart-item-name {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #333;
    line-height: 24px;
    letter-spacing: 0%;
    margin: 0;
    margin-bottom: 8px;
}

/* Десктопная версия цены товара */
.cart-item-price {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 25px;
    font-weight: 600;
    color: #333;
    line-height: 24px;
    letter-spacing: 0%;
    margin: 0;
    margin-top: 5px;
}

/* Счетчик количества товара - десктоп */
.cart-item-quantity {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 77px;
    height: 19px;
    background: rgba(217, 217, 217, 0.23);
    border-radius: 30px;
    padding: 0 8px;
}

/* Десктопная версия кнопок и значения - более специфичный селектор */
.cart-item-quantity .quantity-btn {
    width: 19px;
    height: 19px;
    background: transparent !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000 !important;
    transition: all 0.2s ease;
    flex-shrink: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.cart-item-quantity .quantity-btn:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

.cart-item-quantity .quantity-value {
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000 !important;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}


.cart-checkout-btn {
    width: 154px;
    height: 34px;
    background: #1FAF38;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Критически важные стили для мобильных устройств */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
    z-index: 10;
}

.cart-checkout-btn:hover {
    background: #1A9A32;
}

.cart-checkout-btn:active {
    background: #168B2C;
    transform: scale(0.98);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .cart-modal-content {
        width: min(90vw, 356px);
        height: min(80vh, 434px);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .cart-promo-block {
        width: min(315px, 92vw);
        height: 85px;
        left: 0px;
        border-radius: 25px;
        padding: 12px 15px;
        margin: 12px auto 0 auto; /* Отступ сверху и центрирование */
        position: relative;
    }
    
    .promo-code-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .promo-code-container {
        gap: 8px;
        margin-bottom: 4px;
    }
    
    .promo-code-input {
        height: 32px;
        font-size: 12px;
        border-radius: 16px;
        padding: 0 12px;
        /* Дополнительные стили для мобильных */
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    
    .promo-code-input::placeholder {
        font-size: 12px;
    }
    
    .promo-code-btn {
        height: 32px;
        padding: 0 14px;
        font-size: 12px;
        border-radius: 16px;
    }
    
    .promo-code-error {
        font-size: 10px;
    }
    
    .cart-checkout-block {
        padding: 15px 20px;
    }
    
    .cart-total-price {
        font-size: 20px;
        line-height: 20px;
    }
    
    .cart-total-label {
        font-family: 'Montserrat', Arial, sans-serif !important;
        font-size: 12px;
        line-height: 12px;
    }
    
    .cart-items-container {
        top: 70px;
        bottom: 80px; /* Оставляем место только для checkout блока на мобильных */
        padding: 0 20px 15px 20px; /* Добавляем отступ снизу для блока промокода */
        gap: 12px;
    }
    
    .favorites-items-container {
        top: 70px;
        bottom: 15px; /* Отступ снизу для избранного на мобильных (нет checkout блока) */
        padding: 0 20px 15px 20px;
        gap: 12px;
    }
    
    .cart-item-card {
        width: min(315px, 92vw);
        height: 140px;
        border-radius: 25px;
        padding: 12px;
        gap: 12px;
    }
    
    .cart-item-image-container {
        width: 100px;
        height: 100px;
        background: rgba(144, 140, 140, 0.21);
        border-radius: 18px;
    }
    
    .cart-product-image {
        width: 70px;
        height: 70px;
        border-radius: 12px;
        opacity: 1;
    }
    
    .cart-item-placeholder {
        background: rgba(144, 140, 140, 0.21);
        border-radius: 18px;
        opacity: 1;
    }
    
    .cart-item-placeholder span {
        font-size: 12px;
    }
    
    .cart-item-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        height: 100%;
        padding-top: 8px;
    }
    
    /* Мобильная версия названия товара */
    .cart-item-name {
        font-family: 'Coolvetica', Arial, sans-serif;
        font-size: 18px;
        font-weight: 400;
        color: #333;
        line-height: 22px;
        letter-spacing: 0%;
        margin: 0;
        margin-bottom: 8px;
    }
    
    /* Мобильная версия цены товара */
    .cart-item-price {
        font-family: 'Coolvetica', Arial, sans-serif;
        font-size: 18px;
        font-weight: 600;
        color: #333;
        line-height: 22px;
        letter-spacing: 0%;
        margin: 0;
        margin-top: 5px;
    }
    
    /* Счетчик количества товара - мобильная */
    .cart-item-quantity {
        width: 76px;
        height: 24px;
        background: rgba(217, 217, 217, 0.23);
        border-radius: 25px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Мобильная версия кнопок и значения - более специфичный селектор */
    .cart-item-quantity .quantity-btn {
        width: 24px;
        height: 24px;
        font-size: 13px;
        color: #000000 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        margin: 0;
        padding: 3px;
        background: transparent !important;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-family: 'Coolvetica', Arial, sans-serif;
        font-weight: 400;
        transition: all 0.2s ease;
        flex-shrink: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        opacity: 1 !important;
        min-width: 24px;
        min-height: 24px;
        position: relative;
        z-index: 10;
    }
    
    .cart-item-quantity .quantity-btn:hover,
    .cart-item-quantity .quantity-btn:active,
    .cart-item-quantity .quantity-btn:focus {
        background: rgba(0, 0, 0, 0.1) !important;
        outline: none;
        transform: scale(1.1);
    }
    
    /* Дополнительные стили для мобильных касаний */
    @media (max-width: 768px) {
        .cart-item-quantity .quantity-btn:active {
            background: rgba(0, 0, 0, 0.2) !important;
            transform: scale(0.95);
        }
        
        /* Принудительное включение pointer-events для мобильных */
        .cart-item-quantity .quantity-btn {
            pointer-events: auto !important;
            user-select: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            touch-action: manipulation !important;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }
        
        /* Увеличиваем область касания для мобильных */
        .cart-item-quantity .quantity-btn::before {
            content: '';
            position: absolute;
            top: -8px;
            left: -8px;
            right: -8px;
            bottom: -8px;
            z-index: -1;
        }
    }
    
    .cart-item-quantity .quantity-value {
        font-size: 13px;
        line-height: 1;
        min-width: 18px;
        color: #000000 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        font-family: 'Coolvetica', Arial, sans-serif;
        font-weight: 400;
        text-align: center;
        opacity: 1 !important;
    }
    
    /* Стили для кнопки удаления товара - ТОЧНОЕ ПОЗИЦИОНИРОВАНИЕ */
    button.cart-item-remove-btn,
    .cart-item-remove-btn,
    .cart-item-card .cart-item-remove-btn {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        transition: transform 0.2s ease;
        position: absolute;
        top: 83px;
        left: 258px;
        z-index: 15;
        outline: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        /* Дополнительные стили из мобильной версии */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        /* Принудительное удаление всех возможных обводок */
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        outline-offset: 0 !important;
    }
    
    .cart-item-remove-btn:hover {
        transform: scale(1.1);
    }
    
    .cart-item-remove-btn:active {
        transform: scale(0.95);
    }
    
    /* Убираем все возможные фокусы и обводки - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
    button.cart-item-remove-btn:focus,
    .cart-item-remove-btn:focus,
    .cart-item-info .cart-item-remove-btn:focus,
    button.cart-item-remove-btn:focus-visible,
    .cart-item-remove-btn:focus-visible,
    .cart-item-info .cart-item-remove-btn:focus-visible,
    button.cart-item-remove-btn:focus-within,
    .cart-item-remove-btn:focus-within,
    .cart-item-info .cart-item-remove-btn:focus-within,
    button.cart-item-remove-btn:focus-visible:not(:focus-visible),
    .cart-item-remove-btn:focus-visible:not(:focus-visible),
    .cart-item-info .cart-item-remove-btn:focus-visible:not(:focus-visible),
    button.cart-item-remove-btn:focus:not(:focus-visible),
    .cart-item-remove-btn:focus:not(:focus-visible),
    .cart-item-info .cart-item-remove-btn:focus:not(:focus-visible),
    button.cart-item-remove-btn:active,
    .cart-item-remove-btn:active,
    .cart-item-info .cart-item-remove-btn:active,
    button.cart-item-remove-btn:visited,
    .cart-item-remove-btn:visited,
    .cart-item-info .cart-item-remove-btn:visited,
    button.cart-item-remove-btn:link,
    .cart-item-remove-btn:link,
    .cart-item-info .cart-item-remove-btn:link {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        /* Принудительное удаление outline */
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        outline-offset: 0 !important;
    }
    
    /* Дополнительная защита от обводок браузера - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
    button.cart-item-remove-btn::-moz-focus-inner,
    .cart-item-remove-btn::-moz-focus-inner,
    .cart-item-info .cart-item-remove-btn::-moz-focus-inner {
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }
    
    button.cart-item-remove-btn::-webkit-focus-ring-color,
    .cart-item-remove-btn::-webkit-focus-ring-color,
    .cart-item-info .cart-item-remove-btn::-webkit-focus-ring-color {
        outline: none !important;
    }
    
    /* Дополнительные стили для всех браузеров */
    button.cart-item-remove-btn::-ms-focus-inner,
    .cart-item-remove-btn::-ms-focus-inner,
    .cart-item-info .cart-item-remove-btn::-ms-focus-inner {
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }
    
    button.cart-item-remove-btn::-o-focus-inner,
    .cart-item-remove-btn::-o-focus-inner,
    .cart-item-info .cart-item-remove-btn::-o-focus-inner {
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }
    
    /* Максимальная защита от всех обводок */
    .cart-item-remove-btn * {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .cart-item-remove-btn *:focus,
    .cart-item-remove-btn *:focus-visible,
    .cart-item-remove-btn *:focus-within {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .cart-item-remove-btn .delete-icon {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        min-width: 100%;
        min-height: 100%;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        pointer-events: none;
        border: none;
        outline: none;
        box-shadow: none;
        display: block;
        object-fit: contain;
        object-position: center;
        /* Копируем стили из мобильной версии */
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
        /* Дополнительные стили для полного удаления обводок */
        background: transparent !important;
        border-radius: 0 !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    /* Мобильные стили для кнопки удаления */
    @media (max-width: 768px) {
        .cart-item-remove-btn {
            width: 32px;
            height: 32px;
            touch-action: manipulation;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
            top: 108px;
            left: 271px;
        }
        
        /* Увеличиваем область касания для мобильных */
        .cart-item-remove-btn::before {
            content: '';
            position: absolute;
            top: -8px;
            left: -8px;
            right: -8px;
            bottom: -8px;
            z-index: -1;
        }
    }
    
    .cart-checkout-btn {
        width: min(140px, 90%);
        height: 30px;
        font-size: 16px;
        line-height: 22px;
    }
    
    .cart-modal-header {
        top: 15px;
        left: 37%;
        transform: translateX(-35%);
        width: min(320px, 90vw);
        height: 48px;
        border-radius: 24px;
        padding: 0 12px;
    }
    
    .cart-header-icon {
        width: 18px;
        height: 18px;
    }
    
    .cart-header-title {
        font-size: 21px;
    }
    
    .modal-exit-btn {
        top: 0px;
        left: calc(100% - 46px);
        width: 40px;
        height: 40px;
    }
    
    .exit-icon {
        width: 45px;
        height: 45px;
        position: static;
    }
}

/* ========================================
   УВЕДОМЛЕНИЯ
   ======================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    border-left: 4px solid #1FAF38;
}

.notification-success {
    border-left-color: #28a745;
}

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

.notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

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

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Мобильная адаптация для уведомлений */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification-content {
        padding: 12px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}


/* Контейнер для прокручиваемого содержимого корзины */
.mobile-cart-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Позволяет flex элементу сжиматься */
    margin-top: 70px; /* Место для заголовка */
    overflow-y: auto !important; /* Позволяем прокрутку для всего контейнера с приоритетом */
    touch-action: pan-y !important; /* Разрешаем вертикальную прокрутку с приоритетом */
    -webkit-overflow-scrolling: touch !important; /* Включаем плавную прокрутку на iOS с приоритетом */
    overscroll-behavior: contain; /* Предотвращаем прокрутку родительского элемента */
    scroll-behavior: smooth; /* Плавная прокрутка */
    /* Дополнительные настройки для улучшения прокрутки на мобильных */
    -webkit-transform: translateZ(0); /* Активирует аппаратное ускорение */
    transform: translateZ(0); /* Активирует аппаратное ускорение */
    will-change: scroll-position; /* Подготавливает браузер к прокрутке */
    /* Критически важные настройки для touch-устройств */
    -webkit-user-select: none; /* Предотвращаем выделение текста при прокрутке */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Дополнительные настройки для предотвращения конфликтов */
    pointer-events: auto; /* Убеждаемся, что элементы доступны для touch */
    position: relative; /* Создаем новый контекст наложения */
    /* КРИТИЧЕСКИ ВАЖНО: Убеждаемся, что контейнер может прокручиваться */
    max-height: calc(90vh - 134px); /* Максимальная высота с учетом заголовка (70px) и фиксированного блока (64px) */
    padding-bottom: 10px; /* Добавляем отступ снизу для красоты */
}

/* Контейнер для товаров в корзине */
.mobile-cart-items-container {
    flex: none; /* Убираем flex: 1 чтобы контейнер не растягивался */
    overflow: visible; /* Убираем overflow чтобы содержимое было видно */
    padding-bottom: 10px;
    min-height: 0; /* Позволяет flex элементу сжиматься */
    /* Убираем touch-action отсюда - прокрутка должна обрабатываться родительским контейнером */
    /* Дополнительные настройки для улучшения прокрутки на мобильных */
    -webkit-transform: translateZ(0); /* Активирует аппаратное ускорение */
    transform: translateZ(0); /* Активирует аппаратное ускорение */
    /* Настройки для предотвращения конфликтов touch-событий */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

/* Контейнер для изображения modal_head.png */
.modal-head-container {
    position: absolute;
    width: 300px;
    height: 100px;
    top: 20px;
    left: 25px;
    z-index: 100; /* Обеспечиваем отображение поверх прокручиваемого содержимого */
}

/* Изображение modal_head.png с точным позиционированием по пикселям */
.modal-head-image {
    position: absolute;
    top: 0px;         /* Позиция сверху (увеличивать для движения вниз) */
    left: 0px;        /* Позиция слева (увеличивать для движения вправо) */
    transform: scale(1); /* Масштаб (1 = 100%, 0.5 = 50%, 2 = 200%) */
    
    /* Базовые стили */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Изображение exit.png с точным позиционированием по пикселям */
.modal-exit-image {
    position: absolute;
    top: 0px;         /* Позиция сверху (увеличивать для движения вниз) */
    left: 255px;        /* Позиция слева (увеличивать для движения вправо) */
    transform: scale(1); /* Масштаб (1 = 100%, 0.5 = 50%, 2 = 200%) */
    
    /* Базовые стили */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: auto; /* Делаем кнопку кликабельной */
    cursor: pointer; /* Добавляем курсор pointer для индикации кликабельности */
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent; /* Убираем подсветку при касании на мобильных */
}

.modal-exit-image:hover {
    transform: scale(1.1); /* Увеличиваем при наведении */
    opacity: 0.8;
}

.modal-exit-image:active {
    transform: scale(0.95); /* Уменьшаем при нажатии */
    opacity: 0.6;
}

/* Изображение basket.svg с точным позиционированием по пикселям */
.modal-basket-image {
    position: absolute;
    top: 8px;         /* Позиция сверху (увеличивать для движения вниз) */
    left: 17px;        /* Позиция слева (увеличивать для движения вправо) */
    transform: scale(1); /* Масштаб (1 = 100%, 0.5 = 50%, 2 = 200%) */
    
    /* Базовые стили */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Текст "Корзина" с точным позиционированием по пикселям */
.modal-cart-text {
    position: absolute;
    top: 10px;         /* Позиция сверху (увеличивать для движения вниз) */
    left: 50px;        /* Позиция слева (увеличивать для движения вправо) */
    transform: scale(1); /* Масштаб (1 = 100%, 0.5 = 50%, 2 = 200%) */
    
    /* Стили текста */
    font-family: 'Coolvetica', Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    letter-spacing: 0%;
    
    /* Базовые стили */
    width: 72px;
    height: 24px;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Остальные вспомогательные мобильные стили (сжатые версии) */
.modal-content-block { position: relative; margin: 8px 17px; width: 310px; height: 129px; background:#fff; border-radius:30px; box-shadow:0 0 20px rgba(0,0,0,0.15); }
.modal-photo-block { position:absolute; top:10px; left:15px; width:114px; height:104px; background:#E5E5E5; border-radius:20px; display:flex; align-items:center; justify-content:center; }
.modal-counter-block { position:absolute; top:50px; left:150px; width:77px; height:19px; background:#F5F5F5; border:1px solid #E0E0E0; border-radius:30px; display:flex; align-items:center; }
.modal-bottom-block{ position:relative; margin:10px 17px 80px 17px; width:310px; height:90px; background:#fff; border-radius:30px; box-shadow:0 0 20px rgba(0,0,0,0.15); display:flex; align-items:center; justify-content:space-between; padding:0 20px; gap:10px; }
.modal-promo-input{ width:155px; height:25px; background:#F5F5F5; border:1px solid #E0E0E0; border-radius:20px; padding:0 15px; }
.modal-final-price-block{ position:absolute; bottom:0; left:0; right:0; height:64px; background: linear-gradient(90deg,#fff,#fff); display:flex; align-items:center; justify-content:space-between; padding:10px 18px; gap:10px; }
.modal-price-now{ font-weight:700; font-size:18px; }
.modal-checkout-button{ background:var(--purple-accent); color:#fff; border-radius:12px; padding:12px 18px; border:none; cursor:pointer; }

/* Мобильная фиксированная кнопка корзины */
.mobile-cart-button{ position:fixed; bottom:20px; right:20px; width:60px; height:60px; background:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 25px rgba(0,0,0,0.15); z-index:9999; }
.mobile-cart-icon{ width:28px; height:28px; }
.mobile-cart-badge{ position:absolute; top:-6px; right:-6px; background:var(--purple-accent); color:#fff; border-radius:50%; min-width:20px; height:20px; display:none !important; align-items:center; justify-content:center; font-size:0.8rem; font-weight:600; line-height:1; padding:0; box-shadow:0 2px 8px rgba(0,0,0,0.2); text-align:center; box-sizing:border-box; }

@media (max-width:480px){ .mobile-cart-button{ width:60px; height:60px; right:15px; bottom:15px; } }

.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-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: none !important; /* Скрываем бейдж корзины */
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    border: 2px solid white;
    transition: var(--transition-fast);
    text-align: center;
    box-sizing: border-box;
}

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

/* ========================================
   FIXED HELP BUTTON
   ======================================== */

.help-button {
    position: fixed;
    bottom: 110px;
    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;
}

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

.help-icon {
    color: #333;
    font-size: 32px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 1;
}

/* Адаптивность для кнопки помощи */
@media (max-width: 480px) {
    .help-button {
        width: 60px;
        height: 60px;
        right: 20px;
        bottom: 90px;
    }
    
    .help-icon {
        font-size: 28px;
    }
}

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

.checkout-modal .modal-content {
    max-width: 500px;
    padding: 1.5rem;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 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.9rem;
    color: var(--purple-dark);
    font-size: 16px; /* CRITICAL: минимум 16px чтобы iOS не зумил автоматически */
    font-family: inherit;
    /* Ensure digits render with fixed-width for masks */
    font-variant-numeric: tabular-nums;
    -webkit-font-feature-settings: "tnum" 1;
    font-feature-settings: "tnum" 1;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
    /* Prevent iOS auto-zoom on focus */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.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 !important;
    display: block !important;
    margin-bottom: 0.5rem !important; /* больше отступ, чтобы фокусный бордер/тень не перекрывал подпись */
    background: none !important;
    padding: 0 !important;
    font-size: 16px !important; /* УВЕЛИЧИЛ до 16px чтобы было точно видно */
    color: #333 !important; /* Тёмный цвет для видимости */
    font-weight: 600 !important;
    transform: none !important; /* гарантируем, что лейбл не уезжает */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important; /* УВЕЛИЧИЛ z-index */
    line-height: 1.5 !important;
    /* Prevent any floating/absolute positioning */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    /* Prevent any weird transforms or transitions */
    transition: none !important;
    animation: none !important;
    float: none !important;
    clear: both !important;
}

/* Дополнительный селектор для гарантии видимости лейблов в модалке */
#checkoutModal .checkout-form .form-group label,
#checkoutModal label,
.checkout-modal label {
    position: static !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    background: none !important;
    padding: 0 !important;
    font-size: 16px !important;
    color: #333 !important;
    font-weight: 600 !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
    line-height: 1.5 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transition: none !important;
    animation: none !important;
    float: none !important;
    clear: both !important;
}

/* Стили для согласия на обработку персональных данных */
.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;
}

/* Мобильная адаптация для checkout-modal */
@media (max-width: 768px) {
    .checkout-modal .modal-content {
        max-width: 90%;
        width: 90%;
        padding: 1.25rem;
        max-height: 85vh;
    }
    
    .checkout-header h2 {
        font-size: 1.3rem;
    }
    
    .checkout-form {
        gap: 0.6rem;
    }
    
    .checkout-form .form-group input,
    .checkout-form .form-group textarea,
    .checkout-form .form-group select {
        padding: 0.65rem;
        font-size: 16px; /* CRITICAL: минимум 16px чтобы iOS не зумил */
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .checkout-actions .btn-secondary,
    .checkout-actions .btn-primary {
        width: 100%;
    }
}

@-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);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.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-white);
    color: var(--purple-dark);
    border: 2px solid var(--purple-border);
}

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

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

/* Специальные стили для кнопки "Назад к корзине" */
#backToCartBtn {
    background: var(--purple-white) !important;
    color: var(--purple-dark) !important;
    border: 2px solid var(--purple-border) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Специальные стили для кнопки "Перейти к оплате" */
#proceedToPaymentBtn {
    background: var(--purple-white) !important;
    color: var(--purple-dark) !important;
    border: 2px solid var(--purple-border) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

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

.checkout-actions .btn-primary:hover {
    background: var(--purple-light-bg);
    border-color: var(--purple-accent);
    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;
    justify-items: center;
}

/* Если остался только один видимый блок - центрируем его */
.contact-links.single-contact {
    grid-template-columns: 1fr;
    justify-content: center;
}

.contact-links.single-contact .contact-link {
    max-width: 200px;
}

.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: 450px;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

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

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

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

.cooperation-content .contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    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.3rem;
    min-width: 25px;
}

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

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

/* ========================================
   CONTACT MODAL
   ======================================== */

.contact-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-header h2 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-family: 'Coolvetica', Arial, sans-serif;
}

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

.contact-actions .btn-primary {
    background: #8471CC;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Coolvetica', Arial, sans-serif;
    min-width: 80px;
    max-width: 120px;
    width: auto;
    display: inline-block;
}

.contact-actions .btn-primary:hover {
    background: #6b5a9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 113, 204, 0.3);
}

.contact-actions .contact-close-btn {
    position: relative;
    z-index: 10001;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.contact-header p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-content .contact-info h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-content .contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-content .contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Coolvetica', Arial, sans-serif;
}

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

.contact-content .contact-icon {
    font-size: 1.3rem;
    min-width: 24px;
    text-align: center;
}

.contact-content .contact-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Coolvetica', Arial, sans-serif;
}

.contact-content .contact-value {
    color: #007bff;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Coolvetica', Arial, sans-serif;
}

/* Адаптивность для модального окна контактов */
@media (max-width: 768px) {
    .contact-modal .modal-content {
        max-width: 90vw;
        padding: 1rem;
        margin: 0;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-header p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-content .contact-info h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-actions .contact-close-btn {
        min-height: 48px;
        min-width: 80px;
        font-size: 1rem;
        padding: 14px 20px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        font-family: 'Coolvetica', Arial, sans-serif;
        border-radius: 30px;
    }
    
    .contact-content .contact-links {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .contact-content .contact-link {
        padding: 0.6rem;
        gap: 0.5rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-content .contact-icon {
        font-size: 1.2rem;
        min-width: 22px;
    }
    
    .contact-content .contact-text {
        font-size: 0.85rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
    
    .contact-content .contact-value {
        font-size: 0.8rem;
        font-family: 'Coolvetica', Arial, sans-serif;
    }
}

/* Адаптивность для модального окна сотрудничества */
@media (max-width: 768px) {
    .cooperation-modal .modal-content {
        max-width: 90vw;
        padding: 1rem;
        margin: 1rem;
    }
    
    .cooperation-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .cooperation-header p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .cooperation-content .contact-info h3 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
    
    .cooperation-content .contact-links {
        gap: 0.4rem;
        margin-bottom: 0.8rem;
    }
    
    .cooperation-content .contact-link {
        padding: 0.6rem;
        gap: 0.5rem;
    }
    
    .cooperation-content .contact-icon {
        font-size: 1.2rem;
        min-width: 22px;
    }
    
    .cooperation-content .contact-text {
        font-size: 0.85rem;
    }
    
    .cooperation-content .contact-value {
        font-size: 0.8rem;
    }
    
    .cooperation-actions {
        margin-top: 0.8rem;
    }
}

.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: лейблы больше не зависят от класса focused */
.form-group.focused label {
    color: inherit !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure labels remain visible when any field inside the group is focused */
.checkout-form .form-group:focus-within label {
    color: var(--purple-accent);
    transform: none !important; /* запрещаем любые плавающие лейблы */
    opacity: 1 !important;
    visibility: visible !important;
}

.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:not(.cart-item-remove-btn),
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 2px solid var(--purple-accent);
    outline-offset: 2px;
}

/* ФИНАЛЬНАЯ ЗАЩИТА ОТ ОБВОДКИ КНОПКИ УДАЛЕНИЯ */
/* Эти стили должны быть в самом конце для максимальной специфичности */

/* ДЕСКТОПНАЯ ВЕРСИЯ - МАКСИМАЛЬНАЯ СПЕЦИФИЧНОСТЬ */
.cart-item-card button.cart-item-remove-btn,
.cart-item-card button.cart-item-remove-btn:focus,
.cart-item-card button.cart-item-remove-btn:focus-visible,
.cart-item-card button.cart-item-remove-btn:focus-within,
.cart-item-card button.cart-item-remove-btn:active,
.cart-item-card button.cart-item-remove-btn:hover {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    /* ДЕСКТОПНОЕ позиционирование */
    position: absolute;
    width: 32px;
    height: 32px;
    top: 83px;
    left: 258px;
    bottom: auto;
    right: auto;
    z-index: 15 !important;
}

/* Стили для иконки внутри кнопки - ОБЩИЕ */
.cart-item-card button.cart-item-remove-btn .delete-icon {
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ДЕСКТОПНАЯ ВЕРСИЯ - кадрирование с top/left */
@media (min-width: 769px) {
    .cart-item-card button.cart-item-remove-btn .delete-icon {
        width: 100px;
        height: 50px;
        left: 50px;
        top: 35px;
        position: relative; /* Позволяет использовать top, left на десктопе */
    }
}

/* МОБИЛЬНАЯ ВЕРСИЯ - без кадрирования */
@media (max-width: 768px) {
    .cart-item-card button.cart-item-remove-btn .delete-icon {
        width: 100%;
        height: 100%;
        position: static; /* Обычное позиционирование на мобильной */
    }
}

/* ДОПОЛНИТЕЛЬНАЯ ЗАЩИТА ДЕСКТОПА */
@media (min-width: 769px) {
    .cart-item-card button.cart-item-remove-btn {
        position: absolute;
        top: 83px;
        left: 258px;
        width: 32px;
        height: 32px;
        bottom: auto;
        right: auto;
    }
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 768px) {
    .cart-item-card button.cart-item-remove-btn,
    .cart-item-card button.cart-item-remove-btn:focus,
    .cart-item-card button.cart-item-remove-btn:focus-visible,
    .cart-item-card button.cart-item-remove-btn:focus-within,
    .cart-item-card button.cart-item-remove-btn:active,
    .cart-item-card button.cart-item-remove-btn:hover {
        outline: none !important;
        outline-width: 0 !important;
        outline-style: none !important;
        outline-color: transparent !important;
        outline-offset: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        /* МОБИЛЬНОЕ позиционирование */
        width: 40px;
        height: 40px;
        top: 80px;
        right: 15px;
        bottom: auto;
        left: auto;
    }
}

.cart-item-card button.cart-item-remove-btn::-moz-focus-inner,
.cart-item-card button.cart-item-remove-btn::-webkit-focus-ring-color,
.cart-item-card button.cart-item-remove-btn::-ms-focus-inner,
.cart-item-card button.cart-item-remove-btn::-o-focus-inner {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

/* 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;
        /* Критически важные стили для мобильных устройств */
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        pointer-events: auto;
        z-index: 10001;
        cursor: pointer;
    }
    
    .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);
    }
}

/* ========================================
   ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ
   ======================================== */

/* Максимально специфичные стили для мобильной версии */
.mobile-hero .mobile-hero-title .mobile-title-line {
    color: white !important;
}

.mobile-hero .mobile-hero-title .mobile-title-line::first-letter {
    color: #3ff5e6 !important;
}

.mobile-hero .mobile-hero-title .mobile-title-line.mobile-highlight {
    color: white !important;
}

.mobile-hero .mobile-hero-title .mobile-title-line.mobile-highlight::first-letter {
    color: #3ff5e6 !important;
}

/* Дополнительные переопределения */
section.mobile-hero h1.mobile-hero-title span.mobile-title-line {
    color: white !important;
}

section.mobile-hero h1.mobile-hero-title span.mobile-title-line::first-letter {
    color: #3ff5e6 !important;
}

section.mobile-hero h1.mobile-hero-title span.mobile-title-line.mobile-highlight {
    color: white !important;
}

section.mobile-hero h1.mobile-hero-title span.mobile-title-line.mobile-highlight::first-letter {
    color: #3ff5e6 !important;
}

/* ========================================
   МОБИЛЬНЫЙ ФУТЕР
   ======================================== */

/* По умолчанию показываем десктопный футер и скрываем мобильный */
.mobile-footer {
    display: none;
    background: #8471CC;
    color: white;
    padding: 40px 0 20px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    left: 0;
    right: 0;
    overflow-x: hidden;
}

.mobile-footer-content {
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* На мобильных экранах меняем видимость: скрываем десктопный футер и показываем мобильный */
@media (max-width: 768px) {
    .footer {
        display: none;
    }
    .mobile-footer {
        display: block;
    }
}

.mobile-footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 140px;
}

.mobile-footer-left {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-width: 0;
}

.mobile-footer-center {
    display: flex;
    align-items: flex-start;
   justify-content: flex-start;
    flex: 1;
    min-width: 0;
}

/* Align center column links and headers to left for better readability */
.mobile-footer-center .mobile-footer-column {
    text-align: left;
}

.mobile-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 20px;
    flex: 0 0 auto;
    min-width: 0;
}

.mobile-footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.mobile-footer-logo-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.mobile-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.mobile-footer-brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-family: 'Coolvetica', sans-serif;
}

.mobile-footer-working-hours {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.mobile-footer-column {
    text-align: center;
    min-width: 0;
}

/* Center column should be left-aligned while keeping other columns' defaults */
.mobile-footer-center .mobile-footer-column {
    text-align: left;
}

.mobile-footer-left .mobile-footer-column {
    text-align: left;
}

.mobile-footer-right .mobile-footer-column {
    text-align: right;
}

.mobile-footer-column h4 {
    margin-bottom: 10px;
    color: white;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Coolvetica', sans-serif;
    text-align: left;
}

/* Сделать заголовок в центральной колонке чуть мельче */
.mobile-footer-center .mobile-footer-column h4 {
    font-size: 14px;
}

.mobile-footer-left .mobile-footer-column h4 {
    text-align: left;
}

.mobile-footer-right .mobile-footer-column h4 {
    text-align: left;
}

.mobile-footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 2px;
    transition: var(--transition-fast);
    font-size: 9px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 1px 0;
    text-align: left;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

/* Make column text slightly smaller (applies to column links/text, not headings) */
.mobile-footer-center .mobile-footer-column a,
.mobile-footer-left .mobile-footer-column a,
.mobile-footer-right .mobile-footer-column a {
    font-size: 11px;
}

/* Специальные стили для длинных текстов в мобильной версии */
.mobile-footer-column a[href="/politika_obrabotki"] {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

.mobile-footer-column a[onclick*="openMobileContactModal"] {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
}

/* Стили для длинных названий роутеров в мобильной версии */
.mobile-footer-column a[onclick*="cudy-wr3600"] {
    white-space: normal;
    word-wrap: break-word;
}

.mobile-footer-column a[onclick*="kenetic-runner"] {
    white-space: normal;
    word-wrap: break-word;
}

.mobile-footer-left .mobile-footer-column a {
    text-align: left;
}

.mobile-footer-right .mobile-footer-column a {
    text-align: left;
}

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

.mobile-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.4rem;
}

.mobile-footer-bottom p {
    margin: 0;
    font-size: 1.4rem !important;
    color: rgba(255, 255, 255, 0.6);
}

/* Адаптивные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .mobile-footer-links {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start; /* left-align columns on very small screens */
    }
    
    .mobile-footer-column {
        text-align: center;
    }
    
    .mobile-footer-column h4,
    .mobile-footer-column a {
        text-align: left; /* ensure headings and links are left-aligned */
    }
    
    .mobile-footer-logo-icon {
        width: 100px;
        height: 100px;
    }
    
    .mobile-footer-brand-name {
        font-size: 1.4rem;
    }
    
    .mobile-footer-working-hours {
        font-size: 0.8rem;
    }
    
    .mobile-footer-column h4 {
        font-size: 14px;
        font-weight: 700;
    }
    
    .mobile-footer-column a {
        font-size: 1rem;
    }
    
    .mobile-footer-bottom {
        font-size: 1.2rem;
    }
    
    .mobile-footer-bottom p {
        font-size: 1.2rem !important;
    }
}

/* ========================================
   FAQ ADAPTIVE STYLES
   ======================================== */

@media (max-width: 480px) {
    .faq-question {
        font-size: 13px;
        padding: 15px 10px 15px 55px;
    }
    
    .faq-answer {
        font-size: 1.6rem;
    }
    
    .faq-answer p {
        left: 15px;
        font-size: 14px;
        max-width: calc(100% - 15px);
        padding-right: 10px;
    }
    
    .faq-answer li {
        left: 15px;
        font-size: 14px;
        max-width: calc(100% - 35px);
        padding-right: 10px;
    }
}

@media (max-width: 360px) {
    .faq-question {
        font-size: 10px;
        padding: 15px 10px 15px 55px;
    }
    
    .faq-answer {
        font-size: 1.4rem;
    }
    
    .faq-answer p {
        left: 10px;
        font-size: 11px;
        max-width: calc(100% - 10px);
        padding-right: 15px;
    }
    
    .faq-answer li {
        left: 10px;
        font-size: 10px;
        max-width: calc(100% - 30px);
        padding-right: 15px;
    }
    
    .faq-icon {
        width: 40px !important;
        height: 40px !important;
        left: 12px;
    }
}

.mobile-faq-title {
    font-family: 'Coolvetica', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

/* ========================================
   МОДАЛЬНОЕ ОКНО РОУТЕРА - НОВАЯ ВЕРСИЯ
   ======================================== */

.mobile-router-modal-new {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.mobile-router-modal-new.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-router-modal-content {
    position: relative;
    width: 356px;
    height: 589px;
    background: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: modalFadeIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: visible;
}

/* Изображение заголовка модального окна - настраиваемое положение */
.mobile-modal-head-image {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 60px;
    max-width: 90%;
    z-index: 10;
    object-fit: contain;
}

/* Кнопка закрытия (exit.png) - настраиваемое положение */
.mobile-modal-exit-btn {
    position: absolute;
    top: 20px;
    right: 19px;
    width: 45px;
    height: 46px;
    z-index: 20;
    cursor: pointer;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-modal-exit-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.mobile-modal-exit-btn:active {
    transform: scale(0.95);
    opacity: 0.6;
}

/* Favicon иконка - настраиваемое положение */
.mobile-modal-favicon {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 40px;
    height: 40px;
    z-index: 20;
    object-fit: contain;
    border-radius: 8px;
}

/* Заголовок роутера - настраиваемое положение */
.mobile-modal-router-title {
    position: absolute;
    top: 29px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Coolvetica', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    z-index: 20;
    letter-spacing: 0;
    line-height: 24px;
}

.mobile-router-modal-inner {
    top: 25px;
    width: 310px;
    height: 460px;
    background: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* Галерея изображений роутера */
.mobile-router-gallery {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    width: 280px;
    height: 200px;
    background: rgba(144, 140, 140, 0.71);
    border-radius: 30px;
    overflow: hidden;
    touch-action: pan-y;
}

.mobile-router-gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease;
}

.mobile-router-gallery-container .mobile-router-gallery-image {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
}

.mobile-router-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 15;
}

.mobile-router-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-router-gallery-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.mobile-router-gallery-counter {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 15;
}

.mobile-router-gallery-counter .mobile-gallery-current {
    color: #fff;
}

.mobile-router-gallery-counter .mobile-gallery-total {
    color: rgba(255, 255, 255, 0.7);
}

/* Блок с данными под фотографией */
.mobile-router-data-block {
    position: absolute;
    width: 215px;
    height: 40px;
    background: rgba(144, 117, 255, 0.2);
    border-radius: 30px;
    z-index: 10;
    top: 225px;
    left: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

/* Стили для текста цены в блоке данных роутера */
.mobile-router-data-block .mobile-router-full-price {
    font-family: 'Coolvetica', 'Arial', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    text-align: left !important;
    line-height: 1.2 !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.mobile-router-data-block .mobile-router-monthly-price {
    position: absolute !important;
    left: 80px !important;
    top: 14px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
    width: auto !important;
    height: auto !important;
    transform: translate(0px, 0px) scale(1) !important;
    transform-origin: left center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.mobile-router-data-block .mobile-router-price-from {
    font-family: 'Montserrat', 'Times New Roman', serif !important;
    font-size: 15px !important;
    font-weight: 300 !important;
    color: #666666 !important;
    text-align: left !important;
}

.mobile-router-data-block .mobile-router-price-amount {
    font-family: 'Montserrat', 'Arial', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    text-align: left !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Стили для строк характеристик в модальном окне */
.mobile-router-detail-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.mobile-router-detail-line .spec-label {
    font-weight: 700;
    color: #000000;
    display: inline-block;
}

.mobile-router-detail-line .spec-value {
    text-align: right;
    display: inline-block;
}

/* Иконка корзины */
.mobile-router-basket-block {
    position: absolute;
    width: 56px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    cursor: pointer;
    top: 225px;
    left: 240px;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-router-basket-block:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mobile-router-basket-block:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.1s ease;
}

.mobile-router-basket-block.added-to-cart {
    animation: basketSuccess 0.6s ease;
}

@keyframes basketSuccess {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); background: rgba(76, 175, 80, 0.3); }
    50% { transform: scale(1.1); background: rgba(76, 175, 80, 0.2); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); background: rgba(255, 255, 255, 0.1); }
}

.mobile-router-basket-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Описание роутера с настраиваемым позиционированием */
.mobile-router-description {
    position: absolute;
    top: 280px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    font-family: 'Montserrat', 'Times New Roman', serif;
    font-size: 10px;
    font-weight: 300;
    color: #333333;
    line-height: 24px;
    text-align: left;
    z-index: 10;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

/* Стили для строк описания */
.mobile-router-modal-content .mobile-router-description,
.mobile-router-modal-content .mobile-router-description .mobile-router-detail-line {
    font-family: 'Montserrat', 'Times New Roman', serif;
    font-size: inherit;
    line-height: 24px;
    margin: 0;
}

.mobile-router-modal-content .mobile-router-description .mobile-router-detail-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 6px 0 !important;
}

.mobile-router-modal-content .mobile-router-description .spec-label {
    font-weight: 700 !important;
    color: #000 !important;
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.mobile-router-modal-content .mobile-router-description .spec-value {
    text-align: right !important;
    flex: 0 0 auto !important;
    margin-left: 12px !important;
    color: #333 !important;
}

#mobileRouterModal #mobileRouterDescription .mobile-router-detail-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#mobileRouterModal #mobileRouterDescription .spec-label {
    font-weight: 700 !important;
    color: #000 !important;
    text-align: left !important;
}

#mobileRouterModal #mobileRouterDescription .spec-value {
    text-align: right !important;
    color: #333 !important;
}

/* Стилизация скроллбара для описания */
.mobile-router-description::-webkit-scrollbar {
    width: 3px;
}

.mobile-router-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.mobile-router-description::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.mobile-router-description::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Кнопка избранного в блоке данных роутера */
.mobile-router-favorite-button {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.mobile-router-favorite-button:hover {
    transform: scale(1.1);
}

.mobile-favorite-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

