/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c41e1e;
    --dark-bg: #f5f5f5;       /* Светло-серый вместо черного */
    --darker-bg: #e8e8e8;     /* Еще светлее для акцентов */
    --light-bg: #ffffff;      /* Белый фон для основных секций */
    --text-dark: #1a1a1a;     /* Темный текст */
    --text-light: #1a1a1a;    /* Теперь тоже темный (для светлых фонов) */
    --border-color: #ccc;     /* Светлая граница */
    --transition: all 0.3s ease;
}

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

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


/* Основной контент на светлом фоне */
.main-content {
    background-color: #fff; /* Или var(--light-bg) */
}

/* Секции */
.section {
    background-color: #fff;
    padding: 60px 0;
}

.section-dark {
    background: var(--dark-bg);
    /*background: var(--dark-bg);*/
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--text-light);
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-red);
    text-align: center;
}*/

/* Intro Text */
.intro-text {
    max-width: 900px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 20px;
}


/* Header */
.header-hero-wrapper {
    background-image: linear-gradient(rgba(245, 245, 245, 0.5), rgba(245, 245, 245, 0.7)),
                      url('../img/backgrounds/Фон_ГорЕвразия.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.header {
    background: transparent; /* Убираем тёмный фон */
    color: var(--text-dark); /* Тёмный текст */
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Лёгкая граница */
}

.header-top {
    display: flex;
    justify-content: space-between;  /* Логотип слева, телефон справа */
    align-items: center;
    margin-bottom: 0;  /* Убрали нижний отступ */
    padding-bottom: 0;  /* Убрали нижнюю границу */
    border-bottom: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;  /* Уменьшили промежуток */
    font-size: 18px;  /* Чуть меньше шрифт */
}

.logo img {
    height: 40px;  /* Меньше логотип */
    width: auto;
}

.logo strong {
    color: var(--primary-red);
}
.header-contacts {
    text-align: right;  /* Выравнивание по правому краю */
}

.header-contacts span {
    font-size: 13px;  /* Меньше шрифт */
    color: var(--text-dark);
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: transparent; /* Убираем отдельный фон */
    color: var(--text-dark);
    padding: 80px 0;
    text-align: center;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--primary-red);
    text-shadow: none;
}
.hero-subtitle {
    color: var(--text-dark);
}

/* Accordion */
.accordion {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    background: var(--text-light);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: #333;  /* Темный заголовок для контраста */
    border: none;
    color: #fff;       /* Белый текст */
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #444;  /* Чуть светлее при наведении */
}

.accordion-header.active {
    background: var(--primary-red);
}

.accordion-icon {
    font-size: 28px;
    transition: var(--transition);
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    visibility: hidden;
    background: #fff;
    opacity: 0;
}

.accordion-content.active {
    max-height: 20000px;  /* Увеличили до 20000px для 17 слайдов */
    visibility: visible;
    opacity: 1;
}

.presentation-slides {
    padding: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.presentation-slides img {
    width: 100%;
    max-width: 100%;
    max-height: 800px;  /* Ограничение высоты */
    height: auto;
    display: block;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--primary-red);
    font-size: 18px;
}

/* Test Section */
.test-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;  /* Белый фон */
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);  /* Легкая тень */
}

.test-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: bold;
    color: var(--text-light);
}

.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="text"] {
    padding: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    font-size: 16px;
    border-radius: 3px;
}

.form-group small {
    font-size: 13px;
    opacity: 0.7;
}

.question-block {
    background: #f9f9f9;  /* Светло-серый фон вопроса */
    padding: 25px;
    border-left: 4px solid var(--primary-red);
    margin-bottom: 20px;
}

.question-block h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

.question-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.answer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 3px;
    margin-bottom: 8px;
}

.answer-option:hover {
    border-color: var(--primary-red);
    background: #f5f5f5;
}
.answer-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option span {
    color: var(--text-light);
    font-size: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    cursor: pointer;
}

.btn-submit {
    padding: 15px 40px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 3px;
    align-self: flex-start;
}

.btn-submit:hover {
    background: #a01818;
    transform: translateY(-2px);
}

.test-result {
    text-align: center;
    padding: 40px;
}

.test-result h2 {
    color: var(--primary-red);
    margin-bottom: 20px;
}

/* Contacts */
#contacts {
    background: var(--light-bg);  /* Светлый фон секции */
    color: var(--text-dark);      /* Тёмный текст */
    padding: 60px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card {
    background: #fff;             /* Белый фон карточки */
    padding: 30px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-red);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);  /* Лёгкая тень */
}

.contact-card h3 {
    color: var(--primary-red);
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-dark);      /* Тёмный текст */
}

.contact-info strong {
    color: var(--text-dark);      /* Тёмный текст для заголовков */
}

.contact-info a {
    color: var(--primary-red);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #333;  /* Темный футер для контраста */
    color: #fff;
    padding: 30px 0;
    border-top: 3px solid var(--primary-red);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p,
.footer-contacts p {
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .test-container {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .presentation-slides {
        padding: 10px;
    }

    .presentation-slides img {
        max-height: 600px;
        margin-bottom: 10px;
    }
}
/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .presentation-slides img {
        max-height: 400px;
    }
}
