/* static/css/main.css */
/* =============================================
   AI-SHOP HAIR CARE - ОСНОВНЫЕ СТИЛИ
   ============================================= */

/* --- 1. ПОДКЛЮЧЕНИЕ ШРИФТОВ --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- 2. CSS ПЕРЕМЕННЫЕ (ЦВЕТОВАЯ ПАЛИТРА) --- */
:root {
    /* Основные цвета */
    --primary: #C8956A;           /* Теплый золотисто-бежевый (основной акцент) */
    --primary-dark: #A8754A;      /* Темный оттенок для ховеров */
    --primary-light: #E8D5C4;     /* Светлый оттенок для фона */

    /* Нейтральные цвета */
    --dark: #2C2C2C;             /* Почти черный для текста */
    --dark-secondary: #5C5C5C;   /* Серый для второстепенного текста */
    --light: #FDFBF9;            /* Теплый белый для фона */
    --light-gray: #F5F0EB;       /* Светло-бежевый для секций */

    /* Акцентные цвета */
    --accent-rose: #D4A5A5;      /* Пыльная роза */
    --accent-sage: #B5C5B5;      /* Шалфей */
    --accent-lavender: #C5B5D4;  /* Лаванда */

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #C8956A 0%, #D4B896 100%);
    --gradient-soft: linear-gradient(135deg, #FDFBF9 0%, #F5F0EB 100%);
    --gradient-dark: linear-gradient(135deg, #2C2C2C 0%, #4A4A4A 100%);

    /* Типографика */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Размеры шрифтов */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 2rem;      /* 32px */
    --text-4xl: 2.5rem;    /* 40px */

    /* Тени */
    --shadow-sm: 0 2px 8px rgba(44, 44, 44, 0.06);
    --shadow-md: 0 4px 16px rgba(44, 44, 44, 0.08);
    --shadow-lg: 0 8px 32px rgba(44, 44, 44, 0.1);
    --shadow-xl: 0 16px 48px rgba(44, 44, 44, 0.12);

    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- 3. СБРОС СТИЛЕЙ --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* --- 4. ТИПОГРАФИКА --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    color: var(--dark-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* --- 5. НАВИГАЦИЯ --- */
.navbar {
    background: rgba(253, 251, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-light);
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--dark) !important;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--dark-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.25rem !important;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Кнопка сканера в навигации */
.btn-scan {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-base);
}

.btn-scan:hover {
    background: var(--primary);
    color: white;
}

/* --- 6. КНОПКИ --- */
.btn {
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(200, 149, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 149, 106, 0.4);
    background: var(--gradient-primary);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* --- 7. HERO СЕКЦИЯ --- */
.hero {
    background: var(--gradient-soft);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;

    pointer-events: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary);
    font-style: italic;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--dark-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* --- HERO ИЗОБРАЖЕНИЕ С ПЛАВНЫМ ПЕРЕХОДОМ --- */
.hero-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.hero-image {
    max-height: 450px;
    display: block;
    border-radius: 20px;
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 70%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 70%,
        transparent 100%
    );
}

/* --- КАРТОЧКИ БРЕНДОВ --- */
.brand-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.brand-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--light-gray);
    padding: 1rem;
}

.brand-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    transition: color var(--transition-fast);
}

.brand-card:hover .brand-name {
    color: var(--primary);
}

/* Адаптивность для карточек брендов */
@media (max-width: 576px) {
    .brand-card {
        padding: 1.5rem 1rem;
    }

    .brand-logo,
    .brand-placeholder {
        width: 70px;
        height: 70px;
    }

    .brand-placeholder {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: var(--text-base);
    }
}

