/* --- ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ (Адаптировано под AUTOSVET.PRO) --- */
:root {
    --primary-color: #E0C94F; /* Фирменный золотисто-желтый с сайта */
    --bg-dark: #0A0A0A;       /* Глубокий черный фон */
    --bg-light: #1A1A1A;      /* Чуть более светлый фон для контраста */
    --text-color: #FFFFFF;    /* Основной текст - белый для контраста */
    --text-muted: #888;
    --border-color: #333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); }
p { margin-bottom: 20px; }

.text-center { text-align: center; }

/* --- СТИЛИ КНОПКИ --- */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000; /* ИЗМЕНЕНО: Черный текст для контраста на желтом фоне */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #c9b347; /* Более темный оттенок желтого при наведении */
    transform: translateY(-3px);
}

/* --- БЛОК 1: ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bgvid {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 20px auto 30px;
}

/* --- ОБЩИЕ СТИЛИ СЕКЦИЙ --- */
section {
    padding: 100px 0;
}
.section-dark { background-color: var(--bg-dark); }
.section-light { background-color: var(--bg-light); }
.section-cta { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(https://via.placeholder.com/1920x1080/121212/111111) center/cover no-repeat fixed; }


/* --- БЛОК 2: ПРОБЛЕМА И РЕШЕНИЕ --- */
.split-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.text-content, .video-content {
    flex: 1;
}

.text-content ul {
    list-style: none;
    padding-left: 0;
}

.text-content ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.text-content ul li::before {
    content: '×';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.5rem;
    font-weight: bold;
}

.solution-text {
    margin-top: 30px;
    font-size: 1.1rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

/* --- ВИДЕО-ОБЕРТКА ДЛЯ АДАПТИВНОСТИ --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- БЛОК 3: КЕЙС --- */
.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.video-case {
    max-width: 900px;
    margin: 0 auto 50px;
}

.case-details {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: left;
    margin-top: 50px;
}

.detail-item h3 {
    color: var(--primary-color);
}

/* --- БЛОК 4: ПРЕИМУЩЕСТВА --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.benefit-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-item h3 {
    color: #fff;
}

/* --- БЛОК 6: CTA ФОРМА --- */
.cta-form {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-form input {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-color);
    font-size: 1rem;
    width: 280px;
}

.cta-form input::placeholder {
    color: var(--text-muted);
}
.cta-form button {
    border: none;
    cursor: pointer;
}

/* --- FOOTER --- */
.footer {
    background: var(--bg-light);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }

    .split-container {
        flex-direction: column;
    }

    .text-content, .video-content {
        width: 100%;
    }

    .case-details {
        flex-direction: column;
    }
    
    .cta-form {
        flex-direction: column;
        align-items: center;
    }

    .cta-form input, .cta-form button {
        width: 100%;
        max-width: 400px;
    }
}
