html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Учитывает высоту фиксированной шапки */
}

html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
*, *::before, *::after {
    box-sizing: border-box !important;
}
section, .container, .menu-section, .swiper, .swiper-container, .swiper-slide {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

iframe, .map-container, .map-container iframe, .footer-map iframe {
    max-width: 100% !important;
    width: 100% !important;
}

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap');
:root {
    --bg-main: #F4E5D3;
    --bg-card: #FFF8E7;
    --text-dark: #2B1107;
    --accent-warm: #C85A32;
    --accent-wine: #5C1D24;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}
.logo-link img {
    max-height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}


body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.site-header {
    background-color: var(--bg-main);
    color: var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid rgba(54, 22, 10, 0.15);
}

.top-bar {
    border-bottom: 1px solid rgba(54, 22, 10, 0.1);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contacts-header a, .contacts-header span {
    color: var(--text-dark);
    text-decoration: none;
    margin-right: 15px;
}

.social-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.social-header a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(59, 35, 20, 0.1) !important;
    color: #3b2314 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.social-header a:hover {
    background: #3b2314 !important;
    color: #ffffff !important;
}

.lang-switcher { display: flex; gap: 5px; }

.lang-btn {
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    background-color: var(--text-dark);
    color: var(--bg-main);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}



.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    font-size: 1rem;
}

/* Hero Секция */
.hero-section {
    padding: 100px 20px 80px;
    text-align: center;
    color: var(--bg-main);
    background-image: linear-gradient(rgba(43, 17, 7, 0.7), rgba(43, 17, 7, 0.7)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    background-color: var(--accent-wine);
    color: var(--bg-main);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    margin-bottom: 25px;
    line-height: 1.25;
    color: #FFF8E7;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    color: #FFF8E7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-warm);
    color: var(--bg-card);
    padding: 16px 40px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    background-color: #d16b41; /* Slightly darker warm accent */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3); 
}

.hero-content { max-width: 900px; margin: 0 auto; }

.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.25;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    background-color: var(--text-dark);
    color: var(--bg-main);
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--accent-warm);
}

.hero-btn {
    background-color: #F4E5D3 !important; /* Светло-кремовый контрастный фон */
    color: #2C1A14 !important;            /* Темно-коричневый текст */
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    border: 2px solid #F4E5D3 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-decoration: none;
}

.hero-btn:hover {
    background-color: transparent !important;
    color: #F4E5D3 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6) !important;
}

/* Секция О нас */
/* Стилизованный разделитель */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px auto;
    max-width: 800px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: rgba(43, 17, 7, 0.2);
}

.section-divider i {
    font-size: 1.8rem;
    color: var(--accent-warm);
    margin: 0 20px;
    display: block;
}

.about-section { padding: 40px 20px 70px; }

.about-intro {
    max-width: 850px;
    margin: 0 auto 50px auto;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--text-dark);
    padding: 40px 30px;
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(43, 17, 7, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(43, 17, 7, 0.12);
}

.about-intro::before, .about-intro::after {
    font-family: var(--font-heading);
    position: absolute;
    font-size: 8rem;
    color: rgba(43, 17, 7, 0.05);
    line-height: 1;
}

.about-intro::before {
    content: '“';
    top: 10px;
    left: 20px;
}

.about-intro::after {
    content: '”';
    bottom: -30px;
    right: 20px;
}

.about-intro p {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.about-card {
    background-color: var(--bg-card);
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(43, 17, 7, 0.12);
    box-shadow: 0 10px 30px rgba(43, 17, 7, 0.08);
    transition: all 0.3s ease-in-out;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(43, 17, 7, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-warm);
    margin-bottom: 15px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

/* Финальный теплый баннер */
.about-warmth-banner {
    background-color: var(--accent-wine);
    color: var(--bg-main);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.about-warmth-banner::before {
    content: '';
    background: url('https://via.placeholder.com/500x300/5C1D24/EED78A?text=Wine+Pattern') no-repeat center center/cover;
    opacity: 0.1;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.about-warmth-banner h3,
.about-warmth-banner p,
.welcome-tag {
    position: relative;
    z-index: 1;
}

.about-warmth-banner h3 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    margin-bottom: 20px;
    color: var(--bg-main);
}

.about-warmth-banner p {
    font-size: 1.15rem;
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.7;
}

.welcome-tag {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    color: var(--bg-card);
    letter-spacing: 1px;
}

/* Меню */
.menu-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.section-title { text-align: center; margin-bottom: 20px; }

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-dark);
    margin-top: 15px;
    margin-bottom: 10px;
}

.title-divider {
    width: 100px;
    height: 3px;
    background-color: var(--accent-warm);
    margin: 15px auto 25px auto;
    border-radius: 2px;
}

.menu-sub {
    font-size: 1.05rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 20px;
}

.menu-swiper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.menu-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.swiper-slide img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(43, 17, 7, 0.1);
    cursor: pointer;
    display: block;
    border: 1px solid rgba(43, 17, 7, 0.08);
    transition: all 0.3s ease-in-out;
}