/* --- КАРТОЧКИ КАТЕГОРИЙ (для страницы каталога) --- */
.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--light-gray);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-card-image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card-img {
    transform: scale(1.08);
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 3rem;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card-placeholder {
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(44, 44, 44, 0.85) 0%,
        rgba(44, 44, 44, 0.4) 40%,
        transparent 70%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.5rem;
    transition: background var(--transition-base);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(
        to top,
        rgba(44, 44, 44, 0.9) 0%,
        rgba(44, 44, 44, 0.5) 40%,
        transparent 70%
    );
}

.category-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.category-card-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.category-card-link {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.category-card:hover .category-card-link {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .category-card {
        aspect-ratio: 1/1;
    }

    .category-card-overlay {
        padding: 1.5rem 1rem;
    }

    .category-card-title {
        font-size: var(--text-lg);
    }

    .category-card-desc {
        display: none;
    }

    .category-card-link {
        opacity: 1;
        transform: translateY(0);
        font-size: var(--text-xs);
    }
}

/* --- 8. КАРТОЧКИ ТОВАРОВ --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--light-gray);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-card-body {
    padding: 1.5rem;
}

.product-card-category {
    font-size: var(--text-xs);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.product-card-price {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
}

.product-card-action {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 9. СТРАНИЦА ТОВАРА --- */
.product-detail {
    padding: 4rem 0;
}

.product-gallery {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-gallery img {
    width: 100%;
    height: auto;
}

.product-info {
    padding-left: 3rem;
}

.breadcrumb {
    font-size: var(--text-sm);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--dark-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--primary-light);
}

.product-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-price-large {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: var(--text-lg);
    color: var(--dark-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.product-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--primary-light);
    font-size: var(--text-base);
    color: var(--dark-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-features li i {
    color: var(--primary);
    font-size: var(--text-lg);
}

/* --- 10. AI КОНСУЛЬТАНТ (ВИДЕО БЛОК) --- */
.ai-consultant {
    background: var(--gradient-dark);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-top: 3rem;
}

.ai-consultant-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-consultant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-lg);
}

.ai-consultant-title {
    color: white;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
}

.ai-consultant-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

.ai-consultant-video {
    position: relative;
    background: black;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-consultant-video video {
    width: 100%;
    max-height: 500px;
}

.ai-consultant-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem;
}

.ai-consultant-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-consultant-footer {
    padding: 1.25rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-consultant-footer i {
    color: var(--primary);
}

/* --- 11. СЕКЦИИ И РАЗДЕЛИТЕЛИ --- */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    font-size: var(--text-lg);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
    justify-items: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* --- 12. КАТЕГОРИИ --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: all var(--transition-slow);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 44, 44, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.category-card-title {
    color: white;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
}

/* --- 13. ФУТЕР --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: white;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--primary);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-title {
    font-family: var(--font-heading);
    color: white;
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

footer .container .row .footer-links {
    padding-left: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: var(--text-sm);
}

/* --- 14. СКАНЕР --- */
.scanner-page {
    padding: 4rem 0;
    background: var(--gradient-soft);
    min-height: 80vh;
}

.scanner-container {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: black;
}

.scanner-view {
    position: relative;
}

.scanner-view video {
    width: 100%;
    display: block;
}

.scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 2px solid rgba(200, 149, 106, 0.8);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.scanner-frame::before,
.scanner-frame::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary);
    border-style: solid;
}

.scanner-frame::before {
    top: -2px;
    left: -2px;
    border-width: 3px 0 0 3px;
    border-radius: 4px 0 0 0;
}

.scanner-frame::after {
    bottom: -2px;
    right: -2px;
    border-width: 0 3px 3px 0;
    border-radius: 0 0 4px 0;
}

.scanner-info {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.scanner-info i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.manual-input {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
}

.manual-input input {
    font-size: 1.2rem;
    letter-spacing: 3px;
    font-family: monospace;
    text-align: center;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    padding: 1rem 1.5rem;
}

.manual-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(200, 149, 106, 0.1);
}

/* --- 15. СТРАНИЦА "ТОВАР НЕ НАЙДЕН" --- */
.not-found {
    padding: 6rem 0;
    text-align: center;
}

.not-found-icon {
    font-size: 5rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.not-found-code {
    font-family: monospace;
    font-size: var(--text-2xl);
    color: var(--dark-secondary);
    background: var(--light-gray);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* --- 16. АНИМАЦИИ --- */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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


/* --- СЕКЦИЯ "О НАС" --- */
.about-section {
    padding: 6rem 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(232, 213, 196, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.about-section .container {
    position: relative;
    z-index: 1;
}

/* === ВИДЕО-БЛОК === */
.about-video-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 9/16;
    background: #000;
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*.about-video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(44, 44, 44, 0.15) 100%
    );
    pointer-events: none;
}*/

/* Не затемнять, если это плейсхолдер */
.about-video-wrapper:has(.about-video-placeholder)::after {
    display: none;
}

.about-image-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(200, 149, 106, 0.5);
    text-align: center;
    min-width: 130px;
    z-index: 2;
}

/* =============================================
   ПЛЕЙСХОЛДЕР ВИДЕО (когда видео не загружено)
   ============================================= */
.about-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-soft);
    color: var(--primary);
    gap: 1rem;
}

.about-video-placeholder i {
    font-size: 4rem;
    opacity: 0.5;
}

.about-video-placeholder p {
    font-size: var(--text-sm);
    color: var(--dark-secondary);
    margin: 0;
}

