/* Подключение Google Fonts - Montserrat Alternates */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;500;600&display=swap');

/* Базовые стили для предотвращения горизонтальной прокрутки */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Основные переменные */
:root {
  --header-gradient-start: #0056b3;
  --header-gradient-end: #007bff;
  --text-white: #ffffff;
  --text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    --container-max-width: 1320px;
  --font-family: 'Montserrat Alternates', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --contact-bar-bg: #000000;
}

/* Средние десктопы: уплотняем хедер, чтобы всё помещалось */
@media (max-width: 1700px) and (min-width: 1200px) {
    :root {
        --container-max-width: 1480px;
    }

    .site-header {
        padding: 0 24px;
    }

    .main-nav {
        gap: 14px;
        margin: 0 20px;
    }

    .main-nav a,
    .nav-item {
        padding: 8px 10px;
        font-size: 0.95rem;
    }

    .header-price-button {
        padding: 6px 10px;
        font-size: 0.72rem;
    }
}

@media (max-width: 1600px) and (min-width: 1200px) {
    :root {
        --container-max-width: 1400px;
    }

    .main-nav {
        gap: 10px;
        margin: 0 12px;
    }

    .main-nav a,
    .nav-item {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .logo img {
        width: clamp(135px, 9.5vw, 175px);
    }

    .header-price-button {
        padding: 5px 8px;
        font-size: 0.68rem;
    }
}

@media (max-width: 1500px) and (min-width: 1200px) {
    .site-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .header-content {
        gap: 16px;
    }

    .logo img {
        height: clamp(64px, 4.1vw, 82px);
        width: clamp(140px, 8.8vw, 185px);
    }
}

@media (max-width: 1550px) and (min-width: 1025px) {
    .header-content {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .main-nav {
        flex-wrap: wrap;
        flex-basis: 100%;
        justify-content: center;
        margin: 0;
        gap: 8px;
    }

    .main-nav a,
    .nav-item {
        padding: 6px 8px;
        font-size: 0.88rem;
    }
}

@media (max-width: 1200px) and (min-width: 1001px) {
    .header-content {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .main-nav {
        flex-wrap: wrap;
        flex-basis: 100%;
        justify-content: center;
        margin: 0;
        gap: 6px;
    }

    .main-nav a,
    .nav-item {
        padding: 5px 6px;
        font-size: 0.84rem;
    }

    .logo img {
        height: clamp(58px, 4vw, 74px);
        width: clamp(125px, 8.2vw, 170px);
    }
}

@media (max-width: 1000px) and (min-width: 769px) {
    .header-content {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .main-nav {
        flex-wrap: wrap;
        flex-basis: 100%;
        justify-content: center;
        margin: 0;
        gap: 4px;
    }

    .main-nav a,
    .nav-item {
        padding: 4px 6px;
        font-size: 0.8rem;
    }

    .logo img {
        height: clamp(52px, 3.6vw, 68px);
        width: clamp(115px, 7.6vw, 155px);
    }
}

/* Верхняя контактная полоска */
.top-contact-bar {
  background-color: var(--contact-bar-bg);
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-white);
  border-bottom: none;
  display: flex;
  align-items: center;
  min-height: 32px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.top-contact-bar.scrolled-up {
  z-index: 1002; /* остается наверху */
  top: 0;
}

.top-contact-bar .containerheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.contact-left {
  display: flex;
}

.contact-right {
  display: flex;
  gap: 20px;
}

.top-contact-bar .contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-size: 12px;
  font-weight: 400;
}

.top-contact-bar .contact-item:hover {
  opacity: 0.8;
}

.top-contact-bar .phone-icon,
.top-contact-bar .instagram-icon,
.top-contact-bar .whatsapp-icon,
.top-contact-bar .telegram-icon,
.top-contact-bar .tiktok-icon {
  width: 13px;
  height: 13px;
  fill: var(--text-white);
}

/* Стили для кнопок WhatsApp и Telegram */
.top-contact-bar .whatsapp-icon {
  fill: #25D366; /* Зеленый цвет WhatsApp (опционально) */
}

.top-contact-bar .telegram-icon {
  fill: #0088CC; /* Синий цвет Telegram (опционально) */
}

.top-contact-bar .tiktok-icon {
  fill: #000000; /* Черный цвет TikTok */
}

/* Мобильная адаптация для верхней полоски */
@media (max-width: 768px) {
  .top-contact-bar {
    padding: 2px 0;
    font-size: 11px;
  }
  
  .top-contact-bar .containerheader {
    justify-content: space-between;
    gap: 10px;
  }
  
  .contact-left {
    gap: 8px;
  }
  
  .contact-right {
    gap: 8px;
  }
  
  /* Номер телефона остается видимым */
  .top-contact-bar .contact-item.phone span {
    display: inline;
  }
  
  /* Скрываем только текст инстаграм аккаунтов */
  .top-contact-bar .contact-item.social span {
    display: none;
  }
  
  .top-contact-bar .phone-icon,
  .top-contact-bar .instagram-icon,
  .top-contact-bar .whatsapp-icon,
  .top-contact-bar .telegram-icon {
    width: 14px;
    height: 14px;
  }
}

/* Стили для иконок в header-contacts */
.header-contacts .contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-size: 12px;
  font-weight: 400;
}

.header-contacts .contact-item:hover {
  opacity: 0.8;
}

.header-contacts .phone-icon,
.header-contacts .instagram-icon,
.header-contacts .whatsapp-icon,
.header-contacts .telegram-icon {
  width: 16px;
  height: 16px;
  fill: var(--text-white);
}

/* Новый единый хедер */
.site-header {
    background: linear-gradient(to bottom, 
        rgba(7, 24, 53, 0.95) 0%, 
        rgba(8, 47, 108, 0) 100%);
    box-shadow: none;
    position: absolute;
    top: 41px; /* увеличили отступ от contact-banner */
    left: 0;
    right: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px; /* увеличили высоту */
    padding: 0 40px 0 24px; /* меньше отступ слева */
    transition: all 0.3s ease;
    margin: 0;
    border: none;
}

.site-header.scrolled-up {
    z-index: 998;
    top: 68px;
}

/* Обертка для всех элементов хедера */
.header-content {
    width: 100%;
    max-width: var(--container-max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-price-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-price-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ffd66b, #ffb347);
    color: #5b3200;
    text-decoration: none;
    border-radius: 10px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 6px 18px rgba(255, 179, 71, 0.32), 0 1px 4px rgba(90, 45, 0, 0.18);
    border: 1px solid rgba(255, 248, 230, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.price-label-short {
    display: none;
}

.header-price-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffcf5f, #ffa733);
    box-shadow: 0 10px 24px rgba(255, 179, 71, 0.38), 0 3px 10px rgba(90, 45, 0, 0.24);
}

.header-price-button:active {
    transform: translateY(0);
}

.header-price-icon {
    width: 14px;
    height: 14px;
}

.containerheader {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 24px; /* добавили расстояние между элементами */
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 10;
}
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1.8rem;
    text-shadow: var(--text-shadow);
    height: 100%;
}

.logo img {
    height: clamp(56px, 4.8vw, 66px);
    width: clamp(120px, 10vw, 155px);
    margin-right: 12px;
}

/* Десктоп: логотип крупнее, чтобы не терялся в шапке */
@media (min-width: 1024px) {
    .logo img {
        height: clamp(78px, 4.6vw, 96px);
        width: clamp(160px, 13vw, 210px);
    }
}

/* Основная навигация */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* распределяем по всей ширине */
    flex: 1; /* занимает всё доступное пространство */
    gap: 20px;
    font-family: var(--font-family);
    font-weight: 500;
    height: 100%;
    margin: 0 30px; /* отступы от логотипа */
}

.main-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    white-space: nowrap;
    font-weight: 500;
}

.main-nav a:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.25) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Выпадающие меню категорий */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

