/* ==========================================
   1. ОБЩИЕ НАСТРОЙКИ САЙТА
   Базовые цвета, шрифты и сброс отступов
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #FCE5C9;
    color: #38271F;
}

/* Цвета проекта:
   Основной фон — #f7f3ec
   Акцентный красный — #a63e2d
   Основной текст — #332c27
   Дополнительный текст — #806b5c
*/


/* ==========================================
   2. ШАПКА САЙТА
   Общий внешний вид и расположение элементов
========================================== */

.header {
    width: 100%;
    min-height: 88px;
    background-color: #FFF8EE;

    /* Тонкая линия под шапкой */
    border-bottom: 1px solid rgba(80, 55, 40, 0.10);

    /* Шапка остаётся сверху при прокрутке */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    max-width: 1320px;
    min-height: 88px;
    margin: 0 auto;
    padding: 0 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* ==========================================
   3. ЛОГОТИП
   Используем оригинальный SVG-файл
========================================== */

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

/* Размер и пропорции оригинального логотипа */
.logo__image {
    display: block;
    width: 300px;
    height: auto;
    object-fit: contain;
}

/* ==========================================
   4. НАВИГАЦИЯ
   Ссылки в компьютерной версии сайта
========================================== */

.navigation {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navigation__link {
    position: relative;
    padding: 10px 0;

    color: #44372f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    transition: color 0.25s ease;
}

/* Изменение цвета при наведении */
.navigation__link:hover {
    color: #a63e2d;
}

/* Подчёркивание активного пункта меню */
.navigation__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;

    width: 0;
    height: 2px;
    background-color: #a63e2d;

    transition: width 0.25s ease;
}

.navigation__link:hover::after,
.navigation__link--active::after {
    width: 100%;
}


/* ==========================================
   5. НОМЕР ТЕЛЕФОНА
========================================== */

.header__phone {
    color: #a63e2d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;

    transition: opacity 0.25s ease;
}

.header__phone:hover {
    opacity: 0.75;
}


/* ==========================================
   6. КНОПКА-БУРГЕР
   По умолчанию скрыта на компьютерах
========================================== */

.burger {
    display: none;
    width: 38px;
    height: 38px;
    padding: 7px;

    background: transparent;
    border: none;
    cursor: pointer;
}

.burger__line {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;

    background-color: #a63e2d;
    border-radius: 2px;

    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Анимация превращения бургера в крестик */
.burger.is-active .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-active .burger__line:nth-child(2) {
    opacity: 0;
}

.burger.is-active .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================
   7. АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ
   Экран шириной до 1050 пикселей
========================================== */

@media (max-width: 1050px) {

    .header__container {
        padding: 0 25px;
        gap: 20px;
    }

    .navigation {
        gap: 22px;
    }

    .navigation__link {
        font-size: 13px;
    }

    .header__phone {
        font-size: 14px;
    }
}


/* ==========================================
   8. АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ
   Экран шириной до 768 пикселей
========================================== */

@media (max-width: 768px) {

    .header,
    .header__container {
        min-height: 72px;
    }

    .header__container {
        padding: 0 20px;
        gap: 15px;
    }

   /* Размер логотипа на телефонах */
    .logo__image {
        width: 225px;
    }

    /* Скрываем телефон в шапке на узких экранах */
    .header__phone {
        display: none;
    }

    /* Показываем кнопку-бургер */
    .burger {
        display: block;
        flex-shrink: 0;
        position: relative;
        z-index: 1002;
    }

    /* Мобильное выпадающее меню */
    .navigation {
        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;
        padding: 20px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background-color: #fffdf9;
        border-bottom: 1px solid rgba(80, 55, 40, 0.10);
        box-shadow: 0 12px 20px rgba(50, 35, 25, 0.08);

        /* Скрыто до нажатия на бургер */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);

        transition: opacity 0.25s ease,
                    visibility 0.25s ease,
                    transform 0.25s ease;
    }

    /* Показываем меню при открытии */
    .navigation.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navigation__link {
        display: block;
        padding: 15px 5px;
        font-size: 15px;

        border-bottom: 1px solid rgba(80, 55, 40, 0.08);
    }

    .navigation__link:last-child {
        border-bottom: none;
    }

    .navigation__link::after {
        display: none;
    }
}


/* ==========================================
   9. МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   Экран шириной до 380 пикселей
========================================== */

@media (max-width: 380px) {

    .header__container {
        padding: 0 15px;
    }

    /* Размер логотипа на телефонах */
    .logo__image {
        width: 190px;
    }

    .burger {
        width: 34px;
    }
}


/* ==========================================
   10. ПЕРВЫЙ ЭКРАН САЙТА (HERO)
========================================== */

.hero {
    position: relative;
    width: 100%;
    height: 46.875vw;
    min-height: 480px;
    max-height: 760px;

    display: flex;
    align-items: center;

    background-color: #F4EBDD;
    overflow: hidden;
}

/* Фоновые изображения */

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.hero__background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Общий контейнер */

.hero__container {
    position: relative;
    z-index: 1;

    width: 90%;
    max-width: 1250px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
}

/* Текстовая часть */

.hero__content {
    width: 44%;
    max-width: 570px;
}

/* Надпись над заголовком */

.hero__label {
    display: block;
    margin-bottom: 22px;

    color: #A63E2D;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Заголовок */

.hero__title {
    margin: 0 0 24px;

    color: #38271F;
    font-size: clamp(42px, 4.2vw, 66px);
    line-height: 1.12;
    font-weight: 600;
}

.hero__title span {
    display: block;
    color: #A63E2D;
}

/* Описание */

.hero__description {
    max-width: 470px;
    margin: 0 0 30px;

    color: #806653;
    font-size: 17px;
    line-height: 1.7;
}

/* Кнопка */

.hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    padding: 17px 27px;

    background-color: #A63E2D;
    color: #FFF8EE;

    border-radius: 5px;
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: background-color 0.3s ease,
                transform 0.3s ease;
}

.hero__button:hover {
    background-color: #873020;
    transform: translateY(-3px);
}

.hero__button span {
    font-size: 21px;
}

/* ==========================================
   КИТАЙСКАЯ НАДПИСЬ — КОМПЬЮТЕР
   Отдельно от текстового блока
========================================== */

.hero__culture {
    position: absolute;
    left: 36%;
    top: 36%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    margin: 0;
}

.hero__characters {
    color: #A63E2D;
    font-family: serif;
    font-size: 62px;
    font-weight: 600;
    letter-spacing: 5px;

    writing-mode: vertical-rl;
    text-orientation: upright;
}

.hero__translation {
    color: #806653;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* ==========================================
   АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ
========================================== */

@media (max-width: 900px) and (min-width: 601px) {

    .hero {
        min-height: 500px;
    }

    .hero__container {
        width: 88%;
    }

    .hero__content {
        width: 45%;
    }

    .hero__title {
        font-size: clamp(38px, 5vw, 48px);
    }

    .hero__description {
        font-size: 15px;
    }

    .hero__culture {
        left: 53%;
    }

    .hero__characters {
        font-size: 36px;
    }
}

/* ==========================================
   АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ
========================================== */

@media (max-width: 600px) {

    .hero {
        height: 650px;
        min-height: 0;
        max-height: none;

        align-items: flex-start;
    }

    /* Мобильное изображение */

    .hero__background {
        overflow: hidden;
    }

    .hero__background img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center bottom;
        transform: translateY(15px);
    }

    /* Текстовая часть */

    .hero__container {
        width: 88%;
        height: auto;
        margin: 0 auto;
        padding-top: 27px;

        justify-content: center;
    }

    .hero__content {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }

    .hero__label {
        margin-bottom: 13px;
        font-size: 10px;
        letter-spacing: 1.7px;
    }

    .hero__title {
        font-size: clamp(30px, 8vw, 36px);
        line-height: 1.12;
        margin-bottom: 13px;
    }

    .hero__description {
        max-width: 360px;
        font-size: 13px;
        line-height: 1.45;
        margin: 0 auto 16px;
    }

    .hero__button {
        padding: 13px 20px;
        gap: 12px;
        font-size: 13px;
    }

    /* Китайская надпись на телефоне */

    .hero__culture {
        position: static;
        transform: none;

        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;

        margin-top: 12px;
    }

    .hero__characters {
        writing-mode: horizontal-tb;
        font-size: 33px;
        letter-spacing: 2px;
    }

    .hero__translation {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
}


/* ==========================================
   11. ГАЛЕРЕЯ ПОПУЛЯРНЫХ БЛЮД
========================================== */

.gallery {
    width: 100%;
    padding: 100px 0;
    background-color: #FCE5C9;
}

.gallery__container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
}

/* Заголовок */

.gallery__heading {
    max-width: 700px;
    margin: 0 auto 55px;
    text-align: center;
}

.gallery__subtitle {
    display: block;
    margin-bottom: 15px;

    color: #A63E2D;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
}

.gallery__title {
    margin-bottom: 18px;

    color: #38271F;
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.2;
    font-weight: 600;
}

.gallery__description {
    color: #806653;
    font-size: 16px;
    line-height: 1.7;
}

/* ==========================================
   КОМПЬЮТЕРНАЯ ГАЛЕРЕЯ
========================================== */

.gallery__desktop {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gallery__mobile {
    display: none;
}

/* Контейнер одной галереи */

.gallery-panel {
    min-width: 0;
}

/* Область со слайдами */

.gallery-panel__slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1.12 / 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #E8D3BA;
}

/* Слайды располагаются друг над другом */

.gallery-slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.8s ease,
                visibility 0.8s ease;
}

.gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* ==========================================
   ВРЕМЕННЫЕ ЗАГЛУШКИ
   Вместо фотографий до появления оригинальных
========================================== */

.gallery-slide__placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background-color: #D9C2A8;
}

/* Декоративная имитация блюда на тарелке */

.gallery-slide__placeholder::before {
    content: "";
    position: absolute;

    width: 55%;
    aspect-ratio: 1;

    border-radius: 50%;
    border: 12px solid rgba(255, 248, 238, 0.55);

    background:
        radial-gradient(
            circle,
            rgba(166, 62, 45, 0.18) 0 25%,
            rgba(255, 248, 238, 0.35) 26% 58%,
            rgba(255, 248, 238, 0.12) 59% 100%
        );

    box-shadow: 0 15px 40px rgba(56, 39, 31, 0.12);
    transition: transform 0.7s ease;
}

.gallery-slide__placeholder span {
    position: relative;
    z-index: 1;

    padding: 10px 15px;

    color: #806653;
    background: rgba(255, 248, 238, 0.82);

    border-radius: 3px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Различия между заглушками */

.placeholder--one {
    background: linear-gradient(135deg, #D9BFA5, #B78F72);
}

.placeholder--two {
    background: linear-gradient(135deg, #E2C7A9, #C59A79);
}

.placeholder--three {
    background: linear-gradient(135deg, #CDBBA5, #A99178);
}

.placeholder--four {
    background: linear-gradient(135deg, #D8B5A0, #B77F68);
}

.placeholder--five {
    background: linear-gradient(135deg, #DCC8AC, #BBA184);
}

.placeholder--six {
    background: linear-gradient(135deg, #E1CDB7, #C3A58A);
}

/* ==========================================
   ТЕКСТ ПОВЕРХ ФОТОГРАФИИ
========================================== */

.gallery-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;

    padding: 35px;

    color: #FFF8EE;

    background: linear-gradient(
        to top,
        rgba(35, 23, 17, 0.88) 0%,
        rgba(35, 23, 17, 0.55) 35%,
        rgba(35, 23, 17, 0.08) 75%,
        transparent 100%
    );

    opacity: 0;
    transform: translateY(12px);

    transition: opacity 0.4s ease,
                transform 0.4s ease;
}

/* Показываем текст при наведении */

.gallery-slide.is-active:hover .gallery-slide__overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Категория блюда */

.gallery-slide__category {
    margin-bottom: 12px;

    color: #F0C6A0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Название блюда */

.gallery-slide__overlay h3 {
    margin-bottom: 12px;

    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.2;
    font-weight: 600;
}

/* Описание блюда */

.gallery-slide__overlay p {
    max-width: 430px;

    color: rgba(255, 248, 238, 0.88);
    font-size: 14px;
    line-height: 1.6;
}

/* Небольшое увеличение заглушки при наведении */

.gallery-slide.is-active:hover .gallery-slide__placeholder::before {
    transform: scale(1.06);
}

/* ==========================================
   СТРЕЛКИ И ТОЧКИ
========================================== */

.gallery-panel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;

    padding-top: 20px;
}

.gallery-arrow {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(166, 62, 45, 0.35);
    border-radius: 50%;

    background: transparent;
    color: #A63E2D;

    font-size: 19px;
    cursor: pointer;

    transition: background-color 0.25s ease,
                color 0.25s ease,
                border-color 0.25s ease;
}

.gallery-arrow:hover {
    background-color: #A63E2D;
    color: #FFF8EE;
    border-color: #A63E2D;
}

/* Контейнер точек */

.gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

/* Отдельная точка */

.gallery-dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: none;
    border-radius: 50%;

    background-color: rgba(166, 62, 45, 0.3);
    cursor: pointer;

    transition: width 0.25s ease,
                background-color 0.25s ease;
}

/* Активная точка */

.gallery-dot.is-active {
    width: 22px;
    border-radius: 5px;
    background-color: #A63E2D;
}

/* ==========================================
   КНОПКА ПОЛНОГО МЕНЮ
========================================== */

.gallery__footer {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.gallery__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    padding: 16px 26px;

    border: 1px solid #A63E2D;
    border-radius: 5px;

    color: #A63E2D;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: background-color 0.25s ease,
                color 0.25s ease;
}

.gallery__button:hover {
    background-color: #A63E2D;
    color: #FFF8EE;
}

.gallery__button span {
    font-size: 19px;
}

/* ==========================================
   ПЛАНШЕТЫ
========================================== */

@media (max-width: 900px) {

    .gallery {
        padding: 75px 0;
    }

    .gallery__desktop {
        gap: 16px;
    }

    .gallery-panel__slides {
        aspect-ratio: 0.95 / 1;
    }

    .gallery-slide__overlay {
        padding: 22px;
    }

    .gallery-slide__overlay h3 {
        font-size: 23px;
    }

    .gallery-slide__overlay p {
        font-size: 13px;
    }
}

/* ==========================================
   МОБИЛЬНЫЕ ТЕЛЕФОНЫ
========================================== */

@media (max-width: 600px) {

    .gallery {
        padding: 65px 0;
    }

    .gallery__container {
        width: 90%;
    }

    .gallery__heading {
        margin-bottom: 30px;
    }

    .gallery__subtitle {
        font-size: 10px;
    }

    .gallery__title {
        font-size: 29px;
        line-height: 1.2;
    }

    .gallery__description {
        font-size: 14px;
    }

    /* Скрываем компьютерные галереи */

    .gallery__desktop {
        display: none;
    }

    /* Показываем мобильную галерею */

    .gallery__mobile {
        display: block;
    }

    .gallery-panel__slides {
        aspect-ratio: 0.82 / 1;
        border-radius: 7px;
    }

    /* На телефоне подпись всегда видна */

    .gallery-slide__overlay {
        padding: 24px 20px;
        opacity: 1;
        transform: none;
    }

    .gallery-slide__category {
        margin-bottom: 9px;
        font-size: 9px;
    }

    .gallery-slide__overlay h3 {
        margin-bottom: 9px;
        font-size: 24px;
    }

    .gallery-slide__overlay p {
        font-size: 13px;
        line-height: 1.5;
    }

    .gallery-panel__controls {
        gap: 18px;
        padding-top: 17px;
    }

    .gallery-arrow {
        width: 35px;
        height: 35px;
    }

    .gallery__footer {
        margin-top: 32px;
    }
}

/* Уменьшаем анимацию, если пользователь
   предпочитает минимальное движение */

@media (prefers-reduced-motion: reduce) {
    .gallery *,
    .gallery *::before,
    .gallery *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Фотографии блюд */
.gallery-slide__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Содержимое слайда */
.gallery-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Подпись поверх фотографии */
.gallery-slide__overlay {
    z-index: 2;
}

/* ==========================================
   12. ПРЕИМУЩЕСТВА КАФЕ
========================================== */

.advantages {
    width: 100%;
    padding: 65px 0;
    background-color: #F4EBDD;
}

.advantages__container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.advantage {
    display: flex;
    align-items: flex-start;
    gap: 22px;

    padding: 10px 35px;
    border-right: 1px solid rgba(56, 39, 31, 0.2);
}

.advantage:first-child {
    padding-left: 0;
}

.advantage:last-child {
    border-right: none;
    padding-right: 0;
}

.advantage__number {
    font-family: Georgia, serif;
    font-size: 17px;
    color: #A16F4F;
    line-height: 1.4;
}

.advantage__content h3 {
    margin-bottom: 10px;

    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 400;
    color: #38271F;
}

.advantage__content p {
    max-width: 290px;

    font-size: 14px;
    line-height: 1.7;
    color: #806B5C;
}


/* Планшеты */

@media (max-width: 900px) {
    .advantages {
        padding: 50px 0;
    }

    .advantage {
        gap: 14px;
        padding: 10px 20px;
    }

    .advantage__content h3 {
        font-size: 19px;
    }

    .advantage__content p {
        font-size: 13px;
    }
}


/* Телефоны */

@media (max-width: 600px) {
    .advantages {
        padding: 35px 0;
    }

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

    .advantage,
    .advantage:first-child,
    .advantage:last-child {
        padding: 22px 0;
        border-right: none;
        border-bottom: 1px solid rgba(56, 39, 31, 0.2);
        gap: 20px;
    }

    .advantage:last-child {
        border-bottom: none;
    }

    .advantage__content h3 {
        font-size: 21px;
        margin-bottom: 6px;
    }

    .advantage__content p {
        max-width: 100%;
        font-size: 14px;
    }
}

/* Параллакс для блока преимуществ */

.advantages {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #38271F;
}

.advantages__background {
    position: absolute;
    z-index: -1;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    overflow: hidden;
    pointer-events: none;
}

.advantages__background img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: translate3d(0, 0, 0);
}

.advantages::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(38, 25, 19, 0.68);
    pointer-events: none;
}

.advantages__container {
    position: relative;
    z-index: 1;
}

.advantage__number {
    color: #D9AE87;
}

.advantage__content h3 {
    color: #FFF8EE;
}

.advantage__content p {
    color: #E2D2C3;
}

.advantage {
    border-color: rgba(255, 248, 238, 0.25);
}

/* ==========================================
   13. БЛОК ДОСТАВКИ
========================================== */

.delivery {
    width: 100%;
    padding: 110px 0;
    background-color: #FCE5C9;
}

.delivery__container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 85px;
}

/* Фотография */

.delivery__image {
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 4px;
}

.delivery__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Текст */

.delivery__content {
    max-width: 480px;
}

.delivery__subtitle {
    display: block;
    margin-bottom: 25px;

    font-size: 12px;
    letter-spacing: 3px;
    color: #A16F4F;
}

.delivery__title {
    margin-bottom: 25px;

    font-family: Georgia, serif;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.2;
    font-weight: 400;
    color: #38271F;
}

.delivery__title span {
    display: block;
    color: #A16F4F;
}

.delivery__description {
    margin-bottom: 35px;

    font-size: 15px;
    line-height: 1.9;
    color: #806B5C;
}

/* Кнопка */
/* Кнопка заказа */

.delivery__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 35px;

    padding: 18px 28px;

    background-color: #38271F;
    color: #FFF8EE;

    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.5px;

    overflow: hidden;
    isolation: isolate;

    transition:
        background-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* Световой блик */

.delivery__button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;

    background: rgba(255, 255, 255, 0.16);
    transform: skewX(-25deg);

    transition: left 0.65s ease;
    z-index: -1;
}

/* Стрелка */

.delivery__button span {
    display: inline-block;
    font-size: 19px;

    transition: transform 0.35s ease;
}

/* Наведение */

.delivery__button:hover {
    background-color: #A16F4F;
    transform: translateY(-3px);

    box-shadow: 0 9px 22px rgba(56, 39, 31, 0.18);
}

.delivery__button:hover::before {
    left: 140%;
}

.delivery__button:hover span {
    transform: translate(4px, -3px);
}

/* Нажатие */

.delivery__button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: none;
}

/* Фокус с клавиатуры */

.delivery__button:focus-visible {
    outline: 2px solid #A16F4F;
    outline-offset: 4px;
}

/* Пока ссылка не добавлена */

.delivery__button[aria-disabled="true"] {
    cursor: default;
}

.delivery__button[aria-disabled="true"]:hover {
    background-color: #38271F;
    transform: none;
    box-shadow: none;
}

.delivery__button[aria-disabled="true"]:hover::before {
    left: -80%;
}

.delivery__button[aria-disabled="true"]:hover span {
    transform: none;
}

/* Учитываем настройки уменьшения анимации */

@media (prefers-reduced-motion: reduce) {
    .delivery__button,
    .delivery__button::before,
    .delivery__button span {
        transition: none;
    }
}
.delivery__note {
    margin-top: 17px;
    font-size: 12px;
    color: #A18B7B;
    letter-spacing: 1px;
}


/* Планшеты */

@media (max-width: 900px) {

    .delivery {
        padding: 75px 0;
    }

    .delivery__container {
        gap: 40px;
    }

    .delivery__image {
        height: 390px;
    }

    .delivery__title {
        font-size: 38px;
    }

}


/* Телефоны */

@media (max-width: 600px) {

    .delivery {
        padding: 55px 0;
    }

    .delivery__container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .delivery__image {
        height: 300px;
    }

    .delivery__content {
        max-width: 100%;
    }

    .delivery__subtitle {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .delivery__title {
        font-size: 37px;
        margin-bottom: 20px;
    }

    .delivery__description {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .delivery__button {
        width: 100%;
        justify-content: space-between;
    }

}

/* ==========================================
   14. О НАС И КОНТАКТЫ
========================================== */

.contacts {
    width: 100%;
    padding: 110px 0;
    background-color: #F4EBDD;
    scroll-margin-top: 90px;
}

.contacts__container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 80px;
}

/* Информация */

.contacts__info {
    max-width: 440px;
    scroll-margin-top: 100px;
}

.contacts__subtitle {
    display: block;
    margin-bottom: 25px;

    font-size: 12px;
    letter-spacing: 3px;
    color: #A16F4F;
}

.contacts__title {
    margin-bottom: 25px;

    font-family: Georgia, serif;
    font-size: clamp(40px, 4vw, 56px);
    line-height: 1.15;
    font-weight: 400;
    color: #38271F;
}

.contacts__title span {
    display: block;
    color: #A16F4F;
}

.contacts__description {
    margin-bottom: 40px;

    font-size: 15px;
    line-height: 1.9;
    color: #806B5C;
}

/* Контактные данные */

.contacts__details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 35px;
}

.contacts__item {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.contacts__label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #A16F4F;
}

.contacts__item p,
.contacts__item a {
    font-size: 16px;
    line-height: 1.6;
    color: #38271F;
    text-decoration: none;
}

.contacts__item a:hover {
    color: #A16F4F;
}

/* Кнопка маршрута */

.contacts__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    padding: 18px 28px;

    background-color: #38271F;
    color: #FFF8EE;

    font-size: 14px;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.contacts__button span {
    font-size: 19px;
    transition: transform 0.3s ease;
}

.contacts__button:hover {
    background-color: #A16F4F;
    transform: translateY(-3px);
}

.contacts__button:hover span {
    transform: translate(4px, -3px);
}

/* Карта */

.contacts__map {
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 3px;
    background-color: #E8D8C7;
}

.contacts__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}


