@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

html, body {
    height: 100%;
}
body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
}
.body-wrapper {
    flex: 1 0 auto;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 100;
    backdrop-filter: blur(5px);
}
.logo img {
    height: 60px;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.desktop-nav a {
    text-decoration: none;
    color: #000000;
    font-size: 19px;
    padding: 0 15px;
    position: relative;
}
.desktop-nav a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -15px;
    color: #ddd;
}
.desktop-nav a.active {
    color: #d35400;
}
.book-button {
    background-color: #000000;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 30px;
    box-sizing: border-box;
}

.mobile-nav .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.mobile-nav .logo img {
    height: 60px;
}
.mobile-nav .nav-links {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    margin: 15px 0;
}
.mobile-nav a.active {
    color: #d35400;
}

.mobile-nav .close-btn {
    font-size: 36px;
    cursor: pointer;
}

.mobile-nav-footer {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
}
.mobile-nav-footer .contact-info {
    margin-bottom: 20px;
}
.mobile-nav-footer p {
    margin: 5px 0;
}

.mobile-nav .book-button-mobile {
    background-color: #fff;
    color: #000;
    padding: 15px 0;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    display: block;
    text-align: center;
    width: 100%;
}


.stories {
    display: flex;
    padding: 30px 0;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
    scrollbar-width: none; /* Firefox */
}
.stories::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.story {
    flex: 0 0 auto;
    margin-right: 20px;
    border: 2px solid #d35400;
    border-radius: 15px;
    overflow: hidden;
    width: 130px;
    height: 190px;
    position: relative;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden; /* Fix for flickering border on scroll */
    backface-visibility: hidden;
    transform: translateZ(0); /* Another fix for flickering */
}
.story img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}
 .story .combo-title {
    font-weight: bold;
    font-size: 20px;
}
.story .price {
    font-size: 30px;
    font-weight: bold;
}
.story .combo-details {
    font-size: 14px;
    line-height: 1.2;
}

main {
    display: flex;
    margin-top: 30px;
}
.sidebar {
    width: 25%;
    padding-right: 40px;
    position: -webkit-sticky;
    position: sticky;
    top: 105px; 
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.sidebar li:hover {
    background-color: #f0f0f0;
}

.sidebar li.category-title {
    background-color: #000000;
    color: #fff;
    font-weight: bold;
}

.menu-content {
    width: 75%;
}
.menu-content h2 {
    margin-top: 0;
    font-size: 40px;
    font-weight: normal;
}
.dish-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
.dish-card {
    background-color: #fff;
    text-align: left;
}
.dish-card .dish-image-wrapper {
    border-radius: 15px;
    overflow: hidden;
}
.dish-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover; /* не растягиваем, обрезаем по контейнеру */
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.dish-card:hover img { transform: scale(1.03); }
.dish-card h4 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.dish-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    float: right;
}

@media (max-width: 768px) {
    .desktop-nav, .book-button {
        display: none;
    }
    .hamburger {
        display: block;
    }
    main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding-right: 0;
        position: sticky;
        z-index: 99;
        background-color: #ffffff;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
        height: auto;
        overflow-y: hidden;
        overflow-x: auto;
        white-space: nowrap;
    }
    .sidebar .category-title {
       background-color: transparent;
       color: #000;
       border-bottom: 2px solid #000;
       font-weight: bold;
    }
    .sidebar ul {
        display: flex;
        padding: 0 10px;
        margin: 0;
    }
    .sidebar li {
        flex: 0 0 auto;
        padding: 15px;
        border: none;
        border-radius: 0;
        margin-right: 0;
        border-bottom: 2px solid transparent;
    }
    .menu-content {
        width: 100%;
    }
    .dish-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Узкие телефоны < 400px: одна колонка меню */
@media (max-width: 399px) {
    .dish-grid {
        grid-template-columns: 1fr;
    }
}

footer {
    background-color: #000;
    color: #fff;
    padding: 50px 0;
    margin-top: 50px;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}
