/* --- Базовые переменные и сброс стилей --- */

:root {
    --primary-color: #277A38;
    --text-main: #333B35;
    --bg-color: #E1E8E2;
    --white: #FFFFFF;
    --shadow: 0px 4px 20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}


/* Ограничитель ширины (чтобы сайт не разъезжался на огромных мониторах) */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}


/* --- Шапка (Header) --- */

.header {
    /* Твой точный градиент из Figma (добавлена прозрачность 90% для эффекта стекла) */
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 24.62%, rgba(153, 153, 153, 0.9) 111.52%);
    backdrop-filter: blur(3.8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    /* Увеличил внутренние отступы шапки */
}

.main-logo {
    height: 110px;
    /* Еще чуть больше для солидности */
    width: auto;
    object-fit: contain;
    margin-right: 15px;
    /* Отступ от картинки до текста */
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    /* Размер как в Figma */
    font-weight: 600;
    line-height: 1.1;
    color: rgba(0, 0, 0, 0.55);
}

.main-nav {
    display: flex;
    /* Твое расстояние между пунктами меню */
    gap: 62px;
    align-items: center;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 22px;
    /* Добавляем воздух вокруг текста для фона */
    border-radius: 30px;
    /* Делаем те самые круглые края (полукруг по бокам) */
    transition: all 0.3s ease;
}

.nav-link.active {
    background-color: var(--white);
    /* Плотный белый фон */
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Легкая тень, чтобы кнопка "выпирала" */
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.7);
    /* Мягкий белый фон */
    color: var(--primary-color);
    /* Текст становится фирменным зеленым */
}

.nav-link.active::after {
    display: none;
}


/* --- Главный экран (Hero) --- */

.hero {
    position: relative;
    height: 900px;
    /* Сделал на 100px больше, чтобы трактор смотрелся масштабнее */
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('img/unnamed.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-title {
    /* Твои точные значения из Figma */
    color: #FFF;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 96px;
    font-weight: 700;
    line-height: 120px;
    margin-bottom: 20px;
    /* Оставляем отступ до подзаголовка */
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
}


/* Анимация стрелки */

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    width: 40px;
    height: 40px;
    border-bottom: 5px solid white;
    border-right: 5px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-20px) rotate(45deg);
    }
    60% {
        transform: translateY(-10px) rotate(45deg);
    }
}


/* --- Структура предприятия --- */

.structure {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 60px;
}


/* --- Слайдер (Карусель) --- */

.structure-grid {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    /* Плавная доводка до центра */
    scrollbar-width: none;
    padding-bottom: 20px;
    padding-left: max(20px, calc(50% - 500px));
    padding-right: max(20px, calc(50% - 500px));
    cursor: grab;
    user-select: none;
    /* Убираем торможение при скролле пальцем/тачпадом */
    -webkit-overflow-scrolling: touch;
}

.structure-grid::-webkit-scrollbar {
    display: none;
}

.structure-card {
    /* Фиксируем ширину карточки как в Figma (огромная!) */
    flex: 0 0 1000px;
    height: 500px;
    /* Указываем, что карточка должна "примагничиваться" ровно по центру экрана */
    scroll-snap-align: center;
    background-color: #9FBCA3;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.structure-card:hover {
    transform: scale(1.02);
}


/* --- Умная шапка (скрывается при скролле) --- */

.header {
    transition: transform 0.3s ease, background 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%);
    /* Уводит шапку за верхний край экрана */
}


/* --- Кнопка Бургера (на компьютере скрыта) --- */

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Чтобы кнопка всегда была поверх выезжающего меню */
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}


/* Телефоны (до 768px) */

