/* --- ПАЛИТРА И БАЗОВЫЕ СТИЛИ --- */
:root {
    --bg-sand: #EFECE1;    
    --dark-brown: #332315; 
    --olive: #4E5941;      
    --red: #a80019;       
    --text-dark: #2A2A2A;  
    --white: #FFFFFF;
    --gold: #d4a373;
    
    --serif: 'Playfair Display', serif;
    --sans: 'Manrope', sans-serif;
    
    --transition: all 0.4s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background-color: var(--bg-sand); color: var(--text-dark); overflow-x: hidden; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); margin-bottom: 40px; text-transform: uppercase; text-align: center; color: var(--dark-brown); }

/* --- КНОПКИ --- */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    padding: 15px 35px; 
    background: var(--dark-brown); 
    color: var(--white); 
    text-transform: uppercase; 
    font-size: 13px; 
    font-weight: 600; 
    letter-spacing: 1px; 
    border: none; 
    cursor: pointer; 
    transition: var(--transition); 
    text-align: center; 
    border-radius: 4px;
}
.btn:hover { 
    background: var(--red); 
    color: var(--white); 
}

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--dark-brown); 
    color: var(--dark-brown); 
}
.btn-outline:hover { 
    background: var(--red); 
    border-color: var(--red);
    color: var(--white); 
}

.btn-white { 
    background: var(--white); 
    color: var(--dark-brown); 
}
.btn-white:hover { 
    background: var(--red); 
    color: var(--white); 
}

.center-btn { text-align: center; margin-top: 40px; display: flex; justify-content: center; }

/* --- ГЛОБАЛЬНЫЕ КАРТИНКИ --- */
.real-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.metro-item:hover .real-img, .new-spa-card:hover .real-img, .gal-item:hover .real-img { transform: scale(1.05); }



/* --- ПЕРВЫЙ ЭКРАН (HERO) --- */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: 1; background-image: url('https://uploads2.stells.info/storage/jpg/3/ed/3ed3e493e230c2b2aebdeb6f658734e3.jpg'); background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.758) 50%, rgba(0, 0, 0, 0.6) 100%); }

#birdsCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: auto; }

.hero-content { position: relative; z-index: 3; color: var(--white); max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; padding: 0 20px; text-shadow: 0 4px 20px rgba(0,0,0,0.9); }
.hero h1 { font-size: clamp(36px, 5vw, 70px); line-height: 1.1; margin-bottom: 30px; letter-spacing: 3px; font-family: var(--serif); text-transform: uppercase; }
.hero p { font-size: clamp(15px, 2.5vw, 18px); line-height: 1.6; font-weight: 500; max-width: 700px; margin: 0 auto; }
.hero-accent { display: block; margin-top: 20px; font-size: clamp(14px, 2vw, 16px); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }

/* --- АКЦИЯ И ТАЙМЕР --- */
.promo-section { padding: 100px 0 0 0; }
.promo-card { background: var(--olive); color: var(--white); border-radius: 20px; display: flex; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.promo-content { flex: 1.2; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.promo-image { flex: 1; min-height: 400px; position: relative; }

.promo-badge { background: var(--red); color: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; align-self: flex-start; margin-bottom: 25px; letter-spacing: 1px; }
.promo-content h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); margin-bottom: 15px; text-transform: uppercase; }
.promo-desc { font-size: 16px; opacity: 0.9; margin-bottom: 30px; line-height: 1.6; max-width: 450px; font-weight: 500; }

.promo-list { margin-bottom: 40px; }
.promo-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-size: 15px; font-weight: 400; }
.promo-list i { font-size: 22px; color: var(--gold); width: 25px; text-align: center; }

.timer-wrap { margin-bottom: 40px; }
.timer-title { font-size: 11px; font-weight: 600; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; margin-bottom: 10px; }
.timer { display: flex; gap: 15px; }
.time-box { background: rgba(0,0,0,0.2); padding: 15px 15px; border-radius: 10px; text-align: center; min-width: 90px; border: 1px solid rgba(255,255,255,0.05); }
.time-box span { display: block; font-size: 34px; font-family: var(--sans); font-weight: 700; line-height: 1; color: var(--gold); }
.time-box small { font-size: 11px; font-weight: 600; text-transform: uppercase; opacity: 0.7; letter-spacing: 1px; margin-top: 5px; display: block; }

.promo-btn { align-self: flex-start; }

/* --- ИНФРАСТРУКТУРА (METRO) --- */
.metro-section { padding: 100px 0; }
.metro-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 15px; }
.metro-item { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 30px; color: var(--white); transition: var(--transition); border-radius: 10px; cursor: pointer; }
.metro-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.metro-bg { position: absolute; inset: 0; z-index: 0; transition: transform 0.6s ease; overflow: hidden; }
.metro-item:hover .metro-bg { transform: scale(1.05); }
.metro-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); z-index: 1; }

