:root {
    --dark: #121212;
    --gold: #c5a358;
    --gold-hover: #e2c27d;
    --beige: #f4f1ee;
    --white: #ffffff;
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* navi*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

/* --- hero section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: var(--beige);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content h1 span {
    color: var(--gold);
    font-style: italic;
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 450px;
}

/* --- buttons --- */
.btn {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 163, 88, 0.3);
}

.btn-nav {
    padding: 12px 25px;
    background: var(--dark);
    color: white;
    font-size: 0.75rem;
}

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

/* --- hero img --- */
.hero-image-wrap {
    position: relative;
    width: 45%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 300px 300px 0 0;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.bg-shape {
    position: absolute;
    width: 120%;
    height: 120%;
    background: #e9e4de;
    border-radius: 50%;
    z-index: 1;
    top: 10%;
    right: -20%;
}

/* price */
.prices {
    padding: 120px 10%;
    background: var(--white);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
}

.price-grid {
    max-width: 800px;
    margin: 0 auto;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.price-row:hover {
    padding-left: 20px;
    border-color: var(--gold);
}

.price-name { font-size: 1.1rem; font-weight: 400; }
.price-val { font-weight: 700; color: var(--gold); }

/* --- boooking section --- */
.booking {
    background: var(--dark);
    color: var(--white);
    padding: 100px 5%;
    display: flex;
    justify-content: center;
}

.booking-card {
    background: #1a1a1a;
    padding: 60px;
    width: 100%;
    max-width: 700px;
    border: 1px solid #333;
}

.booking-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.booking-form {
    display: grid;
    gap: 25px;
}

.booking-form input, .booking-form select {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid #333;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.booking-form input:focus { border-color: var(--gold); }

.booking-form label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
}

/* --- footer --- */
footer {
    padding: 80px 10% 40px;
    background: var(--beige);
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.copyright {
    color: #999;
    font-size: 0.8rem;
}

/* --- animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-image-wrap { width: 80%; height: 50vh; margin-top: 50px; }
    .nav-links { display: none; }
}

/* --- portfolio --- */
.portfolio {
    padding: 100px 5%;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(20%);
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* --- team --- */
.team {
    padding: 100px 5%;
    background: var(--beige);
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.team-card {
    text-align: center;
    max-width: 300px;
    /* НОВЫЕ СТИЛИ ДЛЯ ВЫРАВНИВАНИЯ */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует фото и текст по горизонтали */
    justify-content: flex-start; /* Прижимает контент к верху, чтобы имена были на одной линии */
}

.team-img {
    width: 250px;
    height: 350px; /* Убедись, что высота фиксированная */
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--gold);
    padding: 10px;
    background: white;
    /* НОВЫЕ СТИЛИ ДЛЯ ЦЕНТРИРОВАНИЯ ФОТО ВНУТРИ */
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-card p {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .team-grid { gap: 30px; }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; 
}

.logo {
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    color: var(--gold) !important;
}

select option:disabled {
    color: #555;
    background-color: #222;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); 
}
/* --- footer map --- */
.footer-map {
    max-width: 1000px; 
    margin: 0 auto 40px; 
    padding: 0 5%;
    filter: grayscale(100%) invert(90%) contrast(90%); 
    transition: var(--transition);
}

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

.footer-map iframe {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .footer-map iframe {
        height: 250px;
    }
}
/* Фикс для мобильной версии формы бронирования */
@media (max-width: 480px) {
    /* Находим контейнер, где лежат Дата и Время */
    .booking-form div[style*="display: grid"] {
        grid-template-columns: 1fr !important; 
        gap: 15px !important;
    }

    /* Ограничиваем ширину всех полей ввода, чтобы они не были "лопатами" */
    .booking-form input, 
    .booking-form select {
        width: 100% !important;
        max-width: 320px; /* Оптимальная ширина для телефона */
        margin: 0 auto;   /* Центрируем, если контейнер шире */
        display: block;
    }

    .booking-card {
        padding: 25px 15px;
    }

    /* Делаем так, чтобы надписи (label) тоже были по центру */
    .booking-form label {
        display: block;
        text-align: center;
        margin-bottom: 5px;
    }
}