.footer-left {
    flex-basis: 25%;
    margin-left: auto;
    margin-right: auto;
}
.footer-left .logo img {
    height: 60px;
    margin-bottom: 20px;
}
.footer-left p {
    margin: 10px 0;
    display: flex;
    align-items: center;
}
.footer-left img {
    margin-right: 10px;
}
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.footer-socials a {
    display: inline-block;
}
.footer-socials img {
    height: 24px;
}

.footer-right {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-basis: 65%;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
}
.footer-column {
    flex-basis: 30%;
}
.footer-column h4 {
    font-size: 20px;
    margin-bottom: 20px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column ul a {
    color: #fff;
    text-decoration: none;
}
 @media (max-width: 980px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-left, .footer-right {
        flex-basis: 100%;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
    }
    .footer-right {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
        justify-items: center;
    }
    .footer-column {
        margin-bottom: 0;
    }
    .footer-column--bar {
        grid-column: 1 / -1; /* третья колонка под ними, по центру */
    }
    .footer-left .logo img {
        margin-left: 15%;
    }
    .footer-left .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Booking Modal */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}
.booking-modal {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
}
.booking-modal .close-modal {
    font-size: 36px;
    cursor: pointer;
}
.booking-modal h2 {
    margin: 0;
    font-weight: normal;
}
.booking-form {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
        "header header header header"
        "confirmation confirmation confirmation confirmation"
        "name   phone  date    guests"
        "notes  notes  notes   notes"
        "consent consent consent consent"
        "submit submit submit submit";
}
.booking-form-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.confirmation-note {
    grid-area: confirmation;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-group-name { grid-area: name; }
.form-group-phone { grid-area: phone; }
.form-group-date { grid-area: date; }
.form-group-guests { grid-area: guests; }
.form-group-notes { grid-area: notes; }
.form-group-consent { grid-area: consent; }
.form-group-submit {
    grid-area: submit;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 8px;
}
.form-group input, .form-group textarea {
    padding: 12px;
    border: 1px solid #000;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Cormorant Garamond', serif;
    width: 100%;
    box-sizing: border-box;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: #999;
}
.form-group textarea {
    resize: vertical;
    height: 100px;
}
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    line-height: 1.4;
    cursor: pointer;
}
.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #000;
}
.consent-label a {
    color: #000;
    text-decoration: underline;
}
.consent-error {
    margin: 8px 0 0 28px;
    color: #c0392b;
    font-size: 15px;
}
.form-group-consent--error .consent-label {
    color: #c0392b;
}
.submit-btn {
    background: #000;
    color: #fff;
    padding: 15px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    width: 200px;
}