.metro-content { position: relative; z-index: 2; width: 100%; }
.metro-content h3 { font-size: 22px; margin-bottom: 10px; font-family: var(--serif); text-transform: uppercase; transition: var(--transition); color: var(--white); }
.metro-content p { font-size: 14px; font-weight: 500; opacity: 0.9; transform: translateY(10px); transition: var(--transition); color: var(--white); }
.metro-item:hover .metro-content h3 { color: var(--gold); }
.metro-item:hover .metro-content p { opacity: 1; transform: translateY(0); color: var(--white); }

.m-large { grid-column: span 2; grid-row: span 2; }
.m-wide { grid-column: span 2; }

/* --- СЛАЙДЕР НОМЕРОВ --- */
.rooms-section { padding: 100px 0; background: var(--white); overflow: hidden; }
.slider-container { position: relative; max-width: 1400px; margin: 0 auto; overflow: hidden; padding: 10px 0; }
.slider-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); touch-action: pan-y; }

.slide { flex: 0 0 100%; width: 100%; padding: 0 40px; box-sizing: border-box; }
.slide-card { display: flex; align-items: center; gap: 60px; background: transparent; }

.slide-img { flex: 1.5; height: 500px; border-radius: 10px; overflow: hidden; }
.slide-info { flex: 1; }
.slide-info h3 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 20px; font-family: var(--serif); text-transform: uppercase; }
.slide-info p { font-size: 16px; line-height: 1.6; font-weight: 500; opacity: 0.8; margin-bottom: 30px; }

.slide-features { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 40px; font-size: 13px; font-weight: 600; text-transform: uppercase; opacity: 0.6; }
.slide-features i { color: var(--olive); }

.slider-nav { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.slider-btn { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--dark-brown); background: transparent; color: var(--dark-brown); cursor: pointer; transition: var(--transition); display: flex; justify-content: center; align-items: center; font-size: 18px; }
.slider-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: scale(1.05); }

/* --- МЕРОПРИЯТИЯ --- */
.events-section { padding: 100px 0; }
.events-wrapper { display: flex; align-items: center; gap: 60px; }
.events-img { flex: 1; height: 500px; border-radius: 10px; overflow: hidden; }
.events-info { flex: 1; }
.events-info p { font-size: 16px; font-weight: 500; line-height: 1.6; margin-bottom: 20px; }
.events-list { margin: 30px 0; border-top: 1px solid rgba(0,0,0,0.1); }
.events-list li { padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,0.1); font-family: var(--serif); font-size: clamp(18px, 2vw, 24px); display: flex; justify-content: space-between; align-items: center; transition: var(--transition); cursor: pointer; }
.events-list li:hover { color: var(--olive); padding-left: 10px; }

/* --- РЕСТОРАН --- */
.restaurant-section { background: var(--dark-brown); color: var(--white); padding: 100px 0; }
.rest-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.rest-info h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; color: var(--gold); text-transform: uppercase; }
.rest-info p { font-size: 16px; line-height: 1.7; opacity: 0.9; margin-bottom: 40px; }
.rest-img { height: 600px; border-radius: 10px; overflow: hidden; }

/* --- АКВА-ЗОНА (SPA) --- */
.new-spa-section { padding: 100px 0; background: var(--bg-sand); }
.new-spa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.new-spa-card { position: relative; height: 450px; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 35px; color: var(--white); transition: var(--transition); text-decoration: none; }
.new-spa-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.new-spa-bg { position: absolute; inset: 0; z-index: 0; transition: transform 0.6s ease; overflow: hidden; }
.new-spa-card:hover .new-spa-bg { transform: scale(1.05); }
.new-spa-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%); z-index: 1; }

.new-spa-content { position: relative; z-index: 2; }
.new-spa-content h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 12px; color: var(--gold); text-transform: uppercase; }
.new-spa-content p { font-size: 15px; opacity: 0.9; line-height: 1.5; margin-bottom: 15px; }
.new-spa-link { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; color: var(--white); opacity: 0.7; transition: var(--transition); }

/* Праки белого текста при ховере на SPA карточку */
.new-spa-card:hover .new-spa-content h3,
.new-spa-card:hover .new-spa-content p,
.new-spa-card:hover .new-spa-link { color: var(--white) !important; opacity: 1; }

/* --- ЧАСТЫЕ ВОПРОСЫ (FAQ) --- */
.faq-section { padding: 100px 0 50px 0; background: var(--bg-sand); }
.faq-wrapper { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: var(--transition); }
.faq-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.faq-question { width: 100%; text-align: left; padding: 25px 30px; font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--dark-brown); background: transparent; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { color: var(--red); }
.faq-question i { color: var(--gold); transition: transform 0.4s ease; font-size: 14px; }
.faq-item.active .faq-question { padding-bottom: 15px; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--red); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 30px 25px; font-size: 15px; font-weight: 500; line-height: 1.6; opacity: 0.8; color: var(--text-dark); margin: 0; }