/* Добавляем невидимую зону между пунктом меню и выпадающим списком */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    z-index: 999;
}

.nav-item {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    white-space: nowrap;
    font-weight: 500;
}

.nav-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.25) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-item:after {
    display: none;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    z-index: 1000;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Используем opacity и visibility для плавного появления с задержкой */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0s linear 0.5s, transform 0.3s ease;
    pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0s linear 0s, transform 0.3s ease;
    pointer-events: auto;
}

/* Добавляем задержку перед скрытием при уходе мыши */
.nav-dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.nav-dropdown-content a {
    color: var(--text-white);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 2px 0;
}

.nav-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Языковой селектор */
.dropdown {
    position: relative;
}

.dropdown-btn {
    color: var(--text-white) !important;
    text-decoration: none !important;
    border: none;
    background: none;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-shadow: var(--text-shadow);
}

/* Убираем стандартный треугольник для всех кнопок */
.dropdown-btn::after {
    display: none;
}

/* Стили для языковой кнопки */
.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9999;
    border-radius: 8px;
    min-width: 140px;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-content a {
    display: block;
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 500;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
}

.dropdown-content.show {
    display: block;
}

/* Мобильные контролы */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 10px;
}

/* Мобильный выпадающий переключатель языка */
.mobile-language-dropdown {
    position: relative;
    display: none;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: space-between; /* распределяем элементы по краям */
    gap: 8px; /* увеличили gap */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 50px; /* минимальная ширина */
}