@media (max-width: 768px) {
    .booking-modal-overlay {
        align-items: flex-end;
        background-color: #676767;
    }
    .booking-modal {
        width: 100%;
        max-width: 100%;
        position: fixed;
        bottom: 0;
        border-radius: 10% 10% 0 0;
        padding: 20px;
        animation: slideUp 0.3s ease-out;
        max-height: none; /* отключаем внутренний скролл */
        overflow-y: visible;
    }
    .booking-form {
        grid-template-columns: 1fr 1fr;
        padding: 5%;
        grid-template-areas:
            "header header"
            "confirmation confirmation"
            "name   name"
            "phone  phone"
            "date   guests"
            "notes  notes"
            "consent consent"
            "submit submit";
    }
    .form-group-submit {
        justify-content: stretch;
    }
    .submit-btn {
        width: 100%;
    }
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
     @keyframes slideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

.dish-card img.placeholder-img {
    background-color: #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0.5;
}

/* Центрирование счётчика гостей */
.form-group-guests input {
    text-align: center;
}

/* Стили для модального окна сторис */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Модалка блюда (меню) --- */
.item-modal-overlay {
    position: fixed;
    inset: 0;
    background: #676767;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.item-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    position: relative;
    display: flex;
    gap: 24px;
    padding: 24px;
    animation: slideUp 0.3s ease-out;
}
.item-modal.mobile {
    width: 100%;
    max-width: 100%;
    border-radius: 10% 10% 0 0;
    position: fixed;
    bottom: 0;
}
.close-item-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    display: none;
}
.item-modal-content { display: flex; gap: 24px; flex-direction: column; width: 100%; align-items: center;}
.item-modal-image img { width: 100%; max-width: 520px; border-radius: 12px; display: block; }
.item-modal-info h3 { margin: 0 0 10px 0; font-size: 32px; }
.item-modal-info .item-price { font-size: 26px; font-weight: bold; margin: 10px 0; }
.item-modal-info .item-measure { font-size: 18px; color: #555; }

@media (max-width: 768px) {
    .item-modal { flex-direction: column; gap: 16px; padding: 20px;}
    .item-modal-info h3 { font-size: 24px; }
    .item-modal-info .item-price { font-size: 22px; }
    .item-modal-info {margin-left: 5%;}
}

.story-modal-content {
    max-width: 500px;
    width: 90%;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.story-modal-content img {
    width: 100%;
    display: block;
}

.story-modal-content h3 {
    padding: 15px;
    margin: 0;
    color: #000;
    text-align: center;
}

.story-progress {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.story-progress-bar {
    height: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.story-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Стиль для активного пункта в сайдбаре */
.sidebar li.active {
    color: #fff;
    font-weight: bold;
}

/* Добавляем отступ для секций с категориями, чтобы они не слипались */
.menu-category-section:not(:last-child) {
    margin-bottom: 50px;
}

/* Стили для пагинации категорий на главной странице */
.category-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.load-more-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.all-loaded-message {
    color: #28a745;
    font-weight: 500;
    font-size: 14px;
    margin-top: 15px;
}

/* Стиль для просмотренных сторис */
.story.viewed {
    border-color: #aaa; /* Делаем рамку серой */
}

/* --- СТРАНИЦА ГАЛЕРЕИ --- */
.gallery-page {
    display: block;
    width: 100%;
    padding-bottom: 48px;
}

.gallery-header {
    width: 100%;
    text-align: center;
    padding: 32px 16px 8px;
}

.gallery-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.gallery-header__subtitle {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.gallery-grid {
    width: 100%;
    padding: 24px 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
}

.gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 48px 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    transform: translateY(-2px);
}

.gallery-item__link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.gallery-item__media {
    position: relative;
    display: block;
    flex: 1;
    min-height: 180px;
    overflow: hidden;
}

.gallery-item__media img,
.gallery-item__preview-video,
.gallery-item__placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    background: #111;
}

.gallery-item__placeholder {
    background: linear-gradient(135deg, #1a1a1a 0%, #3d2314 50%, #d35400 100%);
}

.gallery-item:hover .gallery-item__media img,
.gallery-item:hover .gallery-item__preview-video {
    transform: scale(1.06);
}

.gallery-item--video:hover .gallery-item__media img,
.gallery-item--video:hover .gallery-item__preview-video {
    transform: scale(1.04);
}

.gallery-item__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 6px;
    pointer-events: none;
}

.gallery-item__caption {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.35;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:nth-child(4n+1) { grid-column: 1 / 2; grid-row: span 2; }
.gallery-item:nth-child(4n+2) { grid-column: 2 / 3; grid-row: span 1; }
.gallery-item:nth-child(4n+3) { grid-column: 3 / 4; grid-row: span 2; }
.gallery-item:nth-child(4n+4) { grid-column: 2 / 3; grid-row: span 2; }

.gallery-item:nth-child(4n+1) .gallery-item__media { min-height: 100%; }
.gallery-item:nth-child(4n+3) .gallery-item__media { min-height: 100%; }
.gallery-item:nth-child(4n+4) .gallery-item__media { min-height: 100%; }

@media (max-width: 768px) {
    .gallery-header {
        padding-top: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-top: 16px;
    }

    .gallery-item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .gallery-item__media {
        min-height: 260px;
    }
}


/* --- СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ --- */
.contacts-main {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info h1 {
    font-size: 52px;
    margin-bottom: 30px;
}

.contact-info p {
    font-size: 18px;
    margin: 15px 0;
}

.contact-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-socials a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: #000;
    border-radius: 5px;
}

.contact-socials img {
    height: 18px;
    /* filter: invert(1); Делаем иконки белыми, если они черные */
}

.map-placeholder {
    width: 100%;
    height: 350px; /* Немного увеличим высоту для баланса */
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.reviews-section {
    margin-top: 80px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Для адаптивности */
}

.reviews-header h2 {
    font-size: 40px;
    margin: 0;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-summary .score {
    font-size: 52px;
    font-weight: bold;
}

.rating-summary .stars, .review-card .stars {
    font-size: 26px;
    color: #f39c12;
}

.rating-summary .reviews-count {
    font-size: 18px;
    color: #777;
}

.view-all-reviews {
    background-color: #000;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

/* Контакты: перенос кнопки "Посмотреть все" вниз на мобильных */
.view-all-wrapper-mobile { display: none; margin-top: 50px; text-align: center; }
.view-all-reviews-mobile { display: inline-block; }

/* --- ОБЩИЕ СТИЛИ ДЛЯ ОТЗЫВОВ (для обеих страниц) --- */
.reviews-main {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
}

/* Подготовка грид-мейсонри для страницы отзывов */
.reviews-main .reviews-grid {
    grid-auto-rows: 8px;
}

.reviews-main h1 {
    font-size: 52px;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.review-card {
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: max-content;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-card-header h4 {
    margin: 0;
    font-size: 18px;
}

.review-card-header .review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
}

.review-card p {
    margin: 0;
    line-height: 1.6;
    flex-grow: 1;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* --- СТИЛИ ДЛЯ ПАГИНАЦИИ (страница reviews) --- */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .step-links a, .pagination .current {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #000;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination .current {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    body { font-size: 16px; }
    .menu-content h2 { font-size: 30px; }
    .dish-card h4 { font-size: 18px; }
    .dish-card .price { font-size: 20px; }
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .reviews-header .view-all-reviews { display: none; }
    .view-all-wrapper-mobile { display: block; }
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-main h1, .contact-info h1 {
        font-size: 34px;
    }
    .contacts-main .reviews-grid {
        grid-auto-rows: 0 !important;
    }
}

/* Очень узкие устройства: < 400px — одна колонка отзывов */
@media (max-width: 399px) {
    .reviews-grid { grid-template-columns: 1fr; }
}

/* Контакты: подготовка грид-мейсонри через авто-строки */
.contacts-main .reviews-grid {
    grid-auto-rows: 8px; /* базовая высота строки для вычисления span */
}

/* Privacy page */
.privacy-main {
    padding: 50px 0 80px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-main h1 {
    font-size: 52px;
    margin-bottom: 40px;
    font-weight: normal;
}

.privacy-content {
    font-size: 18px;
    line-height: 1.6;
}

.privacy-content h2,
.privacy-content h3 {
    font-size: 28px;
    margin: 32px 0 16px;
    font-weight: normal;
}

.privacy-content p {
    margin: 0 0 16px;
}

.privacy-content ul,
.privacy-content ol {
    margin: 0 0 16px 24px;
}

.privacy-content a {
    color: #000;
    text-decoration: underline;
}

.privacy-updated {
    margin-top: 40px;
    color: #666;
    font-size: 16px;
}

.privacy-empty {
    font-size: 20px;
    color: #666;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: #fff;
    border-top: 1px solid #000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.cookie-banner__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    max-width: 900px;
}

.cookie-banner__text a {
    color: #000;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid #000;
    font-size: 16px;
    font-family: 'Cormorant Garamond', serif;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-banner__btn--accept {
    background: #000;
    color: #fff;
}

.cookie-banner__btn--reject {
    background: #fff;
    color: #000;
}

@media (max-width: 768px) {
    .privacy-main h1 {
        font-size: 34px;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}