/* ============================================
   SMART TRAVEL HEADER - v8 (ИНФОБЛОКИ СПРАВА)
   ============================================ */

:root {
    --header-topbar-bg: #f8f9fa;
    --header-text: #374151;
    --header-text-muted: #6b7280;
    --header-primary: #0d6efd;
    --header-primary-dark: #0B2545;
    --header-orange: #e8a33d;
    
    --c-instagram: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    --c-tiktok: #000000;
    --c-telegram: #0088cc;
    --c-whatsapp: #25D366;
    --c-viber: #7360f2;
}

/* ============================================
   ВЕРХНЯЯ ПОЛОСКА
   ============================================ */

.header-topbar {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 0;
    font-size: 13px;
}

.header-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-search {
    flex: 0 0 280px;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 7px 15px;
    transition: all 0.3s;
}

.header-search .search-form:focus-within {
    border-color: var(--header-primary);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.12);
}

.header-search i {
    color: #9ca3af;
    font-size: 13px;
    margin-right: 9px;
}

.header-search .search-field {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--header-text);
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.header-topbar-links {
    display: flex;
    align-items: center;
}

.header-topbar-links .top-menu,
.header-topbar-links ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-topbar-links .top-menu a,
.header-topbar-links ul a {
    color: var(--header-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s;
}

.header-topbar-links .top-menu a:hover,
.header-topbar-links ul a:hover {
    color: var(--header-primary);
}

/* ============================================
   ОСНОВНАЯ ШАПКА
   ============================================ */

.header-main {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}
.header-main-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px 0 60px; /* ← левый отступ 60px */
}

/* ============================================
   ЛОГОТИП
   ============================================ */

.site-branding {
    flex-shrink: 0;
}

.site-branding .custom-logo {
    max-height: 75px;
    width: auto;
}

.site-logo {
    max-height: 60px;
    width: auto;
}

/* ============================================
   ИНФОБЛОКИ (СДВИНУТЫ ВПРАВО К КНОПКЕ)
   ============================================ */

.header-info-blocks {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-left: auto; /* ВАЖНО! Прижимает вправо */
}

/* Общая карточка */
.header-info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.header-info-card:hover {
    border-color: var(--header-primary);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.12);
    transform: translateY(-2px);
}

.header-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d6efd 0%, #4D9FFF 100%);
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.25);
}

.header-card-icon i {
    font-size: 16px;
    color: #fff;
}

/* Иконка времени - оранжевая */
.header-time-group .header-card-icon {
    background: linear-gradient(135deg, #e8a33d 0%, #f5c97a 100%);
    box-shadow: 0 3px 10px rgba(232, 163, 61, 0.3);
}

.header-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.header-card-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--header-text);
    line-height: 1.35;
    white-space: normal;
}

.header-card-note {
    font-size: 11px;
    color: var(--header-text-muted);
    line-height: 1.3;
}

.header-card-link {
    font-size: 11px;
    color: var(--header-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 2px;
}

.header-card-link:hover {
    text-decoration: underline;
}

/* Онлайн индикатор */
.online-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.online-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Блок времени */
.header-time-group .header-card-value {
    font-size: 11px;
}

/* Блок адреса — ИСПРАВЛЕНО: адрес не переносится */
.header-address-group {
    max-width: 340px;
    white-space: nowrap;
}

.header-address-group .header-card-value {
    font-size: 11px;
    white-space: nowrap;
}

.header-address-group .header-card-link {
    white-space: nowrap;
}

/* ============================================
   БЛОК ТЕЛЕФОНОВ (ОДНА ИКОНКА + 3 НОМЕРА)
   ============================================ */

.header-phones-group {
    padding: 10px 14px;
}

.header-phones-group .header-phone-icon {
    background: linear-gradient(135deg, #0d6efd 0%, #4D9FFF 100%);
}

.header-phone-primary {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--header-primary);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.3;
}

.header-phone-primary:hover {
    color: var(--header-primary-dark);
}

.header-phone-secondary {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--header-text);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.3;
}

.header-phone-secondary:hover {
    color: var(--header-primary);
}

/* ============================================
   СОЦСЕТИ + КНОПКА
   ============================================ */

.header-social-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    /* УБРАЛИ margin-left: auto - теперь инфоблоки прижаты вправо */
}

