:root {
    /* ИЗМЕНЕНО: Новая "Неон" палитра */
    --color-primary: #8B5CF6; /* Неоновый фиолетовый */
    --color-primary-light: #A78BFA; /* Светло-фиолетовый */
    --color-accent: #06B6D4; /* Неоновый голубой (циановый) */
    --color-accent-dark: #0E7490; /* Темно-циановый */
    --color-background-tint: #1F2937; /* Темно-серый фон секций */
    --color-dark: #0F172A; /* Очень темный фон (почти черный) */
    --color-light: #F8FAFC; /* Светлый текст */
    --color-grey: #9CA3AF; /* Серый текст (для подписей) */
    --color-border: #334155; /* Темные границы */

    /* Градиенты (теперь неоновые) */
    --gradient-main: linear-gradient(to right, var(--color-primary), var(--color-accent));
    --gradient-main-hover: linear-gradient(to right, var(--color-primary-light), var(--color-accent));

    /* Позиция градиента */
    --mx: 50%;
    --my: 40%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-light); /* Весь текст по умолчанию - светлый */
    
    /* === ИСПРАВЛЕНИЕ === */
    /* Убираем фон отсюда, чтобы он не перекрывал пузыри (z-index: 0) */
    background-color: transparent; 
    /* БЫЛО: background-color: var(--color-dark); */
    /* === КОНЕЦ ИСПРАВЛЕНИЯ === */

    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
    position: relative;
    margin: 0;
    overflow-x: hidden;
}

body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;

    /* === ИСПРАВЛЕНИЕ === */
    /* Добавляем сплошной фон var(--color-dark) СЮДА, */
    /* чтобы он был ПОД градиентом и ПОД пузырями (z-index: 0) */
    background: var(--color-dark) radial-gradient(800px circle at var(--mx) var(--my), rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05) 50%, transparent 70%) no-repeat;
    /* БЫЛО: background: radial-gradient(...) */
    /* БЫЛО: opacity: 0.7; (больше не нужно) */
    opacity: 1;
    /* === КОНЕЦ ИСПРАВЛЕНИЯ === */
}

/* Пузырьки */
#bubble-background { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    /* z-index: 0 ставит их НАД фоном (body::before, z-index: -1), */
    /* но ПОД всем контентом (z-index: 1+) */
    z-index: 0; 
    overflow: hidden; 
    pointer-events: none; 
}
.bubbles { position: relative; width: 100%; height: 100%; }
.bubble-img {
    position: absolute;
    bottom: -150px;
    opacity: 0;
    animation: rise-bubble linear infinite;
    will-change: transform, opacity;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    filter: blur(1px) brightness(1.5); /* Делаем пузыри ярче */
}
@keyframes rise-bubble { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 10% { opacity: 0.5; } 90% { opacity: 0.5; } 100% { transform: translateY(-120vh) scale(1); opacity: 0; } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-slider { max-width: 1300px; margin: 0 auto; padding: 0 10px; position: relative;}

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; } .delay-2 { transition-delay: 0.3s; }

/* === НАВИГАЦИЯ === */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85); /* Темный фон шапки */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}
.navbar { display: flex; justify-content: space-between; align-items: center; }

/* ИЗМЕНЕНО: Стили для логотипа */
.nav-logo { 
    font-weight: 900; 
    font-size: 24px; 
    text-decoration: none; 
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
}
.nav-logo img {
    max-height: 200px; /* Вы можете настроить высоту */
    width: auto;
    /* === ИСПРАВЛЕНИЕ 1: Убираем белый фон у логотипа === */
    background-color: transparent;
}
/* === КОНЕЦ СТИЛЕЙ ЛОГОТИПА === */

.nav-menu { display: flex; gap: 30px; list-style: none; align-items: center; padding-left: 0; margin: 0; }
.nav-link { text-decoration: none; color: var(--color-light); font-weight: 700; transition: color 0.3s; position: relative; padding-bottom: 4px; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--gradient-main); transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.nav-link:hover { color: var(--color-primary-light); } .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.lang-toggle-wrap { position: relative; width: 80px; height: 34px; } .lang-toggle-input { opacity: 0; width: 0; height: 0; position: absolute; } .lang-toggle-label { display: flex; align-items: center; justify-content: space-around; width: 100%; height: 100%; background: var(--color-border); border-radius: 17px; cursor: pointer; position: relative; transition: background-color 0.3s ease; } .lang-toggle-text { font-size: 12px; font-weight: 900; color: var(--color-grey); z-index: 1; transition: color 0.3s ease; } .lang-toggle-text.en { color: var(--color-light); } .lang-toggle-slider { position: absolute; top: 3px; left: 3px; width: 38px; height: 28px; border-radius: 14px; background: var(--gradient-main); box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); z-index: 0; } .lang-toggle-input:checked + .lang-toggle-label .lang-toggle-slider { transform: translateX(37px); } .lang-toggle-input:checked + .lang-toggle-label .lang-toggle-text.en { color: var(--color-grey); } .lang-toggle-input:checked + .lang-toggle-label .lang-toggle-text.it { color: var(--color-light); }
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; z-index: 1001; padding: 10px; margin: -10px; } .hamburger { display: block; position: relative; width: 24px; height: 2px; background: var(--color-light); transition: all 0.3s ease; } .hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--color-light); transition: all 0.3s ease; } .hamburger::before { top: -8px; } .hamburger::after { bottom: -8px; }

