/* =========================
   ОСНОВНЫЕ НАСТРОЙКИ
========================= */

html {
    scroll-behavior: smooth;
}

#cityChoiceDialog {
    box-sizing: border-box;
    margin: auto;
    width: min(460px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 0;
    border-radius: 20px;
    padding: 28px;
    color: #111;
    background: #f5f5f3;
}
#cityChoiceDialog::backdrop { background: rgb(0 0 0 / 65%); }
#cityChoiceDialog h2 { margin: 0 0 12px; font-size: 28px; }
.city-choice-options { display: grid; gap: 12px; margin-top: 20px; }
.city-choice-options button, #citySettingsRetry {
    padding: 14px 18px;
    border: 0;
    border-radius: 12px;
    background: #c8102e;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.city-choice-options button:disabled { opacity: .5; cursor: wait; }
#cityChoiceDialog button:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.city-choice-lock { overflow: hidden; }

.homepage-heading {
    padding: 24px 0;
    background: #f5f5f3;
    color: #111;
}

.homepage-heading h1 {
    margin: 0;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

body :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #d80d31;
    outline-offset: 3px;
}

/* Финальные переопределения расширенной карточки товара */
body .modifier-modal { padding: 24px; }
body .modifier-window { width: min(1120px,96vw); max-width: none; max-height: 92vh; padding: 0; overflow: auto; border-radius: 28px; }
body .modifier-window .modifier-close { top: 18px; right: 18px; }
body .product-detail-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(390px,.9fr); min-height: 620px; }
body .product-detail-media { min-height: 620px; }
body .product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
body .product-detail-content { padding: 44px 38px 32px; }
body .product-detail-content .modifier-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
body .product-detail-content .modifier-option { min-height: 118px; margin: 0; flex-direction: column; align-items: center; justify-content: space-between; }
body .product-detail-content .modifier-add-button { width: 100%; }

@media (max-width: 800px) {
    body .product-detail-grid { grid-template-columns: 1fr; }
    body .product-detail-media { min-height: 280px; max-height: 360px; }
    body .product-detail-content { padding: 26px 20px; }
    body .product-detail-content .modifier-list { grid-template-columns: 1fr; }
    body .product-detail-content .modifier-option { min-height: 78px; flex-direction: row; text-align: left; }
}

@media (max-width: 500px) {
    body .modifier-modal { padding: 0; }
    body .modifier-window { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
}

/* Финальная адаптивность единой сетки меню */
.menu-section .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
}

@media (max-width: 900px) {
    .menu-section .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .menu-section .menu-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Единые каталожные сетки */
.services,
.sales-section {
    height: auto;
    min-height: 0;
}

.menu-section .menu-grid,
.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 20px;
    width: 100%;
}

.catalog-offer-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.menu-section .menu-card > img,
.catalog-product-grid .menu-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.catalog-product-grid .menu-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 16px 16px;
}

.catalog-product-grid .menu-card-content > p {
    flex: 1;
    margin-bottom: 18px;
}

.catalog-card-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #d80d31;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
}

