/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ, ПЕРЕМЕННЫЕ И ТИПОГРАФИКА
   ========================================================================== */
:root {
    --gold-rich: #D4AF37;      /* Улучшенное глубокое элитное золото */
    --gold-light: #F9E596;     /* Светло-золотой */
    --purple-dark: #0F000A;    /* Очень глубокий, винный черный */
    --purple-deep: #2C001C;    /* Насыщенный бархатный винно-пурпурный */
    --text-light: #F5F5F5;     /* Основной светлый текст */
    --text-muted: #B0B0B0;     /* Приглушенный серый текст */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Плавный премиум-отклик */
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, iframe, video {
    max-width: 100%;
}

body {
    background-color: var(--purple-dark);
    background-image: radial-gradient(circle at 50% 0%, var(--purple-deep) 0%, var(--purple-dark) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: 'Manrope', sans-serif; 
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; 
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, .logo {
    font-family: 'Cormorant Infant', serif; 
    color: var(--gold-rich);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.text-center {
    text-align: center;
}

.title-wrapper {
    text-align: center;
    width: 100%;
}

.gold-text {
    color: var(--gold-rich);
}

/* ==========================================================================
   2. ШАПКА САЙТА И НАВИГАЦИЯ
   ========================================================================== */
.main-header {
    background-color: rgba(18, 0, 18, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(207, 160, 67, 0.2);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(207, 160, 67, 0.4));
    transition: var(--transition-smooth);
}

.logo:hover img {
    filter: drop-shadow(0 0 15px rgba(207, 160, 67, 0.7));
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-link {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--gold-rich);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold-rich);
}

/* Переключатель языков */
.lang-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.lang-switcher a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.lang-switcher a.active, .lang-switcher a:hover {
    color: var(--gold-rich);
}

.lang-switcher .divider {
    color: rgba(207, 160, 67, 0.3);
}

/* ==========================================================================
   3. ГЛАВНЫЙ ЭКРАН (HERO SECTION) И КНОПКИ
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: #000;
    background-image: url('img/hero_generated_girl.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Эффект параллакса */
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 0, 10, 0.4) 0%, rgba(15, 0, 10, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--gold-rich);
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
}

.hero-logo-large img {
    max-width: 100%;
    width: 650px;
    height: auto;
    margin: 0 auto 30px auto;
    display: block;
    filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.4));
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 50px;
    color: #e0e0e0;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопка с анимацией блика */
.btn-gold {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--gold-rich);
    color: var(--purple-dark);
    border: 2px solid var(--gold-rich);
    text-decoration: none;
    font-family: 'Cormorant Infant', serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: 0.5s;
    z-index: 1;
    pointer-events: none;
}

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

.btn-gold:hover {
    color: var(--gold-rich);
    background-color: transparent;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
    transform: translateY(-4px) scale(1.05);
}

/* ==========================================================================
   4. СЕКЦИИ И ДЕКОРАТИВНЫЕ ВЕНЗЕЛЯ
   ========================================================================== */
.about-section, .privileges-section, .gallery-section, .rules-section {
    padding: 120px 0;
}

.about-banner {
    max-width: 100%;
    height: auto;
    margin-bottom: 60px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

/* Элегантные вензеля слева и справа от заголовков */
.gold-flourish::before, .gold-flourish::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20" fill="%23CFA043"><path d="M0,10 Q25,0 50,10 T100,10" stroke="%23CFA043" fill="none" stroke-width="2"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    top: 50%;
    transform: translateY(-50%);
}

.gold-flourish::before {
    left: -80px;
}

.gold-flourish::after {
    right: -80px;
    transform: translateY(-50%) scaleX(-1);
}