/* Планшеты */

@media (max-width: 900px) {

    .contacts {
        padding: 75px 0;
    }

    .contacts__container {
        gap: 40px;
        grid-template-columns: 0.9fr 1.1fr;
    }

    .contacts__map {
        height: 430px;
    }

}


/* Телефоны */

@media (max-width: 600px) {

    .contacts {
        padding: 60px 0;
    }

    .contacts__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts__info {
        max-width: 100%;
    }

    .contacts__title {
        font-size: 42px;
    }

    .contacts__description {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .contacts__map {
        height: 350px;
    }

    .contacts__button {
        width: 100%;
    }

}


/* ==============================
   15. REVIEWS
============================== */

.reviews {
    padding: 100px 0;
    background: #FCE5C9;
    overflow: hidden;
}

.reviews__container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
}

.reviews__header {
    text-align: center;
    margin-bottom: 50px;
}

.reviews__label {
    display: block;
    margin-bottom: 12px;
    color: #A76E42;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.reviews__title {
    margin: 0 0 15px;
    color: #6B4A34;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
}

.reviews__subtitle {
    margin: 0;
    color: #80634F;
    font-size: 16px;
}

.reviews__slider {
    position: relative;
}

.reviews__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.review-card {
    min-height: 255px;
    padding: 25px;
    background: #FFF8EE;
    border: 1px solid rgba(107, 74, 52, 0.08);
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(80, 48, 25, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(80, 48, 25, 0.10);
}

.review-card__top {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.review-card__avatar {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EBD1B3;
    color: #6B4A34;
    font-size: 19px;
    font-weight: 600;
}

.review-card__name {
    margin: 0 0 5px;
    color: #6B4A34;
    font-size: 17px;
}

.review-card__date {
    color: #A18A77;
    font-size: 11px;
}

.review-card__stars {
    margin-bottom: 13px;
    color: #C18B4F;
    font-size: 19px;
    letter-spacing: 2px;
}

.review-card__text {
    margin: 0;
    color: #705B49;
    font-size: 14px;
    line-height: 1.7;
}

.reviews__arrow {
    display: none;
}

.reviews__dots {
    display: none;
}

/* TABLET */

@media (max-width: 1000px) {
    .reviews__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-card {
        min-height: 230px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .reviews {
        padding: 70px 0;
    }

    .reviews__header {
        margin-bottom: 30px;
    }

    .reviews__subtitle {
        max-width: 300px;
        margin: 0 auto;
        font-size: 14px;
        line-height: 1.6;
    }

    .reviews__slider {
        padding: 0 5px;
    }

    .reviews__track {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .reviews__track::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        flex: 0 0 100%;
        min-height: 240px;
        scroll-snap-align: center;
        box-sizing: border-box;
    }

    .reviews__arrow {
        display: flex;
        position: absolute;
        z-index: 2;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        background: #FFF8EE;
        color: #6B4A34;
        font-size: 20px;
        cursor: pointer;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    }

    .reviews__arrow--prev {
        left: -10px;
    }

    .reviews__arrow--next {
        right: -10px;
    }

    .reviews__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 25px;
    }

    .reviews__dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #D9BFA3;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .reviews__dot.active {
        width: 22px;
        border-radius: 10px;
        background: #A76E42;
    }
}

/* REVIEWS FOOTER */

.reviews__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 45px;
}

