/* ============================================================
   ГЛОБАЛЬНЫЙ СБРОС И БАЗОВЫЕ СТИЛИ
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f9fafb;
    color: #111827;
    scroll-behavior: smooth;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 18px;
}

/* ============================================================
   GLASSMORPHISM ХЕДЕР (СТИКИ)
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.header-container {
    max-width: auto;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ============================================================
   ЛОГОТИП
   ============================================================ */

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: clamp(120px, 12vw, 180px);
    height: clamp(60px, 6vw, 90px);
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background: #f0f2f5;
}

.logo-img:hover {
    transform: scale(1.02);
}

.logo-text {
    font-size: clamp(1.1rem, 1.5vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1E2B3C, #2C3E50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================================
   ДЕСКТОПНАЯ НАВИГАЦИЯ
   ============================================================ */

.main-nav {
    display: flex;
}

.main-nav ul {
    display: flex;
    gap: clamp(1.2rem, 2vw, 2.5rem);
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    color: #1f2937;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.main-nav a i,
.main-nav a img {
    font-size: 1.2rem;
    width: 22px;
    text-align: center;
}

.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #a855f7);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.main-nav > ul > li > a:hover::after {
    width: 100%;
}

.main-nav a.active {
    color: #2563eb;
    font-weight: 600;
}

.main-nav a.active::after {
    width: 100%;
    background: #3b82f6;
}

/* ============================================================
   DROPDOWN (ВЫПАДАЮЩЕЕ МЕНЮ)
   ============================================================ */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 0.3rem 0;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1050;
    list-style: none;
    flex-direction: column;
    gap: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.35rem 1rem;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    color: #111827;
    transition: background 0.2s;
    white-space: normal;
    line-height: 1.4;
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dropdown-menu img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.menu-item-has-children:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============================================================
   ПОЛОСКИ-РАЗДЕЛИТЕЛИ С ВЫДЕЛЕНИЕМ
   ============================================================ */

/* Обычное состояние - тонкая полоска */
.dropdown-menu li:not(:last-child)::after {
    content: '';
    display: block;
    width: 70%;
    height: 1.5px;
    margin: 0 auto;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #e5e7eb 20%, 
        #d1d5db 50%, 
        #e5e7eb 80%, 
        transparent 100%
    );
    opacity: 0.5;
    transition: all 0.4s ease;
}

/* ============================================================
   ВЫДЕЛЕНИЕ ПРИ НАВЕДЕНИИ - ПОЛОСКА СТАНОВИТСЯ ЯРКОЙ
   ============================================================ */

.dropdown-menu li:hover::after {
    opacity: 1 !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #3b82f6 20%, 
        #2563eb 50%, 
        #3b82f6 80%, 
        transparent 100%
    ) !important;
    width: 90% !important;
    height: 2.5px !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4) !important;
}



/* ============================================================
   КНОПКА CTA
   ============================================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background: #003d76;
    background-size: 300% 300%;
    animation: gradientFlow 3s ease infinite reverse, softPulse 2.5s ease-in-out infinite;
    color: white;
    border: none;
    padding: clamp(0.6rem, 0.8vw, 0.8rem) clamp(1.2rem, 1.5vw, 1.8rem);
    border-radius: 60px;
    font-weight: 600;
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-primary i {
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(105deg, #074ee9, #010b25);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

/* ============================================================
   БУРГЕР-КНОПКА (ДЛЯ МОБИЛЬНЫХ)
   ============================================================ */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1f2937;
    width: 48px;
    height: 48px;
    border-radius: 40px;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nav-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ (АДАПТИВ)
   ============================================================ */

@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85vw;
        max-width: 380px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.08);
        padding: 1.2rem 1rem;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        visibility: visible;
        opacity: 1;
        z-index: 1100;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.3rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.5rem 0;
        color: #111827 !important;
        border-bottom: none;
        justify-content: space-between;
    }

    .main-nav > ul > li > a span {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .main-nav a i,
    .main-nav a img {
        font-size: 1.2rem;
        width: 24px;
        color: #1f2937;
        filter: none;
    }

    .main-nav a img {
        width: 24px;
        height: 24px;
        border-radius: 6px;
    }

    .main-nav > ul > li > a::after {
        display: none;
    }

    .main-nav a.active {
        font-weight: 800;
        border-left: 3px solid #2563eb;
        padding-left: 10px;
        background: rgba(37, 99, 235, 0.12);
        color: #1e40af !important;
    }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(4px);
        box-shadow: none;
        border: none;
        padding: 0.3rem 0 0.3rem 1.2rem;
        margin-top: 0.2rem;
        margin-bottom: 0.2rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow-y: visible;
    }

    .dropdown-menu.open {
        display: flex !important;
        flex-direction: column;
    }

    .dropdown-menu a {
        padding: 0.45rem 0;
        gap: 8px;
        font-size: 0.95rem;
        color: #111827 !important;
        white-space: normal;
        font-weight: 500;
        line-height: 1.4;
        word-break: break-word;
    }

    .dropdown-menu a i,
    .dropdown-menu a img {
        filter: none;
        opacity: 1;
        color: #2c3e50;
    }

    .dropdown-menu img {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .menu-item-has-children > a .arrow-icon {
        font-size: 0.8rem;
        transition: transform 0.2s;
        margin-left: auto;
        color: #2c3e50;
        flex-shrink: 0;
    }

    .menu-item-has-children.open > a .arrow-icon {
        transform: rotate(180deg);
    }

    .mobile-close-btn {
        display: block;
        text-align: right;
        font-size: 1.6rem;
        cursor: pointer;
        color: #111;
        margin-bottom: 0.8rem;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(8px);
        z-index: 10;
        padding: 0.5rem 0;
        border-radius: 40px;
    }

    .mobile-close-btn i {
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.06);
        padding: 8px 12px;
        border-radius: 30px;
    }

    .btn-primary {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }

    .main-nav::-webkit-scrollbar {
        width: 4px;
    }
    .main-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.08);
        border-radius: 10px;
    }
    .main-nav::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.25);
        border-radius: 10px;
    }
}

@media (min-width: 769px) {
    .mobile-close-btn {
        display: none;
    }
    .main-nav {
        position: static;
        background: transparent;
        backdrop-filter: none;
        transform: none;
        width: auto;
        height: auto;
        overflow: visible;
        padding: 0;
    }
}

body.menu-open {
    overflow: hidden;
}

/* ============================================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ГАМБУРГЕР-МЕНЮ
   ============================================================ */