.mobile-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-lang-btn .flag-emoji {
    font-size: 20px;
    line-height: 1;
}

.mobile-lang-btn .dropdown-arrow {
    font-size: 10px;
    width: 8px;
    height: 3px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
    margin-left: auto; /* прижимаем стрелочку к правому краю */
}

.mobile-lang-list.active .dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(135deg,
        rgba(8, 47, 108, 0.95) 0%,
        rgba(12, 64, 138, 0.95) 50%,
        rgba(10, 54, 120, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    min-width: 150px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.mobile-lang-list.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-white);
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-lang-item:last-child {
    border-bottom: none;
}

.mobile-lang-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-lang-item .flag-emoji {
    font-size: 18px;
    line-height: 1;
}

/* Старый флаговый селектор - скрыт */
.mobile-flags-selector {
    display: none;
}

.mobile-language-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.mobile-language-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-language-btn .language-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Мобильное меню - гамбургер */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.close-btn {
    display: none;
}

.mobile-resorts {
    display: none;
}

.mobile-social-buttons {
    display: none;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header-contacts {
        gap: 12px;
    }
    
    .main-nav {
        gap: 20px;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 1200px) {
    .containerheader {
        padding: 0 18px;
        height: 58px;
    }
    
    .logo img {
        height: 52px;
    }
    
    .logo a {
        font-size: 1.65rem;
    }

    .header-price-button {
        padding: 6px 12px;
        font-size: 0.7rem;
        border-radius: 10px;
        gap: 6px;
    }

    .header-price-icon {
        width: 12px;
        height: 12px;
    }
    
    .header-price-link {
        flex-shrink: 0;
    }
    
    /* Скрываем полную навигацию на мобильных */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(8, 47, 108, 0.85) 0%, 
            rgba(12, 64, 138, 0.85) 25%, 
            rgba(6, 42, 98, 0.85) 50%, 
            rgba(10, 54, 120, 0.85) 75%, 
            rgba(8, 47, 108, 0.85) 100%);
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
        z-index: 1000;
        padding: 80px 0 20px; /* убрали левый/правый padding */
        margin: 0; /* убрали margin */
        border-radius: 0;
        box-shadow: none;
        border: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        font-size: 1.2rem;
        padding: 12px 24px;
    }
    
    /* Выпадающие меню на мобильных - скрыты по умолчанию */
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        font-size: 1.2rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 8px;
        cursor: pointer;
        position: relative;
    }
    
    .nav-item:after {
        display: block;
        content: '▼';
        position: absolute;
        right: 24px;
        transition: transform 0.3s ease;
        font-size: 0.8rem;
        opacity: 0.7;
    }
    
    .nav-dropdown.active .nav-item:after {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-content {
        display: block;
        position: static;
        background: rgba(6, 27, 70, 0.88);
        margin: 0 20px 12px;
        width: calc(100% - 40px);
        border-radius: 14px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
        border: none;
        max-height: 0;
        padding: 0 18px;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transform: none;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    }

    .nav-dropdown.active .nav-dropdown-content {
        max-height: 500px;
        padding: 12px 18px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown-content a {
        font-size: 1rem;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0;
        text-align: center;
    }
    
    .nav-dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .mobile-controls {
        display: flex;
        margin-left: auto;
        margin-right: 0;
    }
    
    .mobile-language-dropdown {
        display: block; /* Показываем языковой дропдаун */
    }
    
    .mobile-flags-selector {
        display: none; /* Скрываем старый флаговый селектор */
    }
    
    .hamburger {
        display: block; /* Показываем гамбургер */
    }
    
    .mobile-language-btn {
        display: none; /* Скрыта старая кнопка языка */
    }
    
    .close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--text-white);
        font-size: 2rem;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background 0.3s ease;
    }
    
    .close-btn:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .dropdown {
        position: static;
    }
    
    /* Языковой селектор на мобильных */
    .language-selector {
        position: static;
    }
    
    /* Кнопка языкового селектора в мобильном меню */
    .language-selector .dropdown-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 6px;
    }
    
    /* Содержимое селектора - изначально открыто */
    .language-selector .dropdown-content {
        position: static;
        display: block;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 6px;
        margin: 0;
        padding: 16px 0;
        transition: all 0.3s ease;
        max-height: 300px;
        overflow: hidden;
    }
    
    /* Состояние когда селектор закрыт */
    .language-selector.collapsed .dropdown-content {
        max-height: 0;
        padding: 0;
        margin: 0;
    }
    
    /* Стрелка поворачивается при закрытии */
    .language-selector.collapsed .dropdown-arrow {
        transform: rotate(-90deg);
    }
    
    .language-selector .dropdown-content a {
        color: var(--text-white);
        font-size: 1.1rem;
        padding: 12px 24px;
    }
    
    .language-selector .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Класс для полного скрытия языкового селектора на мобильных */
    .language-selector.hide-mobile {
        display: none;
    }
    
    .dropdown-content {
        position: static;
        display: block;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 6px;
        margin: 16px 0;
        padding: 16px 0;
    }
    
    .dropdown-content a {
        color: var(--text-white);
        font-size: 1.1rem;
        padding: 12px 24px;
    }
    
    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Мобильные социальные кнопки в навигации */
    .mobile-social-buttons {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
    
    .mobile-social-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 24px;
        color: var(--text-white);
        text-decoration: none;
        border-radius: 6px;
        margin-bottom: 8px;
        transition: background 0.3s ease;
        font-size: 1.1rem;
    }
    
    .mobile-social-item:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .mobile-social-item svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .mobile-social-item:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .mobile-social-item svg {
        width: 20px;
        height: 20px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    
    .mobile-social-item.phone svg {
        color: #ffffff;
    }
    
    .mobile-social-item.whatsapp svg {
        color: #25D366;
    }
    
    .mobile-social-item.telegram svg {
        color: #0088CC;
    }
    
    .mobile-social-item.instagram svg {
        color: #E4405F;
    }
    
    .mobile-social-item.tiktok svg {
        color: #000000;
    }
}

