@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..600&family=Roboto:ital,wght@0,100..600&display=swap');

/* Глобальные переменные */
:root {
    --global-bg-color: #f0f2f5;
    /* Глобальный серый фон */
    --content-bg-color: #ffffff;
    /* Белый фон для контентной части */
    --content-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --border-radius: 20px;
    --heading-margin-top: 50px;
    /* Тень по бокам */
}

/* Глобальный box-sizing для предсказуемости */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
/* Общие стили для body */
body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background-color: var(--global-bg-color);
}

html {
    scroll-padding-top: 70px; /* Отступ для якорей, чтобы их не перекрывало липкое меню */
    scroll-behavior: smooth; /* Плавная прокрутка по якорям */
}

/* Предотвращаем горизонтальный скролл на мобильных */
@media (max-width: 767px) {
    body { overflow-x: hidden; }
}

/* Глобальный контейнер для контента */
.container-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--content-bg-color);
    /* border-radius: var(--border-radius); */
}

/* Стили для header */
header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    padding: 20px 30px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    /* Убираем скругление отсюда, оно будет на контейнере */
    box-shadow: var(--content-shadow);
    color: #fff;
}

/* Стили для шапки сайта */
.site-header {
    display: flex;
    align-items: center;
    flex-direction: column;
    /* Элементы друг под другом */
}

.logo img {
    width: 150px;
    height: auto;
}

.phone a {
    color: #fff;
    font-size: 1.7em;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap; /* Запрещаем перенос строки */
}

.phone a::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='25' viewBox='0 96 960 960' width='25' fill='%23ffffff'%3E%3Cpath d='M798 896q-125 0-247-54.5T339.5 689Q229 578 174.5 456T120 209q0-14 9-23t23-9h140q13 0 22 8.5t11 21.5l21 103q2 11-1 20t-11 15l-69 69q29 53 69.5 98.5T430 630q45 40 91 69.5T619 769l69-69q6-6 15-11t20-1l103 21q13 2 21.5 11t8.5 22v140q0 14-9 23t-23 9Z'/%3E%3C/svg%3E");
    display: inline-block;
    transform: translateY(4px);
}

.phone div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.address {
    font-size: 1.3em;
    color: #e9ecef;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.address p {
    margin: 0;
    font-size: 0.8em;
    color: #fff9d9;
}

/* Планшетная версия (2 колонки) */
/* Логотип и адрес в одной строке, телефон в другой */
@media (min-width: 768px) {
    .site-header {
        flex-flow: row wrap;
        /* Разрешаем перенос элементов */
        justify-content: space-between;
    }

    .logo {
        flex-basis: 20%;
        text-align: left;
    }

    .address {
        flex-basis: 80%;
        text-align: right;
    }

    .phone {
        flex-basis: 100%;
        text-align: center;
    }
}

/* Мобильная версия - уменьшаем телефон и добавляем отступ */
@media (max-width: 767px) {
    header {
        padding-bottom: 30px;
    }

    .phone {
        margin-top: 15px; /* Добавляем отступ сверху */
    }
    .phone a {
        font-size: 1.6em; /* Уменьшаем размер шрифта */
    }

    .logo img {
        width: 120px; /* Уменьшаем логотип на мобильных */
    }
}

/* Десктопная версия (3 колонки) */
@media (min-width: 1024px) {
    .site-header {
        flex-wrap: nowrap;
        /* Запрещаем перенос */
    }

    .header-item {
        flex-grow: 1;
        flex-shrink: 1;
    }

    .header-item.logo {
        flex-basis: 20%;
        flex-grow: 0;
        /* Не растягивать больше базовой ширины */
    }

    .header-item.address {
        flex-basis: 50%;
        text-align: center;
    }

    .header-item.phone {
        flex-basis: 30%;
        text-align: right;
    }
}

/* --- Стили для главного меню навигации --- */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #e0e0e0;
}