/* === Анимация гамбургера в крестик === */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 40px;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    position: relative;
    z-index: 1200;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle .hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #1f2937;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* ============================================================
   СКРЫВАЕМ 3 ПОЛОСКИ ПРИ ОТКРЫТОМ МЕНЮ
   ============================================================ */

/* Полностью скрываем кнопку гамбургера при открытом меню */
.menu-toggle.active {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ИЛИ если хотите плавно скрыть только полоски: */
.menu-toggle.active .hamburger-line {
    opacity: 0;
    transition: opacity 0.3s ease;
}


/* === Мобильное меню — доработанное === */
@media (max-width: 768px) {
    /* Показываем гамбургер */
    .menu-toggle {
        display: flex;
    }

    /* Навигация — выезжает справа */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85vw;
        max-width: 380px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: -4px 0 25px rgba(0, 0, 0, 0.08);
        padding: 1.2rem 1rem;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        visibility: visible;
        opacity: 1;
        z-index: 1100;
        border-left: 1px solid rgba(255, 255, 255, 0.3);
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    /* Оверлей (тёмный фон) */
    .main-nav.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
    }

    /* Кнопка закрытия внутри меню */
    .mobile-close-btn {
        display: block;
        text-align: right;
        font-size: 1.6rem;
        cursor: pointer;
        color: #111;
        margin-bottom: 0.8rem;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(8px);
        z-index: 10;
        padding: 0.5rem 0;
        border-radius: 40px;
    }

    .mobile-close-btn i {
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.06);
        padding: 8px 12px;
        border-radius: 30px;
    }

    /* Список меню в столбик */
    .main-nav ul {
        flex-direction: column;
        gap: 0.3rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.5rem 0;
        color: #111827 !important;
        border-bottom: none;
        justify-content: space-between;
    }

    .main-nav > ul > li > a::after {
        display: none;
    }

    .main-nav a.active {
        font-weight: 800;
        border-left: 3px solid #2563eb;
        padding-left: 10px;
        background: rgba(37, 99, 235, 0.12);
        color: #1e40af !important;
    }

    /* Дропдаун в мобильной версии */
    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(4px);
        box-shadow: none;
        border: none;
        padding: 0.3rem 0 0.3rem 1.2rem;
        margin-top: 0.2rem;
        margin-bottom: 0.2rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow-y: visible;
    }

    .dropdown-menu.open {
        display: flex !important;
        flex-direction: column;
    }

    .dropdown-menu a {
        padding: 0.45rem 0;
        gap: 8px;
        font-size: 0.95rem;
        color: #111827 !important;
        white-space: normal;
        font-weight: 500;
        line-height: 1.4;
        word-break: break-word;
    }

    .dropdown-menu img {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .menu-item-has-children > a .arrow-icon {
        font-size: 0.8rem;
        transition: transform 0.2s;
        margin-left: auto;
        color: #2c3e50;
        flex-shrink: 0;
    }

    .menu-item-has-children.open > a .arrow-icon {
        transform: rotate(180deg);
    }

    /* Кнопка CTA в мобильном меню */
    .main-nav .header-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        width: 100%;
        flex-direction: column;
        gap: 0.8rem;
    }

    .main-nav .header-actions .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Блокировка прокрутки при открытом меню */
    body.menu-open {
        overflow: hidden;
    }

    /* Стилизация скроллбара */
    .main-nav::-webkit-scrollbar {
        width: 4px;
    }
    .main-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.08);
        border-radius: 10px;
    }
    .main-nav::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.25);
        border-radius: 10px;
    }
}

/* === Десктоп: скрываем лишнее === */
@media (min-width: 769px) {
    .mobile-close-btn {
        display: none !important;
    }
    .main-nav {
        position: static !important;
        background: transparent !important;
        backdrop-filter: none !important;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-left: none !important;
    }
} 


/* ============================================================
   КРЕСТИК ДЛЯ ЗАКРЫТИЯ МЕНЮ (ЧИСТЫЙ CSS)  ГАМБУРГЕР МЕНЮ
   ============================================================ */

.mobile-close-btn {
    display: none; /* скрыт на десктопе */
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 0;
    border-radius: 40px;
    text-align: right;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0.8rem;
}

/* Контейнер для крестика */
.close-icon {
    display: inline-block;
    position: relative;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Первая полоска крестика (повёрнута на 45°) */
.close-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1f2937;
    border-radius: 2px;
    transform: translateY(-50%) rotate(45deg);
    transition: background 0.3s ease;
}

/* Вторая полоска крестика (повёрнута на -45°) */
.close-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1f2937;
    border-radius: 2px;
    transform: translateY(-50%) rotate(-45deg);
    transition: background 0.3s ease;
}

/* Эффект при наведении */
.mobile-close-btn:hover .close-icon {
    transform: rotate(90deg);
}

.mobile-close-btn:hover .close-icon::before,
.mobile-close-btn:hover .close-icon::after {
    background: #2563eb; /* синий при наведении */
}

/* ============================================================
   АДАПТИВ: показываем крестик только на мобильных
   ============================================================ */

