/* BASE STYLES */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --gold: #A7896D;
    --gold-hover: #b29e6c;
    --dark-bg: #111111;
    --light-bg: #FDFCF8;
    --text-dark: #2B2B2B;
    --text-light: #F9F8F6;
    --gray: #666666;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* FLOATING WIDGETS */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.widget-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    background-color: #25D366;
}

.call-btn {
    background-color: #A7896D;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    color: white;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.page-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    width: 100vw;
    height: 56.25vw; /* Пропорция 16:9 для YouTube */
    min-height: 100vh;
    min-width: 177.77vh; /* Пропорция 16:9 для YouTube */
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none; /* Запрещает клики на видео */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn 2s ease-out;
}

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: 1px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--gold);
    border-color: var(--gold);
}

.btn-solid {
    background-color: var(--gold);
    border-color: var(--gold);
}

.btn-solid:hover {
    background-color: var(--gold-hover);
}

/* SECTIONS */
.section {
    padding: 100px 5%;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--gray);
    font-size: 1.1rem;
}

/* GRID LAYOUTS */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-text {
    padding: 20px;
}

.grid-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.reverse-layout .grid-text {
    order: 2;
}

.reverse-layout .grid-image {
    order: 1;
}

/* GALLERY / MENU */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* BOOKING FORM */
.booking-section {
    background-color: var(--dark-bg);
    color: white;
    padding: 100px 5%;
    text-align: center;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #ccc;
    font-family: var(--font-body);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555;
    color: white;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--gold);
}

/* BIG CONTACT BUTTONS */
.contact-buttons-container {
    max-width: 800px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.big-contact-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: none;
    transition: transform 0.3s, opacity 0.3s;
}

.big-contact-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
    color: white;
}

.btn-black { background: linear-gradient(90deg, #111, #333); }
.btn-green { background: linear-gradient(90deg, #25D366, #128C7E); }
.btn-pink { background: linear-gradient(90deg, #E1306C, #C13584); }

/* CONTACT INFO GRID */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 60px auto;
    text-align: center;
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.contact-info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* FOOTER */
footer {
    background-color: #0A0A0A;
    color: #888;
    padding: 60px 5% 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
}

/* UTILITIES */
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}
.separator::before,
.separator::after {
    content: '';
    width: 60px;
    height: 1px;
    background-color: var(--gold);
    margin: 0 15px;
}
.separator-icon {
    color: var(--gold);
    font-size: 20px;
}

/* MODALS (ПЛАВНЫЕ ВСПЛЫВАЮЩИЕ ОКНА) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 8px;
    position: relative;
    color: var(--text-dark);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover { color: var(--text-dark); }

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 5px;
}

.modal-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Форма в модалке */
.m-form-group {
    margin-bottom: 20px;
}

.m-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.m-form-control:focus {
    outline: none;
    border-color: var(--gold);
}

.m-row {
    display: flex;
    gap: 20px;
}
.m-col { flex: 1; }

.m-slider-container {
    padding: 10px 0;
}
.m-slider-container label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.m-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    margin-bottom: 5px;
}
.m-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
}

.m-type-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.m-type-options label {
    font-size: 0.95rem;
    cursor: pointer;
}

/* Выбор цвета кнопок в форме */
.btn-m-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--gold);
    color: white;
    border: none;
    font-size: 1.1rem;
    text-transform: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-m-submit:hover { background-color: var(--gold-hover); }

/* Success Modal */
.success-icon {
    font-size: 60px;
    color: #25D366;
    margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    /* Навигация */
    nav {
        padding: 15px 20px;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(17, 17, 17, 0.98);
        padding: 20px 0;
        text-align: center;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    nav .btn {
        display: none; /* Скрываем верхнюю кнопку на мобилках для экономии места */
    }

    /* Типографика и отступы */
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 11px;
    }
    .section-title {
        font-size: 2rem;
    }
    .section {
        padding: 60px 5%;
    }
    
    /* Сетки */
    .grid-container, .gallery-grid, .footer-grid, .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .reverse-layout .grid-text {
        order: 1;
    }
    .reverse-layout .grid-image {
        order: 2;
    }
    
    /* Контакты и кнопки */
    .big-contact-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .floating-widgets {
        bottom: 15px;
        right: 15px;
    }
    .widget-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
