/* Новые стили для FAQ страницы */
header {
    background-color: #007BFF;
    height: 323px;
    position: relative;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}


#logo-text {
    font-size: 24px; /* или другой размер шрифта, который вам подходит */
    font-weight: bold;
    color: white;
    vertical-align: middle; /* чтобы выровнять по вертикали с другими элементами на этой линии, например, с "Home" */
    margin-right: 20px; /* добавьте отступ справа, если требуется */
    position: absolute;
    top: 60px;
    left: 500px;
}

#home {
    position: absolute;
    top: 60px;
    left: calc(500px + 750px);
    color: white;
    text-decoration: none;
}

header h1 {
    color: white;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#faq {
    width: 912px;
    margin: 20px auto;
}


.faq-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    margin-bottom: 15px;
}

.sub-faq {
    display: block; /* теперь список будет виден всегда */
    padding-left: 20px; 
    list-style: none; 
}

#faq > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sub-faq a {
    text-decoration: none; /* Убираем подчеркивание у ссылок */
    color: #007BFF; /* Цвет текста ссылки */
    transition: color 0.3s; /* Добавляем плавное изменение цвета при наведении */
}

.sub-faq a:hover {
    color: #0056b3; /* Цвет текста ссылки при наведении */
}

.sub-faq li {
    height: 81px;
    display: flex;
    align-items: center; /* центрируем текст по вертикали */
    border-bottom: 1px solid #e0e0e0; /* граница между элементами списка */
}

.sub-faq li:last-child {
    border-bottom: none; /* убираем границу у последнего элемента, чтобы избежать двойной границы */
}

.sub-faq a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 81px; /* высота строки соответствует высоте блока */
    padding-left: 15px; /* отступ слева для текста */
}



/* Делаем задний фон белым */
body {
    background-color: #ffffff;
    font-family: Arial, sans-serif; /* Добавлено для унификации шрифта, можете заменить на свой */
}
.faq-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    word-wrap: break-word; /* Для переноса текста */
    padding: 10px; /* Добавить отступы по краям, если нужно */
}

.faq-content h1, ol {
    margin-top: 0; /* Убираем верхний отступ, чтобы заголовок не смещался */
}
.faq-content li {
    list-style-type: none;
    margin-top: 3px;
}
.faq-content ol {
    word-wrap: break-word;
}
.video-container {
    display: flex;
    flex-direction: column;  /* ориентация элементов вертикально */
    align-items: center;  /* центрирование по вертикали */
    justify-content: center; /* центрирование по горизонтали */
    background-color: rgba(255, 255, 255, 0.1);
     widows: 500px;
     height: 500px;
}

    .faq-section section {
        margin-top: 20px;
        padding-top: 20px;
    }


        .spoiler-content {
            display: none;
            padding: 10px;
            border: 1px solid #ddd;
            margin-top: 5px;
        }





    /* Медиазапросы для адаптации стилей */
@media screen and (max-width: 768px) {
    /* Пример адаптации для маленьких экранов */
    #logo-text {
        font-size: 20px;
        top: 60px;
        left: 250px;
    }
    
    .faq-item {
        padding: 10px;
    }
}