.header {
    position: relative !important; /* Принудительно ставим фиксацию */
    top: 0;
    left: 0;
    width: 100%; /* Обязательно, чтобы он не сжался по контенту */
    z-index: 10; /* Чтобы быть поверх всех картинок и модулей */
    background-color: #1C2431; /* Добавь фон, иначе он может стать прозрачным */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Чтобы он визуально отделялся от контента */
}
.top_navbar .navbar-left {
    box-shadow: none !important;
}
.top_navbar .navbar-left {
    background-color: transparent !important;
}
.top_navbar {
    min-height: 65px !important;
    padding-top: 0;
    padding-bottom: 0;
    background: #1C2431 !important;
    box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.12);
}
.top_navbar .navbar-toggler {
    margin-top: 27px!important;
    margin-bottom: 27px!important;
}
.navbar-left {
    top: -14px!important;
}
.logo-img {
    height: 55px; /* Размер ананаса ПК */
    width: auto;
}
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(to right, #A38C55 0%, #F5E4B7 30%, #CDB47B 50%, #F5E4B7 70%, #8A733F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 36px;
    line-height: 1;
    margin-bottom: 2px;
}

.brand-desc {
    font-family: 'Montserrat', sans-serif;
    color: #a0a0a0;
    font-size: 12px;
    font-weight: 300;
    text-transform: lowercase;
    letter-spacing: 3px;
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}
.logo-wrapper:hover, .brand-name:hover, .brand-desc:hover {
    text-decoration: none;
}

/* Робимо випадаюче меню широким */
.mega-menu-content {
    min-width: 500px !important;
    width: max-content !important;
    left: 0 !important;
    right: auto !important;
    padding: 20px 25px !important;
    border-top: 3px solid #A38C55;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.country-item {
    display: flex !important;
    align-items: center;
    padding: 8px 15px !important;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-transform: uppercase;
    transition: 0.3s;
}

.country-item:hover {
    background-color: #f8f9fa !important;
    color: #A38C55 !important;
}

.country-item img {
    width: 24px;
    height: auto;
    margin-right: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.top_navbar #navbarCollapse .nav-item {
    position: relative !important;
}

.top_navbar #navbarCollapse .nav-item:not(:first-child):before {
    display: none !important;
}