@media (max-width: 768px) {
    .mobile-close-btn {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-close-btn {
        display: none !important;
    }
}

/* Оверлей для затемнения фона */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1050;
    display: none;
    cursor: pointer;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Блокировка скролла при открытом меню */
body.menu-open {
    overflow: hidden;
}



/* ============================================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   ============================================================ */

.hero {
    position: relative;
    min-height: auto;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800" opacity="0.08"><path fill="white" d="M400,100 L500,200 L400,300 L300,200 Z M400,300 L500,400 L400,500 L300,400 Z M200,200 L300,300 L200,400 L100,300 Z M600,200 L700,300 L600,400 L500,300 Z"/></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 100%;  /* ← ИЗМЕНЕНО: было 900px */
    width: 100%;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.4rem;
    border-radius: 60px;
    color: #60a5fa;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.hero-badge img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    width: 100%;  /* ← ДОБАВЛЕНО */
}

.hero h1 span {
    background: linear-gradient(135deg, #02085f, #a855f7, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: #02085f;
    margin-bottom: 2rem;
    /* max-width: 650px;   ← УБРАТЬ */
    /* margin-left: auto;   ← УБРАТЬ */
    /* margin-right: auto;  ← УБРАТЬ */
    line-height: 1.6;
    width: 100%;  /* ← ДОБАВЛЕНО */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: #003d76;
    background-size: 300% 300%;
    animation: gradientFlow 3s ease infinite reverse, softPulse 2.5s ease-in-out infinite;
    color: white;
    padding: clamp(0.8rem, 1.2vw, 1.2rem) clamp(1.5rem, 2vw, 2.5rem);
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

.btn-outline:hover {
    background: linear-gradient(105deg, #074ee9, #010b25);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-btn-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}


/* ============================================================
   СЕКЦИЯ ПРЕИМУЩЕСТВ
   ============================================================ */

.features {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 2vw, 2rem);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 25vw, 280px), 1fr));
    gap: clamp(1.5rem, 2vw, 2.5rem);
}

.feature-card {
    background: white;
    padding: clamp(1.5rem, 2vw, 2.5rem);
    border-radius: 28px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.feature-icon {
    width: clamp(70px, 8vw, 90px);
    height: clamp(70px, 8vw, 90px);
    background: linear-gradient(135deg, #e0e7ff, #ede9fe);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    padding: 15px;
}

.feature-icon img {
    width: clamp(40px, 5vw, 55px);
    height: clamp(40px, 5vw, 55px);
    object-fit: contain;
    display: block;
}

.feature-card h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #3b82f6, #a855f7,#02085f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card p {
    color: #0d0d0e;
    font-size: clamp(0.95rem, 1vw, 1.3rem);
    line-height: 1.6;
}

/* ============================================================
   КАТАЛОГ ПРОДУКЦИИ - ОСНОВНЫЕ СТИЛИ
   ============================================================ */

.catalog {
    background: #f1f5f9;
    padding: clamp(2rem, 3vw, 3.5rem) 0;
    width: 100%;
}

.catalog-container {
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 0 clamp(0.5rem, 1.5vw, 1rem);
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
}

/* ============================================================
   СЕТКА ТОВАРОВ
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(1.2rem, 2vw, 2.5rem);
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* ============================================================
   ТИПЫ КАРТОЧЕК С РАЗНОЙ ШИРИНОЙ
   ============================================================ */

.product-card-3inrow {
    grid-column: span 2;
}

.product-card-2inrow {
    grid-column: span 3;
}

.product-card-1inrow {
    grid-column: 1 / -1;
}

/* ============================================================
   БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ КАРТОЧЕК
   ============================================================ */

.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

/* ============================================================
   КАРТОЧКИ ПО 3 В РЯД - ВЕРТИКАЛЬНАЯ СТРУКТУРА
   ============================================================ */

.product-card-3inrow .product-card-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    height: 100%;
    width: 100%;
}

.product-card-3inrow .product-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    min-height: clamp(180px, 22vh, 300px);
    max-height: clamp(220px, 28vh, 360px);
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
}

.product-card-3inrow .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background: #f0f2f5;
    padding: clamp(5px, 0.8vw, 10px);
}

.product-card-3inrow:hover .product-image img {
    transform: scale(1.03);
}

.product-card-3inrow .product-info {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding: clamp(0.8rem, 1vw, 1.4rem) clamp(0.8rem, 1.2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow: visible;
}

/* ============================================================
   КАРТОЧКИ ПО 2 В РЯД - ТАКАЯ ЖЕ ВЕРТИКАЛЬНАЯ СТРУКТУРА
   ============================================================ */

.product-card-2inrow .product-card-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0;
    height: 100%;
    width: 100%;
}

.product-card-2inrow .product-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 100%;
    min-height: clamp(180px, 22vh, 300px);
    max-height: clamp(220px, 28vh, 360px);
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
}

.product-card-2inrow .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background: #f0f2f5;
    padding: clamp(5px, 0.8vw, 10px);
}

.product-card-2inrow:hover .product-image img {
    transform: scale(1.03);
}

