html, body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    height: 100%; /* Высота всей страницы */
    display: flex;
    flex-direction: column; /* Элементы идут сверху вниз */
}

main {
    flex: 1; /* Занимает всю доступную высоту */
}

header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

section {
    padding: 20px;
    margin: 20px;
    background: white;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 10px;
    background: #2c3e50c6;
    color: white;
}

.language-switcher {
    position: absolute;
    left: 10px;
    top: 10px;
}

#lang-ru, #lang-kz {
    background-color: aqua;
    border: 0px;
    border-radius: 3px;
    text-align: center;
    text-wrap-style: bold;
    font-family: Arial, Helvetica, sans-serif;
}

.menu-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001; /* Чтобы кнопка оставалась поверх меню */
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -250px; /* Скрываем меню за границей экрана */
    width: 250px;
    height: 100%;
    background: rgba(44, 62, 80, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: right 0.3s ease-in-out; /* Добавляем плавность */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5); /* Тень для эффекта */
    z-index: 1000; /* Выше остальных элементов */
}

.sidebar-menu.active {
    right: 0; /* Выдвигаем меню */
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 2px;
    width: 100%;
    text-align: center;
}

.sidebar-menu ul li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(44, 62, 80, 0.7);
}

.sidebar-menu ul li a {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 15px;
    text-align: center;
    transition: background 0.3s;
    color: white;
    text-decoration: none;
}

.sidebar-menu ul li a:hover {
    background: rgba(31, 46, 61, 0.8);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.has-submenu.active .submenu {
    max-height: 500px; /* Достаточно большое значение для плавного открытия */
    opacity: 1;
    transform: translateY(0);
}

h2 {
    text-align: center;
}
.table-container {
    width: 100%;
    overflow-x: auto; /* Добавляем горизонтальную прокрутку при необходимости */
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Минимальная ширина, чтобы не сжималась слишком сильно */
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    white-space: nowrap; /* Чтобы текст не переносился */
}
th {
    background: #2c3e50;
    color: white;
}
tr:nth-child(even) {
    background: #f9f9f9;
}

.map-container {
    width: 100%; /* Чтобы занимал всю доступную ширину */
    max-width: 400px; /* Ограничиваем максимальную ширину */
    height: 300px; /* Задаем нужную высоту */
    margin: 0 auto; /* Центрируем */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Скругленные углы (по желанию) */
}

@media (max-width: 768px) {
    th, td {
        padding: 8px; /* Чуть меньше отступов на мобильных */
        font-size: 14px; /* Уменьшаем шрифт */
    }
}