.reviews__footer-text {
    margin: 0;
    color: #80634F;
    font-size: 15px;
}

.reviews__leave-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 6px;
    background: #6B4A34;
    color: #FFF8EE;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.reviews__leave-button:hover {
    background: #8A6043;
    transform: translateY(-3px);
}

.reviews__leave-button span {
    font-size: 18px;
}

@media (max-width: 600px) {
    .reviews__footer {
        margin-top: 35px;
    }

    .reviews__leave-button {
        width: 100%;
        max-width: 280px;
        box-sizing: border-box;
    }
}


/* ==============================
   16. FOOTER
============================== */

.footer {
    padding: 65px 0 25px;
    background: #38271F;
    color: #FCE5C9;
}

.footer__container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
}

.footer__main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 45px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer__logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.footer__description {
    max-width: 260px;
    margin: 0;
    color: #D5BDA7;
    font-size: 14px;
    line-height: 1.7;
}

.footer__heading {
    margin: 0 0 22px;
    color: #FFF8EE;
    font-size: 17px;
    font-weight: 600;
}

.footer__navigation,
.footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__navigation a,
.footer__contacts a {
    margin-bottom: 13px;
    color: #D5BDA7;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__navigation a:hover,
.footer__contacts a:hover,
.footer__bottom a:hover {
    color: #E6B77F;
}

.footer__contacts p {
    margin: 0 0 13px;
    color: #D5BDA7;
    font-size: 14px;
    line-height: 1.6;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(252, 229, 201, 0.18);
}

.footer__bottom p {
    margin: 0;
    color: #BDA590;
    font-size: 12px;
}

.footer__bottom a {
    color: #D5BDA7;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* TABLET */

@media (max-width: 800px) {
    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

/* MOBILE */

@media (max-width: 500px) {
    .footer {
        padding: 50px 0 22px;
    }

    .footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__logo img {
        width: 190px;
    }

    .footer__heading {
        font-size: 15px;
        margin-bottom: 17px;
    }

    .footer__navigation a,
    .footer__contacts a,
    .footer__contacts p {
        font-size: 12px;
    }

    .footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}


/* ========================================
   17. MENU PAGE
======================================== */

/* Верхний блок */

.menu-intro {
    padding: 40px 0 40px;
    background-image: url("../images/menu/menu-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.menu-intro__container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
}

.menu-intro__label {
    margin: 0 0 15px;
    color: #A47B5A;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
}

.menu-intro__title {
    margin: 0;
    color: #38271F;
    font-family: inherit;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 500;
}

.menu-intro__description {
    margin: 18px 0 0;
    color: #80634F;
    font-size: 17px;
}

/* Основная область меню */

.menu-content {
    padding: 0 0 100px;
    background: #FCE5C9;
}

/* Навигация по категориям */

.menu-categories {
    position: sticky;
    top: 88px;
    z-index: 900;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 20px 5%;
    background: #FFF8EE;
    border-bottom: 1px solid rgba(107, 74, 52, 0.12);

    overflow-x: auto;
    scrollbar-width: none;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.menu-categories__link {
    flex-shrink: 0;
    padding: 11px 20px;

    border: 1px solid #DCC9B5;
    border-radius: 30px;

    color: #6B4A34;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;

    transition: all 0.25s ease;
}

.menu-categories__link:hover {
    background: #6B4A34;
    border-color: #6B4A34;
    color: #FFF8EE;
}

/* Разделы меню */

.menu-sections {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
}

.menu-section {
    padding-top: 65px;
    scroll-margin-top: 175px;
}

.menu-section__title {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 17px;

    color: #38271F;
    font-size: 30px;
    font-weight: 500;
}

.menu-section__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;

    width: 55px;
    height: 2px;
    background: #A47B5A;
}

/* Сетка карточек */

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

/* Карточка блюда */

.menu-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #FFF8EE;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(56, 39, 31, 0.06);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(56, 39, 31, 0.12);
}

/* Временная область под фотографию */

.menu-card__image {
    width: 100%;
    height: 210px;
    flex-shrink: 0;

    background: linear-gradient(
        135deg,
        #E9D8C5,
        #D8BFA5
    );

    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card__image::after {
    content: "ФОТО БЛЮДА";
    color: rgba(107, 74, 52, 0.55);
    font-size: 11px;
    letter-spacing: 2px;
}

/* Информация о блюде */

.menu-card__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    padding: 22px;
}

.menu-card__name {
    margin: 0;

    color: #38271F;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.menu-card__description {
    margin: 12px 0 20px;

    color: #80634F;
    font-size: 14px;
    line-height: 1.6;
}

.menu-card__spicy {
    align-self: flex-start;
    margin-top: 10px;
    padding: 5px 10px;

    border-radius: 4px;
    background: #F5E0D3;
    color: #A34832;

    font-size: 11px;
    font-weight: 600;
}

/* Вес и цена */

.menu-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #EDE0D1;
}

.menu-card__weight {
    color: #947D68;
    font-size: 13px;
}

.menu-card__price {
    color: #6B4A34;
    font-size: 19px;
    font-weight: 700;
}

/* Планшеты */

@media (max-width: 1000px) {
    .menu-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .menu-categories {
        justify-content: flex-start;
    }
}

/* Телефоны */

@media (max-width: 600px) {
    .menu-intro {
        padding: 30px 0 30px;
    }

    .menu-intro__description {
        font-size: 15px;
    }

    .menu-categories {
        top: 72px;
        gap: 8px;
        padding: 14px 5%;
    }

    .menu-categories__link {
        padding: 9px 15px;
        font-size: 13px;
    }

    .menu-content {
        padding-bottom: 65px;
    }

    .menu-sections {
        width: 90%;
    }

    .menu-section {
        padding-top: 45px;
        scroll-margin-top: 145px;
    }

    .menu-section__title {
        margin-bottom: 22px;
        font-size: 25px;
    }

    .menu-section__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .menu-card__image {
        height: 210px;
    }

    .menu-card__content {
        padding: 18px;
    }

    .menu-card__name {
        font-size: 18px;
    }
}

body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.page-transition {
    opacity: 0;
}

/* ========================================
   SMOOTH PAGE TRANSITIONS
======================================== */

@view-transition {
    navigation: auto;
}

/* Уезжающая страница */
::view-transition-old(root) {
    animation: page-out 0.35s cubic-bezier(0.22, 0.75, 0.25, 1) both;
}

/* Появляющаяся страница */
::view-transition-new(root) {
    animation: page-in 0.35s cubic-bezier(0.22, 0.75, 0.25, 1) both;
}

@keyframes page-out {
    to {
        transform: translateX(-5%);
        opacity: 0;
    }
}

@keyframes page-in {
    from {
        transform: translateX(5%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Учитываем настройки уменьшения анимации */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.01ms;
    }
}

/* Фотографии блюд в меню */

.menu-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-card__image--has-image::after {
    display: none;
}

