/* Critical Fonts */
@font-face {
    font-family: 'Avenir Next Condensed';
    src: url('../fonts/AvenirNextCondensedDemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Durance Flower';
    src: url('../fonts/DuranceFlowerRegular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Critical CSS - Above the fold */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Avenir Next Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #fff9db;
    background-color: #414e3a;
    overflow-x: hidden;
}

/* Critical Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(65, 78, 58, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Critical Hero Styles */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff9db;
    overflow: hidden;
}

/* Critical Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Durance Flower', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff9db;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Critical Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Avenir Next Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

.btn-primary {
    background: #fff9db;
    color: #414e3a;
}

.btn-primary:hover {
    background: #f0e6c7;
    color: #414e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #fff9db;
    border: 2px solid #fff9db;
}

.btn-outline:hover {
    background: #fff9db;
    color: #414e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Critical Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Critical Responsive Styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .logo-img {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 850px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
}

/* CSS Variables for moremar.ru theme */
:root {
    --theme-panel-background: #fff9db;
    --theme-panel-text-color: #fff9db;
    --theme-panel-button-primary-background: #fff9db;
    --theme-panel-button-primary-color: #fff9db;
    --theme-panel-button-background: #fff9db;
    --theme-panel-button-color: #fff9db;
    --theme-panel-border-color: rgba(255, 249, 219, 0.1);
    --theme-panel-radius: 25px;
    
    /* Font families from moremar.ru */
    --theme-font-family: 'Avenir Next Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --theme-heading-font-family: 'Durance Flower', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --theme-link-title-font-family: 'Durance Flower', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    
    /* Font weights from moremar.ru */
    --theme-font-weight: 400;
    --theme-heading-font-weight: 600;
    --theme-link-title-font-weight: 600;
    
    /* Font sizes from moremar.ru */
    --theme-text-size-md: 16px;
    --theme-text-size-h1: 2.5rem;
    --theme-text-size-h2: 2rem;
    --theme-text-size-h3: 1.5rem;
    --theme-link-title-fontsize: 16px;
    
    /* Line heights from moremar.ru */
    --theme-text-lineheight-md: 1.6;
    --theme-text-lineheight-h1: 1.2;
    --theme-text-lineheight-h2: 1.2;
    --theme-text-lineheight-h3: 1.2;
    --theme-link-title-lineheight: 1.2;
    
    /* Letter spacing from moremar.ru */
    --theme-text-letterspacing-md: 0;
    --theme-text-letterspacing-h1: 0;
    --theme-text-letterspacing-h2: 0;
    --theme-text-letterspacing-h3: 0;
    --theme-link-title-letterspacing: 0;
    
    /* Text transform from moremar.ru */
    --theme-link-title-transform: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--theme-font-family);
    font-weight: var(--theme-font-weight);
    line-height: var(--theme-text-lineheight-md);
    color: var(--theme-panel-text-color);
    background-color: #414e3a;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-heading-font-family);
    font-weight: var(--theme-heading-font-weight);
    line-height: var(--theme-text-lineheight-h3);
    color: var(--theme-panel-text-color);
}

.section-title {
    font-size: var(--theme-text-size-h1);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--theme-panel-text-color);
    font-weight: var(--theme-heading-font-weight);
    line-height: var(--theme-text-lineheight-h1);
}