.product-card-2inrow .product-info {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding: clamp(0.8rem, 1vw, 1.4rem) clamp(0.8rem, 1.2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    overflow: visible;
}

.product-card-2inrow .product-extra {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    padding: clamp(0.6rem, 0.8vw, 1.2rem) clamp(0.6rem, 0.8vw, 1.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 0 22px 22px;
}

/* ============================================================
   КАРТОЧКИ ПО 1 В РЯД - ГОРИЗОНТАЛЬНЫЕ
   ============================================================ */

.product-card-1inrow .product-card-wrapper {
    display: grid;
    grid-template-columns: clamp(250px, 32vw, 440px) 1fr clamp(220px, 24vw, 340px);
    grid-template-rows: 1fr;
    gap: 0;
    height: 100%;
    width: 100%;
}

.product-card-1inrow .product-image {
    min-height: clamp(300px, 32vh, 500px);
    max-height: clamp(380px, 42vh, 580px);
    border-radius: 22px 0 0 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
}

.product-card-1inrow .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background: #f0f2f5;
    padding: clamp(10px, 1.5vw, 20px);
}

.product-card-1inrow:hover .product-image img {
    transform: scale(1.03);
}

.product-card-1inrow .product-info {
    padding: clamp(1.8rem, 2.8vw, 3.5rem) clamp(1.8rem, 2.8vw, 3rem);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card-1inrow .product-extra {
    border-radius: 0 22px 22px 0;
}

/* ============================================================
   ЕДИНЫЕ НАСТРОЙКИ ТЕКСТА ДЛЯ ВСЕХ КАРТОЧЕК
   ============================================================ */

.product-card h3 {
    font-size: clamp(1.2rem, 1.7vw, 2.2rem) !important;
    margin-bottom: clamp(0.4rem, 0.6vw, 0.9rem) !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.product-card p {
    color: #475569 !important;
    font-size: clamp(0.95rem, 1.3vw, 2rem) !important;
    margin-bottom: clamp(0.2rem, 0.3vw, 0.5rem) !important;
    line-height: 1.7 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    overflow: visible !important;
}

.product-card .highlight-text {
    font-size: clamp(1rem, 1.4vw, 1.3rem) !important;
    font-weight: 600 !important;
}

.section-header .highlight-text strong {
    color: #3b82f6 !important;
    font-size: clamp(1.05rem, 1.5vw, 2rem) !important;
    font-weight: 700 !important;
}

.product-card .highlight-text strong {
    color: #3b82f6 !important;
    font-size: clamp(1.05rem, 1.5vw, 2rem) !important;
    font-weight: 700 !important;
}

.product-card .product-price {
    font-size: clamp(1.2rem, 1.9vw, 1.9rem) !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
    margin: clamp(0.6rem, 0.8vw, 1.1rem) 0 !important;
}

/* ============================================================
   EXTRA БЛОК - ЕДИНЫЙ ДЛЯ ВСЕХ КАРТОЧЕК
   ============================================================ */

.product-extra {
    padding: clamp(1.5rem, 2.2vw, 2.5rem) clamp(1.5rem, 2.2vw, 2.5rem) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 0 22px 22px 0 !important;
}

.product-extra .extra-content h4 {
    font-size: clamp(1rem, 2vw, 2rem) !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: clamp(0.6rem, 0.8vw, 1.1rem) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.product-extra .extra-features li {
    color: #334155 !important;
    font-size: clamp(0.85rem, 1.5vw, 1.5rem) !important;
    padding: clamp(0.25rem, 0.3vw, 0.45rem) 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.product-extra .extra-features li:last-child {
    border-bottom: none !important;
}

/* ============================================================
   EXTRA-LINK - НА ВСЮ ШИРИНУ КАРТОЧКИ
   ============================================================ */

.product-extra .extra-link {
    background: #f1f5f9 !important;
    color: #0863f5 !important;
    padding: clamp(0.8rem, 1vw, 1rem) clamp(1.2rem, 1.6vw, 1.6rem) !important;
    border-radius: 60px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s !important;
    width: 100% !important;
    font-size: clamp(1.5rem, 2vw, 2rem) !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    margin: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
}

.product-extra .extra-link:hover {
    background: #3b82f6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3) !important;
}

.product-extra .extra-link:active {
    transform: translateY(0px) !important;
}

.product-extra .extra-link img,
.product-extra .extra-link i {
    width: clamp(16px, 1.4vw, 20px) !important;
    height: clamp(16px, 1.4vw, 20px) !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.product-extra .extra-link:hover img,
.product-extra .extra-link:hover i {
    transform: translateX(4px) !important;
}

/* ============================================================
   КАРТОЧКИ ПО 8 В РЯД - СЕРЫЙ ФОН ВСЕЙ КАРТОЧКИ
   ============================================================ */

.products-grid-8 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.8rem, 1.2vw, 1.5rem);
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-top: 1.5rem;
}

.product-card-8inrow {
    background: #f1f5f9 !important;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    height: 100%;
    min-height: clamp(380px, 45vh, 520px);
    display: flex;
    flex-direction: column;
}

.product-card-8inrow:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.18);
    border-color: #3b82f6;
    background: #f1f5f9 !important;
}

.product-card-8inrow .product-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent !important;
}

.product-card-8inrow .product-image {
    width: 100%;
    min-height: clamp(220px, 30vh, 360px);
    max-height: clamp(260px, 36vh, 420px);
    background: #e8edf2 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.product-card-8inrow .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    background: transparent !important;
    padding: 0;
}

.product-card-8inrow:hover .product-image img {
    transform: scale(1.05);
}

.product-card-8inrow .product-image-dual {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: clamp(220px, 30vh, 360px);
    max-height: clamp(260px, 36vh, 420px);
    background: #e8edf2 !important;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.product-card-8inrow .product-image-top {
    flex: 0 0 60%;
    min-height: 0;
    height: 60%;
    position: relative;
    overflow: hidden;
    background: #e8edf2 !important;
}

.product-card-8inrow .product-image-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent !important;
    padding: 0;
    transition: transform 0.3s ease;
}

.product-card-8inrow .product-image-bottom {
    flex: 0 0 40%;
    min-height: 0;
    height: 40%;
    position: relative;
    overflow: hidden;
    background: #e8edf2 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.product-card-8inrow .product-image-bottom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent !important;
    padding: 0;
    transition: transform 0.3s ease;
}

.product-card-8inrow:hover .product-image-top img,
.product-card-8inrow:hover .product-image-bottom img {
    transform: scale(1.05);
}

.product-card-8inrow .product-info {
    padding: clamp(0.6rem, 0.8vw, 1rem) clamp(0.6rem, 0.8vw, 1rem);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    background: transparent !important;
}

.product-card-8inrow .product-info h3 {
    font-size: clamp(0.95rem, 1.2vw, 1.3rem) !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin: 0 0 4px 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-8inrow .product-info p {
    font-size: clamp(1.2rem, 1.4vw, 1.6rem) !important;
    color: #060606 !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-8inrow .product-price {
    font-size: clamp(1rem, 1.3vw, 1.4rem) !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
    margin: clamp(4px, 0.4vw, 8px) 0 !important;
}

/* ============================================================
   EXTRA-LINK ДЛЯ КАРТОЧЕК ПО 8 В РЯД - СЕРЫЙ ФОН
   ============================================================ */

.product-card-8inrow .extra-link {
    background: #e8edf2 !important;
    color: #1e293b !important;
    padding: clamp(0.8rem, 1vw, 1rem) clamp(0.8rem, 1vw, 1rem) !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: clamp(0.85rem, 1vw, 1.1rem) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    flex-shrink: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
    
}

.product-card-8inrow .extra-link:hover {
    background: #3b82f6 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
}

.product-card-8inrow .extra-link:active {
    transform: translateY(0px) !important;
}

.product-card-8inrow .extra-link img {
    width: clamp(18px, 1.2vw, 24px) !important;
    height: clamp(18px, 1.2vw, 24px) !important;
    object-fit: contain !important;
}

/* ============================================================
   КРАСИВЫЙ БЕЙДЖ (BADGE) - В ЛЕВОМ ВЕРХНЕМ УГЛУ
   ============================================================ */

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px 6px 14px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: pulseBadge 2.5s ease-in-out infinite;
    transform-origin: top left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulseBadge {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05) rotate(1deg);
        box-shadow: 0 8px 28px rgba(239, 68, 68, 0.55);
    }
}

.product-card:hover .product-badge {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

/* ============================================================
   АЛЬТЕРНАТИВНЫЕ ВАРИАНТЫ БЕЙДЖЕЙ
   ============================================================ */

.product-badge.hit {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    animation: pulseBadgeGreen 2.5s ease-in-out infinite;
}
.product-badge.hit::before {
    content: none;
}

@keyframes pulseBadgeGreen {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 28px rgba(34, 197, 94, 0.55);
    }
}

.product-badge.new {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    animation: pulseBadgeBlue 2.5s ease-in-out infinite;
}

@keyframes pulseBadgeBlue {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 28px rgba(59, 130, 246, 0.55);
    }
}

.product-badge.hot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    animation: pulseBadgeGold 2.5s ease-in-out infinite;
}

@keyframes pulseBadgeGold {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 28px rgba(245, 158, 11, 0.55);
    }
}