/* --- ГАЛЕРЕЯ --- */
.gallery-section { padding: 50px 0 100px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 10px; }
.gal-item { position: relative; overflow: hidden; border-radius: 5px; cursor: pointer; }
.gal-item img { transition: transform 0.6s ease; width: 100%; height: 100%; object-fit: cover; }
.gal-item:hover img { transform: scale(1.05); }
.g-large { grid-column: span 2; grid-row: span 2; }

/* --- АДАПТИВНОСТЬ (МЕДИАЗАПРОСЫ) --- */
@media(max-width: 1024px) {
    .header-inner { padding: 10px 20px; }
    .nav-links { display: none; }
    .burger { display: flex; margin-left: 15px; }
        .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: var(--bg-sand);
        flex-direction: column;
        padding: 100px 30px 40px;
        align-items: flex-start;
        gap: 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        border-radius: 26px 26px 0px 0px;
        justify-content: flex-start;
    }
    .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger.active span:nth-child(2) { opacity: 0; }
    .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .promo-card { flex-direction: column; }
    
    .promo-image { min-height: 230px; }
    .metro-grid { grid-template-columns: repeat(2, 1fr); }
    .events-wrapper, .rest-container { flex-direction: column; }
    .rest-img { height: 400px; width: 100%; }
    .new-spa-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 768px) {
    .container { padding: 0 15px; }
    
    header { top: 15px; padding: 0 10px; } 
    .header-inner { padding: 10px 15px; }
    .logo { height: 30px; }
    .phone { display: none; }
    .header-btn { padding: 10px 15px; font-size: 11px; }
    
    .promo-section { padding: 60px 0 0 0; }
    .promo-content { padding: 40px 20px; }
    
    .timer-wrap { display: flex; flex-direction: column; align-items: center; }
    .timer { justify-content: center; gap: 10px; }
    .time-box { min-width: 80px; padding: 10px; }
    .time-box span { font-size: 26px; }
    
    .promo-btn { align-self: center; margin: 0 auto; width: auto !important; }
    
    .metro-section, .rooms-section, .events-section, .new-spa-section, .faq-section { padding: 60px 0; }
    
    .metro-grid, .new-spa-grid { grid-template-columns: 1fr; }
    .m-large, .m-wide { grid-column: span 1; grid-row: span 1; }
    .metro-item { min-height: 200px; }

    .slide { padding: 0 15px; box-sizing: border-box; } 
    .slide-card { flex-direction: column; gap: 0; background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); margin: 0; }
    .slide-img { width: 100%; height: 200px; border-radius: 0; flex: none; } 
    .slide-info { padding: 25px 15px; width: 100%; box-sizing: border-box; } 
    .slide-info h3 { font-size: 22px; margin-bottom: 10px; }
    .slide-info p { margin-bottom: 20px; font-size: 14px; }
    .slide-features { gap: 10px; margin-bottom: 25px; }
    .slider-nav { margin-top: 30px; }
    
    .new-spa-card { height: 350px; }
    .events-img { height: 450px; }
    
    .restaurant-section { padding: 40px 0; }
    .rest-container { display: flex; flex-direction: column; gap: 0; }
    .rest-img { height: 350px; border-radius: 10px; z-index: 1; }
    .rest-info { background: #25190f; padding: 30px 20px; border-radius: 10px; margin-top: -30px; position: relative; z-index: 2; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
    .rest-info h2 { font-size: 28px; }
    .rest-info p { margin-bottom: 25px; }
    
    .faq-question { padding: 20px; font-size: 16px; }
    .faq-answer p { padding: 0 20px 20px; }
    
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 5px; }
    .g-large { grid-column: span 2; grid-row: span 2; }
    
    .btn { width: 100%; justify-content: center; }
}

/* =========================================
   МОДАЛЬНОЕ ОКНО ГАЛЕРЕИ
========================================= */
.gallery-modal {
    position: fixed; 
    z-index: 2000; 
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.gallery-modal.show {
    opacity: 1;
    visibility: visible;
}

.gallery-modal-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.gallery-modal.show .gallery-modal-content {
    transform: scale(1);
}

.gallery-modal-close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

@media(max-width: 768px) {
    .gallery-modal-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }
    .gallery-modal-content {
        max-width: 100%;
        max-height: 80vh;
    }
}

/* Стрелки переключения галереи */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
    backdrop-filter: blur(5px);
}

.gallery-nav:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: 40px; }
.gallery-nav.next { right: 40px; }

@media(max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .gallery-nav.prev { left: 10px; }
    .gallery-nav.next { right: 10px; }
}