.main-nav .container {
    /* Добавляем position: relative, чтобы абсолютно позиционированное меню 
    на мобильных устройствах было относительно этого контейнера */
    position: relative;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-nav a {
    display: block;
    padding: 18px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #007bff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #007bff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* --- Стили для "бургер-меню" --- */
.nav-toggle {
    display: none; /* Скрыто по умолчанию на десктопе */
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-toggle-icon::before {
    top: -8px;
}

.nav-toggle-icon::after {
    top: 6px;
}

/* Анимация "бургера" в крестик */
.nav-open .nav-toggle-icon {
    background-color: transparent;
}

.nav-open .nav-toggle-icon::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-open .nav-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-close {
    display: none; /* Скрываем крестик по умолчанию на всех разрешениях */
}


/* --- Адаптивность для меню --- */
@media (max-width: 767px) {
    .nav-close {
        position: fixed;
        top: 20px;
        left: 20px;
        background: none;
        border: none;
        font-size: 2.5em;
        line-height: 1;
        color: #333;
        cursor: pointer;
        z-index: 1002; /* Выше чем меню */
    }

    .nav-toggle {
        display: block; /* Показываем бургер */
        position: fixed; /* Фиксируем относительно окна браузера */
        top: 20px;       /* Отступ сверху */
        left: 20px;      /* Отступ слева */
        background-color: #fff;
        border: 1px solid #007bff;
        cursor: pointer;
        padding: 15px 10px;
        z-index: 1000; /* Ниже чем крестик и меню */
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15); /* Добавим тень для видимости */
        transform: none; /* Сбрасываем transform, так как он больше не нужен */
    }

    /* Когда меню открыто, скрываем бургер и показываем крестик */
    body.nav-open .nav-toggle {
        display: none;
    }

    body.nav-open .nav-close {
        display: block;
    }

    .main-nav {
        position: static; /* Убираем sticky для мобильных */
        box-shadow: none;
    }

    .main-nav ul {
        display: none; /* Скрываем список по умолчанию */
        flex-direction: column;
        position: fixed; /* Фиксируем относительно окна */
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #fff;
        z-index: 1001; /* Выше чем бургер, но ниже крестика */
        gap: 0;
        justify-content: center;
        align-items: center;
    }

    body.nav-open .main-nav ul {
        display: flex; /* Показываем список при клике на бургер */
    }
}

/* --- Стили для секции с формой --- */
.top-title-form {
    /* Убираем фон отсюда, так как он теперь на body */
    margin-top: 20px;
    background-color: var(--content-bg-color);
    margin-top: 20px;
    /* Скрываем углы дочерних элементов, чтобы скругление было видно */
    /* Добавим отступ сверху, чтобы отделить от шапки */
}

.ttf-container {
    display: flex;
    position: relative;
    align-items: center;
    box-shadow: var(--content-shadow);
    /* box-shadow: var(--content-shadow); */
    border-bottom-left-radius: var(--border-radius);
    border-radius: var(--border-radius);
    justify-content: space-between;
    flex-wrap: wrap;
    /* Для адаптивности */
    padding: 30px;
    gap: 30px;
    /* Пространство между элементами */
}

.ttf-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../res/bg/main-top.jpg') center/cover no-repeat;
    z-index: 0;
}

.ttf-title {
    flex: 1 1 500px;
    position: relative;
    /* Чтобы z-index сработал */
    /* Позволяет элементу расти и сжиматься, базовая ширина 500px */
}

.ttf-title h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 2.8em;
    /* text-transform: uppercase; */
    /* Убираем, чтобы текст был как в запросе */
    margin: 0;
    line-height: 1.2;
    color: #fff;
}

.price-highlight {
    background-color: #ffdd00;
    /* Желтый фон */
    color: #000;
    /* Черный текст */
    padding: 5px 15px;
    border-radius: 5px;
    margin-top: 10px;
    /* Отступ сверху */
    font-size: 0.8em;
    /* Немного уменьшим размер относительно основного заголовка */
}

.ttf-form {
    flex: 1 1 350px;
    position: relative;
    /* Базовая ширина 350px */
    text-align: center;
    padding: 25px;
}

.ttf-form form {
    display: flex;
    flex-direction: column;
}

.ttf-form input {
    margin-bottom: 15px;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.top-title-forms-error {
    color: #ffdd00;
    font-size: 0.9em;
    min-height: 1.2em; /* Резервируем место, чтобы форма не "прыгала" */
    text-align: left;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: linear-gradient(45deg, #0069d9, #004085);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- Стили для промо-баннера --- */
.promo-banner {
    background-color: var(--content-bg-color);
}

.promo-banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 10px 30px 30px 30px;
    color: #000;
}

.promo-text {
    flex: 1;
}

.promo-image img {
    max-width: 400px;
    height: auto;
    display: block;
}

.promo-banner h2 {
    font-weight: 400;
    font-size: 2.5em;
    margin-bottom: 0;
    line-height: 1.3;
}

.promo-subtitle {
    display: block;
    margin-top: 10px;
    font-size: 1.3em;
    font-weight: 300;
}

/* --- Адаптивность для промо-баннера --- */
@media (max-width: 768px) {
    .promo-banner-container {
        flex-direction: column;
        text-align: center;
    }

    .promo-banner h2 {
        font-size: 1.8em;
    }

    .ttf-form {
        padding: 0; /* Убираем padding на мобильных, чтобы кнопка растянулась */
    }

    .ttf-title h1 {
        font-size: 2.2em; /* Уменьшаем заголовок на мобильных */
    }

    .ttf-form .btn {
        width: 100%; /* Растягиваем кнопку на всю ширину */
        box-sizing: border-box; /* Чтобы padding не ломал ширину */
    }
}

/* Исправляем переполнение на очень маленьких экранах */
@media (max-width: 420px) {
    .promo-image img {
        width: 100%; /* Изображение не будет шире своего контейнера */
    }
}

/* --- Стили для CTA баннера --- */
.cta-banner {
    margin-top: 20px;
    padding: 0 30px;
    background-color: var(--content-bg-color);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 30px;
    background-color: #fff9d9;
    /* Желтоватый фон */
    border: 1px solid #72bdff;
    border-radius: var(--border-radius);
}

.cta-text {
    margin: 0;
    font-weight: 300;
    flex: 1;
    line-height: 1.6;
    font-size: 1.1em; /* Этот стиль теперь применяется к .cta-text */
}

.cta-btn {
    flex: 0.5;
    text-align: center;
}

/* --- Адаптивность для CTA баннера --- */
@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        gap: 20px; /* Добавим отступ между текстом и кнопкой на мобильных */
        text-align: center;
    }

    .cta-btn {
        width: 100%; /* Растягиваем контейнер кнопки на всю ширину */
        flex: auto; /* Сбрасываем правило flex от десктопной версии */
    }

    .cta-btn .btn {
        width: 100%;
        box-sizing: border-box; /* Чтобы padding не влиял на общую ширину */
    }
}

