/* --- Сброс и Переменные --- */
:root {
    --cs-yellow: #FFD659; /* Тот самый желтый из меню CS */
    --cs-dark: #121512;   /* Темно-зеленый/черный фон */
    --cs-border: #4c5c4c; /* Цвет рамок окон */
    --cs-overlay: rgba(20, 25, 20, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Verdana - шрифт эпохи Windows XP, идеально для ностальгии */
    font-family: 'Verdana', Geneva, sans-serif; 
    background-color: #0b0d0b;
    color: #ccc;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Фон страницы */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Замените bg.jpg на вашу картинку, если есть */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8)), url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* --- Эффект старого монитора (Scanlines) --- */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
}

/* --- Шапка --- */
header {
    background: rgba(20, 20, 20, 0.9);
    padding: 15px 0;
    border-bottom: 2px solid var(--cs-border);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.logo span {
    color: var(--cs-yellow);
}

/* --- Главный блок (Hero) --- */
.hero {
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--cs-yellow);
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #ddd;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 2px;
}

/* --- Кнопка скачивания --- */
.btn-download {
    display: inline-block;
    background-color: rgba(60, 70, 60, 0.9);
    color: #fff;
    padding: 18px 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid #6c7c6c;
    border-radius: 2px;
    transition: all 0.2s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-download:hover {
    background-color: var(--cs-yellow);
    color: #1a1a1a;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 214, 89, 0.4);
    transform: scale(1.02);
}

.btn-download:active {
    transform: scale(0.98);
}

/* --- Блок безопасности (Исправленный) --- */
.security-check {
    /* Центрирование и размеры */
    display: flex;             /* Используем flex вместо inline-flex для лучшего контроля */
    align-items: center;       /* Выравниваем иконку и текст по вертикали */
    justify-content: center;   /* Выравниваем контент по центру блока */
    
    width: fit-content;        /* Ширина по содержимому */
    min-width: 300px;          /* Минимальная ширина, чтобы не сплющивался */
    margin: 25px auto 15px;    /* 25px сверху (от кнопки), auto (центр по гориз.), 15px снизу */
    
    /* Оформление */
    background: rgba(15, 30, 15, 0.8); /* Темно-зеленый полупрозрачный */
    border: 1px solid #2ecc71;         /* Яркая рамка */
    padding: 10px 25px;
    border-radius: 4px;                /* Чуть мягче углы для этого блока */
    
    /* Текст */
    color: #2ecc71;
    font-family: 'Verdana', sans-serif;
    font-size: 0.9rem;
    line-height: 1.3;
    
    /* Тень / Свечение */
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.15);
    animation: pulse-green 3s infinite;
}

/* Иконка щита */
.secure-icon {
    font-size: 1.4rem;
    margin-right: 12px;
}

/* Текстовая часть */
.secure-text {
    display: flex;
    flex-direction: column; /* Текст "Проверено" сверху, список антивирусов снизу */
    text-align: left;       /* Текст внутри блока выровнен по левому краю (выглядит аккуратнее) */
}

.security-check strong {
    text-transform: uppercase;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.small-detail {
    font-size: 0.75rem;
    color: #8fa;
    opacity: 0.8;
    margin-top: 2px;
}

/* --- Адаптация для мобильных (ОБЯЗАТЕЛЬНО) --- */
@media (max-width: 480px) {
    .security-check {
        width: 100%;       /* На телефоне на всю ширину */
        min-width: auto;
        padding: 10px;
        margin-top: 20px;
    }
    
    .secure-text {
        text-align: center; /* На телефоне лучше по центру */
        align-items: center;
    }
    
    .secure-icon {
        margin-right: 8px;
    }
}

/* --- Блок преимуществ --- */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.feature-card {
    background: var(--cs-overlay);
    padding: 25px;
    border-radius: 2px;
    width: 320px;
    text-align: left;
    border: 1px solid #333;
    transition: border-color 0.3s, transform 0.3s;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: #333;
    transition: background 0.3s;
}

.feature-card:hover {
    border-color: var(--cs-yellow);
    transform: translateY(-5px);
}

.feature-card:hover::before {
    background: var(--cs-yellow);
}

.feature-card h3 {
    color: var(--cs-yellow);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #bbb;
}

/* --- Подвал (ВОТ ЭТОГО НЕ ХВАТАЛО) --- */
footer {
    text-align: center;
    padding: 30px;
    background: #0f0f0f;
    color: #555;
    font-size: 0.85rem;
    border-top: 2px solid #333;
    margin-top: auto;
}

/* Зеленая галочка в футере */
footer .safe-mark {
    color: #2ecc71;
    font-weight: bold;
    margin-left: 5px;
}

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2.8rem; }
    .btn-download { 
        width: 100%; 
        padding: 15px; 
        font-size: 1.4rem;
    }
    .security-check {
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .feature-card { width: 100%; }
}

/* --- Стили для заголовка H2 --- */
.section-title {
    width: 100%;
    text-align: center;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 35px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 1px;
    line-height: 1.3;
}

.section-title .highlight {
    color: var(--cs-yellow);
    white-space: nowrap; /* Чтобы "CS 1.6" не разрывалось при переносе */
}

/* Адаптация H2 для телефонов */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
        padding: 0 10px;
    }
    .section-title .highlight {
        white-space: normal; /* На телефонах разрешаем перенос, иначе не влезет */
    }
}