html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    background-color: #F5F0E6; /* Тот же цвет, что и у блока */
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* --- font-family: 'Marck Script', cursive; ---*/
    font-size: 1.3rem;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.3px;
    color: #3E2F26;
    box-sizing: border-box;
}
/* =========================================
   ОБЁРТКА — чтобы nav и .a4-page шли друг под другом
   ========================================= */
.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 310mm;
    gap: 0;
}
/* --- ФИКСИРОВАННОЕ МЕНЮ НАВИГАЦИИ --- */
.nav-menu {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #F5F0E6;
    border-bottom: 1px solid #D1C7B8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
    /* НЕ ставим max-width — обёртка уже ограничивает */
    border-radius: 3px 3px 0 0;   /* скругление, как у .a4-page */
}

.nav-menu ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0 0 5px 0;

    /* Скрываем полосу прокрутки */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    /* Firefox */
    scrollbar-width: none;

    /* IE и старый Edge */
    -ms-overflow-style: none;
}

/* Chrome, Safari, новый Edge, Opera */
.nav-menu ul::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    display: inline-block;
    padding: 8px 14px;
    background-color: #fff;
    border: 1px solid #D1C7B8;
    border-radius: 20px;
    color: #3E2F26;
    text-decoration: none;
    font-size: 0.95rem;
    font-style: italic;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    background-color: #3E2F26;
    color: #F5F0E6;
    border-color: #3E2F26;
}

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #3E2F26;
    color: #F5F0E6;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}
/* Стили для кнопки доставки — подгоните под стиль кнопки "Наверх" */
.delivery-btn {
  position: fixed;
  right: 25px;
  bottom: 80px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: #3E2F26;
  color: #F5F0E6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;   /* ← подняли */
  transition: background 0.3s, transform 0.3s;
}

.delivery-btn:hover {
    transform: translateY(-3px);
}
.order-block {
  font-style: italic; 
  font-size:1.1rem
}
/* --- БЛОК ФОРМАТА A4 С ФАКТУРОЙ БУМАГИ --- */
.a4-page {
    width: 310mm;
    
    /* Фон совпадает с фоном body */
    background-color: #F5F0E6;
    
    /* Фактура бумаги: градиенты + волокна */
    background-image: 
        /* Мягкий градиент для объема */
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(230, 220, 205, 0.4) 0%, transparent 50%),
        /* Тонкие линии, имитирующие волокна бумаги */
        repeating-linear-gradient(
            45deg,
            rgba(0, 0, 0, 0.015) 0px,
            rgba(0, 0, 0, 0.015) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(0, 0, 0, 0.015) 0px,
            rgba(0, 0, 0, 0.015) 1px,
            transparent 1px,
            transparent 4px
        );
    
    /* Мягкая тень, чтобы лист выделялся на фоне */
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 20px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    
    border-radius: 3px;
    
    padding: 10mm 2mm 30mm 20mm; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Внутренняя тень по краям — эффект бумаги */
.a4-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.015);
    border-radius: 3px;
    z-index: 1;
}

/* --- СЕКЦИИ --- */
.section-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.section-block:first-of-type {
    margin-top: 0;
}

.section-block:last-of-type {
    margin-bottom: 0;
}

.section-content {
    display: flex;
    gap: 30px;
    align-items: center;
    height: 100%;
}

/* Левая часть — текст */
.text-part {
    flex: 1.2;
    display: flex;
    flex-direction: column;
}

/* Правая часть — картинка */
.image-part {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
 }

.image-part > img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    aspect-ratio: 9/16;
    
}

/* --- ЗАГОЛОВКИ И ТЕКСТ --- */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.5px;
    color: #3E2F26;
    border-bottom: 1px solid #D1C7B8;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.7rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
    color: #3E2F26;
    border-bottom: 1px solid #D1C7B8;
    padding-bottom: 15px;
    margin-top: 10px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px dashed #E0D6C8;
      font-style: italic;
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    padding-right: 15px;
}

.item-price {
    white-space: nowrap;
    color: #5A4A3F;
}
.note {
    font-size: 1rem;
    font-style: italic;
    font-weight: bold;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* =========================================
    АДАПТИВНАЯ ВЕРСТКА
    ========================================= */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .a4-page {
        width: 100%;
        height: auto;
        padding: 15px 15px 30px 15px;
        border-radius: 3px;
        box-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.03),
            0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .section-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .text-part {
        flex: 1;
        width: 100%;
    }

    .image-part {
        width: 100%;
        max-width: 300px;      /* чтобы не раздувалось на десктопе */
        height: auto; 
        margin: 0 auto;        /* центрирование */
        overflow: hidden;
        border-radius: 12px;
    }
    .image-part .carousel {
        width: 100%;
        max-width: 350px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
        margin-top: 0;
    }

    h2 {
        font-size: 1.6rem;
        margin-top: 10px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .menu-item {
        padding: 10px 0;
        font-size: 1.2rem;
    }
    .nav-menu {
        padding: 8px 10px;
        border-radius: 0;
    }
    .nav-menu a {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    .back-to-top {
        bottom: 15px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    .delivery-btn {
        bottom: 62px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
.order-block {
  font-size:0.9rem
}
    
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    .menu-item {
        font-size: 1.1rem;
    }
    .image-part img {
        width: 100%;
    }
}
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    touch-action: pan-y;   /* вертикальный скролл страницы не блокируем */
    user-select: none;
    -webkit-user-select: none;
}

.carousel-track {
    display: flex;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;    /* чтобы img не мешал свайпу */
    -webkit-user-drag: none;
    user-select: none;
}

/* Точки */
.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.carousel-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}