/* === КНОПКА ВКЛЮЧЕНИЯ ЗВУКА === */
.about-video-sound-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all var(--transition-base);
    padding: 0;
    line-height: 1;
}

.about-video-sound-btn:hover {
    background: rgba(200, 149, 106, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.about-video-sound-btn.playing {
    background: var(--gradient-primary);
    border-color: transparent;
}

.about-video-sound-btn i {
    pointer-events: none;
}

/* Анимация пульсации, чтобы привлечь внимание */
@keyframes soundPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

.about-video-sound-btn:not(.playing) {
    animation: soundPulse 2s infinite;
}

/* На мобильных — чуть меньше */
@media (max-width: 768px) {
    .about-video-sound-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        top: 1rem;
        right: 1rem;
    }
}

.about-badge-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.about-badge-number .counter {
    display: inline;
}

.about-badge-text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Заголовок */
.about-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.about-title span {
    color: var(--primary);
    font-style: italic;
}

.about-text {
    font-size: var(--text-lg);
    color: var(--dark-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Список преимуществ */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.about-feature:hover .about-feature-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.05);
}

.about-feature h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: var(--text-sm);
    color: var(--dark-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Адаптивность */
@media (max-width: 991.98px) {
    .about-section {
        padding: 4rem 0;
    }

    .about-video-wrapper {

        margin-bottom: 2rem;
    }

    .about-image-badge {
        right: 1rem;
        bottom: 1rem;
        padding: 1rem 1.5rem;
    }

    .about-badge-number {
        font-size: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: var(--text-base);
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 3rem 0;
    }

    .about-title {
        font-size: 1.75rem;
    }

    .about-feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .about-feature h4 {
        font-size: var(--text-base);
    }
}

/* =============================================
   СЕКЦИЯ "СПОСОБЫ ОПЛАТЫ"
   ============================================= */
.payment-section {
    padding: 6rem 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.payment-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -15%;
    width: 40%;
    height: 80%;
    background: radial-gradient(circle, rgba(232, 213, 196, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.payment-section .container {
    position: relative;
    z-index: 1;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* --- Карточка оплаты --- */
.payment-card {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.payment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Выделенная карточка (популярно) */
.payment-card-featured {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(200, 149, 106, 0.15);
}

.payment-card-featured:hover {
    box-shadow: 0 16px 48px rgba(200, 149, 106, 0.25);
}

/* Бейдж "Популярно" */
.payment-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(200, 149, 106, 0.4);
    white-space: nowrap;
}

/* Иконки */
.payment-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-base);
}

.payment-card:hover .payment-card-icon {
    transform: scale(1.08);
}

/* Цвета иконок для разных способов */
/*.payment-icon-tbank {
    background: linear-gradient(135deg, #FFDD2D 0%, #FFC107 100%);
    color: #1a1a1a;
}*/

.payment-card-icon img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

/*.payment-icon-dolyami {
    background: var(--gradient-primary);
    color: white;
}*/

.payment-icon-card {
    background: linear-gradient(135deg, #F5F0EB 0%, #E8D5C4 100%);
    color: var(--primary-dark);
}

/* Заголовок карточки */
.payment-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1rem;
    line-height: 1.3;
}

/* Описание */
.payment-card-desc {
    font-size: var(--text-sm);
    color: var(--dark-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

/* Особенности */
.payment-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.payment-card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-sm);
    color: var(--dark-secondary);
    padding: 0.5rem 0;
    border-top: 1px solid var(--light-gray);
}

.payment-card-features li:first-child {
    border-top: none;
}

.payment-card-features li i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .payment-section {
        padding: 5rem 0;
    }

    .payment-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .payment-section {
        padding: 4rem 0;
    }

    .payment-card {
        padding: 2rem 1.5rem;
    }

    .payment-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.875rem;
    }

    .payment-card-title {
        font-size: 1.25rem;
    }

    .payment-card-features {
        text-align: left;
    }
}

/* =============================================
   СЕКЦИЯ "НАШИ БРЕНДЫ"
   ============================================= */

/* --- Обёртка секции --- */
.brands-section {
    padding: 6rem 0;
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(232, 213, 196, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.brands-section .container {
    position: relative;
    z-index: 1;
}

/* --- Карусель --- */
.brands-carousel-wrapper {
    position: relative;
    margin: 3rem 0 1rem;
    padding: 0;
    max-width: 100%;
    overflow: visible;
}

.brands-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Отступы: центр + боковые. На десктопе — центрируем относительно 1320px контейнера */
    padding: 1rem max(2rem, calc((100% - 1320px) / 2 + 2rem)) 2rem;
    /* Scroll-padding — чтобы первая карточка не прилипала к краю */
    scroll-padding-left: max(2rem, calc((100% - 1320px) / 2 + 2rem));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.brands-carousel::-webkit-scrollbar {
    display: none;
}

.brands-carousel .brand-tile {
    flex: 0 0 340px;
    scroll-snap-align: start;
    scroll-margin-left: 1rem;
}

/* --- Кнопки навигации карусели --- */
.brands-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--primary-light);
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    z-index: 10;
}

.brands-carousel-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.brands-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.brands-carousel-prev { left: 1rem; }
.brands-carousel-next { right: 1rem; }

/* =============================================
   КАРТОЧКА БРЕНДА — ВИДЕО НА ВСЮ КАРТОЧКУ + ТЕКСТ ПОВЕРХ
   ============================================= */
.brand-tile {
    position: relative;
    display: block;
    background: #1a1a1a;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    border: 1px solid transparent;
    aspect-ratio: 3/4;
    height: auto;
}

.brand-tile:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

/* --- Медиа-часть: видео на всю карточку --- */
.brand-tile-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #000;
}

.brand-tile-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.brand-tile:hover .brand-tile-video {
    transform: scale(1.05);
}

/* Логотип — для карточек без видео */
.brand-tile-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
    z-index: 2;
    transition: transform var(--transition-slow);
}