.section-text {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   5. БЛОК ПРИВИЛЕГИИ (УСЛУГИ) С МОНОГРАММАМИ
   ========================================================================== */
.privileges-section {
    background-color: rgba(18, 0, 18, 0.5);
    border-top: 1px solid rgba(207, 160, 67, 0.1);
}

.privileges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.privilege-card {
    background-color: rgba(45, 0, 45, 0.2);
    border: 1px solid rgba(207, 160, 67, 0.15);
    padding: 45px 25px;
    text-align: center;
    transition: var(--transition-smooth);
}

.privilege-card:hover {
    border-color: var(--gold-rich);
    background-color: rgba(44, 0, 28, 0.6);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.privilege-monogram {
    font-family: 'Cormorant Infant', serif;
    font-size: 3.6rem;
    color: var(--gold-rich);
    margin-bottom: 15px;
    line-height: 1;
    text-shadow: 0 0 15px rgba(207, 160, 67, 0.3);
}

.privilege-monogram::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--gold-light);
    margin: 12px auto 0;
}

.privilege-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.privilege-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   6. БЛОК ГАЛЕРИИ И СЛАЙДЕРОВ (3 ПРЕМИУМ-КАРТЫ)
   ========================================================================== */
.gallery-section {
    background-color: var(--purple-deep);
    border-top: 1px solid rgba(207, 160, 67, 0.15);
    border-bottom: 1px solid rgba(207, 160, 67, 0.15);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 20px;
}

.premium-card {
    position: relative;
    border: 1px solid rgba(207, 160, 67, 0.3);
    background-color: var(--purple-dark);
    height: 440px; 
    overflow: hidden;
    transition: var(--transition-smooth);
}

.premium-card:hover {
    border-color: var(--gold-rich);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.card-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Убирает ползунок во Firefox */
}

.card-slider::-webkit-scrollbar {
    display: none; /* Убирает ползунок в Chrome/Safari */
}

.slide-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    filter: brightness(0.6) sepia(10%); /* Идеальное затемнение для читаемости текста */
    transition: var(--transition-smooth);
}

.premium-card:hover .slide-img {
    filter: brightness(0.75) sepia(0%);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 70px 25px 30px;
    background: linear-gradient(to top, rgba(18, 0, 18, 0.98) 0%, rgba(18, 0, 18, 0.7) 50%, transparent 100%);
    text-align: center;
    pointer-events: none;
}

.card-overlay p {
    color: var(--gold-light);
    font-family: 'Manrope', sans-serif;
    font-size: 1.45rem;
    font-style: italic;
    line-height: 1.3;
    text-shadow: 0 2px 5px rgba(0,0,0,0.9);
}

/* ==========================================================================
   7. БЛОК КОНФИДЕНЦИАЛЬНОСТЬ И ПРАВИЛА
   ========================================================================== */
.rules-section {
    background: radial-gradient(circle, var(--purple-deep) 0%, var(--purple-dark) 100%);
}

.rules-box {
    border: 2px solid var(--gold-rich);
    padding: 60px 50px;
    background-color: rgba(18, 0, 18, 0.85);
    box-shadow: 0 0 35px rgba(0,0,0,0.8);
    position: relative;
}

/* Роскошная тонкая рамка внутри основного блока */
.rules-box::before {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 1px solid rgba(207, 160, 67, 0.25);
    pointer-events: none;
}

.rules-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 40px;
}

.rules-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: center;
}

.rule-item {
    flex: 1;
    text-align: center;
}

.rule-subtitle {
    color: var(--gold-light);
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-family: 'Cormorant Infant', serif;
}

.rule-item p {
    font-size: 1.25rem;
    color: #cccccc;
    font-style: italic;
}

.rule-divider {
    width: 1px;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--gold-rich), transparent);
}

/* ==========================================================================
   8. ПОДВАЛ (FOOTER) И СТИЛИЗАЦИЯ КАРТЫ
   ========================================================================== */
.main-footer {
    background-color: #060006;
    padding: 80px 0 40px 0;
    border-top: 2px solid var(--gold-rich);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-info {
    text-align: left;
}

.logo-small-img {
    height: 45px;
    width: auto;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(207, 160, 67, 0.3));
}

.footer-domain {
    font-family: 'Manrope', sans-serif;
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 35px;
    letter-spacing: 1px;
}

.footer-contacts p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.footer-contacts a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contacts a:hover {
    color: var(--gold-rich);
}

