/* ==========================================================================
   ОНИКС ПРО — ФИРМЕННАЯ СИСТЕМА ONIX PURPLE (#6c4ec8)
   ========================================================================== */

:root {
    --brand-purple: #6c4ec8;
    --brand-purple-light: #8d70ed;
    --brand-purple-bright: #a185ff;
    --brand-purple-glow: rgba(108, 78, 200, 0.45);
    
    --bg-obsidian: #08070D;
    --bg-surface: #100E19;
    --bg-surface-elevated: #181525;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-purple: rgba(108, 78, 200, 0.35);
    
    --text-main: #FFFFFF;
    --text-muted: #8F8C9E;
    
    --font-headline: 'Unbounded', sans-serif;
    --font-ui: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-obsidian);
    font-family: var(--font-ui);
    color: var(--text-main);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Шрифтовые классы */
.font-headline { font-family: var(--font-headline); }
.font-mono { font-family: var(--font-mono); }
.text-purple-bright { color: var(--brand-purple-bright) !important; }
.text-muted-light { color: var(--text-muted); }

/* Логотип */
.brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
}

.brand-logo-mobile {
    height: 30px;
    width: auto;
}

.brand-badge {
    background: rgba(108, 78, 200, 0.15);
    border: 1px solid var(--border-purple);
    color: var(--brand-purple-bright);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.1em;
}

/* Фоновое видео Hero Section */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.15) saturate(1.1);
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(8, 7, 13, 0.95) 0%, 
        rgba(16, 14, 25, 0.88) 50%, 
        rgba(8, 7, 13, 0.92) 100%
    );
    z-index: 2;
}

/* Floating Navbar */
.header-wrapper {
    z-index: 1030;
    padding-top: 1.25rem;
    transition: all 0.3s ease;
}