.brand-tile:hover .brand-tile-logo {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Плейсхолдер — для карточек без видео и лого */
.brand-tile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
}

/* --- Градиентный оверлей поверх видео для читаемости текста --- */
.brand-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        transparent 30%,
        transparent 45%,
        rgba(0, 0, 0, 0.55) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
    z-index: 1;
    transition: background var(--transition-base);
}

.brand-tile:hover .brand-tile-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 25%,
        transparent 35%,
        rgba(0, 0, 0, 0.65) 65%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/* --- Текст поверх видео --- */
.brand-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
    color: white;
    min-height: 40%;
}

.brand-tile-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: color var(--transition-fast);
    line-height: 1.2;
}

.brand-tile:hover .brand-tile-name {
    color: #ffffff;
}

.brand-tile-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-tile-link {
    font-size: var(--text-xs);
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.brand-tile:hover .brand-tile-link {
    color: white;
    gap: 0.85rem;
}

/* =============================================
   СТРАНИЦА КОНКРЕТНОГО БРЕНДА
   ============================================= */
.brand-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--gradient-soft);
    border-radius: var(--radius-xl);
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.brand-hero-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

.brand-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-hero-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.brand-hero-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.5rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.brand-hero-tagline {
    font-size: var(--text-lg);
    color: var(--dark-secondary);
    margin: 0 0 0.75rem;
    overflow-wrap: break-word;
}

.brand-website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    overflow-wrap: break-word;
    word-break: break-all;
}

.brand-website-link:hover {
    color: var(--primary-dark);
}

/* =============================================
   ВИДЕО БРЕНДА 9:16 (вертикальное) — на странице бренда
   ============================================= */
.brand-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 9/16;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #000;
    box-sizing: border-box;
}

.brand-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: auto;
}

/* Скрытие кнопок скачивания в Chrome/Safari */
.brand-video::-internal-media-controls-download-button {
    display: none;
}

