/* =========================================
    1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ И БАЗА
   ========================================= */
:root {
    --bg-cream: #FDFBF4;     
    --navy: #244471;
    --gold-accent: #d4a373;  
    --white: #ffffff;
    --footer-bg: #ece9e2;    
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-cream); margin: 0; line-height: 1.6; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }
.section-title { text-align: center; font-size: 26px; margin-bottom: 40px; color: var(--navy); text-transform: uppercase; font-weight: 700; }

/* =========================================
    2. ШАПКА (HEADER) — ЕДИНЫЙ КОД
   ========================================= */
.header { 
    background: #fff; 
    height: 85px; 
    display: flex; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.header .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none; 
    color: var(--navy); 
    font-weight: 700; 
    flex-shrink: 0;
}

.nav { 
    display: flex; 
    gap: 25px; 
    align-items: center; 
}

.nav a { 
    text-decoration: none; 
    color: var(--navy); 
    font-weight: 600; 
    font-size: 15px; 
}

.btn-dark { 
    background: var(--navy); 
    color: #fff !important; 
    padding: 10px 20px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: 600; 
    display: inline-flex; 
    justify-content: center; 
    align-items: center; 
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--navy); }

/* =========================================
    HERO & BOOKING MODULE (100% LAYOUT MATCH)
   ========================================= */
.hero {
    position: relative;
    height: 650px;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25)), url('../img/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

.hero-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    color: #ffffff !important;
    z-index: 2;
}

.hero-content h1 {
    color: #ffffff !important;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-content p {
    color: #ffffff !important;
    font-size: 18px;
    line-height: 1.6;
}

.booking-container {
    position: absolute;
    bottom: -40px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    display: flex;
    gap: 25px;
    align-items: flex-end;
    z-index: 10;
}

.booking-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.booking-item label { font-size: 13px; font-weight: 700; margin-bottom: 5px; color: #777; }
.booking-item input, .booking-item select { 
    border: 1px solid #eee; 
    padding: 12px; 
    border-radius: 8px; 
    font-family: inherit; 
    font-size: 15px;
    background: #fcfcfc;
}

.booking-btn {
    height: 52px;
    padding: 0 35px !important;
    white-space: nowrap;
    border-radius: 8px;
}

/* =========================================
    3. СЕТКИ (ДЕСКТОП) - БЕЗ ИЗМЕНЕНИЙ
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.about-image-main { overflow: hidden; border-radius: 15px; }
.about-main-img { width: 100%; height: 450px; object-fit: cover; border-radius: 15px; transition: transform 0.3s ease; }
.about-image-main:hover .about-main-img { transform: scale(1.05); }

.amenities-row { display: flex; justify-content: space-between; margin: 25px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 15px 0; }
.amenity-item { text-align: center; font-size: 12px; flex: 1; }
.amenity-item i { margin-bottom: 5px; display: block; }
.location-details { margin-bottom: 25px; font-size: 14px; }
.location-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.location-line i { flex-shrink: 0; margin-top: 3px; }
.about-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.about-thumbs img { width: 100%; height: 80px; object-fit: cover; border-radius: 10px; transition: transform 0.3s ease; }
.about-thumbs img:hover { transform: scale(1.05); }

.features-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 30px; align-items: center; width: 100%; max-width: 900px; margin: 0 auto; justify-content: center; }
.reviews-grid-new { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 40px; width: 100%; max-width: 1140px; margin: 0 auto; justify-content: center; }
.feature-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; height: 200px; margin: 0; width: 100%; }
.review-card-modern { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column; height: 100%; }
.review-card-modern .stars, .review-card-modern .stars-wrapper { display: none !important; }

.gallery-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 15px; }
.gallery-item { height: 250px; border-radius: 12px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-label svg, 
.gallery-label i, 
.gallery-label span {
    color: #ffffff !important;
    stroke: #ffffff !important; 
    font-size: 14px;
    font-weight: 600;
}

/* =========================================
    4. ФУТЕР (Обновлен под стиль Контактов)
   ========================================= */
.footer { background: var(--footer-bg); padding: 60px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-logo { color: var(--navy) !important; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer h4 { color: var(--navy) !important; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; font-size: 16px; }
.footer p { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #000000 !important; font-size: 14px; }
.footer p i, .footer p [data-lucide] { flex-shrink: 0; color: var(--navy) !important; width: 18px; height: 18px; }
.footer a:not(.footer-logo) { color: #000000 !important; text-decoration: none; transition: opacity 0.3s; }
.footer a:not(.footer-logo):hover { text-decoration: underline; }
.social-links { display: flex; gap: 15px; margin-top: 20px; align-items: center; }
.social-links a { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.social-links i, .social-links svg, .social-links [data-lucide] { color: var(--navy) !important; width: 24px; height: 24px; transition: transform 0.3s ease; }
.social-links a:hover i { transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 13px; color: #666; border-top: 1px solid #d4d1ca; margin-top: 40px; }

/* =========================================
    5. АДАПТИВНОСТЬ (MOBILE) — ОПТИМИЗИРОВАНО
   ========================================= */
.mobile-booking-btn { display: none !important; }

@media (max-width: 768px) {
    /* Базовые правки контейнера */
    body { overflow-x: visible; }
    .container { max-width: 100%; padding: 0 15px; }
    img, iframe, video { max-width: 100%; height: auto; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 22px; margin-bottom: 30px; }

    /* Исправляем Hero: убираем риск перекрытия контента */
    .hero {
        height: auto !important;
        min-height: 550px;
        padding: 100px 0 140px !important; /* Даем место для модуля бронирования снизу */
        margin-bottom: 0 !important;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    /* Модуль бронирования: делаем его более компактным */
    .booking-container {
        position: relative !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        margin: -80px 15px 40px !important; /* Накладываем на Hero, но оставляем в потоке */
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        background: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

    .booking-item { width: 100%; }
    .booking-item input, .booking-item select { font-size: 16px; } /* Чтобы iPhone не зумил при вводе */

    /* Навигация и меню */
    .nav {
        display: none;
        position: absolute !important;
        top: 85px;
        left: 0;
        width: 100%;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        border-top: 1px solid #eee;
    }

    .nav.active { display: flex !important; }
    .menu-toggle { display: block !important; }

    /* Сетки: одна колонка везде */
    .about-grid, 
    .features-grid, 
    .reviews-grid-new, 
    .footer-grid, 
    .gallery-grid {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }

    .feature-card { height: auto; padding: 30px 20px; }
    .gallery-item { height: 220px !important; }

    /* Удобство кликов в футере */
    .footer-grid { gap: 35px !important; text-align: left; }
    .footer p { font-size: 15px; margin-bottom: 15px; }

    /* Адаптация удобств (Amenity) */
    .amenities-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        border: none !important;
        background: rgba(0,0,0,0.02);
        padding: 20px !important;
        border-radius: 10px;
    }

    .amenity-item { flex: none !important; text-align: left; font-size: 13px; }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
}