.section-subtitle {
    font-size: var(--theme-text-size-md);
    text-align: center;
    color: var(--theme-panel-text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: var(--theme-text-lineheight-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: var(--theme-panel-radius);
    font-weight: var(--theme-link-title-font-weight);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: var(--theme-link-title-fontsize);
    font-family: var(--theme-link-title-font-family);
    line-height: var(--theme-link-title-lineheight);
    letter-spacing: var(--theme-link-title-letterspacing);
    text-transform: var(--theme-link-title-transform);
}


.btn-secondary {
    background: transparent;
    color: #fff9db;
    border: 2px solid #fff9db;
}

.btn-secondary:hover {
    background: #fff9db;
    color: #414e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(65, 78, 58, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--theme-panel-border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--theme-heading-font-family);
    font-size: 1.5rem;
    font-weight: var(--theme-heading-font-weight);
    color: var(--theme-panel-text-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #fff9db;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff9db;
    opacity: 0.8;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff9db;
    transition: width 0.3s ease;
}

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

.phone-link {
    text-decoration: none;
    color: #fff9db;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff9db;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(255, 249, 219, 0.1);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(65, 78, 58, 0.8), rgba(65, 78, 58, 0.6));
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff9db;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff9db;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    /*opacity: 0.9;*/
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-down {
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Menu Section */
.menu-section {
    padding: 5rem 0;
    background: #414e3a;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.menu-item {
    background: #fff9db;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #414e3a;
    color: #fff9db;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #414e3a;
}

.menu-item-description {
    color: #414e3a;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* About Section */
.about-section {
    padding: 5rem 0;
    background: #414e3a;
}

/* Chef Section Styles */
.chef-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 249, 219, 0.2);
}

.chef-title {
    font-size: 1.8rem;
    color: #fff9db;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.chef-content {
    display: block;
}

.chef-text {
    color: #fff9db;
    line-height: 1.7;
}

.chef-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
    text-align: justify;
}

.chef-text h4 {
    font-size: 1.3rem;
    color: #fff9db;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.chef-styles {
    margin: 1rem 0 2rem 0;
    padding-left: 1.5rem;
}

.chef-styles li {
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.chef-styles strong {
    color: #fff9db;
    font-weight: 600;
}

.chef-photo {
    width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    margin: 1rem 0;
}

.chef-photo-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.chef-photo-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.chef-photo:hover {
    transform: translateY(-5px);
}

/* Responsive Design for Chef Section */
@media (max-width: 768px) {
    .chef-title {
        font-size: 1.5rem;
    }
    
    .chef-text h4 {
        font-size: 1.2rem;
    }
    
    .chef-photo {
        width: 400px;
        height: 300px;
        float: none;
        margin: 1rem auto;
        display: block;
    }
    
    .chef-photo-right,
    .chef-photo-left {
        float: none;
        margin: 1rem auto;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: #414e3a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Первая картинка - большая, занимает 2 колонки */
.gallery-item:first-child {
    grid-column: span 2;
    height: 300px;
}

/* Вторая и третья картинки - обычные */
.gallery-item:nth-child(2),
.gallery-item:nth-child(3) {
    height: 300px;
}

/* Четвертая картинка - большая, занимает 2 колонки */
.gallery-item:nth-child(4) {
    grid-column: span 2;
    height: 300px;
}

/* Остальные картинки - обычные */
.gallery-item:nth-child(n+5) {
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Reviews Section */
.reviews-section {
    padding: 5rem 0;
    background: #414e3a;
}

/* Dishes Gallery Section */
.dishes-gallery-section {
    padding: 5rem 0;
    background: #414e3a;
}

.dishes-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dishes-gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dishes-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Первая картинка - большая, занимает 2 колонки */
.dishes-gallery-item:first-child {
    grid-column: span 2;
    height: 250px;
}

/* Остальные картинки - обычные */
.dishes-gallery-item:nth-child(n+2) {
    height: 250px;
}

.dishes-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
}

.dishes-gallery-item:hover img {
    transform: scale(1.1);
}

.dishes-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dishes-gallery-item:hover .dishes-gallery-overlay {
    opacity: 1;
}

.dishes-gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Reviews Slider */
.reviews-container {
    position: relative;
    overflow: hidden;
}

.reviews-slider {
    display: flex;
    transition: transform 0.3s ease;
    gap: 2rem;
}

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

.review-card {
    background: #fff9db;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-rating {
    color: #f39c12;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #414e3a;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f39c12;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.reviewer-photo:hover {
    transform: scale(1.1);
    border-color: #e67e22;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reviewer-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #414e3a;
}

.reviewer-info span {
    font-size: 0.8rem;
    color: #414e3a;
    opacity: 0.7;
}

/* Reviews Navigation */
.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.reviews-prev,
.reviews-next {
    background: #fff9db;
    color: #414e3a;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.reviews-prev:hover,
.reviews-next:hover {
    background: #f0e6c7;
    color: #414e3a;
    transform: scale(1.1);
}

.reviews-prev:disabled,
.reviews-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Contacts Section */
.contacts-section {
    padding: 5rem 0 2rem 0;
    background: #414e3a;
    color: #fff9db;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #fff9db;
    margin-top: 0.25rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #fff9db;
    opacity: 0.8;
}

.contact-item a {
    color: #fff9db;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contacts-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 600px;
    margin: 20px 0 0 0;
}

.contacts-map iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 15px;
    display: block;
}

/* Booking Section */
.booking-section {
    padding: 5rem 0;
    background: #414e3a;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff9db;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #414e3a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    color: #414e3a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #414e3a;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    color: #414e3a;
}

.form-note a {
    color: #e74c3c;
    text-decoration: none;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

/* Footer */
.footer {
    background: #414e3a;
    color: #fff9db;
    padding: 3rem 0 1rem;
}

.footer a {
    color: #fff9db !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff9db !important;
    opacity: 0.8;
}

.footer a:visited {
    color: #fff9db !important;
}

.footer-content {
    border-top: 1px solid rgba(255, 249, 219, 0.2);
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff9db;
}

.footer-section a {
    color: #fff9db !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff9db !important;
    opacity: 0.8;
}

.footer-section a:visited {
    color: #fff9db !important;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-description {
    color: #fff9db;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #fff9db;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: #fff9db;
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 249, 219, 0.1);
    border: 2px solid rgba(255, 249, 219, 0.3);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    color: #fff9db !important;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #fff9db;
    border: 2px solid #fff9db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 249, 219, 0.3);
}

.social-link:hover i {
    color: #414e3a !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 249, 219, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: #fff9db;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: #fff9db;
    text-decoration: none;
}

/* Blueimp Gallery Custom Styles - removed duplicate styles */

/* Blueimp Gallery - минимальные исправления */
.blueimp-gallery {
    z-index: 99999 !important;
}

/* Скрываем лишние элементы */
.blueimp-gallery .play-pause {
    display: none !important;
}

/* Блокировка прокрутки при открытой галерее */
body.blueimp-gallery-open {
    overflow: hidden !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 850px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff9db;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        color: #fff9db;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 249, 219, 0.2);
    }

    .nav-menu .nav-link:hover {
        color: #fff9db;
        opacity: 0.8;
    }

    .nav-menu .phone-link {
        color: #fff9db;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 249, 219, 0.2);
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-item:first-child,
    .gallery-item:nth-child(4) {
        grid-column: span 2;
        height: 250px;
    }

    .dishes-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .dishes-gallery-item {
        height: 200px;
    }

    .dishes-gallery-item:first-child {
        grid-column: span 2;
        height: 200px;
    }

    .contacts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacts-map {
        max-width: 100%;
        order: -1;
    }
    
    .contacts-map iframe {
        height: 400px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 2rem;
        margin: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        height: 280px;
    }

    .gallery-item:first-child,
    .gallery-item:nth-child(4) {
        grid-column: span 1;
        height: 280px;
    }

    .dishes-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dishes-gallery-item {
        height: 220px;
    }

    .dishes-gallery-item:first-child {
        grid-column: span 1;
        height: 220px;
    }

    /* Адаптивные стили для blueimp Gallery */
    .blueimp-gallery .slide-content {
        max-width: 95vw !important;
        max-height: 85vh !important;
    }

    /* Адаптивные стили для слайдера отзывов */
    .review-card {
        min-width: 280px;
    }

    .blueimp-gallery .prev,
    .blueimp-gallery .next {
        width: 60px !important;
        height: 60px !important;
        font-size: 28px !important;
        line-height: 60px !important;
        background: rgba(0,0,0,0.5) !important;
        color: white !important;
        border-radius: 50% !important;
    }

    .blueimp-gallery .prev {
        left: 20px !important;
    }

    .blueimp-gallery .next {
        right: 20px !important;
    }

    .blueimp-gallery .close {
        width: 50px !important;
        height: 50px !important;
        font-size: 35px !important;
        line-height: 50px !important;
        top: 20px !important;
        right: 25px !important;
        background: rgba(0,0,0,0.5) !important;
        color: white !important;
        border-radius: 50% !important;
    }

    .blueimp-gallery .title {
        font-size: 18px !important;
        padding: 15px 25px !important;
        bottom: 25px !important;
        background: rgba(0,0,0,0.7) !important;
        color: white !important;
        border-radius: 25px !important;
    }

    .blueimp-gallery .indicator {
        bottom: 70px !important;
        padding: 10px 20px !important;
    }

    .blueimp-gallery .indicator li {
        width: 12px !important;
        height: 12px !important;
        background: rgba(255,255,255,0.5) !important;
        border-radius: 50% !important;
    }

    .blueimp-gallery .indicator li.active {
        background: white !important;
    }



    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 1.5rem;
    }
    
    /* Адаптивные стили для кнопки бронирования */
    .btn-booking {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 240px;
    }
    
    .booking-button-container {
        margin: 1.5rem 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Сообщения для формы бронирования */
.message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Стили для кнопки бронирования */
.booking-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
    padding: 1rem 0;
    border-top: 2px solid rgba(255, 249, 219, 0.2);
    border-bottom: 2px solid rgba(255, 249, 219, 0.2);
    width: 100%;
}

.btn-booking {
    background: linear-gradient(135deg, #fff9db 0%, #f0e6c7 100%);
    color: #414e3a;
    border: 3px solid #414e3a;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(65, 78, 58, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 280px;
    animation: pulseBooking 2s infinite;
    margin: 0 auto;
    display: block;
}

@keyframes pulseBooking {
    0% {
        box-shadow: 0 8px 25px rgba(65, 78, 58, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(65, 78, 58, 0.5), 0 0 20px rgba(255, 249, 219, 0.3);
    }
    100% {
        box-shadow: 0 8px 25px rgba(65, 78, 58, 0.3);
    }
}

.btn-booking:hover {
    background: linear-gradient(135deg, #f0e6c7 0%, #fff9db 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(65, 78, 58, 0.4), 0 0 25px rgba(255, 249, 219, 0.5);
    border-color: #414e3a;
    animation: none;
}

.btn-booking:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(65, 78, 58, 0.3);
}

.btn-booking:disabled {
    background: #ccc;
    color: #666;
    border-color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-booking:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Анимация для кнопки */
.btn-booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

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

/* Адаптивные стили для кнопки бронирования */
@media (max-width: 850px) {
    .booking-button-container {
        margin: 2rem 0;
        padding: 0.8rem 0;
    }
    
    .btn-booking {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 240px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .booking-button-container {
        margin: 1.5rem 0;
        padding: 0.5rem 0;
    }
    
    .btn-booking {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        min-width: 200px;
        letter-spacing: 0.5px;
        margin: 0 auto;
        display: block;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для текста согласия на обработку персональных данных */
.privacy-text {
    margin-bottom: 2rem;
    text-align: center;
}

.privacy-agreement {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.privacy-link {
    color: #414e3a;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #2d3a2a;
    text-decoration: none;
}

/* Стили для виджета Яндекс отзывов */
.yandex-reviews-widget {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.yandex-widget-container {
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.yandex-widget-container iframe {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-sizing: border-box;
}

.yandex-link {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #b3b3b3;
    font-size: 10px;
    font-family: 'YS Text', sans-serif;
    text-decoration: none;
    padding: 0 16px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-height: 14px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.yandex-link:hover {
    color: #414e3a;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .yandex-widget-container {
        height: 500px;
        margin: 0 1rem;
    }
    
    .yandex-link {
        font-size: 9px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .yandex-widget-container {
        height: 400px;
        margin: 0 0.5rem;
    }
    
    .yandex-link {
        font-size: 8px;
        padding: 0 8px;
    }
}