/* === СТИЛИ КОРЗИНЫ (в шапке) === */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 5px;
    padding-right: 5px;
}
.cart-icon {
    stroke: var(--color-light); /* Светлая иконка */
    transition: stroke 0.3s;
}
.cart-link:hover .cart-icon {
    stroke: var(--color-primary-light);
}
.cart-link::after {
    display: none;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-primary);
    color: var(--color-light);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: scale(0);
    transition: transform 0.3s ease;
    opacity: 0;
    border: 1px solid var(--color-light);
}
.cart-count.active {
    transform: scale(1);
    opacity: 1;
}
/* === КОНЕЦ СТИЛЕЙ КОРЗИНЫ === */


@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .nav-toggle { display: block; }
}
/* === КОНЕЦ НАВИГАЦИИ === */

/* Hero */
.hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 60px 20px; position: relative; z-index: 2; border-bottom: 1px solid var(--color-border); background: transparent; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%); }
.hero .hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 900; letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px; color: var(--color-light); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero h1 span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: clamp(18px, 3vw, 22px); max-width: 700px; color: rgba(255, 255, 255, 0.9); margin: 0 auto 40px; text-shadow: 0 1px 5px rgba(0,0,0,0.4); }

/* === БЕГУЩАЯ СТРОКА === */
.scrolling-text-container { background-color: var(--color-dark); color: var(--color-light); padding: 10px 0; overflow: hidden; white-space: nowrap; position: relative; z-index: 5; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);}
.scrolling-text { display: inline-block; padding-left: 100%; animation: scroll-left 40s linear infinite; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.scrolling-text span { margin-right: 50px; opacity: 0.8; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
/* === КОНЕЦ БЕГУЩЕЙ СТРОКИ === */

/* Кнопки */
.btn { display: inline-block; padding: 16px 38px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.4s ease, background-position 0.6s ease; border: none; background-size: 200% auto; text-transform: uppercase; letter-spacing: 0.5px; font-size: 14px; cursor: pointer; }
.btn-gradient { background-image: var(--gradient-main); color: var(--color-light) !important; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2), 0 2px 5px rgba(6, 182, 212, 0.2); }
.btn-gradient:hover { background-position: right center; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3), 0 5px 10px rgba(6, 182, 212, 0.2); }

/* === СЕКЦИИ С РАЗДЕЛИТЕЛЯМИ И ФОНАМИ === */
.section {
    padding: 100px 0;
    text-align: center;
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Фон секций - прозрачный */
    background-color: transparent;
    transition: background-color 0.4s ease;
}
main > .section:nth-of-type(even) {
    /* Чередующийся фон - полупрозрачный темный */
    background-color: rgba(30, 41, 55, 0.3); /* --color-background-tint с альфа */
}
main > .section:first-of-type { border-top: none; }
.section-divider-top::before, .section-divider-bottom::after { content: ''; position: absolute; left: 0; width: 100%; height: 60px; z-index: 2; pointer-events: none; }

/* Разделители прозрачные */
.section-divider-top::before { top: 0; background: transparent; clip-path: polygon(0% 100%, 100% 0%, 100% 100%); transform: translateY(-100%); }
main > .section:nth-of-type(even).section-divider-top::before { background: transparent;}
main > .section:nth-of-type(odd).section-divider-top::before { background: transparent;}
.section-divider-bottom::after { bottom: 0; background: transparent; clip-path: polygon(0% 0%, 0% 100%, 100% 0%); transform: translateY(100%); }
main > .section:nth-of-type(even).section-divider-bottom::after { background: transparent;}
main > .section:nth-of-type(odd).section-divider-bottom::after { background: transparent;}
.section-divider-top { padding-top: 160px; margin-top: -60px; }
.section-divider-bottom { padding-bottom: 160px; margin-bottom: -60px; }
/* === КОНЕЦ ФОНОВ СЕКЦИЙ === */

/* Секция #process с картинкой */
#process {
    background-image: url('img/process_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent !important;
}
#process::before, #process::after { display: none; }
#process > .container { position: relative; z-index: 1; }
#process::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.95); /* Темный фон для process */
    z-index: 0;
}

.section h2 { font-size: clamp(32px, 5vw, 42px); font-weight: 900; margin-bottom: 20px; color: var(--color-light); position: relative; z-index: 1; }
.section .section-subtitle { max-width: 700px; margin: 0 auto 60px auto; color: var(--color-grey); font-size: 18px; position: relative; z-index: 1; }


/* About */
#about .container, #founder .container, #news-seo .container { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
    align-items: center; 
    text-align: left; 
    position: relative; 
    z-index: 1; 
}

/* ИЗМЕНЕНО: Стили для секции About (убраны inline-стили) */
.about-section-card {
    padding: 0;
    text-align: left;
}
.about-section-header {
    padding: 25px 30px 25px 30px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}