.brand-video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.brand-video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Описание бренда */
.brand-description {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.brand-description-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-description-title i {
    color: var(--primary);
}

.brand-description p {
    font-size: var(--text-base);
    color: var(--dark-secondary);
    line-height: 1.7;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =============================================
   СЕТКА БРЕНДОВ (для страницы /brands/)
   ============================================= */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 100%;
}

/* =============================================
   ФИКС СКРОЛЛА НА СТРАНИЦЕ БРЕНДА
   ============================================= */
.brand-hero,
.brand-video-wrapper,
.brand-description {
    max-width: 100%;
}

/* На странице бренда компенсируем отрицательные margin Bootstrap row */
@media (max-width: 991.98px) {
    .brand-video-wrapper,
    .brand-description {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =============================================
   АДАПТИВНОСТЬ
   ============================================= */

/* Планшет */
@media (max-width: 992px) {
    .brands-section {
        padding: 5rem 0;
    }

    .brands-carousel {
        gap: 1.25rem;
        padding: 1rem 1.5rem 2rem;
        scroll-padding-left: 1.5rem;
    }

    .brands-carousel .brand-tile {
        flex: 0 0 280px;
    }

    .brands-carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .brands-carousel-prev { left: 0.5rem; }
    .brands-carousel-next { right: 0.5rem; }

    .brand-video-wrapper {
        max-width: 360px;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .brands-section {
        padding: 4rem 0;
    }

    .brands-carousel {
        gap: 1rem;
        padding: 1rem 1.5rem 2rem;
        scroll-padding-left: 1.5rem;
    }

    .brands-carousel .brand-tile {
        flex: 0 0 78%;
        scroll-margin-left: 1.5rem;
    }

    .brands-carousel-btn {
        display: none;
    }

    .brand-tile-content {
        padding: 1.25rem;
    }

    .brand-tile-name {
        font-size: 1.25rem;
    }

    .brand-tile-desc {
        font-size: 0.8125rem;
    }

    /* Страница бренда */
    .brand-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.25rem;
        margin-left: 0;
        margin-right: 0;
    }

    .brand-hero-logo {
        width: 100px;
        height: 100px;
    }

    .brand-hero-name {
        font-size: 1.75rem;
    }

    .brand-hero-tagline {
        font-size: var(--text-base);
    }

    .brand-description {
        padding: 1.5rem;
    }

    .brand-video-wrapper {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    /* Сетка на мобильных */
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Очень узкие экраны */
@media (max-width: 480px) {
    .brands-carousel {
        padding: 1rem 1rem 2rem;
        scroll-padding-left: 1rem;
    }

    .brands-carousel .brand-tile {
        flex: 0 0 85%;
        scroll-margin-left: 1rem;
    }

    .brand-tile-content {
        padding: 1rem;
    }

    .brand-tile-name {
        font-size: 1.125rem;
    }

    .brand-tile-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }
}

/* --- 17. АДАПТИВНОСТЬ --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .product-info {
        padding-left: 2rem !important;
        margin-top: 2rem;
    }

    .product-name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
        --text-2xl: 1.5rem;
    }

    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .ai-consultant-video {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .btn {
        text-transform: none;
        padding: 0.6rem 1.25rem;
    }
}


@media (max-width: 991.98px) {
    .about-section::before,
    .hero::before,
    .brands-section::before {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        background: radial-gradient(
            circle at 50% 50%,
            rgba(232, 213, 196, 0.25) 0%,
            transparent 70%
        ) !important;
    }
}


/* --- ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ВЫПАДАЮЩЕГО МЕНЮ --- */

/* Стилизация dropdown в навигации */
.nav-item.dropdown .dropdown-toggle::after {
    display: none; /* Убираем стандартную стрелку Bootstrap */
}

.nav-item.dropdown .dropdown-toggle i {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform var(--transition-fast);
}

.nav-item.dropdown .dropdown-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Стилизация выпадающего меню */
.dropdown-menu {
    background: var(--primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.75rem;
    min-width: 220px;
    animation: dropdownFadeIn 0.2s ease;
}

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

.dropdown-item {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--dark-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--dark);
    padding-left: 1.5rem;
}

.dropdown-item.active {
    background: var(--primary);
    color: white;
}

.dropdown-item.active:hover {
    background: var(--primary-dark);
    color: white;
}

/* Разделитель в меню (если нужно) */
.dropdown-divider {
    border-color: var(--primary-light);
    margin: 0.25rem 0;
}

/* Адаптивность для мобильных */
@media (max-width: 991.98px) {
    /* Контейнер навигации — ограничиваем ширину */
    .navbar-collapse {
        max-width: 100%;
        overflow-x: hidden;
        margin-top: 1rem;
    }

    .navbar-nav {
        width: 100%;
        max-width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    /* Выпадающее меню — сбрасываем позиционирование Bootstrap */
    .dropdown-menu {
        position: static !important;      /* ← КЛЮЧЕВОЕ */
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: rgba(232, 213, 196, 0.35) !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        animation: none;
        box-sizing: border-box;
    }

    /* Пункты меню */
    .dropdown-item {
        color: var(--dark) !important;
        padding: 0.85rem 1.5rem !important;
        font-size: 0.8rem;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(232, 213, 196, 0.5);
        background: transparent !important;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(200, 149, 106, 0.15) !important;
        color: var(--primary) !important;
    }

    .dropdown-item.active {
        background: rgba(200, 149, 106, 0.2) !important;
        color: var(--primary) !important;
    }
}

/* --- 18. УТИЛИТЫ --- */
.text-primary { color: var(--primary) !important; }
.text-dark { color: var(--dark) !important; }
.text-muted { color: var(--dark-secondary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-soft { background: var(--gradient-soft); }