@media (max-width: 768px) {
    /* 1. Возвращаем место на экране (уменьшаем боковые отступы) */
    .container {
        padding: 0 15px;
    }
    /* 2. Делаем шапку компактной */
    .header-container {
        padding: 15px;
    }
    .logo-group {
        gap: 10px;
        text-align: center;
        justify-content: center;
    }
    .main-logo {
        height: 60px;
        margin: 0 auto;
    }
    /* Лого поменьше */
    .logo-text {
        font-size: 18px;
    }
    /* Текст сильно уменьшаем */
    /* 3. Меню выстраиваем аккуратно */
    .main-nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .nav-link {
        font-size: 14px;
    }
    /* 4. Уменьшаем гигантского трактора */
    .hero {
        height: 500px;
    }
    .hero-title {
        font-size: 40px;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 20px;
    }
    /* 5. Карусель */
    .structure-card {
        flex: 0 0 85vw;
        height: 350px;
    }
    .card-overlay {
        font-size: 28px;
    }
    /* 6. Ремонтируем новости (убираем гигантские внутренние отступы) */
    .card-white {
        padding: 20px;
    }
    .news-item {
        flex-direction: column;
        gap: 15px;
    }
    /* Картинка теперь резиновая и занимает 100% доступной ширины */
    .news-img {
        width: 100%;
        height: 220px;
        /* КРИТИЧНО ВАЖНО: задаем жесткую высоту блоку */
        background-size: cover;
        background-position: center;
        border-radius: 8px 8px 0 0;
    }
    .news-img-placeholder {
        width: 100%;
        height: 200px;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    @media (max-width: 768px) {
        /* Фикс главного экрана */
        .hero-section,
        .main-screen {
            height: auto !important;
            min-height: 100vh;
            padding-top: 80px;
            /* Отступ под шапку */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        /* Исправление выпадающего меню */
        .nav-menu {
            display: none;
            /* Скрыто по умолчанию */
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            background: #2c3e50;
            flex-direction: column;
            padding: 20px 0;
            z-index: 1000;
        }
        .nav-menu.active {
            display: flex;
            /* Показываем при клике */
        }
        .nav-item {
            width: 100%;
            text-align: center;
            padding: 15px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        /* Уведомление о куки — теперь всегда сверху */
        .cookie-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            width: 100%;
            border-radius: 0;
            padding: 20px;
            box-sizing: border-box;
        }
    }
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(125, 120, 120, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}


/* --- Новости и Сайдбар --- */

.content-section {
    padding-bottom: 80px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.card-white {
    background: #FFF;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
    border-radius: 16px;
    /* Оставляем наше скругление для красоты */
    padding: 40px;
    /* И внутренние отступы, чтобы текст не лип к краям */
}

.column-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-item {
    display: flex;
    gap: 30px;
}

.news-img-placeholder {
    width: 300px;
    height: 180px;
    background: #4D4B4B;
    /* Твой точный цвет из Figma */
    border-radius: 8px;
    flex-shrink: 0;
}

.news-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.news-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.news-desc {
    color: rgba(85, 85, 85, 0.88);
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    /* Исправил с center на left для аккуратности чтения */
    margin-bottom: 15px;
}

.news-link {
    font-size: 14px;
    text-decoration: underline;
    font-weight: 500;
}

.news-link:hover {
    color: var(--primary-color);
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.social-placeholder {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}


/* --- ПОДВАЛ (FOOTER) --- */

.footer {
    background: linear-gradient(90deg, #FFF 9.94%, #999 111.05%);
    padding: 60px 0 30px;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.footer-company-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
}

.footer-info p {
    margin-bottom: 5px;
}

.footer-nav a {
    text-decoration: underline;
    margin-bottom: 10px;
    display: inline-block;
    font-size: 14px;
}

.footer-nav a:hover,
.contacts-col a:hover {
    color: var(--primary-color);
}


/* Класс для активной ссылки (делает её жирной и без подчеркивания) */

.footer-nav a.active {
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.contacts-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Тот самый большой отступ между двумя блоками */
    /* Твои данные из Figma */
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Небольшой отступ между строчками текста */
}

.contact-block strong {
    font-weight: 700;
}

.contact-block a {
    /* Точное подчеркивание из твоей Figma */
    color: #000;
    text-decoration-line: underline;
    text-decoration-style: solid;
    transition: color 0.3s ease;
}

.contact-block a:hover {
    color: var(--primary-color);
}

.mt-20 {
    margin-top: 20px;
}

.copyright-border {
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    color: #000;
    font-size: 14px;
}


/* =========================================
   АДАПТИВНОСТЬ (Мобильные устройства и планшеты)
   ========================================= */


/* Планшеты и небольшие экраны (до 1024px) */


/* Телефоны (до 768px) */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    /* Шапка: логотип слева, бургер справа */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px;
    }
    .logo-group {
        gap: 10px;
        text-align: left;
    }
    .main-logo {
        height: 45px;
        margin: 0;
    }
    .logo-text {
        font-size: 14px;
    }
    /* Показываем бургер */
    .burger-menu {
        display: flex;
    }
    /* Меню: делаем выезжающей панелью справа */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Изначально спрятано за правым краем экрана */
        width: 250px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        /* Красивая анимация выезда */
        gap: 30px;
        z-index: 1000;
    }
    /* Класс для открытого меню */
    .main-nav.open {
        right: 0;
    }
    /* Анимация бургера (превращается в крестик при клике) */
    .burger-menu.open span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .burger-menu.open span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.open span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
    /* Прочие мобильные стили... */
    .hero {
        height: 500px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-subtitle {
        font-size: 20px;
    }
    .structure-card {
        flex: 0 0 85vw;
        height: 350px;
    }
    .card-white {
        padding: 20px;
    }
    .news-item {
        flex-direction: column;
        gap: 15px;
    }
    .news-img,
    .news-img-placeholder {
        width: 100%;
        height: 200px;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    /* --- ИСПРАВЛЕНИЕ СЕТКИ ДЛЯ МОБИЛЬНЫХ --- */
    /* Главная страница: Новости и сайдбар друг под друга */
    .content-grid {
        grid-template-columns: 1fr;
    }
    /* Подвал: выстраиваем в одну колонку и ЦЕНТРИРУЕМ всё */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        /* Центрируем весь текст */
    }
    .footer-col {
        align-items: center;
        /* Центрируем содержимое колонок */
    }
    /* Логотип и название предприятия */
    .footer-logo-block {
        flex-direction: column;
        align-items: center;
        /* Центрируем картинку и текст относительно друг друга */
        gap: 15px;
    }
    .footer-logo-img {
        height: 80px;
    }
    /* Блоки контактов (чтобы внутренние строки тоже не разъезжались) */
    .contact-block {
        align-items: center;
        text-align: center;
    }
    /* Нижняя полоска с копирайтом */
    .copyright-border {
        text-align: center;
    }
}


/* --- УНИВЕРСАЛЬНЫЙ ЗАГОЛОВОК СТРАНИЦ --- */

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    /* Оптимальный, в меру крупный размер */
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
}


/* Сразу делаем его адаптивным для мобилок */

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
}


/* --- СТИЛИ ДЛЯ ОТКРЫТОЙ НОВОСТИ (article.html) --- */


/* Настройка главной картинки в новости */

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    /* Главная магия: фото вписывается целиком, не обрезаясь */
    background-color: #f4f4f4;
    /* Светло-серый фон по бокам, если фото узкое */
    border-radius: 12px;
    margin-bottom: 35px;
}


/* =========================================
   1. ИСПРАВЛЕНИЕ МИНИАТЮР НА ГЛАВНОЙ
   ========================================= */

.news-img {
    width: 100%;
    min-height: 220px;
    /* Жестко задаем высоту, чтобы картинка не схлопывалась! */
    background-color: #4D4B4B;
    /* Если фото нет, будет красивый темно-серый фон */
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}


/* Чтобы текст под картинкой на главной не прилипал */

.news-info {
    padding-top: 15px;
}


/* =========================================
   2. ИСПРАВЛЕНИЕ ФОТО И ДИЗАЙНА В article.html
   ========================================= */

.article-image {
    width: 100%;
    height: auto;
    /* Секрет идеальных пропорций: высота подстраивается сама! */
    max-height: 600px;
    /* Ограничитель, чтобы вертикальные фото не занимали весь экран */
    border-radius: 12px;
    margin-bottom: 30px;
    background: transparent;
    /* Убрали все белые/серые полосы */
}


/* Оформляем ссылку "Вернуться назад" красиво */

.article-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color, #277A38);
    /* Делаем зеленым под стиль сайта */
    font-weight: 600;
    text-decoration: none;
    padding: 8px 15px;
    background-color: rgba(39, 122, 56, 0.1);
    /* Легкий зеленый фон как у кнопки */
    border-radius: 6px;
    transition: all 0.3s ease;
}