.about-section-grid {
    display: grid;
    grid-template-columns: 1fr; /* По умолчанию 1 колонка (мобильные) */
    gap: 30px;
    padding: 0 30px 30px 30px;
    align-items: start;
}
.about-section-image-wrapper {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === ОПТИМИЗАЦИЯ СЕКЦИИ ABOUT === */
.about-section-image {
    width: 100%;
    /* height: auto; */ /* УБРАНО */
    height: 400px; /* ДОБАВЛЕНО: Фиксированная высота для лучшего вида */
    object-fit: cover; /* ИЗМЕНЕНО: 'cover' заполняет блок, 'contain' показывал всю */
    /* max-height: 400px; */ /* УБРАНО */
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background-color: var(--color-background-tint); /* Фон, если картинка не заполняет */
    /* padding: 10px; */ /* УБРАНО: Не нужно для 'cover' */
}
/* БЫЛО: @media (min-width: 992px) */
@media (min-width: 768px) { /* ИЗМЕНЕНО: Включаем 2 колонки уже на планшетах */
    .about-section-grid {
        grid-template-columns: 1fr 1fr; /* 2 колонки на десктопе */
    }
}
/* === КОНЕЦ ОПТИМИЗАЦИИ ABOUT === */

#about h2, #about .section-subtitle, #founder h2, #founder .section-subtitle, #news-seo h2, #news-seo .section-subtitle, #team h2, #team .section-subtitle { text-align: left; margin-left: 0; margin-right: 0; }
#about .section-subtitle { margin-bottom: 40px; }

.quote-block { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 30px; background: var(--color-background-tint); /* Темный фон цитаты */ border-radius: 12px; border: 1px solid var(--color-border); box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-top: 30px; }
@media (min-width: 992px) { .quote-block { margin-top: 0; } }
.quote-icon { font-size: 60px; color: var(--color-accent); line-height: 1; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.quote-block p { font-style: italic; font-size: 18px; color: var(--color-light); padding-top: 10px; }

/* === ИСПРАВЛЕНИЕ: Выравниваем карточки в секции "About" по верху === */
.about-grid {
    align-items: start; /* Предотвращает растягивание карточек, чтобы они соответствовали самой высокой */
}

/* === ОБЩИЕ СТИЛИ КАРТОЧЕК === */
.mission-card, .why-card, .process-card, .region-card, .faq-item, .testimonial-card, .content-card-it {
    /* Карточки с темным полупрозрачным фоном */
    background: rgba(30, 41, 55, 0.8); /* --color-background-tint с альфа */
    backdrop-filter: blur(5px);
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: 16px; /* ИЗМЕНЕНО: Более скругленные углы */
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    height: 100%; /* ВОЗВРАЩЕНО: Для корректного выравнивания в других сетках */
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.4s ease,
                scale 0.4s ease;
    overflow: hidden; /* Важно для эффекта блеска и рамки */
}

/* === ДОБАВЛЕНО: Отменяем height: 100% только для карточек в about-grid === */
.about-grid .content-card-it {
    height: auto;
}

/* ИЗМЕНЕНО: Неоновая верхняя граница */
.mission-card::after, .why-card::after, .process-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px; /* Толщина линии */
    background: var(--gradient-main);
    opacity: 0.8;
    transition: opacity 0.4s ease, height 0.4s ease;
    z-index: 2; /* Над эффектом блеска */
}

/* ИЗМЕНЕНО: Эффект "блеска" при наведении */
.mission-card::before, .why-card::before, .process-card::before, .content-card-it::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* Начинаем за пределами */
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.15), transparent 80%);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Плавный переход */
    z-index: 1; /* Под рамкой, над фоном */
}

/* Ховер-эффект */
 .mission-card:hover, .why-card:hover, .process-card:hover, .product-card:hover, .region-card:hover, .faq-item:hover, .testimonial-card:hover, .content-card-it:hover {
    transform: translateY(-8px) scale(1.01); /* Чуть больше увеличение */
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15), 0 8px 15px rgba(6, 182, 212, 0.1);
    opacity: 1;
}

/* ИЗМЕНЕНО: Запуск эффекта блеска */
.mission-card:hover::before, .why-card:hover::before, .process-card:hover::before, .content-card-it:hover::before {
    left: 100%; /* Перемещаем блеск через карточку */
}

/* Неоновая рамка при наведении */
.shine-border {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px; /* Синхронизируем скругление */
    padding: 2px; /* Толщина рамки */
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); 
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; 
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3; /* Поверх всего */
    pointer-events: none; /* Чтобы не мешала кликам */
}

/* Показ рамки при наведении */
.mission-card:hover .shine-border, .why-card:hover .shine-border, .process-card:hover .shine-border, .content-card-it:hover .shine-border, .product-card:hover .shine-border, .testimonial-card:hover .shine-border, .region-card:hover .shine-border {
    opacity: 1; 
}

/* Усиление верхней границы при наведении */
.mission-card:hover::after, .why-card:hover::after, .process-card:hover::after {
    opacity: 1;
    height: 6px;
}

/* Сброс/Изменения для специфичных карточек */
.product-card { padding: 0; overflow: visible; background: transparent; backdrop-filter: none; border: none; box-shadow: none; }
.region-card { padding: 0; }
.faq-item { padding: 0; text-align: left;} /* FAQ - текст слева */
.testimonial-card { padding: 30px; text-align: center; }

/* === НОВЫЙ СТИЛЬ КАРТОЧКИ ДЛЯ ИТАЛИИ (.content-card-it) === */
.content-card-it {
    /* ИЗМЕНЕНО: ПРОЗРАЧНОСТЬ 50% */
    background: rgba(30, 41, 55, 0.5) !important; 
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    /* УБРАНО: height: 100%; - Это правило теперь в общих стилях */
    /* ДОБАВЛЕНО: ПАДДИНГ */
    padding: 30px; 
    text-align: left;
}

/* Центрируем содержимое в карточках с изображениями */
.content-card-it.about-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.content-card-it.about-image img {
    margin: 10px 0;
}
/* === КОНЕЦ НОВОГО СТИЛЯ КАРТОЧКИ ДЛЯ ИТАЛИИ === */


