/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream-light: #fffdd0;
    --cream: #f5f5dc;
    --sage: #78866b;
    --gray: #505050;
    --white: #ffffff;
    --black: #000000;

    --bg-image: none;
    --bg-position: center;
    --bg-size: cover;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--gray);
    background-color: var(--cream-light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--sage);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.btn:hover {
    background-color: var(--gray);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--gray);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--cream);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-image {
    filter: brightness(0);
    height: 50px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--sage);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--gray);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--sage);
}

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

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

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

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Locations Section */
.locations {
    background-color: var(--cream);
}

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

.location-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
}

.location-image {
    height: 200px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.1);
}

.location-info {
    padding: 20px;
}

.location-info h3 {
    color: var(--sage);
    margin-bottom: 10px;
}

.location-info p {
    margin-bottom: 5px;
}

/* Menu Section */
.menu {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/menu-bg_new.jpg') center/cover no-repeat;
    z-index: -1;
}

.menu-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.menu-btn i {
    font-size: 1.2rem;
}

.menu-btn.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.menu-btn.btn-secondary:hover {
    background-color: var(--white);
    color: var(--sage);
    border-color: var(--white);
}

.menu-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.menu-content h2 {
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-content p {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Promotions Section */
.promotions {
    background-color: var(--white);
}

.carousel-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.promotion-card {
    min-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.promotion-image {
    height: 500px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--cream);
}

.promotion-image img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.promotion-card h3 {
    color: var(--sage);
    margin-bottom: 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--sage);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--gray);
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* Reservation Section */
.reservation {
    background-color: var(--cream);
}

.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.reservation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.reservation-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.reservation-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Contacts Section */
.contacts {
    background-color: var(--white);
}

.contacts-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--sage);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    margin-bottom: 5px;
    color: var(--gray);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--sage);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--gray);
}

.map {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--gray);
    color: var(--white);
    padding: 40px 0;
}

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

.footer-logo h2 {
    color: var(--white);
    text-align: left;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--cream-light);
}

/* Галерея */
.gallery {
    background-color: var(--cream);
    padding: 80px 0;
}

/* Модальные окна */
.modal-body {
    padding: 20px 0;
}

#modal-photo {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
}

.photo-info {
    margin-top: 20px;
}

.photo-info h3 {
    color: var(--sage);
    margin-bottom: 10px;
}

