/* Общие стили */
body {
    font-size: 100%;
    color: #F8F8FF;
    font-family: Arial, Verdana, "Times New Roman", sans-serif;
    background-color: #CEFFCE;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

/* Шапка */
.header {
    width: 100%;
}

.header-images {
    display: flex;
}

.header-images img {
    height: 20px;
}

.header-images img:first-child {
    width: 20px;
}

.header-images img:nth-child(2) {
    flex-grow: 1;
}

.header-images img:last-child {
    width: 20px;
}

.main-header {
    display: flex;
    flex-wrap: wrap;
}

.main-header img {
    width: 25%;
    height: auto;
}

/* Основное содержимое */
.content {
    padding: 0 20px;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Verdana, Arial, "Times New Roman", sans-serif;
    text-align: left;
    margin: 10px;
}

h1 {
    color: #990000;
    font-size: 125%;
    font-weight: bold;
    letter-spacing: 0.1em;
}

h2 {
    color: #990000;
    font-size: 100%;
    font-weight: bold;
}

h3 {
    color: #232224;
    font-size: 110%;
    font-weight: bold;
    letter-spacing: 0.05em;
}

h4 {
    color: red;
    font-size: 110%;
    font-weight: bold;
    text-transform: small-caps;
    letter-spacing: 0.1em;
}

h5 {
    color: #990000;
    font-size: 120%;
    font-weight: bold;
    letter-spacing: 0.1em;
}

h6 {
    color: #062000;
    font-size: 65%;
    font-weight: normal;
    text-align: justify;
    letter-spacing: 0;
}

p {
    font-family: Verdana, Arial, "Times New Roman", sans-serif;
    color: #062000;
    font-size: 100%;
    font-weight: normal;
    text-align: justify;
    margin: 10px;
    line-height: 1.4; /* Высота строки */
}

/* Ссылки */
a:link {
    text-decoration: underline;
    color: blue;
}

a:visited {
    text-decoration: underline;
    color: #4B0082;
}

a:active {
    text-decoration: underline;
    color: #4B0082;
}

a:hover {
    text-decoration: underline;
    color: #ff0000;
}

/* Блоки контента */
.intro-section {
    display: flex;
    flex-direction: column;
    margin: 15px 0 40px;
}

.text-image-section {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}

.three-column-section {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}

.questions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 15px 0;
    align-items: start; /* Выравниваем по верхнему краю */
}

.question-block {
    border: 1px solid #eee;
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Занимаем всю доступную высоту */
    }
.question-block p {
    flex-grow: 1; /* Текст занимает всё доступное пространство */
    margin-bottom: 15px; /* Отступ перед изображением */
}

.question-block img {
    align-self: flex-end; /* Выравниваем изображение по нижнему краю */
    margin-top: auto; /* Прижимаем изображение к низу */
    max-width: 100%;
    height: auto;
}

.image-container {
    text-align: center;
    margin: 15px 0;
}

.responsive-image {
    max-width: 100%;
    height: auto;
}

.hover-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

.center-text {
    text-align: center;
}

.quote {
    color: #000066;
    font-style: italic;
    font-weight: bold;
}

/* Видео */
.video-section {
    margin: 20px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    text-align: center;
    font-style: italic;
}

/* Подвал */
.footer {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 1px solid #333;
}

.divider {
    width: 97%;
    margin: 20px auto;
    border: 0;
    border-top: 1px solid #333;
}

.counter {
    text-align: center;
    margin: 20px 0;
}

/* Большое изображение */
#bigimage {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    padding: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#bigimage img {
    max-width: 90vw;
    max-height: 90vh;
}

/* Медиазапросы для адаптивности */
@media (min-width: 768px) {
    .intro-section {
        flex-direction: row;
    }
    
    .text-image-section {
        flex-direction: row;
    }
    
    .three-column-section {
        flex-direction: row;
    }
    
    .questions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .intro-text {
        width: 65%;
        padding-right: 20px;
    }
    
    .intro-image {
        width: 35%;
    }
    
    .text-content {
        width: 67%;
        padding-right: 20px;
    }
    
    .image-content {
        width: 33%;
    }
    
    .three-column-section .column-image {
        width: 25%;
    }
    
    .three-column-section .column-image:last-child {
        width: 20%;
    }
    
    .three-column-section .column-text {
        width: 55%;
        padding: 0 20px;
    }
    
    .footer-left {
        width: 50%;
    }
    
    .footer-right {
        width: 50%;
        text-align: right;
    }
}

@media (max-width: 767px) {
    .main-header img {
        width: 50%;
    }
    
    .intro-image, .image-content {
        text-align: center;
        margin-top: 20px;
    }
    
    .intro-image img, .image-content img {
        max-width: 100%;
        height: auto;
    }
    
    .three-column-section .column-image {
        text-align: center;
        margin: 10px 0;
    }
    
    .three-column-section .column-image img {
        max-width: 100%;
        height: auto;
    }
.questions-grid {
    gap: 20px 10px; /* Если предпочтительнее */
}

/* Настройка для мобильных */
@media (max-width: 767px) {
    .question-block {
        margin-bottom: 8px;
    }
    .questions-grid {
        gap: 15px 0;
    }
}