/* Выравнивание заголовков секций по левому краю */
#mission h2, #mission .section-subtitle,
#why-us h2, #why-us .section-subtitle,
#process h2, #process .section-subtitle {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
/* Центрируем заголовки, где это все еще нужно */
#products h2, #products .section-subtitle,
#testimonials h2, #testimonials .section-subtitle,
#faq h2, #faq .section-subtitle,
#regions h2, #regions .section-subtitle,
#interviews h2, #interviews .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* --- Секция Mission --- */
.mission-card h3 { color: var(--color-light); }
.mission-card p { color: var(--color-grey); }
.mission-card .icon {
    height: 200px; /* ИЗМЕНЕНО: Было 50px */
    width: auto;
    margin-bottom: 20px;
    color: var(--color-accent);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Цветные акценты */
#mission .mission-card:nth-child(2) { background: var(--color-accent-dark); }
#mission .mission-card:nth-child(2)::after { background: var(--color-accent); }
#mission .mission-card:nth-child(2) h3, #mission .mission-card:nth-child(2) p { color: var(--color-light); }
#mission .mission-card:nth-child(2) .icon {
    color: var(--color-light);
    background: transparent; /* ИЗМЕНЕНО: Было var(--color-light) */
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

/* --- Секция Why Us --- */
.why-card h3 { color: var(--color-light); }
.why-card p { color: var(--color-grey); }

/* Цветные акценты */
#why-us .why-card:nth-child(2) { background: var(--color-primary); }
#why-us .why-card:nth-child(2)::after { background: var(--color-primary-light); }
#why-us .why-card:nth-child(3) { background: var(--color-accent-dark); }
#why-us .why-card:nth-child(3)::after { background: var(--color-accent); }
#why-us .why-card:nth-child(4) { background: var(--color-dark); border: 1px solid var(--color-border); }
#why-us .why-card:nth-child(4)::after { background: var(--color-grey); }
#why-us .why-card:nth-child(n+2) h3, #why-us .why-card:nth-child(n+2) p { color: var(--color-light); }

/* --- Секция Process --- */
.process-card h3 { color: var(--color-light); }
.process-card p { color: var(--color-grey); }
.process-card .step-number { font-size: 20px; font-weight: 900; color: var(--color-light); width: 50px; height: 50px; line-height: 50px; border-radius: 50%; border: none; background: var(--gradient-main); box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2), 0 2px 5px rgba(6, 182, 212, 0.2); margin: 0 auto 20px auto; }

/* Карточки в секции #process */
#process .process-card {
    background: rgba(30, 41, 55, 0.8);
}
#process .process-card h3, #process .process-card p {
    color: var(--color-light) !important;
}

/* 1. ИЗМЕНЕНИЕ: Убрано aspect-ratio */
.mission-card,
.why-card,
.process-card {
    /* УБРАНО: aspect-ratio: 1 / 1; - Это свойство заставляло карточки быть квадратными */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем контент по вертикали */
    align-items: center; /* Центрируем контент по горизонтали */
}

/* Сетка 3-в-ряд для Mission (стандартная) */
.mission-grid {
    display: grid;
    /* Создаем 3 колонки на десктопе, 1 на мобильных */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Сетка 2x2 для Why Us (Интересное расположение №1) */
.why-us-grid {
    display: grid;
    /* Создаем 2 колонки на десктопе, 1 на мобильных */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    /* Ограничиваем ширину, чтобы получилось 2x2 на десктопе */
    max-width: 700px; 
    margin: 0 auto; /* Центрируем сетку */
}

/* Ступенчатая сетка для Process (Интересное расположение №2) */
.process-grid {
    display: grid;
    /* Создаем 4 колонки на десктопе, 2 на планшете, 1 на мобильных */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    align-items: center; /* Выравниваем по центру */
}

/* Сдвигаем каждую вторую карточку вниз */
@media (min-width: 768px) { /* Применяем только на экранах шире мобильного */
    .process-grid .process-card:nth-child(2n) {
        transform: translateY(40px); 
    }
    
    /* Исправляем ховер-эффект для сдвинутых карточек */
    .process-grid .process-card:nth-child(2n):hover {
         transform: translateY(32px) scale(1.01); /* (40px - 8px) */
    }
}

/* Убедимся, что иконки/номера внутри выровнены по центру */
.mission-card .icon,
.process-card .step-number {
    margin-left: auto;
    margin-right: auto;
}

/* --- Карусель товаров --- */
/* product-card (прозрачная обертка) */
.product-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative; /* Для псевдоэлементов */
}
.product-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    padding-top: 45px;
    margin-top: -30px;
    background: rgba(30, 41, 55, 0.9); /* Темный фон контента */
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
    overflow: hidden; /* Для блеска */
}
.product-description { flex-grow: 1; }
#products .container-slider { position: relative; }
.product-carousel-wrapper { overflow: hidden; margin: 0 -10px; }
.product-list { display: flex; gap: 30px; padding: 10px; padding-top: 30px; scroll-behavior: smooth; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.product-list::-webkit-scrollbar { display: none; }
.product-card { flex: 0 0 auto; width: calc((100% / 3) - 20px); }
@media (max-width: 1024px) { .product-card { width: calc((100% / 2) - 15px); } }
@media (max-width: 640px) { .product-card { width: calc(100% - 10px); } }

/* Картинка товара */
.product-card img {
    width: calc(100% - 40px);
    /* height: 260px; */ /* УБРАНО */
    aspect-ratio: 1 / 1; /* ДОБАВЛЕНО: Делаем изображение квадратным */
    object-fit: contain; /* ИЗМЕНЕНО: Чтобы товар был виден целиком */
    background: #fff; /* ДОБАВЛЕНО: Белый фон для товара */
    padding: 15px; /* ДОБАВЛЕНО: Отступы внутри белого фона */
    display: block;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--color-border);
}
.product-card:hover img {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Добавляем блеск и рамку для product-card-content */
.product-card-content::before { /* Блеск */
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.1), transparent 80%);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}
.product-card:hover .product-card-content::before {
    left: 100%; /* Запускаем блеск */
}
.product-card:hover .shine-border {
    opacity: 1; /* Показываем рамку */
}
.product-card:hover .product-card-content {
    transform: translateY(-10px);
}