@media (min-width: 1600px) {
    .catalog-product-grid--featured {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .menu-section .menu-grid,
    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .menu-section .menu-grid,
    .catalog-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .catalog-product-grid .menu-card-content {
        padding: 16px 14px 14px;
    }
}

/* ===== Категории под баннером ===== */
.catalog-strip { position: sticky; top: 72px; z-index: 30; margin-top: 14px; padding: 12px 0; background: rgba(255,255,255,.96); border-bottom: 1px solid #ececec; backdrop-filter: blur(12px); }
.catalog-strip .category-panel { margin: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.catalog-strip .category-panel::-webkit-scrollbar { display: none; }
.catalog-strip .category-button { flex: 0 0 auto; white-space: nowrap; }

/* ===== Приложение и подвал ===== */
.app-promo { padding: 42px 0 24px; background: #fff; }
.app-promo-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px 30px; border-radius: 24px; background: linear-gradient(115deg,#ffd728,#ffbd12); color: #191919; }
.app-promo-icon { font-size: 54px; transform: rotate(-8deg); }
.app-promo strong { display: block; font-size: 23px; text-transform: uppercase; }
.app-promo span { display: block; margin-top: 5px; color: #4a3a00; }
.app-promo-button { min-width: 140px; padding: 15px 24px; border: 0; border-radius: 999px; background: #fff; color: #171717; font-weight: 800; cursor: pointer; }
.site-footer { padding: 30px 0 24px; background: #fff; border-top: 1px solid #eee; color: #292929; }
.footer-top { display: flex; align-items: center; gap: 38px; padding-bottom: 24px; }
.footer-brand img { width: 145px; max-height: 58px; object-fit: contain; }
.footer-phone { color: #171717; font-size: 24px; font-weight: 800; text-decoration: none; }
.footer-phones { display: grid; gap: 6px; }
.footer-phones .footer-phone { font-size: 18px; }
.footer-socials { margin-left: auto; display: flex; gap: 10px; }
.footer-socials span { padding: 10px 14px; border-radius: 12px; background: #f2f4f7; color: #c8102e; font-weight: 800; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; padding: 28px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.footer-links > div { display: grid; align-content: start; gap: 12px; }
.footer-links a,.footer-links button { padding: 0; border: 0; background: none; color: #333; text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.footer-links span { color: #666; line-height: 1.5; }
.footer-note { margin: 22px 0 0; color: #6f6f6f; font-size: 13px; line-height: 1.55; }
.cart-gifts { margin: 18px 0; padding: 15px; border: 1px solid #ececec; border-radius: 14px; background: #fff; }
.cart-gifts h3 { margin: 0 0 10px; font-size: 16px; }
.cart-gifts-list { display: grid; gap: 10px; }
.cart-gift { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; padding: 9px; border: 1px solid #e4e4e4; border-radius: 10px; }
.cart-gift.is-selected { border-color: #d80d31; box-shadow: 0 0 0 2px rgba(216,13,49,.12); }
.cart-gift img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-gift > div { display: grid; gap: 4px; }.cart-gift span { color: #666; font-size: 12px; }.cart-gift button { width: fit-content; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: #d80d31; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }.cart-gift button:disabled { background: #444; cursor: default; }
.footer-social-shell { width: min(430px,100%); margin-left: auto; padding: 16px; border: 1px solid rgba(17,17,17,.08); border-radius: 12px; background: #111; }
.footer-social-list .about-social-item { text-decoration: none; }
.footer-addresses a { display: flex; align-items: flex-start; gap: 7px; }
.footer-addresses a span { flex: 0 0 auto; color: #c8102e; }
.footer-links .footer-link-disabled { color: #999; cursor: default; opacity: .72; }

/* ===== О компании ===== */
.company-modal { position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; padding: 20px; background: rgba(15,15,15,.62); opacity: 0; visibility: hidden; transition: .2s ease; }
.company-modal.is-open { opacity: 1; visibility: visible; }
.company-window { position: relative; width: min(680px,96vw); max-height: 92vh; overflow: auto; padding: 42px; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: translateY(18px); transition: .2s ease; }
.company-modal.is-open .company-window { transform: none; }
.company-window .modal-x { position: absolute; top: 18px; right: 18px; }
.company-window h2 { padding-right: 48px; font-size: clamp(28px,4vw,38px); line-height: 1.15; }
.company-window > p { margin-top: 18px; color: #555; line-height: 1.7; }
.company-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 26px; }
.company-details > div { display: grid; gap: 5px; padding: 18px; border-radius: 16px; background: #f5f5f3; }
.company-details span { color: #666; }
.company-details a { color: #c8102e; font-weight: 800; text-decoration: none; }
.company-close-button { min-height: 52px; margin-top: 26px; padding: 0 28px; border: 0; border-radius: 999px; background: #c8102e; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

/* ===== Условия доставки ===== */
.delivery-conditions-modal { position: fixed; inset: 0; z-index: 2200; display: grid; place-items: center; padding: 20px; background: rgba(15,15,15,.62); opacity: 0; visibility: hidden; transition: .2s ease; }
.delivery-conditions-modal.is-open { opacity: 1; visibility: visible; }
.delivery-conditions-window { position: relative; width: min(820px,96vw); max-height: 92vh; overflow: auto; padding: 40px; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: translateY(18px); transition: .2s ease; }
.delivery-conditions-modal.is-open .delivery-conditions-window { transform: none; }
.delivery-conditions-window > .modal-x { position: absolute; top: 18px; right: 18px; }
.delivery-conditions-window h2 { padding-right: 48px; font-size: clamp(28px,4vw,38px); line-height: 1.15; }
.delivery-city-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 24px; padding: 5px; border-radius: 15px; background: #f1eff0; }
.delivery-city-tabs button { min-height: 46px; border: 0; border-radius: 11px; background: transparent; color: #666; font: inherit; font-weight: 800; cursor: pointer; }
.delivery-city-tabs button[aria-selected="true"] { background: #fff; color: #c8102e; box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.delivery-city-tabs button:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }
.delivery-conditions-content { min-height: 150px; margin-top: 22px; }
.delivery-conditions-state { display: grid; min-height: 150px; place-items: center; padding: 28px; border-radius: 16px; background: #f6f5f3; color: #666; line-height: 1.55; text-align: center; }
.delivery-conditions-state--error { color: #a30d27; background: #fff0f2; }
.delivery-zone-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.delivery-zone-card { min-width: 0; padding: 20px; border: 1px solid #e5e3e1; border-radius: 17px; background: #fff; }
.delivery-zone-card h3 { font-size: 20px; line-height: 1.25; }
.delivery-zone-details { display: grid; gap: 9px; margin-top: 16px; }
.delivery-zone-detail { display: flex; justify-content: space-between; gap: 16px; color: #666; font-size: 14px; line-height: 1.4; }
.delivery-zone-detail strong { color: #222; text-align: right; }
.delivery-zone-note { margin-top: 15px; padding-top: 14px; border-top: 1px solid #eee; color: #555; font-size: 14px; line-height: 1.55; }

@media (max-width: 600px) {
    .delivery-conditions-modal { padding: 0; align-items: end; }
    .delivery-conditions-window { width: 100%; max-height: 92vh; padding: 34px 16px 24px; border-radius: 22px 22px 0 0; }
    .delivery-zone-list { grid-template-columns: 1fr; }
    .delivery-zone-card { padding: 17px; }
}

/* ===== Карточка блюда ===== */
.modifier-modal { padding: 24px; }
.modifier-window { width: min(1120px,96vw); max-height: 92vh; padding: 0; overflow: auto; border-radius: 28px; }
.modifier-close,.modal-x { z-index: 5; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(0,0,0,.12); font-size: 28px; cursor: pointer; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(390px,.9fr); min-height: 620px; }
.product-detail-media { min-height: 620px; background: #f5f5f5; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-content { padding: 44px 38px 32px; background: #f3f3f3; }
.product-detail-content h2 { padding-right: 34px; font-size: clamp(26px,3vw,38px); line-height: 1.08; }
.product-weight,.product-description { margin-top: 12px; color: #6a6a6a; line-height: 1.5; }
.nutrition { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 24px 0; }
.nutrition span { color: #555; font-size: 13px; }
.nutrition b { display: block; margin-bottom: 4px; color: #252525; }
.modifier-heading { margin: 24px 0 12px; }
.modifier-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.modifier-option { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 16px 10px; border-radius: 18px; background: #fff; text-align: center; cursor: pointer; }
.modifier-option input { width: 22px; height: 22px; accent-color: #c8102e; }
.modifier-total { margin-top: 18px; }
.modifier-add-button { width: 100%; min-height: 56px; border-radius: 18px; }
.menu-card { cursor: pointer; }

/* ===== Общие модальные окна ===== */
.address-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(15,15,15,.62); opacity: 0; visibility: hidden; transition: .2s ease; }
.address-modal.is-open { opacity: 1; visibility: visible; }
.modal-lock { overflow: hidden; }
.address-window { position: relative; width: min(1120px,96vw); max-height: 92vh; overflow: auto; border-radius: 26px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: translateY(18px); transition: .2s ease; }
.is-open > .address-window { transform: none; }
.address-window { display: grid; grid-template-columns: 430px 1fr; min-height: 650px; }
.address-window .modal-x { position: absolute; top: 18px; right: 18px; }
.address-form-panel { display: flex; flex-direction: column; padding: 34px 24px 22px; }
.address-form-panel h2 { margin-bottom: 24px; font-size: 27px; }
.delivery-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 15px; background: #f1eff0; }
.delivery-tabs button { padding: 14px 10px; border: 0; border-radius: 11px; background: transparent; color: #666; font-weight: 700; cursor: pointer; }
.delivery-tabs button.active { background: #fff; color: #c8102e; box-shadow: 0 3px 12px rgba(0,0,0,.1); }
#deliveryFields { margin-top: 22px; }
.address-form-panel input,.address-form-panel textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid #ddd; border-radius: 12px; font: inherit; }
.address-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.address-form-panel textarea { min-height: 80px; margin-top: 10px; resize: vertical; }
.pickup-option { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 16px; border: 1px solid #ddd; border-radius: 12px; }
.pickup-option input { width: 20px; min-height: 20px; }
.save-address { margin-top: auto; min-height: 56px; border: 0; border-radius: 16px; background: #ffd329; color: #222; font-weight: 800; cursor: pointer; }
.delivery-map { position: relative; display: grid; place-items: center; align-content: center; overflow: hidden; background-color: #ccefe1; background-image: linear-gradient(32deg,transparent 47%,rgba(108,139,168,.8) 48%,rgba(108,139,168,.8) 51%,transparent 52%),linear-gradient(90deg,rgba(255,255,255,.28) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.28) 1px,transparent 1px); background-size: auto,100px 100px,100px 100px; }
.delivery-map::after { content:""; position:absolute; right:-8%; top:-5%; width:36%; height:110%; background:#83d5e8; border-radius:55% 0 0 50%; }
.delivery-map strong,.delivery-map small,.map-pin { z-index: 1; }
.map-pin { font-size: 52px; }
.delivery-map strong { font-size: 26px; text-transform: uppercase; }
.delivery-map small { margin-top: 8px; color: #41625a; }
.checkout-address-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.checkout-form .address-select-button { padding-inline: 15px; background: #ffd329; color: #222; }

/* ===== Специи ===== */
.cart-spices { margin: 12px 0; border: 1px solid #e5e5e5; border-radius: 12px; padding: 10px; }
.cart-spices summary { cursor: pointer; font-weight: 700; min-height: 32px; align-content: center; }
.cart-spices > p { color: #777; font-size: 12px; margin: 6px 0; }
.cart-spices-list { display: grid; gap: 8px; }
.cart-spice-option { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cart-spice-option img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; border-radius: 8px; }
.cart-spice-info { flex: 1; min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; font-size: 13px; }
.cart-spice-info span { color: #666; font-size: 12px; }
.cart-spice-controls { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; }
.cart-spice-controls button { width: 36px; height: 40px; border: 0; border-radius: 8px; background: #ffd329; cursor: pointer; font-size: 20px; }
.cart-spice-controls button:disabled { opacity: .45; cursor: default; }
.cart-spice-controls span { min-width: 20px; text-align: center; font-size: 13px; }
.cart-spices summary:focus-visible,.cart-spice-controls button:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }

@media (max-width: 800px) {
    .catalog-strip { top: 66px; margin-top: 8px; }
    .app-promo-inner { grid-template-columns: auto 1fr; padding: 20px; }
    .app-promo-button { grid-column: 1 / -1; width: 100%; }
    .footer-top { flex-wrap: wrap; gap: 18px; }
    .footer-phone { font-size: 20px; }.footer-social-shell { margin-left: 0; }
    .footer-links { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-detail-media { min-height: 280px; max-height: 360px; }
    .product-detail-content { padding: 26px 20px; }
    .nutrition { grid-template-columns: repeat(2,1fr); }
    .modifier-list { grid-template-columns: 1fr; }
    .modifier-option { min-height: 78px; flex-direction: row; text-align: left; }
    .address-window { grid-template-columns: 1fr; min-height: auto; }
    .delivery-map { min-height: 240px; order: -1; }
    .address-form-panel { min-height: 520px; }
}

@media (max-width: 500px) {
    .address-modal,.modifier-modal { padding: 0; }
    .address-window,.modifier-window { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
    .delivery-map { min-height: 180px; }
    .company-modal { padding: 0; }
    .company-window { width: 100%; max-height: 100vh; min-height: 100vh; padding: 64px 20px 28px; border-radius: 0; }
    .company-details { grid-template-columns: 1fr; }
    .company-close-button { width: 100%; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
    line-height: 1.6;
    background: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 0;
    background: rgba(0, 0, 0, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 115px;
    height: auto;
    display: block;
    transition: 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: #c8102e;
    transition: 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("images/demo-product.svg");

    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 720px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 20px;
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
}

.hero-content h1,
.hero-content h2 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    margin-bottom: 25px;
    color: #fff;
}

.hero-content p {
    max-width: 600px;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-block;
    padding: 16px 34px;
    background: #c8102e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s ease;
}

.hero-button:hover {
    background: #e51b3e;
    transform: translateY(-3px);
}

.hero-button-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-button-outline:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}


/* =========================
   ОБЩИЕ ЗАГОЛОВКИ
========================= */

.section-label {
    display: block;
    text-align: center;
    margin-bottom: 12px;
    color: #c8102e;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 4px;
}

.section-description {
    text-align: center;
    color: #666;
    font-size: 17px;
    margin: 0 auto 45px;
}


/* =========================
   ХИТЫ ПРОДАЖ
========================= */

.services {
    padding: 100px 0;
    background: #f5f5f5;
}

.services h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 20px;
    color: #111;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px;
}

.service-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.popular-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: #c8102e;
    color: #fff;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #111;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.service-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.price {
    font-size: 24px;
    color: #111;
}

.card-button {
    display: inline-block;
    padding: 12px 24px;
    background: #c8102e;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.3s ease;
}

.card-button:hover {
    background: #111;
    transform: translateY(-2px);
}


/* =========================
   О НАС
========================= */

.about {
    padding: 120px 0;
    background: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #c8102e;
}

.about-text h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 25px;
    max-width: 600px;
    color: #111;
}

.about-description {
    max-width: 580px;
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* =========================
   МЕНЮ
========================= */

.menu-section {
    padding: 120px 0;
    background: #111;
    color: #fff;
}

.menu-section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: #fff;
}

.menu-section .section-description {
    max-width: 600px;
    margin: 0 auto 50px;
    color: #aaa;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.menu-card {
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 18px;
    border: 1px solid #2a2a2a;
    transition: 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: #c8102e;
}

.menu-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.menu-card-content {
    padding: 25px;
}

.menu-card-content h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: #fff;
}

.menu-card-content p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
}

.menu-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.menu-card-bottom strong {
    font-size: 22px;
    color: #ffd700;
}

.menu-card-bottom a,
.menu-card-bottom button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    background: #c8102e;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu-card-bottom a:hover,
.menu-card-bottom button:hover {
    background: #e51b3e;
}


/* =========================
   АКЦИИ
========================= */

.sales-section {
    padding: 120px 0;
    background: #f5f5f5;
}

.sales-section h2 {
    text-align: center;
    font-size: 42px;
    color: #111;
    margin-bottom: 20px;
}

.sales-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.sale-card {
    position: relative;
    padding: 35px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
}

.sale-card:hover {
    transform: translateY(-8px);
}

.sale-card.featured {
    border: 2px solid #c8102e;
}

.sale-badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 12px;
    background: #c8102e;
    color: #fff;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.sale-card h3 {
    font-size: 28px;
    color: #111;
    margin-bottom: 15px;
}

.sale-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.sale-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.old-price {
    color: #6f6f6f;
    text-decoration: line-through;
    font-size: 16px;
}

.sale-price strong {
    font-size: 30px;
    color: #c8102e;
}

.sale-button {
    display: inline-block;
    padding: 13px 24px;
    border: none;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.sale-button:hover {
    background: #c8102e;
}


/* =========================
   КОНТАКТЫ
========================= */

.contact {
    padding: 120px 0;
    background: #f5f5f5;
}

.contact-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.contact-info {
    flex: 1;
}

.contact-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #c8102e;
}

.contact-info h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 25px;
    max-width: 550px;
    color: #111;
}

.contact-info > p {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item strong {
    font-size: 16px;
    color: #111;
}

.contact-item span {
    color: #666;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   ТОВАРЫ В КОРЗИНЕ
========================= */

.cart-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.cart-product > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.cart-product strong {
    font-size: 16px;
    color: #111;
}

.cart-product > div:first-child span {
    color: #777;
    font-size: 14px;
}

.cart-product-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-product-controls button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: 0.2s ease;
}

.quantity-minus,
.quantity-plus {
    background: #f1f1f1;
    color: #111;
}

.quantity-minus:hover,
.quantity-plus:hover {
    background: #c8102e;
    color: #fff;
}

.cart-product-controls .quantity {
    min-width: 25px;
    text-align: center;
    font-weight: 700;
}

.cart-product-controls .remove-cart-item {
    background: transparent;
    color: #999;
    font-size: 17px;
    margin-left: 5px;
}

.cart-product-controls .remove-cart-item:hover {
    color: #c8102e;
}


/* =========================
   АДАПТИВ
========================= */

@media (max-width: 768px) {

    .container {
        width: 92%;
    }

    .menu-toggle {
        display: block;
    }

    .header .container {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 210px;
        padding: 20px;
        background: #111;
        border-radius: 12px;
        gap: 5px;
    }

    .nav a {
        padding: 10px 0;
    }

    .nav.menu-open {
        display: flex;
    }

    .logo img {
        width: 100px;
    }

    .hero {
        min-height: 100vh;
        padding: 120px 0 70px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-button {
        text-align: center;
    }

    .services-grid,
    .menu-grid,
    .sales-grid {
        grid-template-columns: 1fr;
    }

    .services,
    .menu-section,
    .sales-section,
    .about,
    .contact {
        padding: 80px 0;
    }

    .services h2,
    .menu-section h2,
    .sales-section h2 {
        font-size: 32px;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 50px;
    }

    .about-text h2,
    .contact-info h2 {
        font-size: 36px;
    }

    .service-card-bottom,
    .menu-card-bottom {
        flex-wrap: wrap;
    }
}
/* =========================
   КОРЗИНА
========================= */

.cart {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    background: #fff;
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart.cart-open {
    right: 0;
}

/* Dedicated /cart page, not an off-screen drawer. */
body.cart-page { overflow: auto; }
body.cart-page > section, body.cart-page .catalog-strip, body.cart-page .footer,
body.cart-page .cart-button { display: none; }
body .cart { display: none; position: relative; inset: auto; width: min(1100px,100%);
    height: auto; max-height: none; margin: 24px auto; box-shadow: none; transition: none; }
body .cart.cart-open { display: flex; right: auto; }
body .cart-scroll-content { max-height: none; overflow: visible; }
.cart-product { flex-wrap: wrap; }
.cart-product-details { width: 100%; min-width: 0; overflow-wrap: anywhere; }
.cart-product-details summary { cursor: pointer; padding: 10px 0; }
.cart-product-details label { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.cart-product-details input { width: 20px; height: 20px; }
.cart-nutrition { font-size: 14px; line-height: 1.7; }
.catalog-card-badge { display: none; }
body .modifier-modal { display: none; }
body .cart-close { font-size: 15px; width: auto; min-width: max-content; height: 44px; padding: 8px; white-space: nowrap; flex: 0 0 auto; }
@media(max-width:600px) {
    body .cart { margin: 0; }
    body .cart-header, body .cart-bottom { padding: 16px; }
    .cart-product-controls { flex-wrap: wrap; }
}

.cart-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px;
    background: #111;
    color: #fff;
}

.cart-scroll-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(36px, env(safe-area-inset-bottom));
    scrollbar-gutter: stable;
}

.cart-scroll-content:focus-visible {
    outline: 2px solid #c8102e;
    outline-offset: -2px;
}

.cart-header h2 {
    font-size: 24px;
    margin: 0;
}

.cart-close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: 0.3s ease;
}

.cart-close:hover {
    color: #c8102e;
}

.cart-items {
    flex: none;
    overflow: visible;
    padding: 25px;
}

.cart-empty {
    text-align: center;
    padding: 70px 20px;
    color: #777;
}

.cart-empty span {
    display: block;
    font-size: 50px;
    margin-bottom: 15px;
}

.cart-empty p {
    font-size: 17px;
}

/* =========================
   ПРОМОКОД
========================= */

.cart-bottom {
    padding: 25px;
    border-top: 1px solid #eee;
    background: #fff;
    max-height: none;
    overflow: visible;
}

body.cart-lock {
    overflow: hidden;
}

/* =========================
   СПЕЦИАЛЬНЫЕ ПРЕДЛОЖЕНИЯ
========================= */

.cart-offers {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-offers h3 {
    margin-bottom: 15px;
    font-size: 17px;
    color: #111;
}

.cart-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.offer-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.offer-info strong {
    font-size: 14px;
    color: #111;
}

.offer-info span {
    font-size: 13px;
    color: #777;
}

.offer-add {
    flex-shrink: 0;
    padding: 8px 13px;
    border: 1px solid #c8102e;
    border-radius: 50px;
    background: #fff;
    color: #c8102e;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.offer-add:hover {
    background: #c8102e;
    color: #fff;
}
/* =========================
   КРАСИВЫЙ ПРОМОКОД
========================= */

.promo-box {
    margin-bottom: 22px;
}

.promo-box label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.promo-input {
    display: flex;
    gap: 8px;
}

.promo-input input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.promo-input input:focus {
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.08);
}

.promo-input button {
    height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.promo-input button:hover {
    background: #c8102e;
}

.promo-message {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

.promo-message.success {
    color: #198754;
}

.promo-message.error {
    color: #c8102e;
}

.checkout-validation-list {
    margin: 6px 0 0;
    padding-left: 18px;
}

.checkout-validation-list li + li {
    margin-top: 4px;
}

.checkout-validation-invalid {
    outline: 2px solid #c8102e !important;
    outline-offset: 2px;
}


/* =========================
   ИТОГО
========================= */

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    margin-top: 5px;
    border-top: 1px solid #eee;
}

/* =========================
   ИТОГИ КОРЗИНЫ
========================= */

.cart-summary {
    margin-top: 20px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    color: #666;
}

.summary-row strong {
    color: #111;
    font-weight: 700;
}

.discount-row {
    color: #198754;
}

.discount-row strong {
    color: #198754;
}

.cart-total {
    padding-top: 18px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.cart-total span {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.cart-total strong {
    font-size: 28px;
    font-weight: 800;
    color: #c8102e;
}

.cart-total span {
    font-size: 16px;
    color: #666;
}

.cart-total strong {
    font-size: 26px;
    color: #111;
}


/* =========================
   КНОПКА ОФОРМЛЕНИЯ
========================= */

.checkout-button {
    width: 100%;
    margin-top: 18px;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    background: #c8102e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.checkout-button:hover {
    background: #111;
    transform: translateY(-2px);
}

.checkout-button:disabled,
.checkout-button:disabled:hover {
    background: #d8d8d8;
    color: #8b8b8b;
    cursor: not-allowed;
    opacity: 0.82;
    transform: none;
}
.promo-box {
    margin-bottom: 25px;
}

.promo-box label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.promo-input {
    display: flex;
    gap: 8px;
}

.promo-input input {
    flex: 1;
    min-width: 0;
    padding: 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.promo-input input:focus {
    border-color: #c8102e;
}

.promo-input button {
    padding: 13px 16px;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.promo-input button:hover {
    background: #c8102e;
}

.promo-message {
    margin-top: 8px;
    font-size: 13px;
}

.quote-retry-button {
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid #c8102e;
    border-radius: 8px;
    background: #fff;
    color: #c8102e;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.quote-retry-button:hover {
    background: #c8102e;
    color: #fff;
}

.quote-retry-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* =========================
   ИТОГ КОРЗИНЫ
========================= */

.cart-summary {
    margin-bottom: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.discount-row {
    color: #c8102e;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.checkout-button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background: #c8102e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.checkout-button:hover {
    background: #111;
    transform: translateY(-2px);
}

/* =========================
   КНОПКА КОРЗИНЫ
========================= */

.cart-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #c8102e;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.cart-button:hover {
    background: #111;
    transform: translateY(-3px);
}

#cartCount {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 23px;
    height: 23px;
    padding: 2px 6px;
    border-radius: 50%;
    background: #ffd700;
    color: #111;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   МОБИЛЬНАЯ КОРЗИНА
========================= */

@media (max-width: 600px) {

    .cart {
        width: 100%;
        right: -100%;
    }

    .cart.cart-open {
        right: 0;
    }

    .cart-header {
        padding: 20px;
    }

    .cart-items {
        padding: 20px;
    }

    .cart-bottom {
        padding: 20px;
    }

    .cart-button {
        right: 18px;
        bottom: 18px;
    }
}/* =========================
   ПРОМОКОД
========================= */

.promo-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.promo-box h3 {
    margin-bottom: 12px;
    font-size: 17px;
    color: #111;
}

.promo-input {
    display: flex;
    gap: 10px;
}

.promo-input input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
}

.promo-input input:focus {
    border-color: #c8102e;
}

.promo-input button {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: #c8102e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.promo-input button:hover {
    background: #111;
}

#promoMessage {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
}

#promoMessage.success {
    color: #16803c;
}

#promoMessage.error {
    color: #c8102e;
}
/* =========================
   ФОРМА ОФОРМЛЕНИЯ ЗАКАЗА
========================= */

.checkout-form {
    display: none;
    margin-top: 25px;
    padding: 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.checkout-form.checkout-open {
    display: block;
}

.checkout-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #111;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: #c8102e;
}

.checkout-form textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: #c8102e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.checkout-form button:hover {
    background: #111;
}
/* Исправление отображения формы заказа */

.checkout-form {
    height: auto;
    max-height: none;
    overflow: visible;
}
/* =========================
   ЦВЕТА ИТОГОВ КОРЗИНЫ
========================= */

.cart-summary .summary-row span,
.cart-summary .summary-row strong,
.cart-summary .cart-total span,
.cart-summary .cart-total strong {
    color: #111 !important;
}

.cart-summary .discount-row span,
.cart-summary .discount-row strong {
    color: #198754 !important;
}
/* =========================
   ОКНО МОДИФИКАТОРОВ
========================= */

.modifier-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
}

.modifier-modal.modifier-open {
    display: flex;
}

.modifier-window {
    position: relative;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.modifier-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    color: #111;
    font-size: 26px;
    cursor: pointer;
}

.modifier-close:hover {
    background: #c8102e;
    color: #fff;
}

.modifier-window h2 {
    margin: 0 40px 10px 0;
    font-size: 24px;
    color: #111;
}

.modifier-base-price {
    margin-bottom: 25px;
    color: #777;
}

.modifier-base-price strong {
    color: #111;
}

.modifier-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modifier-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.modifier-option:hover {
    border-color: #c8102e;
    background: #fff8f9;
}

.modifier-option span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modifier-option strong {
    color: #111;
    font-size: 14px;
}

.modifier-option small {
    color: #c8102e;
    font-size: 13px;
    font-weight: 700;
}

.modifier-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #c8102e;
    cursor: pointer;
}

.modifier-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modifier-total span {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.modifier-total strong {
    font-size: 25px;
    color: #111;
}

.modifier-add-button {
    width: 100%;
    margin-top: 18px;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: #c8102e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.modifier-add-button:hover {
    background: #111;
}
/* =========================
   HERO СЛАЙДЕР
========================= */

.hero-slider {
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.hero-label {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content h1,
.hero-content h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 19px;
    line-height: 1.6;
    max-width: 600px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

.hero-prev {
    left: 25px;
}

.hero-next {
    right: 25px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
}

.hero-dot.active {
    opacity: 1;
}
.hero-slide:nth-child(2) .hero-content {
    transform: translateY(30px);
}
/* Положение текста на третьем слайде */

.hero-slide:nth-child(3) .hero-content {
    transform: translateY(40px);
}
/* =========================
   ФОТОГРАФИИ HERO-СЛАЙДЕРА
========================= */

.hero-slide:nth-child(1) {
    background-image: url("images/demo-product.svg");
}

.hero-slide:nth-child(2) {
    background-image: url("images/demo-product.svg");
}

.hero-slide:nth-child(3) {
    background-image: url("images/demo-product.svg");
}
/* =========================
   ПРОДАЮЩИЕ КАРТОЧКИ БЛЮД
========================= */

.menu-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


/* ФОТО */

.menu-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.menu-card:hover img {
    transform: scale(1.05);
}


/* НАЗВАНИЕ */

.menu-card h3 {
    margin: 15px 18px 8px;
    font-size: 20px;
}


/* ОПИСАНИЕ */

.menu-card p {
    margin: 0 18px 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}


/* ЦЕНА */

.menu-card .price {
    margin: 0 18px 15px;
    font-size: 22px;
    font-weight: 800;
}


/* КНОПКА */

.menu-card .add-to-cart {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #c8102e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu-card .add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.3);
}


/* БЕЙДЖ */

.menu-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 20px;
    background: #c8102e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
/* =========================
   КАРТОЧКИ БЛЮД
========================= */

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.service-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.06);
}


/* БЕЙДЖ ХИТ */

.popular-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    padding: 7px 12px;
    border-radius: 20px;
    background: #c8102e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}


/* ЭФФЕКТ ПРИ НАВЕДЕНИИ */

.service-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-image:hover::after {
    opacity: 1;
}
/* =========================
   ЦЕНА И СКИДКА
========================= */

.service-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 18px;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.old-price {
    color: #6f6f6f;
    font-size: 14px;
    text-decoration: line-through;
}

.price {
    color: #111;
    font-size: 22px;
    font-weight: 800;
}

.discount-badge {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 6px;
    background: #c8102e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}


/* =========================
   КНОПКА В КОРЗИНУ
========================= */

.card-button {
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    background: #c8102e;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(200, 16, 46, 0.3);
}

.card-button:active {
    transform: scale(0.97);
}
/* =========================
   ОБЛАСТЬ ТОВАРОВ В КОРЗИНЕ
========================= */

.cart-items {
    min-height: 0;
    max-height: none;
    overflow: visible;
}

/* =========================
   VISUAL 1 — HEADER И HERO
========================= */

body.menu-lock {
    overflow: hidden;
}

.header {
    position: sticky;
    top: 0;
    left: auto;
    height: 84px;
    padding: 0;
    background: rgba(8, 8, 8, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
}

.header .container {
    position: relative;
    width: 94%;
    max-width: 1400px;
    height: 100%;
    gap: 28px;
}

.logo {
    flex: 0 0 auto;
    text-decoration: none;
}

.logo img {
    width: 180px;
    max-height: 64px;
    object-fit: contain;
    border-radius: 10px;
}

.city-picker {
    position: relative;
    flex: 0 0 auto;
    color: #fff;
}

.city-picker-current {
    min-width: 180px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 2px;
}

.city-picker-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.city-picker-name {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.city-picker-arrow {
    color: #d80d31;
    font-size: 19px;
    line-height: 1;
    transition: transform .2s ease;
}

.city-picker-toggle[aria-expanded="true"] .city-picker-arrow { transform: rotate(180deg); }
.city-picker-toggle:focus-visible { outline: 2px solid #d80d31; outline-offset: 5px; border-radius: 4px; }

.city-picker-phone {
    grid-column: 1 / -1;
    width: fit-content;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    line-height: 1.25;
    text-decoration: none;
}

.city-picker-phone:hover,
.city-picker-phone:focus-visible { color: #fff; text-decoration: underline; }

.city-picker-list {
    position: absolute;
    z-index: 110;
    top: calc(100% + 14px);
    left: 0;
    width: 270px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    background: rgba(14,14,14,.98);
    box-shadow: 0 20px 55px rgba(0,0,0,.45);
}

.city-picker-list[hidden] { display: none; }
.city-picker-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border-radius: 11px; cursor: pointer; outline: none; }
.city-picker-option > span:first-child { display: grid; gap: 3px; }
.city-picker-option strong { color: #fff; font-size: 16px; line-height: 1.2; }
.city-picker-option small { color: rgba(255,255,255,.65); font-size: 12px; }
.city-picker-option:hover,
.city-picker-option:focus-visible { background: rgba(255,255,255,.08); }
.city-picker-option[aria-selected="true"] { background: rgba(216,13,49,.18); }
.city-picker-option[aria-selected="true"] strong,
.city-picker-option[aria-selected="true"] .city-picker-check { color: #ef3153; }
.city-picker-check { color: transparent; font-size: 18px; font-weight: 900; }

.nav {
    justify-content: center;
    gap: 4px;
    margin-left: auto;
}

.nav a {
    padding: 11px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 650;
}

.nav-delivery-link { display: none; }

.nav a::after {
    display: none;
}

.nav a:hover,
.nav a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
}

.header-contact-link {
    min-height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: 0.25s ease;
    font-family: inherit;
    cursor: pointer;
}

.header-contact-link:hover,
.header-contact-link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle,
.menu-backdrop {
    display: none;
}

.hero-slider {
    width: min(89%, 1580px);
    max-width: 1580px;
    min-height: 0;
    aspect-ratio: 3.4 / 1;
    margin: 18px auto 0;
    padding-top: 0;
    border-radius: 28px;
    scroll-margin-top: 84px;
    overflow: hidden;
    background: #080808;
}

.hero-slide {
    background-color: #080808;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide--managed {
    background-image: none !important;
}

.hero-slide-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.hero-slide-picture {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
}

.hero-slide-picture .hero-slide-image {
    display: block;
}

.hero-slider--managed-initial #heroFallbackContent {
    display: none;
}

.hero-slide--managed::before {
    z-index: 1;
    pointer-events: none;
}

.hero-slide--managed .container {
    z-index: 2;
}

.hero-slide::before {
    background: linear-gradient(
        90deg,
        #080808 0%,
        #080808 23%,
        rgba(8, 8, 8, 0.72) 31%,
        rgba(8, 8, 8, 0.24) 39%,
        rgba(8, 8, 8, 0) 45%
    );
}

.hero-slide.active {
    animation: heroReveal 0.6s ease both;
}

@keyframes heroReveal {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

.hero-slide .container {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    align-items: center;
    padding: 32px clamp(52px, 5vw, 80px);
}

.hero-content,
.hero-slide:nth-child(1) .hero-content,
.hero-slide:nth-child(2) .hero-content,
.hero-slide:nth-child(3) .hero-content {
    width: min(48%, 610px);
    max-width: 610px;
    transform: none;
}

.hero-label {
    margin-bottom: 16px;
    color: #ff3154;
    font-size: 13px;
    letter-spacing: 0.18em;
}

.hero-content h1,
.hero-content h2 {
    max-width: 600px;
    margin-bottom: 22px;
    color: #fff;
    font-size: clamp(38px, 3.5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.hero-content p {
    max-width: 560px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 18px;
    line-height: 1.55;
}

.hero-content h1,
.hero-content h2,
.hero-content p,
.hero-label {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.hero-buttons {
    gap: 12px;
}

.hero-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border: 1px solid #d80d31;
    border-radius: 12px;
    background: #d80d31;
    box-shadow: 0 12px 28px rgba(216, 13, 49, 0.24);
    font-size: 15px;
    transition: 0.25s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
    background: #f0183e;
    border-color: #f0183e;
    transform: translateY(-2px);
}

.hero-button-outline {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    color: #fff;
}

.hero-button-outline:hover,
.hero-button-outline:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 8, 8, 0.52);
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: #d80d31;
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    bottom: 24px;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: 0.25s ease;
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: #d80d31;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .hero-slider {
        aspect-ratio: 2.4 / 1;
        margin-top: 14px;
    }

    .hero-slide::before {
        background: linear-gradient(
            90deg,
            #080808 0%,
            #080808 28%,
            rgba(8, 8, 8, 0.68) 38%,
            rgba(8, 8, 8, 0.2) 49%,
            rgba(8, 8, 8, 0) 55%
        );
    }

    .hero-slide .container {
        padding-block: 20px;
        padding-inline: clamp(44px, 6vw, 64px);
    }

    .hero-content,
    .hero-slide:nth-child(1) .hero-content,
    .hero-slide:nth-child(2) .hero-content,
    .hero-slide:nth-child(3) .hero-content {
        width: min(58%, 560px);
    }

    .hero-label { margin-bottom: 9px; font-size: 11px; }
    .hero-content h1, .hero-content h2 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 46px); }
    .hero-content p { margin-bottom: 16px; font-size: clamp(14px, 1.65vw, 17px); line-height: 1.4; }
    .hero-button { min-height: 44px; padding-inline: 20px; }
    .hero-dots { bottom: 14px; }
}

@media (max-width: 767px) {
    .hero-slider {
        width: calc(100% - 20px);
        height: clamp(420px, 120vw, 470px);
        min-height: 0;
        aspect-ratio: auto;
        margin-top: 10px;
        border-radius: 22px;
        scroll-margin-top: 70px;
    }

    .hero-slide {
        background-position: center;
        background-size: cover;
    }

    .hero-slide-image {
        object-position: center;
    }

    .hero-slide::before {
        background: linear-gradient(
            180deg,
            rgba(8, 8, 8, 0.98) 0%,
            rgba(8, 8, 8, 0.86) 42%,
            rgba(8, 8, 8, 0.42) 72%,
            rgba(8, 8, 8, 0.6) 100%
        );
    }

    .hero-slide .container {
        height: 100%;
        min-height: 0;
        align-items: center;
        padding: 30px 34px 50px;
    }

    .hero-content,
    .hero-slide:nth-child(1) .hero-content,
    .hero-slide:nth-child(2) .hero-content,
    .hero-slide:nth-child(3) .hero-content {
        width: 100%;
        max-width: 520px;
        text-align: left;
    }

    .hero-label { margin-bottom: 10px; font-size: 11px; }
    .hero-content h1, .hero-content h2 { margin-bottom: 16px; font-size: clamp(32px, 9vw, 40px); line-height: 1.06; }
    .hero-content p { max-width: 100%; margin-bottom: 20px; font-size: 15px; line-height: 1.45; }
    .hero-buttons { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .hero-button { min-height: 44px; padding: 0 16px; font-size: 13px; }
    .hero-arrow { width: 38px; height: 38px; font-size: 24px; }
    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }
    .hero-dots { bottom: 16px; }
}

@media (max-width: 1050px) {
    .logo img {
        width: 164px;
    }

    .header .container {
        gap: 14px;
    }

    .nav a {
        padding-inline: 8px;
        font-size: 13px;
    }

    .header-contact-link {
        padding-inline: 15px;
    }

}

@media (max-width: 900px) {
    .header {
        height: 70px;
    }

    .header .container {
        width: 92%;
        justify-content: space-between;
        gap: 12px;
    }

    .logo img {
        width: 118px;
        max-height: 52px;
    }

    .city-picker { margin-left: auto; }
    .city-picker-current { min-width: 142px; }
    .city-picker-name { font-size: 14px; }
    .city-picker-phone { font-size: 11px; }
    .city-picker-list { right: 0; left: auto; width: min(270px, calc(100vw - 24px)); }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        position: relative;
        z-index: 104;
        width: 46px;
        height: 46px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
    }

    .menu-toggle span {
        width: 21px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        transition: 0.25s ease;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        z-index: 103;
        top: 82px;
        right: 4%;
        left: 4%;
        width: auto;
        max-height: calc(100vh - 98px);
        margin: 0;
        padding: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 18px;
        background: rgba(12, 12, 12, 0.98);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    }

    .nav.menu-open {
        display: flex;
    }

    .nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        border-radius: 11px;
        font-size: 16px;
    }

    .nav-delivery-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        border: 0;
        border-radius: 11px;
        background: transparent;
        color: rgba(255,255,255,.82);
        font: inherit;
        font-size: 16px;
        font-weight: 650;
        cursor: pointer;
    }

.nav-delivery-link:hover,
.nav-delivery-link:focus-visible { color: #fff; background: rgba(216,13,49,.18); }

    .nav a:hover,
    .nav a:focus-visible {
        background: rgba(216, 13, 49, 0.18);
    }

    .menu-backdrop {
        position: fixed;
        z-index: 102;
        inset: 70px 0 0;
        border: 0;
        background: rgba(0, 0, 0, 0.64);
        backdrop-filter: blur(3px);
    }

    .menu-backdrop.menu-open {
        display: block;
    }

}

@media (max-width: 420px) {
    .header .container { width: calc(100% - 20px); gap: 8px; }
    .logo img { width: 86px; }
    .city-picker-current { min-width: 137px; }
    .city-picker-list { right: -52px; }
}

@media (max-width: 520px) {
    .header {
        height: 66px;
    }

    .logo img {
        width: 132px;
        max-height: 46px;
        border-radius: 8px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .nav {
        top: 76px;
        max-height: calc(100vh - 90px);
    }

    .menu-backdrop {
        inset-block-start: 66px;
    }

    .hero-arrow {
        top: auto;
        bottom: 16px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .hero-prev {
        left: 18px;
    }

    .hero-next {
        right: 18px;
    }

    .hero-dots {
        bottom: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.active {
        animation: none;
    }
}

/* =========================
   VISUAL 2 — ХИТЫ И МЕНЮ
========================= */

.services,
.menu-section {
    padding: 112px 0 120px;
    scroll-margin-top: 84px;
    background: #f5f5f3;
    color: #111;
}

.services > .container,
.menu-section > .container {
    width: 92%;
    max-width: 1400px;
}

.services .section-label,
.menu-section .section-label {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.22em;
}

.services h2,
.menu-section h2 {
    margin-bottom: 16px;
    color: #111;
    font-size: clamp(38px, 3.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.services .section-description,
.menu-section .section-description {
    max-width: 620px;
    margin-bottom: 52px;
    color: #6b6b6b;
    font-size: 17px;
    line-height: 1.65;
}

.services-grid,
.menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 2vw, 32px);
}

.service-card,
.menu-card {
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 20, 20, 0.06);
    text-align: left;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-card {
    padding: 18px;
}

.service-image {
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
    margin-bottom: 22px;
    border-radius: 16px;
}

.service-image img,
.menu-card > img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
}

.menu-card > img {
    flex: 0 0 auto;
    height: auto;
}

.service-card h3,
.menu-card-content h3 {
    margin: 0 4px 10px;
    color: #111;
    font-size: clamp(23px, 1.55vw, 28px);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.service-card > p,
.menu-card-content > p {
    margin: 0 4px 24px;
    color: #696969;
    font-size: 15px;
    line-height: 1.55;
}

.menu-card-content {
    min-height: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 22px 22px;
}

.service-card-bottom,
.menu-card-bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.service-card-bottom {
    padding: 0 4px 2px;
}

.price-block {
    gap: 6px 9px;
}

.service-card [data-product-price],
.menu-card [data-product-price] {
    margin: 0;
    color: #111;
    font-size: 25px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.service-card .old-price,
.menu-card .old-price {
    color: #6f6f6f;
    font-size: 13px;
}

.popular-badge,
.service-card .discount-badge,
.menu-card .discount-badge {
    border-radius: 999px;
    background: #d80d31;
    color: #fff;
    font-weight: 800;
}

.popular-badge {
    top: 14px;
    left: 14px;
    padding: 7px 11px;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.service-card .discount-badge,
.menu-card .discount-badge {
    padding: 4px 7px;
    font-size: 10px;
}

.service-card .card-button,
.menu-card .menu-order-button {
    min-width: 124px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 22px;
    border: 1px solid #d80d31;
    border-radius: 12px;
    background: #d80d31;
    box-shadow: 0 10px 22px rgba(216, 13, 49, 0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover,
    .menu-card:hover {
        transform: translateY(-5px);
        border-color: rgba(216, 13, 49, 0.2);
        box-shadow: 0 20px 48px rgba(20, 20, 20, 0.11);
    }

    .service-card:hover .service-image img,
    .menu-card:hover > img {
        transform: scale(1.035);
    }

    .service-card .card-button:hover,
    .menu-card .menu-order-button:hover {
        border-color: #f0183e;
        background: #f0183e;
        box-shadow: 0 12px 26px rgba(216, 13, 49, 0.25);
        transform: translateY(-2px);
    }
}

.service-card .card-button:active,
.menu-card .menu-order-button:active {
    transform: scale(0.98);
}

@media (min-width: 641px) and (max-width: 900px) {
    .services,
    .menu-section {
        scroll-margin-top: 70px;
    }

    .services-grid,
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .services,
    .menu-section {
        padding: 78px 0 84px;
        scroll-margin-top: 66px;
    }

    .services > .container,
    .menu-section > .container {
        width: calc(100% - 30px);
    }

    .services h2,
    .menu-section h2 {
        font-size: 36px;
    }

    .services .section-description,
    .menu-section .section-description {
        margin-bottom: 34px;
        font-size: 15px;
    }

    .services-grid,
    .menu-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .service-card {
        padding: 14px;
        border-radius: 19px;
    }

    .service-image {
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .menu-card {
        border-radius: 19px;
    }

    .menu-card-content {
        padding: 22px 18px 18px;
    }

    .service-card h3,
    .menu-card-content h3 {
        font-size: 24px;
    }

    .service-card-bottom,
    .menu-card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .service-card .card-button,
    .menu-card .menu-order-button {
        width: 100%;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .menu-card,
    .service-image img,
    .menu-card > img,
    .service-card .card-button,
    .menu-card .menu-order-button {
        transition: none;
    }
}

/* =========================
   VISUAL 3 — АКЦИИ
========================= */

.sales-section {
    padding: 108px 0 116px;
    scroll-margin-top: 84px;
    background: #ececea;
    color: #111;
}

.sales-section > .container {
    width: 92%;
    max-width: 1400px;
}

.sales-section .section-label {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.22em;
}

.sales-section h2 {
    margin-bottom: 16px;
    color: #111;
    font-size: clamp(38px, 3.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.sales-section .section-description {
    max-width: 620px;
    margin-bottom: 50px;
    color: #686868;
    font-size: 17px;
    line-height: 1.65;
}

.sales-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 2vw, 32px);
    margin-top: 0;
}

.sale-card[hidden] {
    display: none;
}

.sales-grid.sales-grid--single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.sale-card {
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 24px 24px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 20, 20, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.sale-card.featured {
    border: 1px solid rgba(216, 13, 49, 0.4);
}

.sale-card::before {
    content: "ФОТО АКЦИИ";
    width: calc(100% + 48px);
    height: 230px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -24px 24px;
    background:
        radial-gradient(circle at 18% 22%, rgba(216, 13, 49, 0.3), transparent 30%),
        radial-gradient(circle at 82% 78%, rgba(216, 13, 49, 0.18), transparent 34%),
        linear-gradient(135deg, #151515, #292929);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.sale-card.featured::before {
    content: "";
    background-image:
        linear-gradient(rgba(8, 8, 8, 0.08), rgba(8, 8, 8, 0.08)),
        url("images/demo-product.svg");
    background-position: center;
    background-size: cover;
}

.sale-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 16px;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    background: #d80d31;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.sale-card h3 {
    margin: 0 4px 10px;
    color: #111;
    font-size: clamp(25px, 1.7vw, 30px);
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.sale-card p {
    margin: 0 4px 22px;
    color: #686868;
    font-size: 15px;
    line-height: 1.55;
}

.sale-price {
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr;
    grid-template-rows: auto auto;
    align-items: end;
    gap: 3px 12px;
    margin: auto 4px 20px;
}

.sale-price .old-price {
    grid-column: 1;
    grid-row: 1;
    color: #6f6f6f;
    font-size: 13px;
    line-height: 1.2;
}

.sale-price strong {
    grid-column: 1;
    grid-row: 2;
    color: #111;
    font-size: 31px;
    font-weight: 850;
    line-height: 1.05;
    white-space: nowrap;
}

.sale-price::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: start;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(216, 13, 49, 0.1);
    color: #c90c2d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.sale-card:nth-child(1) .sale-price::after {
    content: "Выгода 600 ₽";
}

.sale-card:nth-child(2) .sale-price::after {
    content: "Выгода 1 500 ₽";
}

.sale-card:nth-child(3) .sale-price::after {
    content: "Выгода 281 ₽";
}

.sale-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 22px;
    border: 1px solid #d80d31;
    border-radius: 12px;
    background: #d80d31;
    box-shadow: 0 10px 22px rgba(216, 13, 49, 0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transition: background 0.24s ease, border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
    .sale-card:hover {
        transform: translateY(-5px);
        border-color: rgba(216, 13, 49, 0.22);
        box-shadow: 0 20px 48px rgba(20, 20, 20, 0.12);
    }

    .sale-button:hover {
        border-color: #f0183e;
        background: #f0183e;
        box-shadow: 0 12px 26px rgba(216, 13, 49, 0.25);
        transform: translateY(-2px);
    }
}

.sale-button:active {
    transform: scale(0.98);
}

@media (min-width: 641px) and (max-width: 900px) {
    .sales-section {
        scroll-margin-top: 70px;
    }

    .sales-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sales-section {
        padding: 78px 0 84px;
        scroll-margin-top: 66px;
    }

    .sales-section > .container {
        width: calc(100% - 30px);
    }

    .sales-section h2 {
        font-size: 36px;
    }

    .sales-section .section-description {
        margin-bottom: 34px;
        font-size: 15px;
    }

    .sales-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .sale-card {
        padding: 0 18px 18px;
        border-radius: 19px;
    }

    .sale-card::before {
        width: calc(100% + 36px);
        height: 210px;
        margin: 0 -18px 21px;
    }

    .sale-card h3 {
        font-size: 25px;
    }

    .sale-price strong {
        font-size: 29px;
    }

    .sale-button {
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sale-card,
    .sale-button {
        transition: none;
    }
}

/* =========================
   КАТЕГОРИИ И КОМПАКТНОЕ МЕНЮ
========================= */

.category-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: -12px auto 38px;
}

.category-button {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #3d3d3d;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: color 0.22s ease, background 0.22s ease,
                border-color 0.22s ease, box-shadow 0.22s ease,
                transform 0.22s ease;
}

.category-button:not([aria-pressed="true"]):hover {
    border-color: rgba(216, 13, 49, 0.42);
    color: #a90b27;
    box-shadow: 0 7px 18px rgba(216, 13, 49, 0.2);
    transform: translateY(-4px) scale(1.02);
}

.category-button:focus-visible {
    border-color: rgba(216, 13, 49, 0.7);
    box-shadow: 0 0 0 3px rgba(216, 13, 49, 0.16),
                0 6px 16px rgba(216, 13, 49, 0.16);
}

.category-button[aria-pressed="true"] {
    border-color: #d80d31;
    background: #d80d31;
    color: #fff;
}

.category-button[aria-pressed="true"]:hover {
    box-shadow: 0 8px 20px rgba(216, 13, 49, 0.3);
    transform: translateY(-3px);
}

.category-button:active,
.category-button[aria-pressed="true"]:active {
    box-shadow: 0 3px 10px rgba(216, 13, 49, 0.18);
    transform: translateY(-1px) scale(0.99);
}

.menu-section .menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 250px));
    justify-content: center;
    gap: 20px;
}

.menu-section .menu-grid[hidden] {
    display: none;
}

.menu-section .menu-card-content {
    padding: 18px 16px 16px;
}

.menu-section .menu-card-content h3 {
    margin-inline: 0;
    font-size: 21px;
}

.menu-section .menu-card-content > p {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.45;
}

.menu-section .menu-card [data-product-price] {
    font-size: 22px;
}

.menu-section .menu-card .old-price {
    font-size: 11px;
}

.menu-section .menu-card .discount-badge {
    font-size: 9px;
}

.menu-section .menu-card .menu-order-button {
    min-width: 104px;
    min-height: 44px;
    padding-inline: 14px;
    font-size: 13px;
}

.menu-empty-state {
    max-width: 520px;
    margin: 0 auto;
    padding: 44px 24px;
    border: 1px dashed rgba(17, 17, 17, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    color: #777;
    text-align: center;
}

.catalog-load-status { min-height: 0; margin: 0 auto 18px; color: #8d1430; text-align: center; }
.menu-sections { display: grid; gap: 44px; }
.menu-category-section { scroll-margin-top: 150px; }
.menu-category-title { margin: 0 0 20px; color: #171717; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; }

@media (min-width: 641px) and (max-width: 900px) {
    .menu-section .menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .category-panel {
        justify-content: flex-start;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        margin: -5px 0 30px;
        padding-right: 0;
        padding-bottom: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .category-panel::-webkit-scrollbar {
        display: none;
    }

    .category-button {
        min-height: 42px;
        flex: 0 0 auto;
        padding-inline: 15px;
    }

    .menu-section .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .menu-section .menu-card-content {
        padding: 14px 12px 12px;
    }

    .menu-section .menu-card-content h3 {
        font-size: 18px;
    }

    .menu-section .menu-card-content > p {
        font-size: 12px;
    }

    .menu-section .menu-card-bottom {
        gap: 10px;
    }

    .menu-section .menu-card [data-product-price] {
        font-size: 20px;
    }

    .menu-section .menu-card .menu-order-button {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-button {
        transition: color 0.2s ease, background 0.2s ease,
                    border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .category-button:hover,
    .category-button:active,
    .category-button[aria-pressed="true"]:hover,
    .category-button[aria-pressed="true"]:active {
        transform: none;
    }
}

/* =========================
   КОНТАКТЫ В СЕКЦИИ «О НАС»
========================= */

.about {
    scroll-margin-top: 84px;
}

.about-image {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-contact-block {
    max-width: 580px;
    margin-bottom: 30px;
    padding: 22px;
    border: 1px solid rgba(17, 17, 17, 0.09);
    border-radius: 18px;
    background: #f5f5f3;
}

.about-contact-block h3 {
    margin-bottom: 16px;
    color: #111;
    font-size: 22px;
    line-height: 1.2;
}

.about-contact-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.about-contact-links a {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #fff;
    color: #111;
    text-decoration: none;
}

.about-contact-links span {
    color: #777;
    font-size: 12px;
}

.about-contact-links strong {
    overflow-wrap: anywhere;
    font-size: 14px;
}

.about-socials {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 12px;
    background: #111;
}

.about-socials h4 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
}

.about-social-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.about-social-item {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 0;
    outline: none;
    transition: border-color 0.24s ease, background 0.24s ease,
                box-shadow 0.24s ease, transform 0.24s ease;
}

.about-social-item[data-url=""] {
    cursor: default;
}

.about-social-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #c8102e;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.about-social-icon svg {
    width: 17px;
    height: 17px;
    fill: #fff;
}

@media (hover: hover) {
    .about-social-item:hover {
        border-color: rgba(229, 37, 70, 0.82);
        background: rgba(200, 16, 46, 0.16);
        box-shadow: 0 9px 22px rgba(200, 16, 46, 0.28);
        transform: translateY(-4px) scale(1.015);
    }

    .about-social-item:hover .about-social-icon {
        box-shadow: 0 5px 13px rgba(200, 16, 46, 0.35);
        transform: translateY(-1px) scale(1.08);
    }
}

.about-social-item:focus-visible {
    border-color: #e52546;
    background: rgba(200, 16, 46, 0.16);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.24),
                0 9px 22px rgba(200, 16, 46, 0.22);
}

.about-social-item:active {
    border-color: rgba(229, 37, 70, 0.78);
    background: rgba(200, 16, 46, 0.2);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.2);
    transform: translateY(-1px) scale(1.005);
}

@media (prefers-reduced-motion: reduce) {
    .about-social-item,
    .about-social-icon {
        transition: border-color 0.2s ease, background 0.2s ease,
                    box-shadow 0.2s ease;
    }

    .about-social-item:hover,
    .about-social-item:active,
    .about-social-item:hover .about-social-icon {
        transform: none;
    }
}

@media (max-width: 900px) {
    .about {
        scroll-margin-top: 70px;
    }
}

@media (max-width: 640px) {
    .about {
        scroll-margin-top: 66px;
    }

    .about-contact-block {
        padding: 18px;
    }

    .about-contact-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-socials {
        padding: 14px;
    }

    .about-social-list {
        gap: 6px;
    }

    .about-social-item {
        min-height: 46px;
        gap: 6px;
        padding: 8px 6px;
        font-size: 12px;
    }

    .cart-button {
        right: 10px;
        top: 76px;
        bottom: auto;
        width: 48px;
        height: 48px;
        font-size: 20px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    }

    body:has(.nav.menu-open) .cart-button {
        opacity: 0;
        pointer-events: none;
    }

    #cartCount {
        top: -4px;
        right: -4px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        font-size: 11px;
    }
}

/* Финальный слой стилей новых интерфейсов */
body .modifier-modal { padding: 24px; }
body .modifier-window { width: min(1120px,96vw); max-width: none; max-height: 92vh; padding: 0; overflow: auto; border-radius: 28px; }
body .modifier-window .modifier-close { top: 18px; right: 18px; }
body .product-detail-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(390px,.9fr); min-height: 620px; }
body .product-detail-media { min-height: 620px; }
body .product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
body .product-detail-content { padding: 44px 38px 32px; }
body .product-detail-content .modifier-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
body .product-detail-content .modifier-option { min-height: 118px; margin: 0; flex-direction: column; align-items: center; justify-content: space-between; }
body .product-detail-content .modifier-add-button { width: 100%; }

@media (max-width: 800px) {
    body .product-detail-grid { grid-template-columns: 1fr; }
    body .product-detail-media { min-height: 280px; max-height: 360px; }
    body .product-detail-content { padding: 26px 20px; }
    body .product-detail-content .modifier-list { grid-template-columns: 1fr; }
    body .product-detail-content .modifier-option { min-height: 78px; flex-direction: row; text-align: left; }
}

@media (max-width: 500px) {
    body .modifier-modal { padding: 0; }
    body .modifier-window { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
}

.menu-section .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
}

@media (max-width: 900px) {
    .menu-section .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .menu-section .menu-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Общие контрольные точки каталожных секций */
@media (min-width: 1600px) {
    .menu-section .menu-grid,
    .catalog-product-grid--featured {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 768px) and (max-width: 1279px) {
    .menu-section .menu-grid,
    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .menu-section .menu-grid,
    .catalog-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Актуальные контрольные точки всех каталогов: 5 / 3 / 1 */
.menu-section .menu-grid,
.catalog-product-grid {
    align-items: stretch;
}

.menu-section .menu-card,
.catalog-product-grid .menu-card {
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.menu-section .menu-card-content,
.catalog-product-grid .menu-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-section .menu-card-content > p,
.catalog-product-grid .menu-card-content > p {
    flex: 1;
}

@media (min-width: 1100px) {
    .menu-section .menu-grid,
    .catalog-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 600px) and (max-width: 1099px) {
    .menu-section .menu-grid,
    .catalog-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .menu-section .menu-card-bottom,
    .catalog-product-grid .menu-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-section .menu-order-button,
    .catalog-product-grid .menu-order-button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 599px) {
    .menu-section .menu-grid,
    .catalog-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.legal-consent { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0; color: #5a5754; font-size: 13px; line-height: 1.45; }
.legal-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #d71920; }
.legal-consent a, .footer-legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links { display: flex; flex-direction: column; gap: 8px; }
/* Cart page and shared-state catalog shortcut. Keep after legacy drawer rules. */
body.cart-page #mainContent { display: none; }
body.cart-page footer { display: none; }
body .cart { width: min(760px, calc(100% - 32px)); border: 1px solid #eee; border-radius: 16px; }
body .cart-header { gap: 12px; padding: 14px 20px; }
body .cart-header h2 { font-size: clamp(20px, 4.8vw, 24px); }
body .cart-items { padding: 0 20px; }
body .cart-product { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; }
body .cart-product > div:first-child { min-width: 0; overflow-wrap: anywhere; }
body .cart-product-details { grid-column: 1 / -1; }
body .cart-product-details summary { padding: 8px 0 2px; color: #666; font-size: 14px; }
body .cart-product-controls { gap: 4px; flex-wrap: nowrap; }
body .cart-product-controls button { width: 44px; height: 44px; }
body .cart-product-controls .quantity { min-width: 20px; }
body .cart-bottom { padding: 12px 20px; }
body .cart-scroll-content { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
body .cart-offers { margin-bottom: 12px; padding-bottom: 12px; }
body .cart-offers h3 { margin-bottom: 8px; }
body .cart-offer { padding: 8px 0; }
body .promo-box { margin-top: 12px; padding-top: 12px; }
body .checkout-button { width: calc(100% - 40px); margin: 0 20px 12px; }
body .cart-button { display: flex; align-items: center; gap: 16px; top: auto; right: 24px; bottom: 24px; width: auto; height: auto; padding: 10px; border-radius: 16px; background: #fff; color: #111; font-size: 14px; z-index: 90; }
body .cart-button[hidden], body.cart-page .cart-button { display: none; }
body .cart-button:hover { background: #fff; transform: none; }
.cart-button-info { display: grid; gap: 2px; text-align: left; padding-left: 6px; }
body #cartCount { position: static; display: inline; background: none; padding: 0; color: inherit; font: inherit; }
.cart-button-action { padding: 13px 16px; border-radius: 10px; background: #c8102e; color: #fff; font-weight: 700; }
body.has-cart-items:not(.cart-page) { padding-bottom: 104px; }
@media (max-width: 600px) {
    body .cart { width: 100%; margin: 0; border: 0; border-radius: 0; }
    body .cart-header, body .cart-bottom { padding: 12px; }
    body .cart-items { padding: 0 12px; }
    body .cart-product { column-gap: 6px; }
    body .cart-product strong { font-size: 15px; }
    body .cart-product-controls .remove-cart-item { margin-left: 0; }
    body .cart-button { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); justify-content: space-between; gap: 8px; }
    body.has-cart-items:not(.cart-page) { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
}
/* Address and checkout share the cart visual language. */
.order-timing-notice { padding: 14px; margin: 16px 0; border: 1px solid #e6bac3; border-radius: 10px; background: #fff4f6; color: #741529; font-size: 15px; line-height: 1.6; }
.header .logo:focus-visible { outline: 3px solid #c8102e; outline-offset: 4px; border-radius: 4px; }
body .address-modal { padding: 24px; }
body .address-window { width: min(920px,100%); min-height: 0; max-height: calc(100dvh - 48px); grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); border-radius: 20px; overscroll-behavior: contain; }
body .address-form-panel { padding: 28px; min-width: 0; }
body .address-form-panel h2 { font-size: 25px; margin: 0 32px 20px 0; }
body #deliveryFields { margin-top: 20px; }
body #deliveryFields > label, body .address-fields label, body .checkout-form > label:not(.legal-consent) { display: block; margin: 14px 0 7px; color: #272727; font-size: 14px; font-weight: 600; }
body #deliveryFields > label:first-child { margin-top: 0; }
body .address-fields { margin-top: 0; gap: 12px; }
body .address-fields label input { margin-top: 7px; }
body .address-form-panel input:not([type="radio"]), body .address-form-panel textarea, body #deliveryZone, body .checkout-form input:not([type="checkbox"]):not([type="radio"]), body .checkout-form textarea { width: 100%; min-width: 0; min-height: 48px; margin-bottom: 0; padding: 12px 14px; border: 1px solid #d8d8dc; border-radius: 10px; background: #fff; color: #202024; font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none; }
body #deliveryZone { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
body .address-form-panel textarea { min-height: 80px; margin-top: 0; }
.field-hint, body #deliveryZoneHint { display: block; margin: 8px 0 0; font-size: 13px; font-weight: 400; color: #68686e; line-height: 1.5; overflow-wrap: anywhere; }
.field-optional { color: #76767e; font-weight: 400; }
.checkout-zone-details { margin-top: 12px; padding: 12px 14px; border: 1px solid #e5e5e8; border-radius: 10px; background: #fafafa; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.checkout-zone-details > strong { display: block; margin-bottom: 8px; }
.checkout-zone-details dl { margin: 0; }
.checkout-zone-details dl > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,auto); gap: 6px 12px; padding: 3px 0; }
.checkout-zone-details dt { color: #62626a; }
.checkout-zone-details dd { margin: 0; font-weight: 600; text-align: right; }
.address-validation-message { margin: 8px 0 0; color: #a80c25; font-size: 13px; line-height: 1.5; }
body .save-address, body .checkout-form .address-select-button { background: #c8102e; color: #fff; border: 0; border-radius: 10px; font-weight: 700; }
body .save-address { margin-top: 20px; min-height: 48px; flex-shrink: 0; }
body .save-address:hover, body .checkout-form .address-select-button:hover { background: #a80c25; }
body .delivery-map { margin: 72px 24px 28px 0; padding: 24px; min-height: 0; order: initial; border: 1px solid #eadfe1; border-radius: 16px; background: #faf5f6; align-self: start; text-align: left; justify-items: start; gap: 14px; }
body .delivery-map::after { content: none; }
body .delivery-map strong { font-size: 23px; text-transform: none; line-height: 1.25; }
body .delivery-map p { margin: 0; color: #57575e; font-size: 14px; line-height: 1.65; }
body .delivery-map small { margin: 0; color: #a4102b; font-size: 13px; font-weight: 600; }
body .delivery-map .delivery-map-note { padding-top: 14px; border-top: 1px solid #e9dcdf; font-size: 12px; }
body .map-pin { font-size: 28px; }
body .checkout-form { margin: 12px 20px 20px; padding: 24px; border: 1px solid #e5e5e8; border-radius: 16px; box-shadow: none; background: #fafafa; }
body .checkout-form h3 { margin: 0 0 18px; font-size: 24px; }
body .checkout-form textarea { min-height: 88px; }
body .checkout-address-row { align-items: stretch; }
body .checkout-form .address-select-button { margin: 0; min-height: 48px; width: auto; padding: 10px 14px; font-size: 14px; }
.payment-options { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.payment-options legend { font-size: 15px; font-weight: 700; }
.payment-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.payment-cards label { display: flex; align-items: center; gap: 10px; min-height: 74px; padding: 14px; border: 1px solid #d8d8dc; border-radius: 12px; background: #fff; cursor: pointer; }
.payment-cards label:has(input:checked) { border-color: #c8102e; background: #fff4f5; }
body .checkout-form .payment-cards input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; accent-color: #c8102e; }
.payment-cards span { display: grid; gap: 4px; }
.payment-cards strong { font-size: 14px; }
.payment-cards small { color: #68686e; font-size: 12px; }
body .checkout-form .legal-consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; padding: 0; font-weight: 400; font-size: 13px; line-height: 1.6; }
body .checkout-form .legal-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
body #sendOrderButton { min-height: 50px; margin: 0; border-radius: 12px; background: #c8102e; }
body .cart-spice-controls button { background: #fff4f5; color: #b00e29; border: 1px solid #f0ccd3; }
body .address-form-panel :is(input,textarea,select):focus-visible, body .checkout-form :is(input,textarea,button):focus-visible { outline: 3px solid #f4c6cf; outline-offset: 2px; border-color: #c8102e; }
body :is(.address-form-panel,.checkout-form) [aria-invalid="true"] { border-color: #c8102e; background-color: #fff4f5; }
body :is(.address-form-panel,.checkout-form) :disabled { opacity: .6; cursor: not-allowed; }
@media(max-width: 767px) {
 body .address-modal { padding: 12px; }
 body .address-window { display: flex; flex-direction: column; width: 100%; min-height: 0; max-height: calc(100dvh - 24px); border-radius: 16px; }
 body .address-form-panel { padding: 22px 16px 16px; flex: 0 0 auto; }
 body .address-window .modal-x { top: 10px; right: 10px; }
 body .delivery-map { display: none; }
 body .delivery-map strong { font-size: 18px; }
 body .delivery-map .map-pin { display: none; }
 body .save-address { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 0 0 8px #fff; margin-bottom: env(safe-area-inset-bottom); }
 body .checkout-form { margin: 12px; padding: 16px; }
 .payment-cards { gap: 8px; }
 .payment-cards label { padding: 10px; gap: 8px; }
 body .cart-product-details summary, body .cart-nutrition, body .cart-spices > p,
 body .offer-info span, body .offer-add, body .promo-message,
 body .payment-cards small, body .checkout-form .legal-consent,
 body #deliveryZoneHint, body .field-hint { font-size: 14px; line-height: 1.5; }
 body .cart-product-details label { font-size: 15px; }
 body .offer-add { min-height: 44px; }
 body .payment-cards strong { font-size: 15px; }
 body .cart-total { font-size: 22px; }
 body #sendOrderButton { font-size: 16px; }
}
.analytics-consent-dialog { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: end center; padding: 16px; background: rgba(0,0,0,.42); }
.analytics-consent-card { width: min(620px,100%); padding: 22px; border-radius: 14px; background: #fff; color: #202020; box-shadow: 0 8px 30px rgba(0,0,0,.28); }
.analytics-consent-card h2 { margin: 0 0 10px; font-size: 22px; }.analytics-consent-card p { margin: 8px 0; line-height: 1.45; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }.analytics-consent-actions button { border: 1px solid #b71923; border-radius: 8px; padding: 10px 16px; background: #fff; color: #a10f1a; font: inherit; font-weight: 700; cursor: pointer; }.analytics-consent-actions button[data-analytics-choice="granted"] { background: #c8102e; color: #fff; }