/* Премиум стилизация Гугл Карт под темный стиль */
.footer-map iframe {
    border-radius: 4px;
    border: 1px solid rgba(207, 160, 67, 0.25) !important;
    filter: grayscale(35%) invert(92%) hue-rotate(180deg) contrast(85%); 
    transition: var(--transition-smooth);
}

.footer-map iframe:hover {
    filter: grayscale(0%) invert(0%) hue-rotate(0deg) contrast(100%);
}

.copyright {
    font-size: 0.9rem;
    color: #444;
    margin-top: 40px;
    border-top: 1px solid rgba(207, 160, 67, 0.1);
    padding-top: 25px;
}

/* ==========================================================================
   9. АНИМАЦИИ (CSS KEYFRAMES)
   ========================================================================== */
@keyframes fadeInLoad {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.fadeInLoad { 
    animation: fadeInLoad 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
}

@keyframes fadeInBtn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-btn {
    opacity: 0;
    animation: fadeInBtn 1.2s ease-out 0.8s forwards; 
}

.scroll-reveal {
    opacity: 1; 
    transition: var(--transition-smooth);
}

/* ==========================================================================
   10. АДАПТИВНОСТЬ ПОД ТЕЛЕФОНЫ И ПЛАНШЕТЫ
   ========================================================================== */

.nav-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-wrapper nav {
    margin: 0 auto;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--gold-rich);
    transition: var(--transition-smooth);
}

@media (max-width: 1100px) {
    .privileges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(18, 0, 18, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        gap: 30px;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }
    .nav-wrapper.active {
        right: 0;
    }
    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .nav-link {
        font-size: 1.5rem;
    }
    .lang-switcher {
        margin-top: 20px;
        font-size: 1.2rem;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-info {
        text-align: center;
    }
    .logo-small-img {
        margin: 0 auto 15px auto;
    }
    .footer-map iframe {
        height: 300px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    .hero {
        background-attachment: scroll;
        background-position: center top;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-logo-large img {
        width: 260px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .gold-flourish::before, .gold-flourish::after {
        display: none; /* Отключаем вензеля заголовков на маленьких экранах, чтобы текст не сжимался */
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .premium-card {
        height: 380px;
    }
    .rules-content {
        flex-direction: column;
        gap: 30px;
    }
    .rules-box {
        padding: 40px 25px;
    }
    .rule-divider {
        width: 70%;
        height: 1px;
        background: linear-gradient(to right, transparent, var(--gold-rich), transparent);
    }
    .about-section, .privileges-section, .gallery-section, .rules-section {
        padding: 80px 0;
    }
}

@media (max-width: 540px) {
    .nav-links {
        flex-direction: column;
        gap: 12px;
    }
    .privileges-grid {
        grid-template-columns: 1fr;
    }
    .privilege-card {
        padding: 35px 20px;
    }
}

/* ==========================================================================
   11. LIGHTBOX (ГАЛЕРЕЯ)
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 0, 10, 0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.show {
    display: block;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--gold-rich);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--gold-light);
    font-size: 50px;
    font-weight: 300;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--gold-rich);
    text-decoration: none;
    transform: scale(1.1);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--gold-light);
    padding: 20px 0;
    font-family: 'Cormorant Infant', serif;
    font-size: 1.5rem;
    font-style: italic;
}

.slide-img {
    cursor: zoom-in;
}

/* ==========================================================================
   12. ПЛАВАЮЩИЕ КНОПКИ (КОНСЬЕРЖ)
   ========================================================================== */
.concierge-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1500;
}

.concierge-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--purple-dark);
    border: 2px solid var(--gold-rich);
    color: var(--gold-rich);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6), inset 0 0 10px rgba(212, 175, 55, 0.2);
    transition: var(--transition-smooth);
}

.concierge-btn svg {
    width: 30px;
    height: 30px;
    transition: var(--transition-smooth);
}

.concierge-btn:hover {
    background-color: var(--gold-rich);
    color: var(--purple-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .concierge-widget {
        bottom: 20px;
        right: 20px;
    }
    .concierge-btn {
        width: 50px;
        height: 50px;
    }
    .concierge-btn svg {
        width: 25px;
        height: 25px;
    }
}