/* --- Стили для секции "О нас" --- */
.about-us {
    margin-top: 20px;
    background-color: var(--content-bg-color);
}

.about-container {
    padding: 0 30px 0;
    /* Убрали верхний отступ, оставили боковые и нижний */
}

.about-us h2,
.why-us h2,
.our-works h2 {
    font-weight: 600;
    font-size: 2.2em;
    text-align: left;
    margin-top: var(--heading-margin-top);
}

@media (max-width: 768px) {
    .about-us h2,
    .why-us h2,
    .our-works h2 {
        font-size: 1.8em;
    }
}

.about-description {
    text-align: left;
    line-height: 1.7;
    font-size: 1.1em;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.advantage-item {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: var(--border-radius);
    color: #fff;
    z-index: 1;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../res/bg/our-advantages/block-1.jpg') center/cover no-repeat;
    z-index: -1;
}

.advantage-item:nth-child(2)::before {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../res/bg/our-advantages/block-2.jpg') center/cover no-repeat;
}

.advantage-item:nth-child(3)::before {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../res/bg/our-advantages/block-3.jpg') center/cover no-repeat;
}

.advantage-item:nth-child(4)::before {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../res/bg/our-advantages/block-4.jpg') center/cover no-repeat;
}

.advantage-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #fff;
}

