/* ========== Змінні ========== */
:root {
    --color-bg: #faf7f2;
    --color-cream: #f5efe8;
    --color-wine: #7a3e3e;
    --color-gold: #c8a87c;
    --color-dark: #2b1b15;
    --color-text: #3f2e26;
    --color-gray: #eae1d7;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 40px 70px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --container-padding: clamp(0.75rem, 5vw, 2rem);
}

/* ========== Скидання та база ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* Забороняє зміну розміру шрифту на iPhone */
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* ========== Типографія ========== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    word-wrap: break-word;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: clamp(60px, 15vw, 80px);
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), #e5c9a7);
    border-radius: 3px;
}

.section-subtitle {
    font-size: clamp(0.95rem, 3vw, 1.2rem);
    color: var(--color-wine);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* ========== Контейнер ========== */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========== Кнопки ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.85rem, 3vw, 1rem);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
    min-height: 44px; /* Мінімальний розмір для зручності на сенсорі */
}

.btn-primary {
    background: var(--color-wine);
    color: white;
    box-shadow: 0 10px 25px rgba(122, 62, 62, 0.3);
}

.btn-primary:hover {
    background: #8e4e4e;
    transform: translateY(-3px);
    box-shadow: 0 20px 35px rgba(122, 62, 62, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-gold);
    color: white;
    transform: translateY(-3px);
}

.btn-outline-dark {
    border: 2px solid var(--color-wine);
    color: var(--color-wine);
}

.btn-outline-dark:hover {
    background: var(--color-wine);
    color: white;
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 38px;
}

.btn-block {
    width: 100%;
}

/* ========== Хедер ========== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(60px, 12vh, 80px);
}

.logo {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 700;
    color: var(--color-wine);
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}

.navbar {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2vw, 2rem);
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: clamp(0.85rem, 2vw, 1rem);
    position: relative;
    white-space: nowrap;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s;
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    gap: 0.3rem;
    margin-left: 0.3rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(122,62,62,0.3);
    border-radius: 30px;
    padding: 0.25rem 0.4rem;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: 8px;
    padding: 5px;
}

.bar {
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    transition: var(--transition);
    border-radius: 3px;
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/941861/pexels-photo-941861.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2') center/cover fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(122,62,62,0.3) 0%, rgba(200,168,124,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding: 0 var(--container-padding);
}

.hero h1 {
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--color-gold);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(200,168,124,0.3);
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.6rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: white;
    font-size: 0.8rem;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-15px);}
    60% {transform: translateX(-50%) translateY(-8px);}
}

/* ========== Секції ========== */
.section {
    padding: clamp(2.5rem, 10vh, 5rem) 0;
}

.bg-light {
    background: white;
}

.bg-dark {
    background: var(--color-wine);
    color: white;
}

.bg-dark h2, .bg-dark .section-subtitle {
    color: white;
}

.bg-dark h2:after {
    background: linear-gradient(90deg, var(--color-gold), #f0dbb4);
}

/* ========== About ========== */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vh, 3rem);
    align-items: center;
}

