* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    width: 800px;
    margin: 0 auto;         
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background-color:#E1F7FF;
p, li, .text-block {
    font-size: 18px;        
    line-height: 1.6;
}

p {
    margin-bottom: 20px;
}
h1, h2, h3, h4, h5, h6 {
    margin-top: 20px;     
    margin-bottom: 15px;    
} 
nav {
    background-color: #8EC0FF;
    padding: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 10px;
    font-size: 18px;
    margin-bottom: 50px;}
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav ul li {
    position: relative;
    margin-right: 20px;
}
nav ul li a {
    color:#1A293C;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}
nav a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 5px;
}

nav a:hover {
    background-color: #6CA6FF;
    transform: translateY(-2px);
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 1000;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    margin: 0;
}

nav ul li ul a {
    color: #333;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 0;
    transform: none;
}

nav ul li ul a:hover {
    background-color: #8EC0FF;
    color: white;
}

nav ul li:has(ul) > a::after {
    content: " ▼";
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    nav ul li ul {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }
    
    nav ul li ul a {
        background-color: #f0f0f0;
        margin: 2px 0;
    }
}
.content-block {
    display: flex;
    gap: 40px;                  
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;      
}

.text-block {
    flex: 1;                       
}

.image-block {
    flex: 1;                  
}

.image-block img {
    width: 100%;                   
    height: auto;                  
    aspect-ratio: 1 / 1;           
    object-fit: cover;             
    display: block;
    border-radius: 10px;       
}
.small-note {
    font-size: 12px;
}
.image {
    text-align: center;      
    margin: 30px auto;       
    max-width: 1200px;
    width: 80%;       
}

.image img {
    max-width: 100%;
    width: 100%;         
    height: auto;
    display: inline-block;   
    
}
.image figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

.image-group {
    display: inline-block;
    width: 45%;          
    margin-right: 5%;
    vertical-align: top;
    box-sizing: border-box; 
}


.image-group img {
    max-width: 100%;   
    height: auto;      
    display: block;    
}

.image-group:last-child {
    margin-right: 0;
}
        .image-row {
            display: grid;
            grid-template-columns: 1fr 1fr;  /* Две равные колонки */
            gap: 30px;                         /* Отступ между картинками */
            max-width: 1000px;                  /* Ширина контейнера */
            margin: 30px 0;
        }
        
        .image-card {
            text-align: center;
        }
        
        .image-card img {
            width: 100%;              /* Картинка на всю ширину ячейки */
            height: auto;
            display: block;
.text-block p:last-of-type {
    margin-bottom: 40px; 
}
        .image-card .caption {
            margin-top: 10px;
            font-size: 16px;           /* Крупный текст */
            color: #000;                /* Черный цвет */
            font-weight: normal;        /* Обычный (не жирный) */
            font-style: normal;         /* Прямой (не курсив) */
        }

.text-block p:last-of-type {
    margin-bottom: 40px; }