/* === КНОПКА В ШАПКЕ: РОЗРАХУВАТИ ТУР === */
.btn-calc-tour {
    background: linear-gradient(to right, #E2C275, #A38C55) !important;
    color: #111 !important;
    border-radius: 30px;
    padding: 6px 20px !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 15px;
    animation: pulse-gold-btn 2s infinite;
    transition: transform 0.3s ease, background 0.3s ease;
}
.btn-calc-tour:hover {
    transform: scale(1.05);
    color: #000 !important;
    background: linear-gradient(to right, #F5E4B7, #CDB47B) !important;
}
@keyframes pulse-gold-btn {
    0% { box-shadow: 0 0 0 0 rgba(163, 140, 85, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(163, 140, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(163, 140, 85, 0); }
}

.top_navbar #navbarCollapse .nav-item.align-self-center {
    display: flex;
    align-items: center;
}

/* === ПРЕМИУМ СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА === */
.premium-modal {
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid #A38C55;
    border-radius: 10px;
}
.premium-modal .modal-header {
    border-bottom: 1px solid #A38C55;
    background: linear-gradient(to right, #0E0E0E, #1a1a1a);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.premium-modal .modal-title {
    color: #E2C275;
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: bold;
}
.premium-modal .close {
    color: #E2C275;
    text-shadow: none;
    opacity: 0.8;
}
.premium-modal .close:hover {
    opacity: 1;
    color: #fff;
}
.premium-modal .modal-footer {
    border-top: 1px solid #333;
}
.premium-modal .form-control {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px;
}
.premium-modal .form-control:focus {
    border-color: #A38C55;
    box-shadow: 0 0 5px rgba(163, 140, 85, 0.5);
    background-color: #222;
}
.premium-modal .col-form-label {
    color: #CDB47B;
    font-size: 13px;
    font-weight: 500;
}
.premium-modal .btn-secondary {
    background-color: #333;
    border-color: #444;
    color: #ccc;
}
.premium-modal .btn-primary {
    background: linear-gradient(to right, #E2C275, #A38C55);
    border: none;
    color: #111;
    font-weight: bold;
}
.premium-modal .btn-primary:hover {
    background: linear-gradient(to right, #F5E4B7, #CDB47B);
    color: #000;
}
/* Стили для телефона в мобильной шапке */
.mobile-phone-link {
    color: #CDB47B; /* Золотой цвет, как у текста логотипа */
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px; /* Отступ между иконкой и цифрами */
    white-space: nowrap; /* Запрещаем перенос на новую строку */
    transition: color 0.3s;
}
.mobile-phone-link i {
    font-size: 12px;

}
.mobile-phone-link:hover {
    color: #F5E4B7; /* Светлеет при нажатии */
}

/* Защита для очень узких экранов (например, iPhone SE) */
@media (max-width: 370px) {
    .mobile-phone-link .phone-text {
        display: none; /* Прячем цифры, оставляем только иконку трубки, чтобы не сломать шапку */
    }
    .mobile-btn-style {
        padding: 6px 10px !important; /* Чуть сужаем кнопку */
    }
}

/* === МОБИЛЬНАЯ ВЕРСИЯ (Адаптация) === */
@media (max-width: 991px) {
    .header {
        z-index: 0 !important;
    }
    .top_navbar {
        min-height: 80px !important;
        height: auto !important;
    }
    .navbar-left {
        top: 12px !important;
    }
    .top_navbar .navbar-left {
        padding: 5px 0px !important;
    }

    /* Уменьшаем логотип и шрифты для телефона */
    .logo-img {
        height: 45px !important; /* Уменьшили ананас */
    }
    .brand-name {
        font-size: 22px !important; /* Уменьшили название */
        margin-bottom: 0;
    }
    .brand-desc {
        font-size: 9px !important; /* Уменьшили подпись */
        letter-spacing: 1px !important;
    }
    .logo-wrapper {
        gap: 10px; /* Уменьшили отступ между лого и текстом */
    }

    /* Кнопка на мобильном (возле бургера) */
    .mobile-cta-btn {
        display: flex;
        flex-direction: row ; /* Ставимо елементи один під одним */
        align-items: flex-end; /* Притискаємо їх до правого краю (до бургера) */
        justify-content: center;
        /* Відступ від іконки меню */
        gap: 20px; /* Акуратна відстань між телефоном і кнопкою */

    }



    /* === БЕЛАЯ ИКОНКА ТЕЛЕФОНА === */
    .mobile-phone-icon {
        color: #ffffff !important; /* Чисто белый цвет */
        font-size: 25px; /* Размер иконки */
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        /* Запускаем анимацию покачивания (2.5 секунды на весь цикл) */
        animation: ring-phone 4.5s infinite ease-in-out;
        transition: color 0.3s ease;
        margin-bottom: 4px;
    }


    /* === АНИМАЦИЯ ЗВОНКА (ПОКАЧИВАНИЕ) === */
    @keyframes ring-phone {
        0%, 100% { transform: rotate(0deg); } /* Состояние покоя */
        10% { transform: rotate(15deg); }  /* Наклон вправо */
        20% { transform: rotate(-10deg); } /* Наклон влево */
        30% { transform: rotate(15deg); }
        40% { transform: rotate(-10deg); }
        50% { transform: rotate(0deg); }   /* Возвращается на место и отдыхает половину времени */
    }

    /* Фіксуємо розміри кнопки для мобільного, щоб вона не розтягувалася */
    .mobile-btn-style {
        margin: 0 !important;
        padding: 5px 14px !important;
        font-size: 10px !important;
        line-height: 1.2;
    }

    .mobile-cta-btn .btn-calc-tour {
        font-size: 14px !important;
        padding: 10px 10px !important;
        margin-right: 15px !important;
    }

    .top_navbar .navbar-collapse {
        width: 100%;
    }
    .top_navbar .navbar-right {
        top: 23px !important;
    }
    .top_navbar .navbar-left {
        box-shadow: none !important;
    }

    .mega-menu-content {
        min-width: 100% !important;
        width: 100% !important;
        padding: 10px !important;
        border-top: none;
        box-shadow: none;
    }
    .mega-menu-content .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
    }
    .mega-menu-content .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 5px;
    }
    .country-item {
        font-size: 12px;
        padding: 8px 5px !important;
    }
    .country-item img {
        width: 20px;
        margin-right: 5px;
    }

    /* Флаг внизу мобильного меню */
    .mobile-flag-wrapper {
        margin-top: 15px;
        padding-left: 15px;
        padding-bottom: 20px;
        border-top: 1px solid #333;
        padding-top: 15px;
    }
    .mobile-flag-wrapper .dropdown-menu {
        position: static !important;
        float: none;
        background-color: transparent !important;
        border: none;
        padding-top: 5px;
    }
    .mobile-flag-wrapper .dropdown-item {
        color: #ccc;
        padding-left: 0;
    }
    .mobile-flag-wrapper .dropdown-item.active {
        background-color: transparent;
        color: #A38C55;
        font-weight: bold;
    }
}
/* === ПРЕМИУМ ФУТЕР === */
.premium-footer {
    background: #0E0E0E; /* Темный фон, как в шапке */
    color: #a0a0a0;
    padding: 60px 0 20px;
    border-top: 1px solid #222;
    font-family: 'Montserrat', sans-serif;
}

/* Стили для текстового логотипа в футере */
.premium-footer .brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(to right, #A38C55 0%, #F5E4B7 30%, #CDB47B 50%, #F5E4B7 70%, #8A733F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 37px;
    line-height: 1;
    text-decoration: none;
    display: inline-block;
}

.premium-footer .footer-logo:hover {
    text-decoration: none;
}

.premium-footer .footer-desc {
    font-size: 13px;
    line-height: 1.6;
    padding-right: 20px;
}

/* Золотые заголовки колонок */
.premium-footer .footer-title {
    color: #E2C275;
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Списки ссылок и контактов */
.premium-footer .footer-links,
.premium-footer .footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-footer .footer-links li,
.premium-footer .footer-contacts li {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Иконки Font Awesome в контактах */
.premium-footer .footer-contacts i {
    color: #CDB47B; /* Золотые иконки */
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Ссылки */
.premium-footer a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.premium-footer a:hover {
    color: #F5E4B7; /* При наведении светлеют */
}

/* Линия копирайта в самом низу */
.premium-footer .footer-bottom {
    border-top: 1px solid #1a1a1a;
    margin-top: 40px;
    padding-top: 25px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.premium-footer .footer-bottom a {
    color: #888;
    text-decoration: underline;
}
.premium-footer .footer-bottom a:hover {
    color: #CDB47B;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .premium-footer {
        padding: 40px 0 15px;
        text-align: center; /* Центрируем текст на телефонах */
    }
    .premium-footer .footer-desc {
        padding-right: 0;
    }
    .premium-footer .footer-links li,
    .premium-footer .footer-contacts li {
        justify-content: center; /* Центрируем списки на телефонах */
    }
}
/* === КРУГЛЫЕ ФИКСИРОВАННЫЕ ИКОНКИ (Справа внизу) === */
.premium-fix-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Отступ между кружочками */
}

.premium-fix-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; /* Размер кружочка */
    height: 60px;
    border-radius: 50%;
    color: #fff !important; /* Белые иконки */
    font-size: 28px; /* Размер иконки */
    text-decoration: none;
    transition: all 0.3s ease;
    /* Тень, как в примере (image_15.png) */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

/* Эффект наведения (как в примере, image_15.png) */
.premium-fix-icons li a:hover {
    transform: translateY(-5px); /* Чуть всплывает */
    box-shadow: 0 8px 20px rgba(0,0,0,0.4); /* Тень становится больше */
}

/* === ЦВЕТА ИКОНОК === */

/* Telegram (Голубой) */
.premium-fix-icons .btn-telegram {
    background-color: #2ea6da !important; /* Официальный цвет Телеграма */
}

/* Телефон (Зеленый) */
.premium-fix-icons .btn-phone {
    background-color: #4caf50 !important; /* Стандартный зеленый для звонков */
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .premium-fix-icons {
        right: 45px;
        bottom: 15px;
        gap: 10px;
    }
    .premium-fix-icons li a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
/* === ПУЛЬСИРУЮЩИЕ КРУГЛЫЕ ИКОНКИ === */
.premium-fix-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff !important;
    font-size: 28px;
    text-decoration: none;
    position: relative; /* Нужно для позиционирования пульса */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

/* Создаем эффект пульсации через псевдоэлемент ::after */
.premium-fix-icons li a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1; /* Волна уходит под кнопку */
    opacity: 0.7;
    transition: all 0.4s;
    /* Анимация пульсации, похожая на вашу кнопку расчета */
    animation: pulse-icon 2s infinite;
}

/* Цвета пульсации для каждой кнопки */
.btn-telegram::after {
    background-color: #2ea6da;
}

.btn-phone::after {
    background-color: #4caf50;
}

/* Сама анимация пульса */
@keyframes pulse-icon {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.4); /* Волна расширяется */
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Остановка анимации при наведении, чтобы не мешала клику */
.premium-fix-icons li a:hover::after {
    animation: none;
    transform: scale(1);
    opacity: 0;
}

.premium-fix-icons li a:hover {
    transform: scale(1.1);
}
/* Специальные правки для узких экранов телефонов */
@media (max-width: 410px) {
    /* Уменьшаем отступ между телефоном и золотой кнопкой */
    .mobile-cta-btn {
        gap: 12px !important; /* Было 25px, уменьшаем до 12px */
        margin-right: 15px !important;
    }

    /* Уменьшаем саму золотую кнопку, чтобы она не "выталкивала" бургер */
    .mobile-cta-btn .btn-calc-tour {
        padding: 8px 10px !important;
        font-size: 10px !important;
        margin-right: 5px !important;
    }
    /* Делаем иконку телефона чуть меньше */
    .mobile-phone-icon {
        font-size: 20px !important;
        margin-right: 10px;
    }
    /* Если логотип все еще слишком большой и прилипает к краю */
    .logo-wrapper {
        gap: 6px !important;
    }

    .brand-name {
        font-size: 22px !important;
    }
}
