/* --- 1. CORE VARIABLES --- */
:root {
    --bg-main: #021212;
    --bg-darker: #010a0a;
    --bg-card: rgba(6, 31, 31, 0.6);
    --gold: #C6A87C;
    --gold-gradient: linear-gradient(135deg, #C6A87C 0%, #AA8555 100%);
    --text-white: #F5F5F5;
    --text-gray: #A0AFA9;
    --radius: 16px;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: local('Playfair Display');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: local('Manrope');
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--gold); font-weight: 400; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { width: 90%; max-width: 1100px; margin: 0 auto; padding: 0 15px; }
.section { padding: 80px 0; }
.bg-darker { background-color: var(--bg-darker); border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; position: relative; display: inline-block; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 30px; border-radius: 8px; font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; cursor: pointer; letter-spacing: 0.5px; transition: 0.3s;
}
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-gold { background: var(--gold-gradient); color: #000; border: none; }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(198, 168, 124, 0.3); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(198, 168, 124, 0.1); }
.full-width { width: 100%; }

/* --- HEADER --- */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 15px 0; transition: 0.4s; }
.header.scrolled { background: rgba(2, 18, 18, 0.95); backdrop-filter: blur(10px); padding: 10px 0; border-bottom: 1px solid rgba(198, 168, 124, 0.2); }

/* Updated Header Container with Gap */
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; /* Безопасный отступ между меню и правой частью */
}

.nav-logo { height: 90px; flex-shrink: 0; }
.nav-menu { display: flex; gap: 30px; }
.nav-link { font-size: 0.9rem; font-weight: 500; }
.nav-link:hover { color: var(--gold); }

/* Updated Header Action with larger Gap */
.header-action { 
    display: flex; 
    align-items: center; 
    gap: 25px; /* Увеличил отступ между телефоном, языком и кнопкой */
    flex-shrink: 0; 
}


.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 2px; background: var(--gold); transition: 0.3s; }

/* Language Switcher */
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; }
.lang-btn { cursor: pointer; color: var(--text-gray); transition: 0.3s; }
.lang-btn:hover { color: var(--text-white); }
.lang-btn.active { color: var(--gold); pointer-events: none; }
.lang-sep { color: rgba(255,255,255,0.2); font-size: 0.8rem; }

/* Mobile Menu */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
    background: #051616; display: flex; flex-direction: column; justify-content: center;
    align-items: center; gap: 30px; transition: 0.4s; z-index: 999; border-left: 1px solid var(--gold);
}
.mobile-menu.active { right: 0; }
.mobile-menu a { font-size: 1.5rem; font-family: var(--font-head); color: var(--gold); }
.mobile-lang-switch { display: flex; gap: 20px; margin-top: 10px; }
.mobile-lang-switch .lang-btn { font-size: 1.2rem; }