.swiper-slide img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(43, 17, 7, 0.2);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--text-dark); /* Dark chocolate */
    width: 45px; height: 45px;
    background-color: var(--bg-card); /* Light ivory */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--accent-warm);
    color: var(--bg-card);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.swiper-pagination {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.swiper-pagination-bullet {
    background: rgba(43, 17, 7, 0.4); /* Lighter dark chocolate */
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-warm); /* Terracotta */
    width: 12px;
    height: 12px;
}

.pagination-counter {
    text-align: center;
    margin-top: 25px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Подвал */
.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-card);
    padding-top: 60px;
}

.footer-content {
    display: grid !important;
    grid-template-columns: 1fr 1.4fr !important;
    gap: 40px !important;
    align-items: center !important;
    width: 100% !important;
}

.footer-info {
    width: 100% !important;
}

.footer-map {
    width: 100% !important;
    min-width: 0 !important;
}

.footer-map iframe {
    width: 100% !important;
    height: 320px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    display: block !important;
}

.footer-info h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--bg-card);
}

.footer-info p { 
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.7;
}
.footer-info p i { 
    color: var(--accent-warm);
    margin-right: 10px;
}

.footer-socials { margin-top: 25px; }
.footer-socials a {
    color: var(--bg-card);
    font-size: 1.5rem;
    margin-right: 18px;
    transition: color 0.3s ease;
}

.footer-socials a:hover { color: var(--accent-warm); }

.footer-bottom {
    border-top: 1px solid rgba(255, 248, 231, 0.15);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: rgba(255, 248, 231, 0.7);
}

/* Lightbox */
.lightbox {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 99999 !important;
}

.lightbox.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox img, #lightbox-img, .lightbox-content {
    max-width: 90vw !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto !important;
    display: block !important;
}

.lightbox-content.zoom-active {
    cursor: grab;
}

.lightbox-content.grabbing {
    cursor: grabbing;
}

.lightbox-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.zoom-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.zoom-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1001; /* Ensure it's above the image */
}

@media (max-width: 768px) {
    .top-bar, .header-top, .header-info {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        text-align: center !important;
    }
    .social-links, .lang-switcher, .languages {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .top-bar-content, .main-header { flex-direction: column; grid-template-columns: 1fr; text-align: center; }
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .hero-section h1 { font-size: 2.8rem; }
    .hero-badge { margin-bottom: 15px; }
    .hero-section p { font-size: 1.1rem; }
    .btn-primary { padding: 12px 30px; font-size: 1rem; }
    .nav-menu { margin-top: 15px; }
    .nav-menu a { margin: 0 10px; }
    .about-intro { font-size: 1.5rem; padding: 30px 20px; }
    .about-intro::before, .about-intro::after { font-size: 5rem; }
    .about-warmth-banner h3 { font-size: 2rem; }
    .welcome-tag { font-size: 1.6rem; }
    .section-title h2 { font-size: 2.2rem; }
    .footer-info h3 { font-size: 2rem; }
    .footer-map iframe {
        height: 250px !important;
    }
    .logo-link img {
        max-height: 40px;
    }



header.site-header .main-header .header-slogan {
    font-family: 'Great Vibes', cursive !important;
    font-size: 2.5rem !important;
    font-weight: 400 !important;
    color: #3b2314 !important; /* Тёмно-коричневый цвет бренда */
    margin: 0 auto !important;
    padding: 0 15px !important;
    white-space: nowrap !important;
    text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.7);
    letter-spacing: 1px !important;
    line-height: 1 !important;
}

/* Fade-in Animation on Scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1010;
    transition: background 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #3b2314;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-nav {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    /* Принудительно возвращаем видимость всем секциям сайта */
    main,
    section,
    .menu-section,
    .about-section,
    .contacts-section,
    .container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* Убеждаемся, что слайдер меню на телефоне тоже отображается */
    .menu-swiper,
    .swiper-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 450px !important;
    }
}

.menu-section,
.menu-container,
.menu-wrapper,
.menu-swiper,
.swiper-container {
    background-image: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.menu-section::before,
.menu-section::after,
.menu-container::before,
.menu-container::after,
.menu-swiper::before,
.menu-swiper::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
}

/* Возвращаем отображение стопки карт */
.menu-swiper .swiper-slide {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.menu-swiper .swiper-slide img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Удаляем системные слои теней Swiper, которые давали серые полосы по краям */
.swiper-slide-shadow,
.swiper-slide-shadow-cards,
.swiper-slide-shadow-left,
.swiper-slide-shadow-right {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
}

.menu-swiper,
.menu-swiper *,
.swiper-button-next,
.swiper-button-prev {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

.menu-swiper,
.menu-swiper * ,
.swiper-button-next,
.swiper-button-prev {
    -webkit-tap-highlight-color: transparent !important;
}

.menu-swiper .swiper-slide-active {
    cursor: pointer;
}

.menu-swiper .swiper-slide:not(.swiper-slide-active) {
    pointer-events: none;
}

.divider,
hr {
    margin-top: 20px;
    margin-bottom: 20px;
}

footer,
.footer,
.footer-container,
.contacts-section,
#contacts,
#footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    position: relative !important;
    overflow: visible !important;
    clear: both !important;
}

/* Принудительно включаем все внутренние элементы футера (текст, карту, соцсети) */
footer *,
.footer *,
.contacts-section * {
    visibility: visible !important;
    opacity: 1 !important;
}