/* Header Styles */


.header {
    background: 
        /* Градиент + картинка в одном свойстве */
        linear-gradient(135deg, 
            rgba(3, 74, 95, 0.85) 0%, 
            rgba(5, 100, 134, 0.85) 50%, 
            rgba(10, 127, 163, 0.85) 100%),
        url("/static/img/header/header-bg.jpg") center/cover no-repeat !important;
    
    color: #ffffff !important;
    padding: 0.75rem 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(5, 100, 134, 0.25);
    backdrop-filter: blur(10px);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header Content */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Info */
.header-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(5, 100, 134, 0.2);
}

.contact-icon {
    font-size: 18px;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.contact-phone,
.contact-time {
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-phone:hover {
    opacity: 0.8;
}

.contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* CTA Button */
.header-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.btn-booking {
    background: linear-gradient(135deg, #0A7FA3, #05A3C7);
    color: #ffffff;
    text-decoration: none;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(5, 100, 134, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
}

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

.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(5, 100, 134, 0.35);
    background: linear-gradient(135deg, #05A3C7, #0DC5E8);
}

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

.btn-booking:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-contact {
        gap: 15px;
    }
    
    .contact-item {
        padding: 10px 14px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 15px 0;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .header-logo {
        justify-content: center;
        width: 100%;
    }
    
    .logo-link {
        justify-content: center;
    }
    
    .header-cta {
        justify-content: center;
        width: 100%;
    }
    
    .header-contact {
        gap: 10px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .logo-name {
        font-size: 20px;
    }
    
    .logo-tagline {
        font-size: 11px;
    }
    
    .contact-item {
        padding: 8px 12px;
    }
    
    .btn-booking {
        padding: 12px 18px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .header-logo {
        justify-content: center;
        width: 100%;
    }
    
    .logo-link {
        justify-content: center;
    }
    
    .header-cta {
        justify-content: center;
        width: 100%;
    }
    
    .header-contact {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .contact-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .btn-booking {
        width: 100%;
        max-width: 250px;
        padding: 16px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 12px 0;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .header-logo {
        justify-content: center;
        width: 100%;
    }
    
    .logo-link {
        justify-content: center;
    }
    
    .header-cta {
        justify-content: center;
        width: 100%;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .logo-name {
        font-size: 18px;
    }
    
    .logo-tagline {
        font-size: 10px;
    }
    
    .contact-item {
        padding: 8px 12px;
    }
    
    .contact-phone,
    .contact-time {
        font-size: 13px;
    }
    
    .contact-label {
        font-size: 10px;
    }
    
    .btn-booking {
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ===== BOOTSTRAP СОВМЕСТИМОСТЬ ===== */

/* Переопределение Bootstrap navbar для нашего дизайна */
.header.navbar {
    background: linear-gradient(135deg, #034A5F 0%, #056486 50%, #0A7FA3 100%) !important;
    border: none !important;
    padding: 0.75rem 0 !important;
}

.header .container {
    max-width: 1200px;
    padding: 0 2rem;
}

/* Стили для navbar-brand */
.header-logo .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.header-logo .navbar-brand:hover {
    color: #ffffff !important;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

/* Стили для кнопки */
.header-cta .btn-primary {
    background: linear-gradient(135deg, #0A7FA3, #05A3C7) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-cta .btn-primary:hover {
    background: linear-gradient(135deg, #05A3C7, #0DC5E8) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(5, 100, 134, 0.35);
}

/* Адаптивность для Bootstrap */
@media (max-width: 768px) {
    .header .container {
        padding: 0 1rem;
    }
    
    .header-contact {
        display: none !important;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
        justify-content: center;
    }
    
    .header-logo {
        justify-content: center;
        width: 100%;
    }
    
    .logo-link {
        justify-content: center;
    }
    
    .header-cta {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 0 0.75rem;
    }
}