.product-badge.sale {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    animation: pulseBadgePurple 2.5s ease-in-out infinite;
}

@keyframes pulseBadgePurple {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 28px rgba(168, 85, 247, 0.55);
    }
}

.product-badge.action {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
    animation: pulseBadgeOrange 2.5s ease-in-out infinite;
}

@keyframes pulseBadgeOrange {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 28px rgba(249, 115, 22, 0.55);
    }
}

.product-badge.discount {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    animation: pulseBadgeRed 2.5s ease-in-out infinite;
}

@keyframes pulseBadgeRed {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 28px rgba(239, 68, 68, 0.55);
    }
}

.product-badge.bestseller {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
    animation: pulseBadgeTeal 2.5s ease-in-out infinite;
}

@keyframes pulseBadgeTeal {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 28px rgba(20, 184, 166, 0.55);
    }
}

/* ============================================================
   ЭФФЕКТЫ ПРИ НАВЕДЕНИИ ДЛЯ РАЗНЫХ ТИПОВ БЕЙДЖЕЙ
   ============================================================ */

.product-card:hover .product-badge.hit {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.5);
}

.product-card:hover .product-badge.new {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.product-card:hover .product-badge.hot {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 35px rgba(245, 158, 11, 0.6);
}

.product-card:hover .product-badge.sale {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.product-card:hover .product-badge.action {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

.product-card:hover .product-badge.discount {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

.product-card:hover .product-badge.bestseller {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 30px rgba(20, 184, 166, 0.5);
}

/* ============================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (БЕЙДЖИ)
   ============================================================ */

@media (max-width: 768px) {
    .product-badge {
        top: 8px;
        left: 8px;
        padding: 4px 12px 4px 10px;
        font-size: 10px;
        gap: 4px;
    }
    .product-badge::before {
        font-size: 11px;
    }

    .product-badge.hit::before {
        content: none;
    }
    .product-badge.new::before {
        font-size: 11px;
    }
    .product-badge.hot::before {
        font-size: 13px;
    }
    .product-badge.sale::before {
        font-size: 11px;
    }
    .product-badge.action::before {
        font-size: 13px;
    }
    .product-badge.discount::before {
        font-size: 11px;
    }
    .product-badge.bestseller::before {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-badge {
        top: 6px;
        left: 6px;
        padding: 3px 10px 3px 8px;
        font-size: 9px;
        gap: 3px;
    }
    .product-badge::before {
        font-size: 10px;
    }

    .product-badge.hit::before {
        content: none;
    }
    .product-badge.new::before {
        font-size: 10px;
    }
    .product-badge.hot::before {
        font-size: 11px;
    }
    .product-badge.sale::before {
        font-size: 10px;
    }
    .product-badge.action::before {
        font-size: 11px;
    }
    .product-badge.discount::before {
        font-size: 10px;
    }
    .product-badge.bestseller::before {
        font-size: 10px;
    }
}

/* ============================================================
   КНОПКИ НАЗНАЧЕНИЯ РОЛЬСТАВНЕЙ (УВЕЛИЧЕНЫ)
   ============================================================ */

.product-purpose {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0 22px 0;
}

.purpose-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 27px;
    min-height: 57px;
    border-radius: 45px;
    border: 3px solid #0B63CE;
    background: #ffffff;
    color: #0B63CE;
    text-decoration: none;
    font-size: 19.5px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4.5px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.purpose-btn:hover {
    background: #0B63CE;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(11, 99, 206, 0.3);
}

.purpose-btn.active {
    background: #ffffff;
    color: #0B63CE;
    border-color: #0B63CE;
    box-shadow: 0 12px 36px rgba(11, 99, 206, 0.45);
}

.purpose-btn:active {
    transform: translateY(0px);
}

/* ============================================================
   АДАПТИВ ДЛЯ ПЛАНШЕТОВ (≤1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .purpose-btn {
        font-size: 18px;
        padding: 9px 21px;
        min-height: 51px;
    }
    .product-purpose {
        gap: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(1rem, 1.5vw, 1.8rem);
    }

    .product-card-3inrow {
        grid-column: span 2;
    }

    .product-card-2inrow,
    .product-card-1inrow {
        grid-column: 1 / -1;
    }

    .product-card-1inrow .product-card-wrapper,
    .product-card-2inrow .product-card-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .product-card-1inrow .product-image,
    .product-card-2inrow .product-image {
        min-height: clamp(220px, 26vh, 340px);
        max-height: clamp(260px, 32vh, 420px);
        border-radius: 22px 22px 0 0;
    }

    .product-card-1inrow .product-info,
    .product-card-2inrow .product-info {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: clamp(1rem, 1.5vw, 1.8rem);
    }

    .product-card-1inrow .product-extra,
    .product-card-2inrow .product-extra {
        border-radius: 0 0 22px 22px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        padding: clamp(0.8rem, 1.2vw, 1.5rem);
    }

    .extra-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(0.1rem, 0.3vw, 0.3rem) clamp(0.3rem, 0.8vw, 0.8rem);
    }

    .extra-features li {
        border-bottom: none;
        padding: clamp(0.05rem, 0.15vw, 0.15rem) 0;
    }

    .product-purpose {
        gap: 8px;
    }
    .purpose-btn {
        font-size: 12px;
        padding: 6px 14px;
        min-height: 34px;
    }

    .products-grid-8 {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .product-card-8inrow {
        min-height: clamp(340px, 40vh, 440px);
    }

    .product-card-8inrow .product-image {
        min-height: clamp(180px, 24vh, 260px);
        max-height: clamp(200px, 28vh, 300px);
    }

    .product-card-8inrow .product-image-dual {
        min-height: clamp(180px, 24vh, 260px);
        max-height: clamp(200px, 28vh, 300px);
    }

    .product-card-8inrow .product-info h3 {
        font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
    }

    .product-card-8inrow .product-info p {
        font-size: clamp(1rem, 1.2vw, 1.3rem) !important;
    }

    .product-card-8inrow .extra-link {
        font-size: clamp(0.75rem, 1.2vw, 0.95rem) !important;
        padding: clamp(8px, 1vw, 12px) !important;
    }
}

/* ============================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (≤768px)
   ============================================================ */

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(0.8rem, 1.2vw, 1.2rem);
    }

    .product-card-3inrow {
        grid-column: span 1;
    }

    .product-card-2inrow,
    .product-card-1inrow {
        grid-column: 1 / -1;
    }

    .product-card-3inrow .product-image,
    .product-card-2inrow .product-image,
    .product-card-1inrow .product-image {
        min-height: clamp(180px, 22vh, 260px);
        max-height: clamp(220px, 28vh, 320px);
        border-radius: 22px 22px 0 0;
    }

    .product-card-3inrow .product-info,
    .product-card-2inrow .product-info,
    .product-card-1inrow .product-info {
        padding: clamp(0.8rem, 1.2vw, 1.2rem);
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .product-card-3inrow .product-extra,
    .product-card-2inrow .product-extra,
    .product-card-1inrow .product-extra {
        padding: clamp(0.6rem, 0.8vw, 1rem);
        border-radius: 0 0 22px 22px;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .product-purpose {
        gap: 6px;
        justify-content: center;
    }
    .purpose-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 120px;
        font-size: 11px;
        padding: 6px 12px;
        min-height: 32px;
    }

    /* Адаптив для extra-link на мобильных */
    .product-extra .extra-link {
        padding: clamp(0.6rem, 1.2vw, 0.8rem) clamp(1rem, 1.5vw, 1.2rem) !important;
        font-size: clamp(0.85rem, 1.8vw, 0.95rem) !important;
        border-radius: 40px !important;
    }

    .products-grid-8 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .product-card-8inrow {
        min-height: clamp(300px, 50vh, 400px);
    }

    .product-card-8inrow .product-image {
        min-height: clamp(160px, 22vh, 200px);
        max-height: clamp(180px, 26vh, 220px);
    }

    .product-card-8inrow .product-image-dual {
        min-height: clamp(160px, 22vh, 200px);
        max-height: clamp(180px, 26vh, 220px);
    }

    .product-card-8inrow .product-info h3 {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem) !important;
        -webkit-line-clamp: 2;
    }

    .product-card-8inrow .product-info p {
        font-size: clamp( 0.85rem, 1.8vw, 1.2rem) !important;
        -webkit-line-clamp: 2;
    }

    .product-card-8inrow .product-price {
        font-size: clamp(0.9rem, 2vw, 1.05rem) !important;
    }

    .product-card-8inrow .extra-link {
        font-size: clamp(0.8rem, 2vw, 0.95rem) !important;
        padding: clamp(10px, 1.8vw, 14px) !important;
    }

    .product-card-8inrow .product-badge {
        font-size: clamp(8px, 1.2vw, 11px) !important;
        padding: 4px 12px 4px 10px !important;
        top: 8px;
        left: 8px;
    }
}

/* ============================================================
   АДАПТИВ ДЛЯ МАЛЕНЬКИХ МОБИЛЬНЫХ (≤480px)
   ============================================================ */

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card-3inrow,
    .product-card-2inrow,
    .product-card-1inrow {
        grid-column: 1 / -1;
    }

    .product-card-3inrow .product-image,
    .product-card-2inrow .product-image,
    .product-card-1inrow .product-image {
        min-height: clamp(160px, 20vh, 200px);
        max-height: clamp(180px, 24vh, 250px);
    }

    .product-card-3inrow .product-info,
    .product-card-2inrow .product-info,
    .product-card-1inrow .product-info {
        padding: clamp(0.6rem, 0.8vw, 0.8rem);
    }

    .product-card-3inrow .product-extra,
    .product-card-2inrow .product-extra,
    .product-card-1inrow .product-extra {
        padding: clamp(0.5rem, 0.6vw, 0.7rem);
    }

    .extra-features {
        grid-template-columns: 1fr;
    }

    .purpose-btn {
        flex: 1 1 100%;
        min-width: 100%;
        justify-content: center;
        font-size: 12px;
        padding: 8px 12px;
        min-height: 36px;
    }

    .product-extra .extra-link {
        padding: clamp(0.5rem, 1vw, 0.7rem) clamp(0.8rem, 1.2vw, 1rem) !important;
        font-size: clamp(0.8rem, 2vw, 0.9rem) !important;
        border-radius: 30px !important;
    }

    .products-grid-8 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .product-card-8inrow {
        min-height: clamp(280px, 55vh, 360px);
        border-radius: 12px;
    }

    .product-card-8inrow .product-image {
        min-height: clamp(140px, 20vh, 180px);
        max-height: clamp(160px, 24vh, 200px);
        border-radius: 12px 12px 0 0;
    }

    .product-card-8inrow .product-image-dual {
        min-height: clamp(140px, 20vh, 180px);
        max-height: clamp(160px, 24vh, 200px);
        border-radius: 12px 12px 0 0;
    }

    .product-card-8inrow .product-info {
        padding: 0.5rem;
    }

    .product-card-8inrow .product-info h3 {
        font-size: clamp(0.85rem, 2.8vw, 1rem) !important;
        -webkit-line-clamp: 2;
    }

    .product-card-8inrow .product-info p {
        font-size: clamp(1rem, 2.2vw, 1rem) !important;
        -webkit-line-clamp: 2;
    }

    .product-card-8inrow .product-price {
        font-size: clamp(0.85rem, 2.5vw, 1rem) !important;
    }

    .product-card-8inrow .extra-link {
        font-size: clamp(0.75rem, 2.5vw, 0.9rem) !important;
        padding: clamp(8px, 2vw, 12px) !important;
    }

    .product-card-8inrow .product-badge {
        font-size: clamp(7px, 1.5vw, 10px) !important;
        padding: 3px 10px 3px 8px !important;
        top: 6px;
        left: 6px;
    }
}

@media (max-width: 360px) {
    .products-grid-8 {
        gap: 0.4rem;
    }

    .product-card-8inrow {
        min-height: clamp(240px, 50vh, 300px);
    }

    .product-card-8inrow .product-image {
        min-height: 100px;
        max-height: 120px;
    }

    .product-card-8inrow .product-image-dual {
        min-height: 100px;
        max-height: 120px;
    }

    .product-card-8inrow .product-info h3 {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem) !important;
        -webkit-line-clamp: 1;
    }

    .product-card-8inrow .product-info p {
        font-size: clamp(1rem, 2vw, 1rem) !important;
        -webkit-line-clamp: 1;
    }

    .product-card-8inrow .product-price {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem) !important;
    }

    .product-card-8inrow .extra-link {
        font-size: clamp(0.6rem, 2vw, 0.7rem) !important;
        padding: clamp(6px, 1.5vw, 8px) !important;
    }

    .product-card-8inrow .product-badge {
        font-size: 6px !important;
        padding: 2px 8px 2px 6px !important;
        top: 4px;
        left: 4px;
    }
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */

.reviews {
    max-width: 100%;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
    width: 100%;
}

/* === ЦЕНТРИРУЕМ ЗАГОЛОВОК === */
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    text-align: center;
    margin-bottom: 0.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 26vw, 320px), 1fr));
    gap: clamp(1.5rem, 2vw, 2.5rem);
    margin-top: 3rem;
}