.product-card h3 { margin-bottom: 5px; font-size: 20px; color: var(--color-light); }
.product-sku { font-size: 12px; color: var(--color-grey); margin-bottom: 10px; display: block; font-weight: 700; }
.product-description { margin-bottom: 20px; font-size: 15px; color: var(--color-light); }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--color-border); }
.product-price { font-weight: 700; color: var(--color-primary-light); font-size: 18px; }

/* === КНОПКА "В КОРЗИНУ" === */
.btn-add-to-cart {
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    background-image: var(--gradient-main) !important;
    color: var(--color-light) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background-size: 200% auto;
    position: relative;
    z-index: 5;
}
.btn-add-to-cart:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}
.btn-add-to-cart.added {
    background: var(--color-accent-dark) !important;
    color: var(--color-light) !important;
    transform: scale(0.98);
}
/* === КОНЕЦ КНОПКИ === */


.carousel-arrow { position: absolute; top: calc(40% + 15px); transform: translateY(-50%); z-index: 10; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(30, 41, 55, 0.9); box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-primary-light); transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.carousel-arrow svg { width: 24px; height: 24px; fill: currentColor; }
.carousel-arrow:hover { background: var(--gradient-main); color: var(--color-light); box-shadow: 0 6px 15px rgba(139, 92, 246, 0.2); }
.carousel-arrow.prev { left: 10px; } .carousel-arrow.next { right: 10px; }
@media (max-width: 1300px) { .carousel-arrow.prev { left: 0px; } .carousel-arrow.next { right: 0px; } }

