/* styles.css — Стили для продающего лендинга нарядов-допусков DOC-V */

:root {
    /* Фирменная лилово-фиолетовая сливовая палитра для идеального сочетания со скриншотами */
    --primary: #9b51e0; /* Глубокий лиловый */
    --primary-light: #e8e0ff; /* Нежно-сиреневый */
    --primary-dark: #6f2dbd; /* Насыщенный фиолетовый */
    --primary-glow: rgba(155, 81, 224, 0.12); /* Лиловое свечение */
    
    --success: #9b51e0;
    --primary-dark-glow: rgba(111, 45, 189, 0.4);

    --background: #f8f6fa; /* Нежный лилово-белый фон */
    --foreground: #1c0a24; /* Глубокий сливовый */
    --accents-1: #f1ecf7;  /* Нежный фон карточек */
    --accents-2: #e0d6ed;  /* Лиловые границы */
    --accents-3: #b09cb8;  
    --accents-4: #947ba1;  
    --accents-5: #5a456a;  /* Основной хвойно-сливовый текст */
    --accents-6: #422f4d;  
    --accents-7: #281b32;  
    --accents-8: #140a1c;  

    --nav-bg: rgba(232, 224, 255, 0.85); /* Нежно-сиреневый матовый фон в тон основного цвета презентации */
    --nav-hover-bg: rgba(232, 224, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.75); 
    
    --card-title-gradient: linear-gradient(135deg, #2d0b30 0%, #6f2dbd 100%);
    --hero-gradient: linear-gradient(135deg, #140a1c 20%, #6f2dbd 100%);
    
    --card-border: 1px solid var(--accents-2);
    --btn-secondary-hover-bg: rgba(155, 81, 224, 0.06);
    --btn-secondary-border: 1px solid var(--accents-2);
}

body.dark-theme {
    --background: #0b0512; /* Глубокий сливово-черный фон */
    --foreground: #ffffff;
    --accents-1: #160c24;  /* Темный фон карточек */
    --accents-2: #341e4f;  /* Фиолетовые границы */
    --accents-3: #4a2c6d;  
    --accents-4: #6d429c;  
    --accents-5: #a78bfa;  /* Сиреневый для темной темы */
    --accents-6: #c084fc;  
    --accents-7: #eaeaea;  
    --accents-8: #fafafa;  

    --primary: #c084fc; /* Неоновый фиолетовый */
    --primary-light: #f3e8ff;
    --primary-dark: #a855f7;
    --primary-glow: rgba(192, 132, 252, 0.25);
    
    --nav-bg: rgba(11, 5, 18, 0.7);
    --nav-hover-bg: rgba(11, 5, 18, 0.9);
    --card-bg: rgba(22, 12, 36, 0.5);
    
    --card-title-gradient: linear-gradient(90deg, #fff, #c084fc);
    --hero-gradient: linear-gradient(135deg, #07020a 20%, #4a1380 100%);
    
    --card-border: 1px solid rgba(192, 132, 252, 0.15);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.05);
}

.slide-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--accents-2);
    position: relative;
}

.slide-section:nth-child(even) {
    background: var(--accents-1);
}

.slide-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.slide-section:nth-child(even) .slide-grid {
    grid-template-columns: 1.2fr 1fr;
}

.slide-section:nth-child(even) .slide-text-col {
    order: 2;
}

.slide-section:nth-child(even) .slide-img-col {
    order: 1;
}

/* Столбец текста */
.slide-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: 1.5rem;
}

body.dark-theme .slide-badge {
    color: var(--primary);
}

.slide-text-col h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    background: var(--card-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.slide-text-col p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--accents-5);
    margin-bottom: 2rem;
}

/* HSE Фичи-списки */
.hse-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.hse-features li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--foreground);
    font-weight: 500;
}

.hse-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    width: 24px;
    height: 24px;
    background: var(--primary-glow);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    border: 1px solid var(--primary);
}

body.dark-theme .hse-features li::before {
    color: var(--primary);
}

/* Столбец изображения */
.slide-img-col {
    position: relative;
}

.screenshot-wrapper {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-in;
    position: relative;
    overflow: hidden;
}

body.dark-theme .screenshot-wrapper {
    box-shadow: 0 10px 40px rgba(0, 220, 130, 0.1);
}

.screenshot-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.4s ease;
}

.screenshot-wrapper::after {
    content: "🔍 Нажмите для увеличения";
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.screenshot-wrapper:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 220, 130, 0.15);
}

.screenshot-wrapper:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-wrapper:hover img {
    transform: scale(1.005);
}

/* Интерактивный Lightbox (Просмотр изображений без внешних библиотек) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 220, 130, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* HSE Показатели / Метрики */
.hse-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hse-metric-card {
    background: var(--accents-1);
    border: 1px solid var(--accents-2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hse-metric-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.hse-metric-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1;
}

body.dark-theme .hse-metric-num {
    color: var(--primary);
}

.hse-metric-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accents-5);
    line-height: 1.4;
}

/* Секция предупреждения в ТБ */
.tb-warning-box {
    background: rgba(238, 0, 0, 0.05);
    border: 1px dashed var(--error);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tb-warning-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.tb-warning-text h5 {
    color: var(--error);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.tb-warning-text p {
    font-size: 0.95rem;
    color: var(--accents-5);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Промо-блоки с акцентами */
.ai-glow-card {
    border-left: 4px solid var(--primary) !important;
}

/* Стилизация заголовков презентаций */
.presentation-header {
    text-align: center;
    padding: 10rem 0 4rem 0;
    background: var(--hero-gradient);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.presentation-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.15;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.presentation-header p {
    font-size: 1.3rem;
    color: var(--primary-light);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Премиальная карточка сравнения ДО и ПОСЛЕ внедрения */
.comparison-card {
    background: rgba(22, 12, 36, 0.45);
    border: 1px solid rgba(192, 132, 252, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comparison-header h4 {
    color: #fff !important;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    background: none;
    -webkit-text-fill-color: initial;
}

.comparison-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.comparison-body {
    display: flex;
    flex-direction: column;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.table-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    padding-bottom: 0.5rem;
    padding-top: 0;
}

.comp-feature {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.comp-old span {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.9rem;
}

.comp-old small {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.comp-new span {
    color: #c084fc;
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(192, 132, 252, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(192, 132, 252, 0.25);
}

.comp-new small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.comparison-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Адаптивность для мобилок */
@media (max-width: 992px) {
    .slide-grid, .slide-section:nth-child(even) .slide-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .slide-section:nth-child(even) .slide-text-col {
        order: 1;
    }
    
    .slide-section:nth-child(even) .slide-img-col {
        order: 2;
    }
    
    .presentation-header h1 {
        font-size: 2.5rem;
    }
    
    .slide-text-col h3 {
        font-size: 1.8rem;
    }
    
    .hse-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .comparison-card {
        padding: 1.2rem;
    }
    .comparison-row {
        gap: 0.6rem;
        padding: 0.8rem 0;
    }
    .comp-feature {
        font-size: 0.8rem;
    }
    .comp-old span, .comp-new span {
        font-size: 0.75rem;
    }
    .comp-old small, .comp-new small {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    .comparison-row.table-header {
        font-size: 0.65rem;
    }
    .comparison-footer {
        gap: 1rem;
    }
}

/* Отступы при переходе по якорям (с учетом фиксированного меню) */
header[id], section[id] {
    scroll-margin-top: 70px;
}