@media (max-width: 480px) {
    .containerheader {
        padding: 0 12px;
        height: 54px;
    }
    
    .logo img {
        height: 56px;
    }
    
    .logo a {
        font-size: 1.45rem;
    }
}

/* Плашка с контактами Telegram и WhatsApp */
.contact-banner {
    background: transparent;
    padding: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex !important; /* показываем всегда */
}

.contact-banner.scrolled-up {
    top: 0; /* прилипает к верху */
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex !important; /* показываем при скролле */
}

.contact-banner-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    height: 48px;
    width: 100%;
}

.contact-banner-left {
    display: none;
}

.contact-banner-text {
    display: none;
}

.contact-banner-right {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

.contact-banner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    flex: 1;
    width: 25%;
    height: 48px;
    box-sizing: border-box;
    border: none;
    margin: 0;
}

.contact-banner-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-banner-item.telegram {
    background: linear-gradient(135deg, #0088CC, #0066A3);
    color: white;
}

.contact-banner-item.whatsapp {
    background: linear-gradient(135deg, #25D366, #1DA851);
    color: white;
}

.contact-banner-item.instagram-egypt {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
    color: white;
}

.contact-banner-item.instagram-thailand {
    background: linear-gradient(135deg, #833AB4, #C13584, #E4405F);
    color: white;
}

.contact-banner-item.tiktok {
    background: #000000;
    color: white;
}

.contact-banner-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Контент начинается сразу под хедером */
html {
    /*
      Частая причина, почему position: sticky не работает (особенно в Safari) —
      overflow-x: hidden на корневых элементах. overflow-x: clip скрывает
      горизонтальный оверфлоу без создания проблемного scroll-контейнера.
      Для браузеров без поддержки clip останется предыдущее значение.
    */
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    padding-top: 0 !important;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
}

body.reviews-page,
body.useful-info-page {
    padding-top: 48px !important;
}

body.reviews-page .contact-banner,
body.reviews-page .contact-banner.scrolled-up,
body.useful-info-page .contact-banner,
body.useful-info-page .contact-banner.scrolled-up {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
}

body.reviews-page .site-header,
body.reviews-page .site-header.scrolled-up,
body.useful-info-page .site-header,
body.useful-info-page .site-header.scrolled-up {
    top: 48px;
}

/* Устраняем белые просветы между хедерами */
.top-contact-bar + .site-header {
    margin-top: 0 !important;
    border-top: none !important;
}

/* Основной контент начинается сразу под хедером */
main, .main-content, .page-content {
    margin-top: 102px; /* 32px (черная полоска) + 70px (основной хедер) */
}

/* Для hero секций которые должны быть полноэкранными */
.hero, header[role="banner"] {
    margin-top: 0 !important;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .contact-banner {
        padding: 0;
        top: 0;
        display: flex !important; /* показываем на мобильных */
    }
    
    .contact-banner.scrolled-up {
        display: flex !important; /* показываем при скролле на мобильных */
    }
    
    .contact-banner-container {
        padding: 0;
        flex-direction: row;
        gap: 0;
        height: 44px;
    }
    
    .contact-banner-left {
        display: none;
    }
    
    .contact-banner-right {
        width: 100%;
        height: 100%;
    }
    
    .contact-banner-text {
        margin-left: 0;
        font-size: 12px;
    }
    
    .contact-banner-item {
        padding: 8px 6px;
        font-size: 11px;
        flex: 1;
        justify-content: center;
        height: 44px;
        width: 25%;
    }
    
    .site-header {
        top: 44px !important; /* под contact-banner */
        position: fixed !important; /* изменили на fixed, чтобы всегда был виден */
        background: linear-gradient(to bottom, 
            rgba(8, 47, 108, 0.98) 0%, 
            rgba(8, 47, 108, 0) 100%) !important;
        box-shadow: none !important;
        padding: 0 8px; /* меньше отступ слева/справа для мобилки */
        justify-content: flex-start; /* прижимаем контент к левому краю */
        z-index: 999 !important; /* поверх контента */
    }
    
    .site-header .header-content {
        justify-content: space-between; /* логотип слева, кнопки справа */
        width: 100%; /* на всю ширину */
        max-width: none; /* без ограничения ширины на мобилках */
        gap: 8px;
    }

    .header-price-button {
        padding: 6px 10px;
        gap: 6px;
    }

    .header-price-button .price-label-full {
        display: none;
    }

    .header-price-button .price-label-short {
        display: inline;
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }
    
    .site-header.scrolled-up {
        top: 48px !important;
        position: fixed !important; /* изменили на fixed */
        background: linear-gradient(to bottom, 
            rgba(8, 47, 108, 0.98) 0%, 
            rgba(8, 47, 108, 0) 100%) !important;
        box-shadow: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    main, .main-content, .page-content {
        margin-top: 120px; /* 32px + 44px (мобильная плашка) + 44px (мобильный хедер) */
    }
}

@media (max-width: 480px) {
    .contact-banner {
        padding: 0;
        display: flex !important; /* показываем на маленьких мобильных */
    }
    
    .contact-banner.scrolled-up {
        display: none !important; /* скрываем при скролле на маленьких мобильных */
    }
    
    .contact-banner-container {
        padding: 0;
        gap: 0;
        height: 40px;
    }
    
    .contact-banner-item {
        padding: 6px 4px;
        font-size: 9px;
        height: 40px;
        width: 25%;
    }
    
    .contact-banner-item span {
        display: none;
    }
    
    .contact-banner-icon {
        width: 16px;
        height: 16px;
    }
    
    .site-header {
        top: 40px !important; /* под contact-banner */
        position: fixed !important; /* изменили на fixed */
        background: linear-gradient(to bottom, 
            rgba(8, 47, 108, 0.98) 0%, 
            rgba(8, 47, 108, 0) 100%) !important;
        box-shadow: none !important;
        z-index: 999 !important;
    }
    
    .site-header.scrolled-up {
        top: 40px !important;
        position: fixed !important; /* изменили на fixed */
        background: linear-gradient(to bottom, 
            rgba(8, 47, 108, 0.98) 0%, 
            rgba(8, 47, 108, 0) 100%) !important;
        box-shadow: none !important;
    }
    
    body {
        padding-top: 0 !important;
    }
    
    main, .main-content, .page-content {
        margin-top: 112px; /* 32px + 40px (маленькая плашка) + 40px (маленький хедер) */
    }
}