@media (min-width: 768px) {
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text .subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-style: italic;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.features {
    display: flex;
    gap: clamp(0.75rem, 3vw, 2rem);
    margin: clamp(1.5rem, 4vh, 2.5rem) 0;
    flex-wrap: wrap;
}

.features span {
    font-weight: 500;
    color: var(--color-wine);
    display: inline-flex;
    align-items: center;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
}

.features i {
    margin-right: 0.5rem;
    color: var(--color-gold);
    font-size: 1em;
}

.future-service {
    background: linear-gradient(135deg, rgba(200,168,124,0.1) 0%, rgba(200,168,124,0.05) 100%);
    padding: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: clamp(12px, 3vw, 16px);
    border-left: 4px solid var(--color-gold);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    color: var(--color-wine);
    margin-top: 1.5rem;
    backdrop-filter: blur(5px);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: clamp(16px, 4vw, 24px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

/* ========== Меню ========== */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 4vw, 1.5rem);
    margin: clamp(1.5rem, 5vh, 3rem) 0;
}

@media (min-width: 480px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.menu-card {
    background: white;
    border-radius: clamp(16px, 4vw, 24px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.menu-card img {
    width: 100%;
    height: clamp(180px, 40vw, 220px);
    object-fit: cover;
    transition: var(--transition);
}

.menu-card:hover img {
    transform: scale(1.05);
}

.menu-card h3 {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    margin: 1rem 0 0.5rem;
    color: var(--color-wine);
}

.menu-card p {
    padding: 0 1rem 1.5rem;
    color: var(--color-text);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    flex-grow: 1;
}

.menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 480px) {
    .menu-footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.price-tag {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
    color: var(--color-gold);
    background: rgba(200,168,124,0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-align: center;
    white-space: nowrap;
}

.future-service-badge {
    background: var(--color-wine);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    text-align: center;
}

/* ========== Галерея ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 3vw, 1.5rem);
}

@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадратні фото для однакової висоти */
    object-fit: cover;
    border-radius: clamp(12px, 3vw, 16px);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ========== Відгуки ========== */
.reviews-slider-container {
    position: relative;
    max-width: 100%;
    margin: 2rem auto;
    overflow: hidden;
}

.reviews-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    flex: 0 0 100%;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 4rem);
    text-align: center;
    color: white;
}

.review-text {
    font-size: clamp(1rem, 4vw, 1.4rem);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-family: var(--font-heading);
}

.review-author {
    font-weight: 500;
    color: var(--color-gold);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.slider-prev, .slider-next {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
    border-radius: 50%;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover, .slider-next:hover {
    background: var(--color-gold);
    color: var(--color-wine);
    transform: scale(1.1);
}

.future-service-center {
    text-align: center;
    margin-top: 1.5rem;
}

.future-service-tag {
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

/* ========== Контакти ========== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vh, 3rem);
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info address p {
    margin-bottom: 0.75rem;
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.contact-info i {
    color: var(--color-gold);
    width: 1.2rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.phone-link {
    color: var(--color-wine);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    word-break: break-all;
}

.social-links {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 10vw, 44px);
    height: clamp(38px, 10vw, 44px);
    background: var(--color-wine);
    color: white;
    border-radius: 50%;
    font-size: clamp(1rem, 4vw, 1.2rem);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background: var(--color-gold);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.future-social {
    opacity: 0.7;
    position: relative;
}

.future-social:after {
    content: 'Скоро';
    position: absolute;
    bottom: -18px;
    font-size: 0.6rem;
    background: var(--color-gold);
    padding: 2px 6px;
    border-radius: 20px;
    color: var(--color-wine);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.map-placeholder {
    margin-top: 1.5rem;
    border-radius: clamp(12px, 4vw, 20px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder iframe {
    width: 100%;
    height: clamp(150px, 40vh, 250px);
    border: none;
}

/* ========== Форма бронювання ========== */
.booking-form {
    background: white;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: clamp(20px, 5vw, 32px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(200,168,124,0.2);
}

.booking-form h3 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    color: var(--color-wine);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0d6cc;
    border-radius: clamp(10px, 3vw, 14px);
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    transition: var(--transition);
    background: #fcf9f6;
    -webkit-appearance: none;
    appearance: none;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(200,168,124,0.15);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 1rem;
}

.future-payment {
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f5efe8 0%, #f0e7dd 100%);
    border-radius: clamp(10px, 3vw, 16px);
    text-align: center;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: var(--color-wine);
    border: 1px solid rgba(200,168,124,0.3);
}

/* ========== Футер ========== */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: clamp(2rem, 8vh, 3rem) 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    color: var(--color-gold);
    letter-spacing: 1px;
}

.footer-dev a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.footer-dev a:hover {
    color: white;
    text-decoration: underline;
}

/* ========== Мобільне меню ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: clamp(60px, 12vh, 80px);
        flex-direction: column;
        background: rgba(250,247,242,0.98);
        backdrop-filter: blur(16px);
        width: 100%;
        text-align: center;
        padding: 2rem 1rem;
        gap: 1.5rem;
        transition: 0.4s;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        white-space: normal;
    }

    .header .btn-small {
        display: none;
    }

    .lang-switcher {
        margin-left: auto;
    }
}

/* ========== Додаткові адаптивні утиліти ========== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

/* Запобігання горизонтальному скролу */
body, html {
    overflow-x: hidden;
}

/* Покращення для дуже маленьких екранів (до 360px) */
@media (max-width: 360px) {
    .logo {
        font-size: 1.2rem;
    }
    .lang-btn {
        padding: 0.2rem 0.3rem;
        min-width: 28px;
        min-height: 28px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .features span {
        width: 100%;
        justify-content: center;
    }
}