.glass-navbar {
    background: rgba(16, 14, 25, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.78rem;
    transition: color 0.2s ease;
    letter-spacing: 0.05em;
}

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

.phone-link {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
}

.status-indicator {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}

/* Бургер кнопка */
.navbar-burger-btn {
    background: rgba(108, 78, 200, 0.15);
    border: 1px solid var(--border-purple);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопки */
.btn-premium-purple {
    background: var(--brand-purple);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px var(--brand-purple-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-premium-purple:hover {
    background: var(--brand-purple-light);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 78, 200, 0.6);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.play-btn-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(108, 78, 200, 0.3);
    color: var(--brand-purple-bright);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-purple {
    border: 1px solid var(--brand-purple-bright);
    color: var(--brand-purple-bright);
    background: transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-purple:hover {
    background: var(--brand-purple);
    color: #fff;
}

.btn-glass-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-glass-icon:hover {
    background: rgba(108, 78, 200, 0.2);
    border-color: var(--border-purple);
    color: #fff;
}

/* Hero Section */
.hero-title {
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #FFFFFF 20%, var(--brand-purple-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 520px;
}

.badge-tech {
    background: rgba(108, 78, 200, 0.1);
    border: 1px solid var(--border-purple);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.72rem;
    color: #E2E8F0;
    letter-spacing: 0.05em;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Интерактивный Canvas Симулятор */
.clean-simulator-wrapper {
    background: rgba(16, 14, 25, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-purple);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.simulator-hud-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    margin-bottom: 12px;
}

.hud-sensor-live {
    width: 7px;
    height: 7px;
    background: var(--brand-purple-bright);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-purple-bright);
}

.simulator-stage {
    width: 100%;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: none;
}

.stage-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.canvas-layer {
    z-index: 3;
}

.nozzle-cursor {
    position: absolute;
    width: 52px;
    height: 52px;
    border: 1.5px dashed var(--brand-purple-bright);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    justify-content: center;
}

.nozzle-crosshair {
    width: 6px;
    height: 6px;
    background: var(--brand-purple-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-purple-bright);
}

.interaction-prompt {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 7, 13, 0.9);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.7rem;
    border: 1px solid var(--border-purple);
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -5px); }
}

.progress-tech {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.bg-purple {
    background-color: var(--brand-purple-bright) !important;
    box-shadow: 0 0 12px var(--brand-purple-glow);
}

/* Offcanvas Меню */
.offcanvas-dark {
    background: #0E0C16;
    border-left: 1px solid var(--border-purple);
    max-width: 380px;
    width: 100%;
}

.offcanvas-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offcanvas-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.offcanvas-link:hover {
    background: rgba(108, 78, 200, 0.12);
    border-color: var(--border-purple);
    color: var(--brand-purple-bright);
}

.offcanvas-phone {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
}

/* Модалка и формы */
.glass-card {
    background: #110E1C;
    border: 1px solid var(--border-purple);
    border-radius: 20px;
}

.form-control-tech {
    background: #09070F;
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 8px;
}

.form-control-tech:focus {
    background: #09070F;
    border-color: var(--brand-purple-bright);
    color: #fff;
    box-shadow: 0 0 12px var(--brand-purple-glow);
}

@media (max-width: 991.98px) {
    .simulator-stage {
        height: 280px;
        cursor: crosshair;
    }
    .nozzle-cursor {
        display: none !important;
    }
}

/* Кнопка бургера */
.navbar-burger-btn {
    background: rgba(108, 78, 200, 0.15);
    border: 1px solid var(--border-purple);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 1040;
    -webkit-tap-highlight-color: transparent;
}

/* Отключаем перехват тача векторной иконкой */
.navbar-burger-btn svg,
.navbar-burger-btn i {
    pointer-events: none;
}

/* Гарантированный z-index для Offcanvas выше подложки */
.offcanvas-dark {
    background: #0E0C16 !important;
    border-left: 1px solid var(--border-purple);
    max-width: 380px;
    width: 85%;
    z-index: 1060 !important;
}

.offcanvas-backdrop {
    z-index: 1055 !important;
}

/* ==========================================================================
   СЕКЦИЯ 2: КАТАЛОГ (СВЕТЛАЯ ЛАБОРАТОРНАЯ ТЕМА)
   ========================================================================== */

.section-light {
    background-color: #F8FAFC;
    color: #0F172A;
    position: relative;
    overflow: hidden;
}

.text-dark-industrial {
    color: #0B0E14;
    letter-spacing: -0.02em;
}

.text-purple {
    color: var(--brand-purple) !important;
}

.text-gradient-purple-light {
    background: linear-gradient(135deg, #181135 0%, var(--brand-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc-light {
    color: #526071;
    font-size: 1.05rem;
    line-height: 1.6;
}

.badge-tech-light {
    background: #FFFFFF;
    border: 1px solid rgba(108, 78, 200, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    color: #334155;
    box-shadow: 0 2px 8px rgba(108, 78, 200, 0.08);
}

/* Фильтр сплавов (Light) */
.alloy-selector-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.selector-label-light {
    display: block;
    font-size: 0.65rem;
    color: #64748B;
    margin-bottom: 4px;
    padding-left: 6px;
    text-transform: uppercase;
}

.filter-btn-group-light {
    background: #F1F5F9;
    padding: 3px;
    border-radius: 8px;
}

.btn-filter-light {
    color: #475569;
    font-size: 0.72rem;
    padding: 6px 14px;
    border-radius: 6px !important;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.btn-filter-light:hover {
    color: var(--brand-purple);
}

.btn-filter-light.active {
    background: var(--brand-purple);
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px var(--brand-purple-glow);
}

/* Карточки товаров (Светлый хай-тек) */
.product-card-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.product-card-light:hover {
    transform: translateY(-6px);
    border-color: rgba(108, 78, 200, 0.4);
    box-shadow: 0 20px 35px rgba(108, 78, 200, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card-highlight-border {
    border-color: rgba(108, 78, 200, 0.3);
}

.card-badge-light {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(108, 78, 200, 0.3);
    color: var(--brand-purple);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.badge-heavy {
    color: #D96500 !important;
    border-color: rgba(217, 101, 0, 0.3) !important;
}

.badge-hardware {
    color: #0284C7 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

.product-img-wrap-light {
    height: 190px;
    background: #EDF2F7;
    overflow: hidden;
    position: relative;
}

.product-img-wrap-light img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-content-light {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-code-light {
    font-size: 0.65rem;
    color: #64748B;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}

.product-title-light {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 8px;
}

.product-desc-light {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.5;
    min-height: 48px;
    margin-bottom: 0;
}

/* Таблица спецификаций (Light) */
.specs-table-light {
    background: #F8FAFC;
    border: 1px solid #EDF2F7;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-row-light {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
}

.spec-prop {
    color: #64748B;
}

.spec-val {
    color: #0F172A;
}

/* Кнопки в карточке */
.btn-outline-dark-tech {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #334155;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-dark-tech:hover {
    background: #F1F5F9;
    color: var(--brand-purple);
    border-color: var(--brand-purple);
}

/* Контрастный B2B баннер внизу */
.custom-formula-banner-dark {
    background: linear-gradient(135deg, #120E22 0%, #090710 100%);
    border: 1px solid rgba(108, 78, 200, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.custom-formula-banner-dark::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--brand-purple-glow), transparent 70%);
    pointer-events: none;
}

/* ==========================================================================
   СЕКЦИЯ 3: OZON MARKETPLACE & SOCIAL PROOF (ИСПРАВЛЕНО)
   ========================================================================== */

.marketplace-section {
    background-color: var(--bg-obsidian);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
    padding-top: 2rem;
}

/* Исправлено: строго абсолютное позиционирование фонового пятна без сдвига верстки */
.glow-marketplace {
    position: absolute;
    top: 20%;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 78, 200, 0.22), transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.text-light-sub {
    color: #E2E8F0;
}

.section-desc-dark {
    color: #CBD5E1; /* Светлый читаемый цвет вместо темного серого */
    font-size: 1.05rem;
    line-height: 1.6;
}

.ozon-dot {
    width: 8px;
    height: 8px;
    background: #005BFF;
    border-radius: 50%;
    box-shadow: 0 0 10px #005BFF;
}

/* Рейтинг полоса */
.rating-strip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.rating-score {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    color: #FFFFFF;
}

.star-filled {
    width: 17px;
    height: 17px;
    fill: #FBBF24;
    stroke: #FBBF24;
    display: inline-block;
}

.rating-meta-text {
    color: #94A3B8; /* Четкий светло-серый текст */
    font-size: 0.78rem;
}

.label-guarantee {
    color: #94A3B8;
    font-size: 0.75rem;
}

/* Кнопка OZON */
.btn-ozon {
    background: #005BFF;
    color: #FFFFFF !important;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 20px rgba(0, 91, 255, 0.4);
}

.btn-ozon:hover {
    background: #1A6DFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 91, 255, 0.6);
}

/* Карточка отзывов */
.reviews-slider-card {
    background: #110E1D; /* Плотный графитово-фиолетовый фон */
    border: 1px solid rgba(108, 78, 200, 0.4);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.badge-verified {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
    color: #fff;
}

/* Автор отзыва */
.author-avatar {
    width: 44px;
    height: 44px;
    background: rgba(108, 78, 200, 0.3);
    border: 1.5px solid var(--brand-purple-bright);
    color: var(--brand-purple-bright);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.author-name {
    font-size: 1.1rem;
}

.author-label {
    color: #94A3B8; /* Светлый читаемый цвет */
    font-size: 0.75rem;
    display: block;
}

.review-date {
    color: #94A3B8;
    font-size: 0.75rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #E2E8F0; /* Высокая читаемость цитаты */
}

/* Фотографии */
.review-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.review-photo-item {
    position: relative;
    height: 155px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.review-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.review-photo-item:hover img {
    transform: scale(1.05);
}

.photo-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(10, 8, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
}

.tag-clean {
    background: rgba(16, 185, 129, 0.9);
    border-color: transparent;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .reviews-slider-card {
        padding: 20px;
    }
    .review-photos-grid {
        grid-template-columns: 1fr;
    }
    .review-photo-item {
        height: 135px;
    }
}

/* ==========================================================================
   СЕКЦИЯ 4: ТЕХНОЛОГИЯ И СЛАЙДЕР ДО/ПОСЛЕ (СВЕТЛАЯ ТЕМА)
   ========================================================================== */

.technology-section-light {
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    position: relative;
    z-index: 2;
}

/* Карточка слайдера */
.comparison-card-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.comparison-header-light {
    font-size: 0.72rem;
    color: #475569;
    margin-bottom: 14px;
}

/* Интерактивный контейнер сравнения */
.before-after-container {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 14px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: ew-resize;
    background: #000;
}

.comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Обертка слоя ДО */
.comparison-before-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.comparison-before-wrapper .img-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

/* Бейджи До и После */
.comparison-badge {
    position: absolute;
    top: 14px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 4;
    letter-spacing: 0.05em;
}

.badge-after {
    right: 14px;
    background: rgba(16, 185, 129, 0.95);
    color: #FFFFFF;
}

.badge-before {
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Линия-разделитель и рукоятка */
.comparison-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    z-index: 3;
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--brand-purple);
    border: 2.5px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(108, 78, 200, 0.5);
}

/* Матрица удаляемых загрязнений */
.contaminants-grid-light {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contaminant-card-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.contaminant-card-light:hover {
    border-color: rgba(108, 78, 200, 0.4);
    transform: translateX(4px);
}

.contaminant-icon-light {
    width: 36px;
    height: 36px;
    background: rgba(108, 78, 200, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contaminant-info {
    flex-grow: 1;
}

.contaminant-name-light {
    display: block;
    color: #0F172A;
    font-size: 0.85rem;
    font-weight: 700;
}

.contaminant-desc-light {
    display: block;
    color: #64748B;
    font-size: 0.72rem;
}

.contaminant-metric {
    font-size: 0.95rem;
    font-weight: 800;
}

/* 3 Опорных столпа (Light) */
.feature-pillar-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}

.feature-pillar-light:hover {
    border-color: rgba(108, 78, 200, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(108, 78, 200, 0.08);
}

.pillar-title-light {
    font-size: 1.05rem;
    color: #0F172A;
    font-weight: 800;
    margin-bottom: 10px;
}

.pillar-desc-light {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .before-after-container {
        height: 280px;
    }
}

/* ==========================================================================
   СЕКЦИЯ 5: ОТЗЫВЫ ПАРТНЕРОВ (ЧЕТКИЙ КОНТРАСТ)
   ========================================================================== */

.reviews-section {
    background-color: var(--bg-obsidian);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.glow-partners {
    position: absolute;
    top: 20%;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 78, 200, 0.16), transparent 70%);
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
}

.section-desc-readable {
    color: #CBD5E1; /* Светло-серый, высокий контраст */
    font-size: 1.05rem;
    line-height: 1.6;
}

.partner-review-card {
    background: #110E1D;
    border: 1px solid rgba(108, 78, 200, 0.35);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.partner-review-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-purple-bright);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(108, 78, 200, 0.2);
}

.stars-gold {
    color: #FBBF24;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.partner-review-text {
    color: #E2E8F0; /* Кристально читаемый белый текст */
    font-size: 0.9rem;
    line-height: 1.65;
}

.border-top-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-name {
    display: block;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.partner-company {
    display: block;
    color: #94A3B8; /* Светлый читаемый текст вместо темного */
    font-size: 0.75rem;
}

/* ==========================================================================
   СЕКЦИЯ 6: ГАЛЕРЕЯ С МУЛЬТИ-СЛАЙДЕРАМИ ДО / ПОСЛЕ
   ========================================================================== */

.gallery-section {
    background-color: #0A0812;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.text-hint-drag {
    color: #CBD5E1;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.ba-card {
    background: #110E1D;
    border: 1px solid rgba(108, 78, 200, 0.35);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.ba-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-purple-bright);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(108, 78, 200, 0.25);
}

/* Контейнер слайдера с CSS Clip-path */
.ba-slider-box {
    position: relative;
    height: 230px;
    width: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    cursor: ew-resize;
    background: #000000;
    touch-action: pan-y; /* Позволяет листать страницу по вертикали */
}

.ba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Слой ДО обрезается динамически по значению --pos */
.ba-img-before {
    clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
    z-index: 2;
}

.ba-img-after {
    z-index: 1;
}

/* Разделительная линия */
.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos, 50%);
    width: 2px;
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Круглая кнопка-хэндл со стрелочками */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: var(--brand-purple);
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Бейджи ДО и ПОСЛЕ */
.ba-badge {
    position: absolute;
    top: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 4;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.badge-after {
    right: 10px;
    background: rgba(16, 185, 129, 0.95);
    color: #FFFFFF;
}

.badge-before {
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Текстовая планка под слайдером */
.ba-card-info {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #110E1D;
}

.ba-part-title {
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
}

.ba-part-badge {
    font-size: 0.72rem;
}

/* ==========================================================================
   СЕКЦИЯ 7: B2B КАЛЬКУЛЯТОР ОКУПАЕМОСТИ (СВЕТЛАЯ ТЕМА, ВЫСОКИЙ КОНТРАСТ)
   ========================================================================== */

.calculator-section-light {
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    position: relative;
    z-index: 2;
}

.calculator-card-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
}

.calc-label {
    font-size: 0.9rem;
}

.calc-value-badge {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    color: var(--brand-purple);
    font-size: 1.15rem;
    padding: 4px 14px;
    border-radius: 8px;
}

/* Кастомный ползунок Range */
.custom-range {
    height: 8px;
    background: #E2E8F0;
    border-radius: 10px;
}

.custom-range::-webkit-slider-thumb {
    background: var(--brand-purple);
    box-shadow: 0 0 10px var(--brand-purple-glow);
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    transition: transform 0.15s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Кнопки выбора текущего метода мойки */
.btn-calc-method {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 0.75rem;
    padding: 10px 8px;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-calc-method:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
}

.btn-calc-method.active {
    background: #110E1D;
    color: #FFFFFF;
    border-color: #110E1D;
    box-shadow: 0 4px 12px rgba(17, 14, 29, 0.15);
}

/* ==========================================================================
   ПРАВАЯ ПАНЕЛЬ С РЕЗУЛЬТАТАМИ (ИСПРАВЛЕН КОНТРАСТ ТЕКСТА)
   ========================================================================== */
.calc-result-panel {
    background: #110E1D;
    border: 1px solid rgba(108, 78, 200, 0.4);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Все поясняющие надписи в темной панели теперь светлые и четкие */
.calc-result-panel .text-muted {
    color: #CBD5E1 !important; /* Светло-серый читаемый оттенок вместо темно-серого */
}

.result-header span.text-muted {
    color: #A78BFA !important; /* Яркий акцентный лавандовый для надписи "ЭКОНОМИЧЕСКИЙ ПРОГНОЗ" */
    font-weight: 700;
    letter-spacing: 0.05em;
}

.metric-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
}

.metric-title {
    font-size: 0.78rem;
    font-weight: 500;
    color: #E2E8F0 !important; /* Чистый светлый заголовок метрики */
    display: block;
}

.metric-number {
    font-size: 2.2rem;
    line-height: 1;
}

.metric-unit {
    font-size: 0.85rem;
    font-weight: 700;
}

.metric-subtext {
    color: #94A3B8 !important; /* Читаемый серый для примечания */
    font-size: 0.72rem;
    line-height: 1.4;
}

.payback-box {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.payback-box span.text-muted {
    color: #E2E8F0 !important;
}

@media (max-width: 991.98px) {
    .calculator-card-light {
        padding: 22px;
    }
}

/* ==========================================================================
   СЕКЦИЯ 8: FAQ (АККОРДЕОН В ТЕМНОЙ ТЕМЕ)
   ========================================================================== */

.faq-section {
    background-color: var(--bg-obsidian);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.accordion-tech {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    background: #110E1D !important;
    border: 1px solid rgba(108, 78, 200, 0.35) !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.tech-item:hover {
    border-color: var(--brand-purple-bright) !important;
}

.accordion-tech .accordion-button {
    background: #110E1D;
    color: #FFFFFF;
    font-size: 1rem;
    padding: 20px 24px;
    box-shadow: none !important;
}

.accordion-tech .accordion-button:not(.collapsed) {
    background: rgba(108, 78, 200, 0.12);
    color: var(--brand-purple-bright);
}

.accordion-tech .accordion-button::after {
    filter: invert(1) brightness(1.5);
}

.faq-answer-text {
    color: #CBD5E1; /* Светлый четкий текст ответов */
    font-size: 0.92rem;
    line-height: 1.65;
    padding-bottom: 8px;
}

/* ==========================================================================
   СЕКЦИЯ 9: ФИНАЛЬНАЯ ФОРМА СВЯЗИ (СВЕТЛАЯ ТЕМА)
   ========================================================================== */

.final-cta-section-light {
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    position: relative;
    z-index: 2;
}

.final-card-wrapper-light {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.05);
}

.contact-pill-icon-light {
    width: 38px;
    height: 38px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inline-form-card-light {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* Поля формы для светлой темы */
.form-control-light {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    border-radius: 8px;
}

.form-control-light:focus {
    background: #FFFFFF;
    border-color: var(--brand-purple);
    color: #0F172A;
    box-shadow: 0 0 0 3px rgba(108, 78, 200, 0.15);
}

.form-control-light::placeholder {
    color: #94A3B8;
}

/* ==========================================================================
   ПОДВАЛ (FOOTER)
   ========================================================================== */

.footer-tech {
    background-color: #06050A;
    position: relative;
    z-index: 2;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--brand-purple-bright);
    transform: translateX(3px);
}

.footer-bottom {
    font-size: 0.75rem;
}

/* ========================================================= */
/* КОНТРАСТ И СТИЛИЗАЦИЯ ИНПУТОВ В ТЕМНЫХ МОДАЛЬНЫХ ОКНАХ    */
/* ========================================================= */

/* Лейблы / подписи к полям */
.modal-content .form-label,
.modal-content .form-label.text-muted {
    color: #b5b1c8 !important; /* Читаемый светлый оттенок серебра */
    font-weight: 500;
    margin-bottom: 0.35rem;
}

/* Поля ввода (инпуты, textarea, select) */
.modal-content .form-control-tech,
.modal-content select.form-control-tech,
.modal-content textarea.form-control-tech {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important; /* Белый цвет вводимого текста */
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease-in-out;
}

/* Плейсхолдеры (подсказки внутри полей) */
.modal-content .form-control-tech::placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
    opacity: 1;
}

/* Состояние фокуса (клик по инпуту) */
.modal-content .form-control-tech:focus,
.modal-content select.form-control-tech:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #8b5cf6 !important; /* Яркий фиолетовый контур */
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25) !important;
    color: #ffffff !important;
    outline: none;
}

/* Стилизация выпадающего списка внутри select */
.modal-content select.form-control-tech option {
    background-color: #181622;
    color: #ffffff;
}

/* Подпись под заголовком модалки (название выбранного товара) */
#orderModalProductTitle {
    color: #a78bfa !important; /* Мягкий фиолетовый акцент */
}

/* ========================================================= */
/* СТИЛИЗАЦИЯ ВКЛАДОК КАТАЛОГА                               */
/* ========================================================= */
.filter-btn-group-light {
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.filter-btn-group-light .btn-filter-light {
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #4b4860;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.filter-btn-group-light .btn-filter-light:last-child {
    border-right: none;
}

.filter-btn-group-light .btn-filter-light:hover {
    background: #f7f6fd;
    color: #6c4ec8;
}

/* Активное состояние кнопки */
.filter-btn-group-light .btn-filter-light.active {
    background-color: #6c4ec8 !important;
    color: #ffffff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* ========================================================= */
/* МОБИЛЬНАЯ ПАНЕЛЬ НАВИГАЦИИ (GLASSMORPHISM)                */
/* ========================================================= */
@media (max-width: 991.98px) {
    /* Добавляем нижний отступ телу страницы, чтобы футер не перекрывался */
    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .mobile-app-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1045;
        padding-top: 6px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(15, 14, 23, 0.78);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.65), 
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .mobile-bar-grid {
        display: grid;
        grid-template-columns: 1fr 1fr auto 1fr 1fr;
        align-items: end;
        justify-items: center;
        max-width: 480px;
        margin: 0 auto;
    }

    /* Стандартная вкладка */
    .mobile-tab-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.55);
        transition: all 0.2s ease;
        padding: 4px 6px;
        width: 100%;
    }

    .mobile-tab-btn:active,
    .mobile-tab-btn.active {
        color: #b794f4;
    }

    .tab-icon-wrap {
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3px;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .mobile-tab-btn:active .tab-icon-wrap,
    .mobile-tab-btn.active .tab-icon-wrap {
        transform: translateY(-2px) scale(1.1);
    }

    .tab-icon {
        width: 20px;
        height: 20px;
        stroke-width: 2px;
    }

    .mobile-tab-btn.active .tab-icon {
        color: #b794f4;
        filter: drop-shadow(0 0 6px rgba(183, 148, 244, 0.5));
    }

    .tab-label {
        font-size: 0.62rem;
        line-height: 1;
        letter-spacing: 0.02em;
    }

    /* Центральная акцентная кнопка "Тест 5л" */
    .mobile-tab-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        padding: 0 8px;
    }

    .btn-action-float {
        position: relative;
        width: 52px;
        height: 52px;
        border: none;
        background: transparent;
        padding: 0;
        cursor: pointer;
        margin-top: -24px; /* Приподнимаем над панелью */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .action-float-circle {
        position: relative;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
        border: 2px solid rgba(255, 255, 255, 0.85);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(108, 78, 200, 0.55);
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 2;
    }

    .btn-action-float:active .action-float-circle {
        transform: scale(0.92);
    }

    .action-float-icon {
        width: 22px;
        height: 22px;
        stroke-width: 2.2px;
    }

    .action-float-glow {
        position: absolute;
        top: 2px;
        left: 2px;
        right: 2px;
        bottom: 2px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(147, 51, 234, 0.7) 0%, rgba(147, 51, 234, 0) 70%);
        filter: blur(6px);
        animation: pulseActionGlow 2.5s infinite ease-in-out;
        z-index: 1;
    }

    @keyframes pulseActionGlow {
        0%, 100% { transform: scale(1); opacity: 0.6; }
        50% { transform: scale(1.3); opacity: 1; }
    }
}

/* Ограничение ширины контента из TinyMCE */
.article-content img,
.article-content figure,
.article-content iframe,
.article-content video {
    max-width: 100% !important;
    height: auto !important;
}

.article-content img {
    border-radius: 8px;
    display: block;
    margin: 1.5rem auto;
}