.article-back-link:hover {
    background-color: var(--primary-color, #277A38);
    color: white;
}


/* Делаем дату аккуратной */

.article-date {
    color: #888;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}


/* =========================================
   ВЫПАДАЮЩЕЕ МЕНЮ (ДРОПДАУН) ДЛЯ "О НАС"
   ========================================= */

.dropdown {
    position: relative;
    display: inline-block;
}

.arrow-down {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white, #ffffff);
    min-width: 260px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
    padding: 10px 0;
}


/* Показываем меню при наведении */

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    color: var(--text-main, #333);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.dropdown-item:hover {
    background-color: #f4f7f5;
    color: var(--primary-color, #277A38);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Адаптив для телефонов (бургер-меню) */

@media (max-width: 768px) {
    .dropdown {
        display: block;
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #f9f9f9;
        margin-top: 5px;
        padding: 5px 0;
        border-radius: 6px;
    }
    .dropdown-item {
        padding: 10px 20px 10px 40px;
        /* Сдвигаем вправо, чтобы показать вложенность */
        font-size: 14px;
    }
}


/* =========================================
   БЛОК ИНФОРМАЦИОННЫХ РЕСУРСОВ
   ========================================= */

.info-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Расстояние между ссылками */
    margin-top: 15px;
}

.info-link {
    text-decoration: none;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    /* Подготовка к эффекту при наведении */
    line-height: 1.4;
}

.info-link:hover {
    color: var(--primary-color, #277A38);
    /* Текст становится фирменным зеленым */
    background-color: #eaf1eb;
    /* Легкий зеленый фон */
    border-left: 3px solid var(--primary-color, #277A38);
    /* Зеленая полоска слева */
    transform: translateX(3px);
    /* Слегка сдвигается вправо */
}


/* =========================================
   БАННЕР COOKIE
   ========================================= */

.cookie-banner {
    position: fixed;
    bottom: -100%;
    /* Спрятан за пределами экрана */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    /* Модный эффект размытия фона */
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 9999;
    /* Поверх всего сайта */
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
}

.cookie-banner.show {
    bottom: 0;
    /* Выезжает наверх */
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 15px 20px;
    gap: 30px;
}

.cookie-text {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.cookie-link {
    color: var(--primary-color, #277A38);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-btn {
    background-color: var(--primary-color, #277A38);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.cookie-btn:hover {
    background-color: #1e5c2a;
}


/* Адаптив для мобильных телефонов */

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-btn {
        width: 100%;
    }
}


/* Закрепляем уведомление о куки */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 5%;
    right: 5%;
    width: 90%;
    background: #2c3e50;
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    /* Чтобы было поверх всего */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cookie-banner button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}


/* Общие правки адаптивности для мобилок */

@media (max-width: 768px) {
    body {
        padding: 0 10px;
        /* Отступы текста от краев экрана */
    }
    .container,
    .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px !important;
    }
    /* Увеличиваем кнопки, чтобы по ним было удобно попадать пальцем */
    button,
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    /* Если есть шапка с меню, делаем его вертикальным */
    nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    /* Картинки не должны вылезать за границы экрана */
    img {
        max-width: 100%;
        height: auto;
    }
}


/* Полное исправление баннера куки */

.cookie-banner {
    position: fixed !important;
    /* Намертво прижимаем к экрану */
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    /* Белый фон для читаемости */
    color: #333333 !important;
    /* Темный текст */
    padding: 20px !important;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2) !important;
    z-index: 99999 !important;
    /* Выше всех элементов */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.cookie-banner button {
    background: #27ae60 !important;
    color: white !important;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
    max-width: 200px;
}


/* Красивый и ровный крестик */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg) !important;
    position: absolute;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
    /* Скрываем среднюю линию */
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg) !important;
    position: absolute;
}


/* Базовые стили для палочек, чтобы они были ровными */

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 5px auto;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed !important;
        /* Меню перекрывает контент */
        top: 60px;
        /* Высота вашей шапки */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        /* На весь экран */
        background: #2c3e50;
        display: none;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        z-index: 9998;
    }
    .nav-menu.active {
        display: flex !important;
    }
}