/* === СТИЛИ ОТЗЫВОВ === */
#testimonials .carousel-arrow { top: 50%; }
.testimonial-carousel-wrapper { overflow: hidden; margin: 0 -10px; }
.testimonial-list { display: flex; gap: 30px; padding: 10px; scroll-behavior: smooth; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.testimonial-list::-webkit-scrollbar { display: none; }
.testimonial-card {
    flex: 0 0 auto;
    width: calc((100% / 3) - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
@media (max-width: 1024px) { .testimonial-card { width: calc((100% / 2) - 15px); } }
@media (max-width: 640px) { .testimonial-card { width: calc(100% - 10px); } }
/* Изображение отзыва */
.testimonial-card img {
    width: 120px; /* ИЗМЕНЕНО */
    height: 120px; /* ИЗМЕНЕНО */
    object-fit: cover;
    border-radius: 50%; /* ИЗМЕНЕНО: Круглое фото */
    margin: 0 auto 20px auto; /* ИЗМЕНЕНО: Центрирование */
    border: 1px solid var(--color-border);
}
.testimonial-content { flex-grow: 1; display: flex; flex-direction: column; width: 100%; }
.testimonial-card blockquote { font-style: italic; font-size: 16px; color: var(--color-light); margin-bottom: 15px; position: relative; padding: 0 10px; flex-grow: 1; text-align: center; }
.testimonial-card blockquote::before { content: '“'; font-size: 50px; color: var(--color-primary); opacity: 0.2; position: absolute; top: -10px; left: -10px; line-height: 1; }
.testimonial-card h4 { font-size: 16px; font-weight: 900; color: var(--color-light); margin-bottom: 2px; margin-top: auto; }
.testimonial-card .source { font-size: 14px; color: var(--color-grey); margin: 0; }
/* === КОНЕЦ СТИЛЕЙ ОТЗЫВОВ === */

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { border-bottom: 1px solid var(--color-border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; background: rgba(30, 41, 55, 0.8); /* Фон для FAQ item */ backdrop-filter: blur(5px); }
.faq-question { padding: 20px; font-size: 18px; font-weight: 700; cursor: pointer; position: relative; user-select: none; display: flex; justify-content: space-between; align-items: center; color: var(--color-light); transition: color 0.3s ease; z-index: 1; }
.faq-question::after { content: '+'; font-size: 24px; color: var(--color-primary-light); transition: transform 0.4s ease, color 0.3s ease, background 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 20px; color: var(--color-grey); transition: max-height 0.5s ease-out, padding 0.5s ease-out, opacity 0.5s ease-out; opacity: 0; position: relative; z-index: 1; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 20px 20px; opacity: 1; }
.faq-item:hover .faq-question { color: var(--color-primary-light); }
.faq-item:hover .faq-question::after { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Regions & Legal */
.region-selector { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.region-card { width: 300px; text-align: center; border-radius: 12px; } /* Использует общие стили .region-card */
.region-card-content { padding: 40px; }
.region-card h3 { font-size: 24px; margin-bottom: 10px; color: var(--color-light); }
.region-card .brand-name { color: var(--color-grey); font-size: 16px; }

/* === ИЗМЕНЕНИЯ ДЛЯ ФЛАГОВ === */
.region-card .flag-wrap { 
    width: 100px; /* ИЗМЕНЕНО */
    height: 66px; /* ИЗМЕНЕНО */
    margin: 0 auto 14px; 
    border-radius: 8px; /* ИЗМЕНЕНО */
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04); 
    border: 1px solid var(--color-border); 
    background: transparent; /* ИЗМЕНЕНО */
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
/* ДОБАВЛЕНО: Стили для <img> внутри .flag-wrap */
.region-card .flag-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* === КОНЕЦ ИЗМЕНЕНИЙ ДЛЯ ФЛАГОВ === */

/* Legal - контейнер */
.legal-tabs-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(30, 41, 55, 0.8); /* Темный фон */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
}
.tab-buttons { display: flex; gap: 10px; border-bottom: 1px solid var(--color-border); margin-bottom: 30px; flex-wrap: wrap; }
.tab-button { padding: 10px 20px; border: none; background: transparent; color: var(--color-grey); font-size: 16px; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; transition: color 0.3s, border-image 0.3s, border-color 0.3s; }
.tab-button.active { color: var(--color-primary-light); border-bottom-color: transparent; border-image: var(--gradient-main) 1; border-image-slice: 1; border-image-width: 0 0 3px 0; }
.tab-button:hover:not(.active) { color: var(--color-light); }
.tab-content { display: none; text-align: left; }
.tab-content.active { display: block; animation: fadeInContent 0.5s ease; }
@keyframes fadeInContent { from { opacity: 0; transform: translateY(10px); } to { transform: translateY(0); } }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.legal-grid h4 { font-size: 14px; color: var(--color-grey); font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.legal-grid p { font-size: 15px; color: var(--color-light); margin: 0; }
@media(max-width: 600px) { .legal-grid { grid-template-columns: 1fr; } }

/* Footer & Cookie & Chat (ВОССТАНОВЛЕН) */
.footer { padding: 60px 0; text-align: left; border-top: 1px solid var(--color-border); background-color: var(--color-dark); position: relative; z-index: 1; color: var(--color-grey); }
.footer .container { display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
@media (min-width: 768px) { .footer .container { flex-direction: row; align-items: center; } }
.footer-left p { margin-bottom: 10px; }
.footer-left a { color: var(--color-light); text-decoration: none; transition: color 0.3s; }
.footer-left a:hover { color: var(--color-accent); }
.footer-right { display: flex; flex-direction: column; gap: 15px; }
@media (min-width: 768px) { .footer-right { flex-direction: row; gap: 30px; } }
.footer-right a { color: var(--color-light); text-decoration: none; font-weight: 700; background: var(--gradient-main-hover); background-clip: text; -webkit-background-clip: text; color: var(--color-light); -webkit-text-fill-color: var(--color-light); transition: -webkit-text-fill-color 0.4s ease; }
.footer-right a:hover { -webkit-text-fill-color: transparent; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background-color: var(--color-dark); color: #fff; padding: 20px; text-align: center; z-index: 1001; box-shadow: 0 -4px 15px rgba(0,0,0,0.2); transform: translateY(100%); transition: transform 0.5s ease-in-out; border-top: 1px solid var(--color-border); }
.cookie-banner.show { transform: translateY(0%); }
.cookie-banner p { margin: 0 0 15px 0; font-size: 14px; }
.cookie-banner button { background-color: var(--color-accent); color: var(--color-dark); border: none; padding: 10px 25px; border-radius: 4px; cursor: pointer; font-weight: 700; transition: background-color 0.3s; }
.cookie-banner button:hover { background-color: #0dd4b1; }
.chat-toggle { position: fixed; bottom: 30px; right: 30px; z-index: 1002; width: 60px; height: 60px; background: var(--gradient-main); color: var(--color-light); border-radius: 50%; border: none; cursor: pointer; box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3), 0 2px 5px rgba(6, 182, 212, 0.2); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; align-items: center; justify-content: center; }
.chat-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4), 0 4px 10px rgba(6, 182, 212, 0.3); }
.chat-toggle svg { width: 32px; height: 32px; fill: currentColor; }
.chat-window { position: fixed; bottom: 100px; right: 30px; z-index: 1001; width: 350px; height: 450px; background: var(--color-dark); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border: 1px solid var(--color-border); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(20px) scale(0.95); pointer-events: none; transition: opacity 0.4s ease, transform 0.4s ease; }
.chat-window.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-header { padding: 20px; background: var(--color-background-tint); border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.chat-header h4 { font-size: 18px; font-weight: 700; color: var(--color-light); margin: 0; }
.chat-close { font-size: 24px; font-weight: 700; color: var(--color-grey); cursor: pointer; line-height: 1; padding: 0 5px; }
.chat-close:hover { color: var(--color-light); }
.chat-body { flex-grow: 1; padding: 20px; overflow-y: auto; font-size: 14px; color: var(--color-grey); display: flex; flex-direction: column; gap: 12px; }
.chat-msg { padding: 10px 14px; border-radius: 12px; max-width: 80%; line-height: 1.5; word-wrap: break-word; }
.msg-bot { background: var(--color-background-tint); color: var(--color-light); align-self: flex-start; }
.msg-user { background: var(--color-primary); color: var(--color-light); align-self: flex-end; }
.chat-footer { padding: 15px; border-top: 1px solid var(--color-border); background: var(--color-dark); display: flex; gap: 10px; flex-shrink: 0; }
.chat-footer input { width: 100%; flex-grow: 1; padding: 10px; border: 1px solid var(--color-border); border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 14px; background: var(--color-background-tint); color: var(--color-light); }
.chat-footer input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }
.chat-footer button { border: none; background: var(--color-primary); color: var(--color-light); padding: 0 15px; font-weight: 700; border-radius: 6px; cursor: pointer; transition: background-image 0.4s ease, background-color 0.3s; }
.chat-footer button:hover { background-color: transparent; background-image: var(--gradient-main-hover); }
@media (max-width: 600px) { .chat-toggle { bottom: 20px; right: 20px; } .chat-window { width: calc(100% - 40px); height: 60vh; right: 20px; bottom: 90px; } }

/* === СТИЛИ ДЛЯ POP-UP ОКНА === */
.popup-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.popup-overlay.active { opacity: 1; pointer-events: auto; }
.popup-window { background: var(--color-dark); border: 1px solid var(--color-border); border-radius: 12px; padding: 40px; max-width: 500px; width: 100%; text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transform: scale(0.9); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.popup-overlay.active .popup-window { transform: scale(1); }

/* === ИСПРАВЛЕНИЕ 2: Стили для иконки в попапе (star.webp) === */
.popup-icon { 
    height: 150px; /* Увеличено с 50px */
    width: auto; 
    margin-bottom: 20px; 
    /* Удалены свойства для текста (color, background-clip и т.д.) */
}

.popup-close { position: absolute; top: 10px; right: 15px; font-size: 30px; font-weight: 700; color: var(--color-grey); background: none; border: none; cursor: pointer; line-height: 1; }
.popup-close:hover { color: var(--color-light); }
.popup-window h3 { font-size: 24px; font-weight: 900; color: var(--color-light); margin-bottom: 15px; }
.popup-window p { color: var(--color-grey); font-size: 16px; margin-bottom: 30px; }
.popup-form { display: flex; flex-direction: column; gap: 15px; }
.popup-form input { width: 100%; padding: 14px; border: 1px solid var(--color-border); border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 14px; background: var(--color-background-tint); color: var(--color-light); }
.popup-form input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }
.popup-close-success { margin-top: 15px; }
/* === КОНЕЦ СТИЛЕЙ POP-UP === */

/* === СТИЛИ ДЛЯ НОВОГО МОДАЛЬНОГО ОКНА (КОНТЕНТ) === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: var(--color-dark);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--color-border);
}
.modal-overlay.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-grey);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.modal-close:hover {
    color: var(--color-light);
}


.content-modal-window {
    max-width: 800px;
    width: 90vw;
    padding: 0;
    background: rgba(15, 23, 42, 0.95); /* Темная модалка */
    backdrop-filter: blur(5px);
    border-radius: 12px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-modal-window .modal-close {
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.3);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 28px;
    font-size: 24px;
}

.content-modal-window .modal-close:hover {
    background: rgba(0,0,0,0.6);
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 80vh;
}

.modal-image-container {
    width: 100%;
    flex-shrink: 0;
    border-bottom: 1px solid var(--color-border);
    background-color: transparent; /* Убираем фон */
}

#modal-content-image {
    display: block;
    width: 100%;
    height: 300px; /* Фиксированная высота для мобильных */
    object-fit: contain;
}

.modal-text-container {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
    text-align: left;
}

/* Адаптивность для модального окна */
@media (min-width: 768px) {
    .content-modal-window {
        flex-direction: row;
        max-height: 500px;
    }
    .modal-content-wrapper {
        flex-direction: row;
        max-height: 500px;
    }
    .modal-image-container {
        width: 40%;
        flex-shrink: 0;
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }
    #modal-content-image {
        width: 100%;
        height: 100%; /* Заполняет высоту контейнера */
        object-fit: contain;
    }
    .modal-text-container {
        width: 60%;
    }
}

/* Стили для контента внутри модалки */
.modal-text-container h3,
.modal-text-container h4 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 10px;
}
.modal-text-container .product-sku,
.modal-text-container .source {
    font-size: 14px;
    color: var(--color-grey);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}
.modal-text-container p {
    font-size: 16px;
    color: var(--color-light);
    line-height: 1.6;
    margin-bottom: 20px;
}
.modal-text-container blockquote {
    font-style: italic;
    font-size: 18px;
    padding-left: 15px;
    border-left: 3px solid var(--color-primary);
    margin: 0;
}
.modal-text-container ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.modal-text-container li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--color-light); /* Светлый текст списка */
}
.modal-text-container li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent); /* Акцентный цвет для галочки */
    font-weight: 700;
}
/* === КОНЕЦ СТИЛЕЙ НОВОГО МОДАЛЬНОГО ОКНА === */