.advantage-item h4 i.icon {
    margin-right: 10px;
    /* Отступ между иконкой и текстом */
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Стили для секции "Наши работы" --- */
.our-works {
    margin-top: var(--heading-margin-top);
    padding: 0 30px 0;
    background-color: var(--content-bg-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.slider-wrapper {
    position: relative; /* Контейнер для позиционирования стрелок */
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background-color: #fff;
    color: #000;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.slider-arrow.disabled {
    pointer-events: none; /* Отключаем клики */
    opacity: 0.5; /* Делаем стрелку полупрозрачной для наглядности */
}

.slider-container {
    overflow-x: auto; /* Включаем горизонтальную прокрутку для свайпа на мобильных */
    -webkit-overflow-scrolling: touch;
    /* Плавная прокрутка на мобильных */
    -ms-overflow-style: none;  /* IE и Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Скрываем полосу прокрутки для Webkit-браузеров (Chrome, Safari) */
.slider-container::-webkit-scrollbar {
    display: none;
}

.slider {
    display: flex;
    gap: 20px;
    scroll-snap-type: x mandatory; /* Добавляем это свойство */
    /* Расстояние между слайдами */
    width: fit-content;
    transition: opacity 0.5s ease; /* Плавное появление */
    /* Чтобы контейнер был по ширине слайдов */
}

.slide img {
    width: 350px;
    /* Фиксированная ширина для каждого слайда */
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--content-shadow);
}

.slide {
    scroll-snap-align: start; /* Примагничиваем слайд к началу контейнера при скролле */
}

/* --- Адаптивность для слайдера --- */
@media (max-width: 1200px) {
    .slide img {
        width: calc((100vw - 100px) / 2);
        /* (ширина экрана - паддинги контейнера - гэп) / 2 */
    }
}

@media (max-width: 768px) {
    .slide img {
        width: calc((100vw - 100px) / 2);
        /* 80% ширины экрана минус половина отступа */
    }

    .slider {
        scroll-snap-type: x mandatory;
    }
}

@media (max-width: 500px) {
    .slide img {
        width: calc(100vw - 60px); /* 100% ширины экрана минус боковые отступы родителя (30px + 30px) */
    }

    .slider {
        scroll-snap-type: x mandatory;
    }
}

/* --- Стили для секции "Почему мы" --- */
.why-us {
    margin-top: var(--heading-margin-top);
    padding: 0 30px 30px;
    background-color: var(--content-bg-color);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.why-us-item {
    border: 3px solid #72bdff;
    border-radius: var(--border-radius);
    padding: 25px;
    transition: box-shadow 0.3s ease;
}

.why-us-item:hover {
    box-shadow: var(--content-shadow);
}

.why-us-item h4 {
    margin-top: 0;
    font-size: 1.5em;
    color: #0056b3;
    margin-bottom: 15px;
}

/* Адаптивность для "Почему мы" */
@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Стили для подвала --- */
footer .container {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #fff;
    /* Небольшой хак, чтобы margin дочерних элементов не выходил за пределы */
    box-shadow: var(--content-shadow);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px 30px;
    align-items: center;
}

.footer-item.logo {
    flex-shrink: 0;
    /* Чтобы логотип не сжимался */
}

.footer-phones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex-grow: 1;
    /* Занимает доступное пространство */
    text-align: center;
}

.footer-phones-title {
    font-size: 0.9em;
    color: #e9ecef;
}

.footer-phones a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4em;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
    text-align: right;
    line-height: 1.5;
}

.footer-legal a {
    color: #e9ecef;
    text-decoration: underline;
}

/* Адаптивность для контейнера */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

/* Адаптивность для подвала - Планшеты */
@media (max-width: 992px) {
    .footer-content {
        justify-content: center;
    }
    .footer-item.logo {
        flex-basis: 100%;
        text-align: center;
    }
    .footer-phones, .footer-legal {
        flex-basis: calc(50% - 15px); /* 50% минус половина gap */
    }
}

/* Адаптивность для подвала - Мобильные */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-phones, .footer-legal {
        flex-basis: auto; /* Сбрасываем flex-basis */
        text-align: center; /* Центрируем текст */
        align-items: center; /* Центрируем содержимое flex-контейнера */
    }
}

/* --- Стили для попапа --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    /* По умолчанию скрыт */
}

.popup-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    width: 90%;
    max-width: 450px;
    box-sizing: border-box;
    display: none;
    /* По умолчанию скрыт */
}

.popup-overlay.active,
.popup-modal.active {
    display: block;
}

.popup-close {
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
    border: none;
    font-size: 2.5em;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #333;
}

.popup-modal h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: 500;
}

.popup-modal p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

.popup-form {
    display: flex;
    flex-direction: column;
}

.popup-form input {
    margin-bottom: 15px;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup-form .top-title-forms-error {
    text-align: center;
    color: #d9534f; /* Красный цвет для ошибок в светлой теме */
}

/* Стили для политики в попапе */
.popup-policy {
    margin-top: 15px;
    text-align: center;
}

.popup-policy p {
    font-size: 0.8em;
    color: #888;
    margin: 0;
}

.popup-policy a {
    color: #888;
}

/* Стили для блока "Почему мы" */
.why-us-item {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Расстояние между иконкой и текстом */
}

.advantage-icon {
    flex-shrink: 0;
    /* Запрещаем иконке сжиматься */
}

.advantage-icon {
    width: 60px;
    /* Можете изменить это значение */
    height: auto;
}

.why-us-text {
    flex-grow: 1;
    /* Позволяем текстовому блоку занимать оставшееся пространство */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .why-us-item {
        flex-direction: column;
        /* Элементы в столбец */
        text-align: center;
        /* Текст по центру */
        gap: 10px;
        /* Уменьшаем расстояние */
    }
}

/* --- Стили для баннера с cookies --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); 
    width: 95%; /* Используем проценты для адаптивности */
    max-width: 1200px; /* Ограничиваем максимальную ширину */
    background-color: rgba(40, 40, 40, 0.82);
    color: #fff;
    z-index: 1100;
    /* Выше чем у попапа */
    padding: 15px 0;
    display: none;
    /* По умолчанию скрыт, будет показан через JS */
    font-size: 0.9em;
    backdrop-filter: blur(5px);
    /* Эффект размытия для современных браузеров */
    -webkit-backdrop-filter: blur(5px);
    border-radius: 15px;
}

.cookie-consent-banner .container {
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

.cookie-consent-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text {
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent-btn {
    padding: 10px 25px;
    font-size: 1em;
    flex-shrink: 0;
    /* Чтобы кнопка не сжималась */
}

/* Адаптивность для баннера */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-banner {
        width: 90%; /* Делаем баннер чуть уже на совсем маленьких экранах */
        bottom: 10px; /* Уменьшаем отступ снизу */
    }
}