/* Хлебные крошки */

.breadcrumbs {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #27ae60;
}


/* Заголовок с линиями по бокам */

.page-title-lined {
    text-align: center;
    position: relative;
    font-size: 28px;
    color: #444;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.page-title-lined::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dcdcdc;
    z-index: 1;
}

.page-title-lined span {
    background: #9FBCA3;
    /* Если фон сайта другой, поменяй цвет здесь */
    padding: 0 20px;
    position: relative;
    z-index: 2;
}


/* Строгий текстовый список документов */

.text-document-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 60px;
    counter-reset: doc-counter;
}

.text-document-list li {
    counter-increment: doc-counter;
    margin-bottom: 18px;
    font-size: 16px;
}

.text-document-list li::before {
    content: counter(doc-counter) ". ";
    color: #e32b2b;
    /* Красный цвет для цифр */
    margin-right: 5px;
}

.text-document-list a {
    color: #222;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.text-document-list a:hover {
    color: #e32b2b;
}


/* --- Стили для выпадающего меню --- */

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 10px 0;
}


/* Показываем меню при наведении на родительский блок */

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: #333333;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #277A38;
}


/* Для мобильной версии (чтобы меню не улетало за экран) */

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        display: none;
        /* Скрыто по умолчанию в мобилке */
    }
    .dropdown:hover .dropdown-menu {
        display: none;
        /* Отключаем hover на мобилках, там работает клик скрипта */
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}