/* Адаптивность для галереи */
@media (max-width: 768px) {
    .logo {
        gap: 10px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .location-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .promotion-image {
        height: 400px;
    }
    
    .carousel-container {
        max-width: 350px;
    }

    .menu-content {
        padding: 25px 20px;
        margin: 0 15px;
    }
    
    .menu-buttons {
        max-width: 250px;
    }
    
    .menu-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}


.modal-body p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-body strong, .modal-body b {
    font-weight: bold;
    color: var(--sage);
}

.modal-body em, .modal-body i {
    font-style: italic;
}

.modal-body u {
    text-decoration: underline;
}

.modal-body ul, .modal-body ol {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-body h1, .modal-body h2, .modal-body h3, .modal-body h4 {
    color: var(--sage);
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.modal-body h1 {
    font-size: 1.8rem;
}

.modal-body h2 {
    font-size: 1.6rem;
}

.modal-body h3 {
    font-size: 1.4rem;
}

.modal-body h4 {
    font-size: 1.2rem;
}

.modal-body blockquote {
    border-left: 4px solid var(--sage);
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    color: var(--gray);
}

/* Сохраняем переносы строк */
.modal-body {
    white-space: pre-line;
}

/* Для HTML контента отменяем pre-line но сохраняем переносы */
.modal-body:not(:has(> br)) {
    white-space: normal;
}

/* .modal-actions {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--cream);
} */

/* .btn-close-modal {
    background: var(--gray);
    min-width: 150px;
} */

/* .btn-close-modal:hover {
    background: var(--sage);
} */

/* Стили для секций с фоновыми изображениями */
.section-with-bg {
    position: relative;
    overflow: hidden;
}

.section-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-position: var(--bg-position);
    background-size: var(--bg-size);
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.section-with-bg > .container {
    position: relative;
    z-index: 1;
}

/* Анимация для фоновых изображений */
/* .section-with-bg::before {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.section-with-bg:hover::before {
    opacity: 0.9;
    transform: scale(1.05);
} */

/* Затемнение для лучшей читаемости текста */
.section-with-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.section-with-bg.light-overlay::after {
    background: rgba(255, 255, 255, 0.1);
}

.section-with-bg.dark-overlay::after {
    background: rgba(0, 0, 0, 0.5);
}

.section-with-bg.no-overlay::after {
    display: none;
}

.section-with-bg h2,
.section-with-bg h3,
.section-with-bg p,
.section-with-bg .btn {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.section-with-bg .btn {
    background-color: var(--sage);
    border-color: var(--white);
}

.section-with-bg .btn:hover {
    background-color: var(--white);
    color: var(--sage);
}

/* Адаптивность для фоновых секций */
@media (max-width: 768px) {
    .section-with-bg::before {
        background-attachment: scroll;
    }
    
    .section-with-bg h2,
    .section-with-bg h3,
    .section-with-bg p {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }

    .promotion-image {
        height: 300px;
    }
    
    .carousel-container {
        max-width: 300px;
    }

    .menu-buttons {
        max-width: 220px;
    }
    
    .menu-btn {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .menu-content h2 {
        font-size: 2rem;
    }
    
    .menu-content p {
        font-size: 1rem;
    }
}

/* Стили для секции оплаты */
.payment-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--cream);
    text-align: center;
}

.payment-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.payment-btn {
    background-color: var(--sage);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.payment-btn:hover {
    background-color: var(--gray);
}

.qr-btn {
    background-color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.qr-btn:hover {
    background-color: var(--sage);
}

.payment-note {
    font-size: 0.9rem;
    color: var(--gray);
    opacity: 0.8;
    margin-top: 10px;
    text-align: center;
}

/* Стили для модального окна QR-кода */
.qr-modal-content {
    max-width: 500px;
    text-align: center;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

#qr-code-image {
    width: 300px;
    height: 300px;
    border: 1px solid var(--cream);
    border-radius: 8px;
    padding: 15px;
    background: var(--white);
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-info {
    margin-top: 20px;
}

.payment-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--sage);
    text-decoration: none;
    word-break: break-all;
    padding: 10px 15px;
    background: var(--cream-light);
    border-radius: 5px;
    border: 1px solid var(--cream);
}

.payment-link:hover {
    background: var(--cream);
    color: var(--gray);
}

.qr-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--cream);
    margin: 0;
}

.qr-modal-content .modal-header h2 {
    margin: 0;
    color: var(--sage);
    font-size: 1.8rem;
    flex: 1;
}

.qr-modal-content .modal-header .close {
    margin-left: 10px;
    font-size: 35px;
}

#qr-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--cream);
    margin: 0;
}

#qr-modal .modal-header h2 {
    margin: 0;
    color: var(--sage);
    font-size: 1.8rem;
    flex: 1;
}

#qr-modal .modal-header .close {
    margin-left: 10px;
    font-size: 35px;
}

.qr-modal-content > .close:not(.modal-header .close) {
    display: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .payment-buttons {
        flex-direction: column;
    }
    
    .payment-btn,
    .qr-btn {
        width: 100%;
        justify-content: center;
    }
    
    #qr-code-image {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .payment-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    #qr-code-image {
        width: 250px;
        height: 250px;
    }
    
    .payment-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

.modal-header .close {
    position: static;
    font-size: 40px;
    font-weight: bold;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    line-height: 1;
}

.modal-header .close:hover {
    color: var(--sage);
    transform: scale(1.1);
}