/* Основные стили для body */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

/* Стили для header */
header {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Стили для навигации */
nav {
    background-color: #333;
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-section {
    display: flex;
    align-items: center;
}

.nav-left {
    width: 15%;
    justify-content: flex-start;
}

.nav-center {
    width: 70%;
    justify-content: center;
}

.nav-right {
    width: 15%;
    justify-content: flex-end;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ccc;
}

.nav-logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.language-switcher button {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher button:hover {
    background-color: #fff;
    color: #333;
}

/* Стили для бургер-меню */
.burger-menu {
    display: none; /* По умолчанию скрываем */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .burger-menu {
        display: flex; /* Показываем бургер-меню на мобильных */
    }

    .nav-links {
        display: none; /* Скрываем пункты меню */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Отступ от верхнего края */
        right: 20px;
        background-color: #333;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 1000; /* Убедимся, что меню поверх других элементов */
    }

    .nav-links.active {
        display: flex; /* Показываем пункты меню при активации */
    }

    .nav-links li {
        margin: 10px 0;
    }
}

/* Стили для main */
main {
    padding: 20px;
}

/* Стили для секций */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

/* Стили для карточек */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.card-title {
    font-size: 22px;
    margin: 15px 0 10px;
}

.card-text {
    font-size: 16px;
    line-height: 1.5;
    color: #666;
}

/* Стили для кнопок */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #555;
}

/* Стили для футера */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 200px;
}

.footer-section.contacts {
    width: 30%; /* Левый контейнер */
    text-align: left;
}

.footer-section.documents {
    width: 30%; /* Средний контейнер */
    text-align: left;
}

.footer-section.socials {
    width: 30%; /* Правый контейнер */
    text-align: left; /* Контент выровнен по левому краю */
    margin-left: auto; /* Прижимаем контейнер к правому краю */
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 10px;
}

.footer-section .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Соцсети в столбик */
    gap: 10px; /* Отступ между ссылками */
}

.footer-section .social-links li {
    margin: 0;
}

.footer-section .social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-section .social-links a:hover {
    color: #ccc;
}

.footer-section .pdf-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section .pdf-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.footer-section .pdf-buttons a:hover {
    background-color: #555;
}

.footer-section .copyright {
    font-size: 12px;
    color: #999;
    margin-top: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-section {
        width: 100%;
        margin-bottom: 20px;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #555;
        padding-bottom: 20px;
    }

    .footer-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-section.socials {
        text-align: left;
        margin-left: 0; /* На мобильных убираем прижатие к правому краю */
    }

    .pdf-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}