.review-card {
    background: white;
    padding: clamp(1.5rem, 1.8vw, 2rem);
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.review-text {
    font-style: italic;
    color: #334155;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 1.4vw, 1.6rem);
    line-height: 1.6;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: clamp(50px, 5vw, 60px);
    height: clamp(50px, 5vw, 60px);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f2f5;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-name {
    font-weight: 600;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

.review-stars {
    color: #fbbf24;
    font-size: clamp(0.85rem, 0.9vw, 1rem);
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ОБЁРТКА ДЛЯ КВИЗА + CTA (FLEX-КОНТЕЙНЕР)
   ============================================================ */

.quiz-wrapper {
    display: flex;
    align-items: stretch;
    gap: 40px;           /* отступ между квизом и CTA */
    max-width: 100%;     /* полная ширина */
    margin: 2rem 0;      /* убираем auto */
    padding: 0 clamp(0.6rem, 1.5vw, 1.5rem);
    width: 100%;
}

.quiz-wrapper .quiz-container {
    flex: 2;             /* 1/2 (50%) */
    min-width: 0;
}

.quiz-wrapper .cta-section {
    flex: 1;             /* 1/2 (50%) — было flex: 2 */
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 32px;
    padding: clamp(1.5rem, 2vw, 2.5rem) clamp(1.5rem, 2vw, 2.5rem);
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 220px;
    border: none;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.25);
    margin: 0;
}

.quiz-wrapper .cta-section h2 {
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.quiz-wrapper .cta-section p {
    font-size: clamp(1rem, 1.7vw, 2.1rem);
    margin-bottom: 1.5rem;
    opacity: 0.92;
    line-height: 1.5;
}

/* Кнопка в CTA (белая) */
.quiz-wrapper .cta-section .btn-primary {
    background: white;
    color: #3b82f6;
    border: none;
    padding: clamp(0.7rem, 1vw, 0.9rem) clamp(1.5rem, 2vw, 2.2rem);
    border-radius: 60px;
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quiz-wrapper .cta-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

/* ============================================================
   АДАПТИВ ДЛЯ ОБЁРТКИ КВИЗА + CTA
   ============================================================ */

@media (max-width: 900px) {
    .quiz-wrapper {
        flex-direction: column;
        gap: 30px;
        margin: 1.5rem auto;
    }

    .quiz-wrapper .quiz-container {
        flex: none;
        width: 100%;
    }

    .quiz-wrapper .cta-section {
        flex: none;
        width: 100%;
        min-width: unset;
        padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
        border-radius: 28px;
    }

    .quiz-wrapper .cta-section h2 {
        font-size: clamp(1.4rem, 3vw, 1.8rem);
    }

    .quiz-wrapper .cta-section p {
        font-size: clamp(1rem, 1.5vw, 1.1rem);
    }

    .quiz-wrapper .cta-section .btn-primary {
        font-size: clamp(1rem, 1.5vw, 1.1rem);
        padding: clamp(0.7rem, 1.2vw, 0.9rem) clamp(1.5rem, 3vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .quiz-wrapper {
        gap: 20px;
        margin: 1rem auto;
        padding: 0 0.8rem;
    }

    .quiz-wrapper .cta-section {
        padding: 1.8rem 1.2rem;
        border-radius: 24px;
    }

    .quiz-wrapper .cta-section h2 {
        font-size: 1.3rem;
    }

    .quiz-wrapper .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .quiz-wrapper .cta-section .btn-primary {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
}



/* ============================================================
   ПОДВАЛ (FOOTER)
   ============================================================ */

.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: clamp(2rem, 3vw, 3.5rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 2vw, 2.5rem);
    margin-top: 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 26vw, 320px), 1fr));
    gap: clamp(2rem, 3vw, 3.5rem);
}

.footer-title {
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: white;
}

.contact-info p {
    margin-bottom: 0.75rem;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
}

/* ============================================================
   БАННЕР КУКИ (COOKIE CONSENT)
   ============================================================ */

#cookie-consent {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: clamp(12px, 1.5vw, 16px);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#cookie-consent .text {
    flex: 1 1 auto;
    font-size: clamp(14px, 1.2vw, 16px);
    color: #111;
    line-height: 1.4;
}

#cookie-consent .actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

#cookie-consent button {
    padding: clamp(8px, 0.8vw, 10px) clamp(12px, 1.2vw, 16px);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: clamp(14px, 1.2vw, 16px);
}

#cookie-consent button#accept {
    background: #0061f2;
    color: white;
}

#cookie-consent button#decline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #111;
}