.header-social {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.header-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-social .social-link.instagram {
    background: var(--c-instagram);
}

.header-social .social-link.tiktok {
    background: var(--c-tiktok);
}

.header-social .social-link.telegram {
    background: var(--c-telegram);
}

.header-social .social-link.whatsapp {
    background: var(--c-whatsapp);
}

.header-social .social-link.viber {
    background: var(--c-viber);
}

.header-social .social-link:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.btn-callback {
    background: linear-gradient(135deg, #e8a33d 0%, #f5c97a 100%);
    border-radius: 30px;
    padding: 11px 22px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(232, 163, 61, 0.35);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-callback::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-callback:hover::before {
    left: 100%;
}

.btn-callback:hover {
    background: linear-gradient(135deg, #d18f2b 0%, #e8b85c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(232, 163, 61, 0.5);
    color: #fff;
}

.btn-callback i {
    font-size: 12px;
}

/* ============================================
   МОБИЛЬНАЯ ИКОНКА ТЕЛЕФОНА
   ============================================ */

.mobile-header-actions {
    display: none;
    align-items: center;
    margin-left: auto;
}

.mobile-header-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #4D9FFF 100%);
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.mobile-header-phone:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 22px rgba(13, 110, 253, 0.5);
    color: #fff;
}

/* ============================================
   МОБИЛЬНАЯ КНОПКА МЕНЮ
   ============================================ */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
    color: var(--header-text);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.menu-toggle:hover {
    background: var(--header-primary);
    color: #fff;
    border-color: var(--header-primary);
}

/* ============================================
   НИЖНЯЯ ПАНЕЛЬ МЕНЮ
   ============================================ */

.header-menu-bar {
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-menu-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 52px;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.primary-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--header-text);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s;
}

.primary-menu > li > a:hover {
    color: var(--header-primary);
    background: #f9fafb;
}

.primary-menu > .current-menu-item > a {
    color: var(--header-primary);
    background: #f9fafb;
    position: relative;
}

.primary-menu > .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--header-primary), #4D9FFF);
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================ */

.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    transition: right 0.3s ease;
}

.mobile-menu-wrapper.active { right: 0; }

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.mobile-menu {
    position: absolute;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    padding: 25px;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: var(--header-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-close:hover {
    background: var(--header-orange);
    color: #fff;
    transform: rotate(90deg);
}

.mobile-menu-logo {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-search { margin-bottom: 15px; }

.mobile-menu-search .search-form {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 30px;
    padding: 9px 15px;
}

.mobile-menu-search .search-field {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--header-text);
    width: 100%;
}

.mobile-menu-search .search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--header-text-muted);
    padding: 0;
}

.mobile-menu-hours {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 15px;
    color: var(--header-text-muted);
    font-size: 12px;
}

.mobile-menu-hours i {
    color: var(--header-orange);
    margin-top: 2px;
}

.mobile-hours-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.5;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--header-text);
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Inter', sans-serif;
}

.mobile-navigation a:hover { color: var(--header-primary); }

.mobile-menu-contacts {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.mobile-address {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    color: var(--header-text-muted);
    font-size: 12px;
    margin-bottom: 10px;
    text-align: left;
}

.mobile-address i {
    color: var(--header-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.mobile-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--header-text-muted);
    margin-bottom: 12px;
}

.mobile-email i { color: var(--header-primary); }
.mobile-email a {
    color: var(--header-primary);
    text-decoration: none;
    font-weight: 600;
}

.mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--header-text);
    margin-bottom: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.mobile-phone i { color: var(--header-orange); }
.mobile-phone.header-phone-primary {
    color: var(--header-primary);
    font-size: 18px;
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.mobile-menu-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.mobile-menu-social .social-link.instagram { background: var(--c-instagram); }
.mobile-menu-social .social-link.tiktok { background: var(--c-tiktok); }
.mobile-menu-social .social-link.telegram { background: var(--c-telegram); }
.mobile-menu-social .social-link.whatsapp { background: var(--c-whatsapp); }
.mobile-menu-social .social-link.viber { background: var(--c-viber); }

.mobile-menu-social .social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1400px) {
    .header-main-inner { gap: 12px; }
    
    .header-info-card {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .header-card-icon {
        width: 32px;
        height: 32px;
    }
    
    .header-card-icon i { font-size: 14px; }
    
    .header-card-value { font-size: 11px; }
    .header-card-note { font-size: 10px; }
    .header-phone-primary { font-size: 12px; }
    .header-phone-secondary { font-size: 10px; }
    
    .btn-callback {
        padding: 10px 18px;
        font-size: 10px;
    }
    
    .header-social .social-link {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .header-search { flex: 0 0 220px; }
    
    .header-address-group { max-width: 280px; }
    
    .header-social .social-link:nth-child(n+4) {
        display: none; /* Скрываем Instagram, TikTok */
    }
    
    .header-card-value { font-size: 10px; }
    .header-card-note { display: none; }
}

@media (max-width: 992px) {
    .header-topbar { display: none; }
    
    .header-main { padding: 12px 0; }
    
    .header-main-inner {
        gap: 10px;
        justify-content: space-between;
    }
    
    /* Скрываем инфоблоки */
    .header-info-blocks,
    .header-social-buttons {
        display: none;
    }
    
    /* Показываем мобильную иконку телефона */
    .mobile-header-actions {
        display: flex;
        margin-left: auto;
    }
    
    .menu-toggle { display: flex; }
    .header-menu-bar { display: none; }
}

@media (max-width: 768px) {
    .header-main { padding: 10px 0; }
    
    .site-branding .custom-logo,
    .site-logo { max-height: 50px; }
    
    .mobile-header-phone {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-main { padding: 8px 0; }
    
    .site-branding .custom-logo,
    .site-logo { max-height: 45px; }
    
    .mobile-header-phone {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .menu-toggle {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}