/* === СТРАНИЦА КОРЗИНЫ === */
.cart-page-container {
    padding-top: 60px;
    padding-bottom: 100px;
    min-height: 60vh;
}
.cart-page-container h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: left;
    color: var(--color-light);
}
.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
        align-items: flex-start;
    }
}
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cart-item-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
    background: rgba(30, 41, 55, 0.8); /* Темные карточки */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}
.cart-item-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--color-light); /* Белый фон для картинки */
    padding: 5px;
}
.cart-item-info {
    text-align: left;
}
.cart-item-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 5px;
}
.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-top: 10px;
}
.cart-item-remove {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-grey);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cart-item-remove:hover {
    background: rgba(229, 62, 62, 0.1);
    color: #E53E3E;
    border-color: #E53E3E;
}
.cart-summary {
    background: rgba(30, 41, 55, 0.8); /* Темный блок */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px; /* (Высота шапки + отступ) */
    text-align: left;
}
.cart-summary h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: var(--color-grey);
    margin-bottom: 15px;
}
.cart-summary-row span:last-child {
    color: var(--color-light);
    font-weight: 700;
}
.cart-summary-total {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--color-border);
}
.cart-summary-total .cart-summary-row {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-light);
}
.cart-summary-total .cart-summary-row span:last-child {
    font-size: 20px;
    color: var(--color-primary-light);
}
.btn-checkout {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 16px;
}
.cart-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(30, 41, 55, 0.8); /* Темный блок */
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.cart-empty-message p {
    font-size: 18px;
    color: var(--color-grey);
    margin-bottom: 30px;
}