/* --- 1. HERO --- */
.hero {
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1510076857177-7470076d4098?q=80&w=2072') center/cover;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(2,18,18,0.3), #021212); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--gold); }
.hero-subtitle { font-size: 1.2rem; color: #ddd; margin-bottom: 40px; }
.hero-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* --- 2. ABOUT --- */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.about-text p { margin-bottom: 15px; color: var(--text-gray); }
.about-features li { display: flex; align-items: center; margin-bottom: 15px; font-weight: 600; }
.about-features i { color: var(--gold); margin-right: 15px; width: 20px; }

/* --- 3. FORMATS --- */
.formats-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.format-card {
    background: var(--bg-card); border: 1px solid rgba(198, 168, 124, 0.1);
    border-radius: var(--radius); padding: 40px; text-align: center; transition: 0.3s;
}
.format-card:hover { border-color: var(--gold); transform: translateY(-5px); }
.format-header { margin-bottom: 20px; }
.format-icon-main { font-size: 2.5rem; color: var(--gold); margin-bottom: 15px; display: block; }
.check-list { text-align: left; margin: 20px 0 30px; color: var(--text-gray); }
.check-list li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.check-list li::before { content: '•'; color: var(--gold); position: absolute; left: 0; }

/* --- 4. BENEFITS --- */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.benefit-item { text-align: center; padding: 20px; border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; }
.benefit-icon { font-size: 2rem; color: var(--gold); margin-bottom: 15px; }

/* --- 4.5 PARTNERS --- */
.partners-container { display: flex; justify-content: center; }
.partner-card {
    display: flex; background: var(--bg-card); border: 1px solid rgba(198, 168, 124, 0.1);
    border-radius: var(--radius); overflow: hidden; max-width: 900px; width: 100%;
    align-items: center;
}
.partner-image-slider {
    flex: 1; height: 300px; min-width: 0; position: relative; overflow: hidden;
}
.partner-track {
    display: flex; height: 100%; transition: transform 0.5s ease-in-out;
}
.partner-track img {
    width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; cursor: pointer;
}
.partner-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: 1px solid var(--gold); color: var(--gold);
    width: 35px; height: 35px; border-radius: 50%; cursor: pointer;
    z-index: 10; transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.partner-btn:hover { background: var(--gold); color: #000; }
.prev-p-btn { left: 10px; }
.next-p-btn { right: 10px; }

.partner-content { flex: 1; padding: 40px; min-width: 0; }
.partner-content h3 { margin-bottom: 15px; color: var(--gold); font-size: 1.5rem; font-family: var(--font-head); }
.partner-content p { color: var(--text-gray); margin-bottom: 25px; }

/* --- 4.6 PROMOS --- */
.promos-container { display: flex; justify-content: center; }
.promo-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(198, 168, 124, 0.2); border-radius: var(--radius);
    padding: 30px; max-width: 800px; width: 100%; display: flex; align-items: flex-start; gap: 20px;
    position: relative; overflow: hidden;
}
.promo-card::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(198, 168, 124, 0.2) 0%, transparent 70%); z-index: 0;
}
.promo-icon {
    font-size: 2.5rem; color: var(--gold); flex-shrink: 0; z-index: 1;
    background: rgba(198, 168, 124, 0.1); padding: 15px; border-radius: 50%;
}
.promo-details { z-index: 1; width: 100%; }
.promo-details h3 { font-size: 1.5rem; color: var(--gold); margin-bottom: 5px; font-family: var(--font-head); }
.promo-date { color: #888; font-size: 0.85rem; margin-bottom: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.promo-desc p { color: var(--text-white); margin-bottom: 10px; line-height: 1.5; }
.promo-footer { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; }
.condition { font-size: 0.8rem; color: var(--text-gray); font-style: italic; }

/* --- 5. MENU --- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 30px; }
.menu-col h3 { border-bottom: 1px solid var(--gold); padding-bottom: 10px; margin-bottom: 15px; }
.menu-col p { font-size: 0.9rem; color: var(--text-gray); }
.signature-mixes li { color: var(--gold); margin-bottom: 8px; font-style: italic; }
.note-text { text-align: center; color: var(--text-gray); font-style: italic; font-size: 0.9rem; }
.note-text.small { font-size: 0.8rem; margin-top: 15px; }
.menu-item { margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px; }
.menu-item h4 { font-family: var(--font-body); font-size: 1rem; color: var(--gold); margin-bottom: 4px; }
.menu-item span { font-size: 0.8rem; color: var(--text-gray); }

/* --- 6. PACKAGES --- */
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.package-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(198, 168, 124, 0.2);
    border-radius: var(--radius); padding: 30px; text-align: center; transition: 0.3s;
}
.package-card:hover { border-color: var(--gold); background: rgba(255,255,255,0.05); }
.package-card .price { font-size: 1.8rem; font-family: var(--font-head); color: var(--gold); margin: 15px 0; }
.package-card p { margin-bottom: 20px; color: var(--text-gray); font-size: 0.9rem; }