@media (max-width: 640px) {
    #cookie-consent {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
    }
    #cookie-consent .actions {
        justify-content: flex-end;
    }
}


/* ============================================================
   МОДАЛЬНОЕ ОКНО (ПОЛНОЭКРАННОЕ)
   ============================================================ */

.modal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.92) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    position: relative !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    animation: modalFadeIn 0.3s ease !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: 82vh !important;
    object-fit: contain !important;
    display: block !important;
    padding: 0 16px !important;
}

.modal-caption {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    color: white !important;
    padding: 20px 24px 30px !important;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 60%,
            rgba(0, 0, 0, 0) 100%) !important;
    font-size: clamp(14px, 2.5vw, 22px) !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    z-index: 10001 !important;
    pointer-events: none !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.modal-caption strong {
    display: block !important;
    font-size: clamp(16px, 3vw, 26px) !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

.modal-caption br {
    display: none !important;
}

.close-modal {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    color: white !important;
    font-size: 32px !important;
    cursor: pointer !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    z-index: 10002 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.08) !important;
}

.modal-prev,
.modal-next {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 48px !important;
    height: 48px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    font-size: 28px !important;
    cursor: pointer !important;
    z-index: 10002 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modal-prev {
    left: 16px !important;
}

.modal-next {
    right: 16px !important;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.modal-counter {
    position: fixed !important;
    bottom: 100px !important;
    right: 20px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    z-index: 10002 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 768px) {
    .modal-img {
        max-height: 70vh !important;
        padding: 0 8px !important;
    }

    .modal-caption {
        padding: 16px 16px 24px !important;
        font-size: clamp(12px, 2.2vw, 16px) !important;
    }

    .modal-caption strong {
        font-size: clamp(14px, 2.8vw, 18px) !important;
    }

    .modal-prev,
    .modal-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }

    .modal-prev {
        left: 8px !important;
    }

    .modal-next {
        right: 8px !important;
    }

    .close-modal {
        width: 40px !important;
        height: 40px !important;
        font-size: 24px !important;
        top: 12px !important;
        right: 12px !important;
    }

    .modal-counter {
        bottom: 80px !important;
        right: 12px !important;
        font-size: 12px !important;
        padding: 4px 12px !important;
    }
}

@media (max-width: 480px) {
    .modal-img {
        max-height: 60vh !important;
        padding: 0 4px !important;
    }

    .modal-caption {
        padding: 14px 12px 20px !important;
        font-size: clamp(11px, 2vw, 14px) !important;
        line-height: 1.5 !important;
    }

    .modal-caption strong {
        font-size: clamp(13px, 2.5vw, 16px) !important;
    }

    .modal-prev,
    .modal-next {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
    }

    .modal-prev {
        left: 4px !important;
    }

    .modal-next {
        right: 4px !important;
    }

    .close-modal {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
        top: 8px !important;
        right: 8px !important;
    }

    .modal-counter {
        bottom: 70px !important;
        right: 8px !important;
        font-size: 10px !important;
        padding: 3px 10px !important;
    }
}

@supports (padding: max(0px)) {
    .modal-caption {
        padding-bottom: max(24px, env(safe-area-inset-bottom, 24px)) !important;
        padding-left: max(16px, env(safe-area-inset-left, 16px)) !important;
        padding-right: max(16px, env(safe-area-inset-right, 16px)) !important;
    }

    .close-modal {
        top: max(16px, env(safe-area-inset-top, 16px)) !important;
        right: max(16px, env(safe-area-inset-right, 16px)) !important;
    }
}

/* ============================================================
   ПЕРЕОПРЕДЕЛЕНИЕ СТИЛЕЙ ДЛЯ ЦВЕТОВЫХ ВКЛАДОК (product.css)
   ============================================================ */

.color-tabs-header {
    display: flex !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    border-bottom: 3px solid #d0ddeb !important;
    position: relative !important;
    background: linear-gradient(to bottom, #f5f9ff 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.05) !important;
    justify-content: center !important;
    padding: 0 !important;
}

.color-tab-btn {
    padding: 16px 4vw !important;
    font-size: clamp(10px, 2vw, 30px) !important;
    font-weight: 600 !important;
    background: #e9eef4 !important;
    border: 2px solid #b8c7dd !important;
    border-radius: 50px 50px 0 0 !important;
    color: #1e3a5f !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    margin-bottom: -3px !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03) !important;
    background: #e2eaf3 !important;
    border: 2px solid #9bb0cc !important;
    opacity: 1 !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

.color-tab-btn.active {
    color: #0066cc !important;
    background: white !important;
    border: 2px solid #0066cc !important;
    border-bottom-color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 102, 204, 0.1) !important;
    box-shadow: 0 -4px 10px rgba(0, 102, 204, 0.15) !important;
    z-index: 2 !important;
}

.color-tab-btn.active::before {
    content: "▼" !important;
    position: absolute !important;
    bottom: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #0066cc !important;
    font-size: 16px !important;
    text-shadow: 0 2px 3px rgba(0, 102, 204, 0.3) !important;
}

@media (max-width: 950px) {
    .color-tabs-header {
        overflow-x: visible !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #f5f9ff !important;
        border-bottom: 3px solid #d0ddeb !important;
        padding: 0 !important;
        margin-bottom: 24px !important;
    }

    .color-tabs-header::-webkit-scrollbar {
        display: none;
    }

    .color-tab-btn {
        padding: 16px 4vw !important;
        font-size: clamp(10px, 2vw, 30px) !important;
        background: #e2eaf3 !important;
        border: 2px solid #9bb0cc !important;
        border-radius: 50px 50px 0 0 !important;
        color: #1e3a5f !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap !important;
        margin-bottom: -3px !important;
        position: relative !important;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03) !important;
        text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
    }

    .color-tab-btn.active {
        background: white !important;
        color: #0066cc !important;
        border: 2px solid #0066cc !important;
        border-bottom-color: white !important;
        font-weight: 700 !important;
        z-index: 2 !important;
        box-shadow: 0 -4px 10px rgba(0, 102, 204, 0.15) !important;
    }

    .color-tab-btn.active::before {
        content: "▼" !important;
        display: block !important;
        position: absolute !important;
        bottom: -12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        color: #0066cc !important;
        font-size: 16px !important;
        text-shadow: 0 2px 3px rgba(0, 102, 204, 0.3) !important;
        background: transparent !important;
        width: auto !important;
        height: auto !important;
        border: none !important;
    }
}

@media (max-width: 480px) {
    .color-tab-btn {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    .color-tab-btn.active::before {
        bottom: -10px !important;
        font-size: 12px !important;
    }
}

@media (min-width: 481px) and (max-width: 950px) {
    .color-tab-btn {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
}

.quiz-container .color-tabs-header,
.quiz-container .color-tab-btn {
    all: revert !important;
}

.quiz-tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.quiz-tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
}

.quiz-tab-btn.active {
    background: #3b82f6;
    color: white;
}

/* ============================================================
   ПЕРЕОПРЕДЕЛЕНИЕ СЕТКИ ЦВЕТОВ (product.css)
   ============================================================ */

.color-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
}

.color-item {
    display: flex !important;
    height: 10vw !important;
    min-height: 70px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative !important;
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
    font-size: 14px !important;
    text-align: center !important;
    word-break: break-word !important;
    transition: all 0.2s ease !important;
}

.color-item:not([data-texture]) {
    color: black !important;
    text-shadow: none !important;
}

.color-item::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border-radius: 6px !important;
}

.color-item[data-texture]::before {
    background: rgba(0, 0, 0, 0.15) !important;
}

.color-item span {
    position: relative !important;
    z-index: 2 !important;
}

.color-item.selected {
    border-color: #ffd700 !important;
    transform: scale(1.03) !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.5) !important;
}

@media (max-width: 780px) {
    .color-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .color-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.color-tabs-wrapper .color-tabs-header,
.color-tabs-wrapper .color-tab-btn {
    all: revert !important;
}

.quiz-container .color-tabs-header,
.quiz-container .color-tab-btn {
    all: revert !important;
}