/* === МОБИЛЬНОЕ МЕНЮ (для старой структуры HTML) === */

/* Стили для кнопки "бургера", когда она нажата (класс .open) */
.nav-toggle.open .hamburger {
    /* Скрываем среднюю полоску */
    background-color: transparent; 
}

.nav-toggle.open .hamburger::before {
    /* Верхняя полоска превращается в 'X' */
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger::after {
     /* Нижняя полоска превращается в 'X' */
    transform: rotate(-45deg) translate(7px, -6px);
}

/* * Стили для .nav-menu на мобильных. */
@media (max-width: 992px) { 
    .nav-menu {
        /* По умолчанию display: none; в оригинальных стилях */
        /* При активации на мобильном: */
        display: flex;
        position: fixed;
        top: 80px; /* Высота вашей шапки, подберите значение */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px); /* Вся высота экрана минус шапка */
        background-color: rgba(15, 23, 42, 0.95); /* Полупрозрачный фон */
        backdrop-filter: blur(10px);
        
        /* Прячем его */
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;

        /* Анимация */
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;

        /* Располагаем ссылки вертикально */
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 20px;
        z-index: 999;
    }

    /* * ГЛАВНАЯ ЧАСТЬ:
     * Когда у .nav-menu появляется класс .open, показываем его.
     * (Требуется, чтобы JS добавлял класс 'open' к .nav-menu)
    */
    .nav-menu.open { 
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin-bottom: 20px;
    }
    .nav-menu a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-light);
        text-decoration: none;
        padding: 10px;
    }
    .nav-menu a:hover {
        color: var(--color-primary);
    }

    /* Блокируем прокрутку страницы, когда меню открыто */
    body.no-scroll {
        overflow: hidden;
    }
}
/* === КОНЕЦ МОБИЛЬНОГО МЕНЮ (ВОССТАНОВЛЕНО) === */

/* --- === СТИЛИ ДЛЯ СТРАНИЦЫ CHECKOUT (ОФОРМЛЕНИЯ ЗАКАЗА) === --- */
/* --- === Добавлено 24 октября 2025 === --- */

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
    /* Анимация */
    animation: fadeInDown 0.6s ease-out;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 20px;
    align-items: flex-start;
}

/* Левая колонка: Форма */
.checkout-form .form-section {
    /* Градиент и "блеск" */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Анимация появления */
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* Задержка для второй секции */
.checkout-form .form-section:nth-of-type(2) {
    animation-delay: 0.4s;
}

.checkout-form h2 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #eee;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Важно для padding */
}

/* Эффект "блеска" при фокусе */
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent, #00BFFF);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6), 0 0 4px rgba(0, 191, 255, 1) inset;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
    padding-right: 40px;
}

/* Стили для выбора оплаты */
.payment-options .form-group {
    margin-bottom: 10px;
}

.payment-option-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #eee;
}

.payment-option-label:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* "Блеск" для ВЫБРАННОГО варианта */
.payment-option-label:has(input:checked) {
    background: rgba(0, 191, 255, 0.15);
    border-color: rgba(0, 191, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.payment-option-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 15px;
    accent-color: var(--color-accent, #00BFFF);
}

/* Скрытая форма карты */
#credit-card-form {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    display: none; /* JS будет это показывать */
}

/* Правая колонка: Итог заказа */
.order-summary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    padding: 25px 30px;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 120px; /* 100px (header) + 20px (margin) */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Анимация */
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.order-summary h2 {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ddd;
}

.summary-line span:last-child {
    font-weight: 600;
}

.summary-line.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Анимация кнопки */
.order-summary .btn-gradient {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 1.15rem;
    font-weight: 600;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}
.order-summary .btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 191, 255, 0.6);
}


/* Сообщение об успехе */
#checkout-success-message {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(145deg, rgba(50, 205, 50, 0.1), rgba(50, 205, 50, 0.2));
    border: 1px solid rgba(50, 205, 50, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #fff;
    margin: 40px 0;
    animation: fadeInUp 0.5s ease;
}

#checkout-success-message h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
    border: none;
    padding: 0;
}

#checkout-success-message p {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 30px;
}


/* Адаптивность */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        /* На мобильных, итог *перед* формой */
        grid-row: 1; /* Переместить итог наверх */
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 20px; 
    }

    .checkout-form .form-section,
    .order-summary {
        padding: 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .checkout-form h2,
    .order-summary h2 {
        font-size: 1.5rem;
    }
}

/* --- Ключевые кадры для анимаций --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


}