/* --- 7. GALLERY --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 15px; }
.gal-item { overflow: hidden; border-radius: 8px; position: relative; cursor: pointer; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.5s; }
.gal-item:hover img { transform: scale(1.05); opacity: 1; }
.gal-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* --- 8. REVIEWS CAROUSEL --- */
.carousel-container {
    position: relative; width: 100%; max-width: 1000px; margin: 0 auto;
    display: flex; align-items: center;
}
.carousel-window { width: 100%; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; gap: 20px; }
.review-card {
    min-width: 100%; background: rgba(255,255,255,0.03); padding: 30px;
    border-radius: var(--radius); text-align: center; border: 1px solid rgba(198, 168, 124, 0.1);
}
.review-card .stars { color: var(--gold); margin-bottom: 15px; font-size: 0.9rem; }
.review-card p { font-style: italic; font-size: 1rem; margin-bottom: 20px; color: #ddd; min-height: 80px; display: flex; align-items: center; justify-content: center; }
.review-card .author { font-weight: bold; color: var(--gold); font-size: 0.95rem; display: block; }
.carousel-btn {
    background: rgba(0,0,0,0.5); border: 1px solid var(--gold); color: var(--gold);
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    font-size: 1rem; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; transition: 0.3s;
}
.carousel-btn:hover { background: var(--gold); color: #000; }
.prev-btn { left: -50px; }
.next-btn { right: -50px; }

/* --- 9. STEPS (FIXED) --- */
.steps-container { display: flex; justify-content: space-between; align-items: flex-start; text-align: center; }
.step { flex: 1; padding: 0 10px; }
.step-num { 
    width: 40px; height: 40px; border: 1px solid var(--gold); border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; 
    font-family: var(--font-head); color: var(--gold); 
}
.step-arrow { font-size: 2rem; color: #333; padding-top: 5px; }

/* --- 10. AREA (FIXED) --- */
.area-block { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; 
    background: #081c1c; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(198, 168, 124, 0.1);
}
.area-text { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.area-text .sub-text { font-size: 0.85rem; margin-top: 15px; color: var(--text-gray); }
.area-map-placeholder { min-height: 300px; position: relative; }

/* --- 11. B2B OFFER (FIXED) --- */
.b2b-banner { 
    text-align: center; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1570554520913-ce61e70d4218?q=80&w=1920'); 
    background-size: cover; padding: 60px 20px; border-radius: var(--radius); border: 1px solid var(--gold);
}
.b2b-points { display: flex; justify-content: center; gap: 30px; margin: 30px 0; flex-wrap: wrap; }
.b2b-points span { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.b2b-points i { color: var(--gold); }

/* --- 12. CONTACTS (FIXED) --- */
.contact-wrapper { display: flex; justify-content: center; text-align: center; }
.contact-links { display: flex; flex-direction: column; gap: 20px; align-items: center; margin-top: 30px; }
.contact-row { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.contact-row i { color: var(--gold); font-size: 1.3rem; }

/* --- 13. FOOTER (FIXED) --- */
.footer { border-top: 1px solid rgba(255,255,255,0.1); padding: 30px 0; margin-top: 50px; font-size: 0.8rem; color: var(--text-gray); text-align: center; }
.footer-content { display: flex; flex-direction: column; gap: 10px; }

/* --- LIGHTBOX & NAV --- */
.lightbox {
    display: none; position: fixed; z-index: 9999; padding-top: 50px; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.95);
    justify-content: center; align-items: center;
}
.lightbox-content { margin: auto; display: block; max-width: 80%; max-height: 80%; border: 2px solid var(--gold); border-radius: 8px; }
.close-lightbox {
    position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px;
    font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 10002;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5);
    border: none; color: var(--gold); font-size: 2rem; cursor: pointer; padding: 20px;
    z-index: 10001; transition: 0.3s;
}
.prev-lightbox { left: 10px; }
.next-lightbox { right: 10px; }

/* --- ANIMATIONS --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: 0.6s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
/* Fallback if JS fails */
@media (scripting: none) {
    .fade-up { opacity: 1; transform: none; }
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .about-grid, .formats-container, .gallery-grid, .area-block { grid-template-columns: 1fr; }
    .gal-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
    
    /* STEPS RESPONSIVE FIX (CENTERED) */
    .steps-container { 
        flex-direction: column; 
        gap: 30px; 
        align-items: center; 
        width: 100%;
    }
    .step { 
        width: 100%; 
        max-width: 320px; 
        padding: 0; 
        text-align: center; 
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .step-num { margin: 0 auto 15px auto; }
    .step-arrow { 
        transform: rotate(90deg); 
        margin: 10px auto; 
        font-size: 2rem; 
        color: var(--gold);
        display: block;
    }
    
    .b2b-points { flex-direction: column; gap: 15px; }
    
    /* MOBILE HEADER FIXES */
    .header-btn { display: none; }
    .phone-text { display: none !important; }
    .header-phone { 
        padding: 8px; border: 1px solid var(--gold); border-radius: 50%;
        width: 40px; height: 40px; justify-content: center;
    }
    .header-phone i { font-size: 1rem; margin: 0; }
    .header-action { gap: 15px; }
    .nav-logo { height: 60px; }
    .lang-switch { display: none; }
    
    /* Partner Card Fixes */
    .partner-card { flex-direction: column; height: auto; }
    .partner-image-slider { width: 100%; height: 250px; flex: none; }
    .partner-content { text-align: center; }
    
    /* Promo Card */
    .promo-card { flex-direction: column; text-align: center; align-items: center; }
    .promo-icon { margin-bottom: 10px; }

    /* Carousel */
    .carousel-btn { width: 35px; height: 35px; }
    .prev-btn { left: -10px; background: rgba(0,0,0,0.8); }
    .next-btn { right: -10px; background: rgba(0,0,0,0.8); }
    
    /* Lightbox */
    .lightbox-nav { padding: 10px; font-size: 1.5rem; }
    .lightbox-content { max-width: 95%; max-height: 70%; }
}

@media (max-width: 480px) {
    .phone-text { display: none; } 
    .header-phone { border: 1px solid var(--gold); padding: 8px; border-radius: 50%; } 
}

@media (min-width: 769px) {
    .review-card { min-width: calc(33.333% - 14px); }
}