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

/* Маркированные и нумерованные списки (контент) */
ul,
ol {
    padding-left: 20px;
}

:root {
    /* Основной акцент: тёмно-серый */
    --primary-color: #525252;
    --primary-dark: #3d3d3d;
    --primary-color-rgb: 82, 82, 82;

    /* Текст и фон — нейтральный серый */
    --text-dark: #2f2f2f;
    --text-light: #6b6b6b;
    --bg-light: #f2f2f2;
    --border-color: #d8d8d8;
    --success-color: #27ae60;

    /* Чуть более мягкие тени */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.14);
    --header-height: 72px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f5f5f5;
    overflow-x: hidden;
    width: 100%;
    background: #f5f5f5;
    scrollbar-width: thin;
    scrollbar-color: #525252 #e0e0e0;
}

/* Scrollbar — тёмно-серый thumb (Chrome/Safari/Edge) */
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #e0e0e0;
}

*::-webkit-scrollbar-thumb {
    background: #525252;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

*::-webkit-scrollbar-thumb:hover {
    background: #3d3d3d;
}
main{
    position: relative;
    background-color: #ebebeb;
    isolation: isolate;
}
main::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #f0f0f0;
    /* JPG first as solid fallback; WebP overrides where supported via image-set */
    background-image: url("../images/bg-marble-desktop.jpg");
    background-image: -webkit-image-set(
        url("../images/bg-marble-desktop.webp") type("image/webp"),
        url("../images/bg-marble-desktop.jpg") type("image/jpeg")
    );
    background-image: image-set(
        url("../images/bg-marble-desktop.webp") type("image/webp"),
        url("../images/bg-marble-desktop.jpg") type("image/jpeg")
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 768px) {
    main::before {
        background-image: url("../images/bg-marble-mobile.jpg");
        background-image: -webkit-image-set(
            url("../images/bg-marble-mobile.webp") type("image/webp"),
            url("../images/bg-marble-mobile.jpg") type("image/jpeg")
        );
        background-image: image-set(
            url("../images/bg-marble-mobile.webp") type("image/webp"),
            url("../images/bg-marble-mobile.jpg") type("image/jpeg")
        );
    }
}
/* Quill content output */
.ql-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}
.ql-content p {
    margin-bottom: 0.75rem;
}
.ql-content ul,
.ql-content ol {
    padding-left: 20px;
    margin-bottom: 0.75rem;
}
.ql-content img {
    max-width: 100%;
    height: auto;
}
.ql-content .ql-align-center {
    text-align: center;
}
.ql-content .ql-align-right {
    text-align: right;
}
.ql-content h1,
.ql-content h2,
.ql-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Pickup locations maps block */
.locations-maps {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color, #e8e8e8);
}
.locations-maps__heading {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.locations-maps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .locations-maps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.locations-maps__item {
    min-width: 0;
}
.locations-maps__district {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.locations-maps__address,
.locations-maps__phones {
    margin: 0 0 0.75rem;
    line-height: 1.5;
}
.locations-maps__phones a {
    color: var(--accent-color, #c0392b);
    text-decoration: none;
}
.locations-maps__phones a:hover {
    text-decoration: underline;
}
.locations-maps__map {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #dfe5e8;
}
.locations-maps__map iframe,
.locations-maps__iframe,
.locations-maps__preview-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.locations-maps__preview-iframe {
    pointer-events: none;
    z-index: 0;
}
.locations-maps__preview-iframe.is-interactive {
    pointer-events: auto;
    z-index: 1;
}
.locations-maps__map-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    z-index: 2;
}
.locations-maps__map-facade-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.72);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.locations-maps__map-facade-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #fff;
}
.locations-maps__map-facade:hover .locations-maps__map-facade-cta,
.locations-maps__map-facade:focus-visible .locations-maps__map-facade-cta {
    background: rgba(20, 20, 20, 0.88);
}
.locations-maps__map-facade:focus-visible {
    outline: 2px solid var(--accent-color, #c0392b);
    outline-offset: 2px;
}

.main-with-categories {
    margin-left: 0;
}

/* Слайдер промоций */
.promotions-slider {
    width: 100%;
    margin: 20px 0 30px 0; /* отступ от хедера сверху и снизу */
    position: relative;
}

.promotions-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.promotions-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    cursor: grab;
    user-select: none;
}

.promotions-slider-wrapper:active {
    cursor: grabbing;
}

.promotion-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.promotion-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.promotion-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px 0;
}

.promotion-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    outline: none;
}

.promotion-slider-dot:hover {
    background: rgba(var(--primary-color-rgb, 255, 87, 34), 0.5);
    transform: scale(1.2);
}

.promotion-slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .promotion-banner {
        max-height: 250px;
    }
    
    .promotion-slider-dots {
        gap: 8px;
        margin-top: 10px;
    }
    
    .promotion-slider-dot {
        width: 10px;
        height: 10px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1450px;
        padding: 0 24px;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-light);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 4px 0;
    margin: 0;
    padding: 0;
}
.breadcrumb-item,
.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}
.breadcrumb-item a,
.breadcrumb-list li a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb-item a:hover,
.breadcrumb-list li a:hover {
    text-decoration: underline;
}
.breadcrumb-list li[aria-current="page"] {
    color: var(--text-light);
    font-weight: 500;
}
.breadcrumb-list li:not(:last-child)::after {
    content: "\203a";
    margin: 0 6px;
    color: var(--text-light);
    font-weight: normal;
}

/* Header */
.main-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body {
    padding-top: var(--header-height, 72px);
}

.header-top {
    background: var(--text-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-auth a {
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-auth a:hover {
    opacity: 0.8;
}

.header-info .work-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-dark);
}

/* Worktime dropdown */
.worktime-switcher {
    position: relative;
}

.worktime-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
}

.worktime-toggle {
    color: var(--text-dark);
}

.worktime-toggle .bi-clock {
    font-size: 16px;
    color: var(--text-dark);
}

.worktime-toggle .bi-chevron-down {
    font-size: 12px;
    color: var(--text-dark);
}

.worktime-label {
    font-weight: 600;
}

.worktime-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 8px 12px;
    display: none;
    z-index: 1001;
}

.worktime-item {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.4;
}

.worktime-switcher:hover .worktime-menu {
    display: block;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 13px;
    padding: 2px 5px;
    transition: opacity 0.3s;
}

.lang-link:hover {
    opacity: 0.8;
}

.lang-link.active {
    font-weight: bold;
    text-decoration: underline;
}

.lang-separator {
    color: rgba(0, 0, 0, 0.4);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
    flex: 1;
}

/* Language dropdown */
.dropdown-lang {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
}

.lang-toggle .current-lang {
    font-weight: 600;
}

.lang-toggle i {
    font-size: 12px;
    color: var(--text-dark);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 90px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 4px 0;
    display: none;
    z-index: 1001;
}

.dropdown-lang:hover .lang-menu {
    display: block;
}

.lang-option {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    font-weight: 600;
}

/* Phone dropdown (несколько номеров) */
.dropdown-phone {
    position: relative;
}

.phone-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-dark);
    cursor: pointer;
    font-size: 14px;
}

.phone-toggle .bi-telephone {
    font-size: 22px;
    color: var(--text-dark);
}

.phone-toggle .bi-chevron-down {
    font-size: 12px;
    color: var(--text-dark);
}

/* LK menu dropdown (личный кабинет) */
.dropdown-lk {
    position: relative;
}

.lk-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
}

.lk-toggle .lk-label {
    font-weight: 600;
}

.lk-toggle i {
    font-size: 12px;
    color: var(--text-dark);
}

.lk-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 4px 0;
    display: none;
    z-index: 1001;
}

.dropdown-lk:hover .lk-menu {
    display: block;
}

.lk-menu a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
}

.lk-menu a:hover {
    background: var(--bg-light);
}

.current-phone {
    font-weight: 600;
}

.phone-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 4px 0;
    display: none;
    z-index: 1001;
    transition: 1s;
}

.phone-option {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
}

.phone-option:hover {
    background: var(--bg-light);
}

.phone-menu-group + .phone-menu-group {
    border-top: 1px solid var(--border-light, #eee);
    margin-top: 4px;
    padding-top: 4px;
}

.phone-menu-label {
    padding: 4px 12px 2px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted, #888);
}

.phone-menu-address {
    padding: 0 12px 4px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted, #888);
}

.phone-menu-numbers {
    display: flex;
    flex-direction: column;
}

.mobile-menu-phones .mobile-menu-subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6b7280);
    margin-bottom: 8px;
}

.mobile-phone-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-phone-group + .mobile-phone-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light, #e5e7eb);
}

.mobile-phone-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark, #1f2937);
    margin-bottom: 0;
}

.mobile-phone-address {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted, #6b7280);
    margin-bottom: 4px;
}

.mobile-phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-phone-numbers a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-phone-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-phone-group + .footer-phone-group {
    margin-top: 14px;
}

.footer-phone-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.footer-phone-address {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.footer-phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-phone:hover .phone-menu {
    display: block;
}

.main-nav {
    padding: 15px 0;
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.header-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-img {
    display: block;
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 1;
}
.nav-links a {
    white-space: nowrap;
}
.nav-links .nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
}
.nav-links .nav-phone i {
    font-size: 18px;
    color: var(--text-dark);
}

.burger {
    display: none;
    width: 44px;
    height: 36px;
    border: none;
    background: transparent;
    padding: 0;
    position: relative;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--text-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: absolute;
    left: 6px;
    right: 6px;
    top: 50%;
    transform-origin: 50% 50%;
}

.burger span:nth-child(1) {
    transform: translateY(-9px);
}

.burger span:nth-child(2) {
    transform: translateY(0);
}

.burger span:nth-child(3) {
    transform: translateY(9px);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
}

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

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-dark);
    opacity: 0.7;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s;
}

.cart-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.cart-icon {
    font-size: 20px;
}

.cart-badge {
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Mobile menu */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1400; /* выше остальных фиксированных элементов */
}

.mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: 80vh;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    z-index: 1401;
    display: flex;
    flex-direction: column;
    padding: 10px 14px 22px;
    border-radius: 24px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
    pointer-events: none; /* по умолчанию не перехватывает клики */
}

.mobile-menu.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto; /* кликабельно только когда открыто */
}

.mobile-menu-header {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mobile-menu-section:first-of-type {
    padding-right: 36px;
}
.mobile-menu-logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
}


.mobile-menu-close {
    border: none;
    background: transparent;
    font-size: 0; /* скрываем символ ×, рисуем крест псевдоэлементами */
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 999px;
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.mobile-menu-section a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.01em;
}

.mobile-menu-section.muted a {
    font-weight: 400;
}

.mobile-menu-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: none;
    margin-bottom: 6px;
}

.mobile-menu-text {
    font-size: 13px;
    color: var(--text-muted, #666);
}

.mobile-lang {
    display: flex;
    gap: 12px;
}

.mobile-lang a {
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    font-weight: 600;
}

.mobile-lang a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.mobile-menu-section a:hover {
    color: var(--primary-color);
}

.mobile-menu-section.muted {
    color: var(--text-muted, #666);
    margin-top: 8px; /* отступ сверху от номеров телефонов */
}

body.mobile-menu-open {
    overflow: hidden;
}

/* На больших экранах полностью отключаем мобильное меню и бэкдроп */
@media (min-width: 769px) {
    .mobile-menu,
    .mobile-menu-backdrop {
        display: none !important;
    }

    .main-nav .nav-links {
        justify-content: flex-end;
        gap: 24px;
    }

    .main-nav .nav-links > a,
    .main-nav .nav-links .nav-phone,
    .main-nav .phone-toggle,
    .main-nav .worktime-toggle,
    .main-nav .lang-toggle,
    .main-nav .lk-toggle {
        color: var(--text-dark);
    }

    .main-nav .nav-links > a:hover,
    .main-nav .nav-links .nav-phone:hover {
        color: var(--text-dark);
        opacity: 0.7;
    }

    .main-nav .phone-toggle .bi-telephone,
    .main-nav .phone-toggle .bi-chevron-down,
    .main-nav .worktime-toggle .bi-clock,
    .main-nav .worktime-toggle .bi-chevron-down,
    .main-nav .lang-toggle i,
    .main-nav .lk-toggle i,
    .main-nav .nav-phone i {
        color: var(--text-dark);
    }
}

@media (max-width: 768px) {
    .main-nav .container,
    .header-menu,
    .nav-links,
    .logo,
    .dropdown-phone,
    .dropdown-lang,
    .dropdown-lk {
        align-items: center;
    }

    .logo {
        display: inline-flex;
        align-items: center;
        line-height: 0;
    }

    .header-menu {
        justify-content: flex-end;
        gap: 0;
    }

    .header-top {
        display: none;
    }

    .nav-links {
        justify-content: flex-end;
        gap: 0;
    }

    .main-nav .nav-links > .dropdown-phone,
    .main-nav .nav-links > .dropdown-lang,
    .main-nav .nav-links > .dropdown-lk {
        display: flex;
        align-items: center;
        height: 38px;
    }

    .main-nav .nav-links .phone-toggle,
    .main-nav .nav-links .lang-toggle,
    .main-nav .nav-links .lk-toggle,
    .main-nav .nav-links .nav-phone,
    .main-nav .header-menu .burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 38px;
        min-height: 38px;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 1;
        box-sizing: border-box;
    }

    .main-nav .nav-links .phone-toggle {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 14px;
        gap: 4px;
    }

    .main-nav .nav-links .phone-toggle .bi-telephone,
    .main-nav .nav-links .nav-phone i {
        font-size: 22px;
        line-height: 1;
        color: var(--text-dark);
    }

    .main-nav .nav-links .lang-toggle,
    .main-nav .nav-links .lk-toggle {
        padding-left: 5px;
        padding-right: 5px;
        font-size: 14px;
        gap: 4px;
    }

    .main-nav .nav-links .phone-toggle .bi-chevron-down,
    .main-nav .nav-links .lang-toggle i,
    .main-nav .nav-links .lk-toggle i {
        font-size: 12px;
        line-height: 1;
    }

    .dropdown-phone:hover .phone-menu,
    .dropdown-lang:hover .lang-menu,
    .dropdown-lk:hover .lk-menu {
        display: none;
    }

    .dropdown-phone.is-open .phone-menu,
    .dropdown-lang.is-open .lang-menu,
    .dropdown-lk.is-open .lk-menu {
        display: block;
    }

    .main-nav .phone-toggle .bi-chevron-down,
    .main-nav .lang-toggle .bi-chevron-down,
    .main-nav .lk-toggle .bi-chevron-down {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 12px;
        height: 12px;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .main-nav .dropdown-phone.is-open .phone-toggle .bi-chevron-down,
    .main-nav .dropdown-lang.is-open .lang-toggle .bi-chevron-down,
    .main-nav .dropdown-lk.is-open .lk-toggle .bi-chevron-down {
        transform: rotate(180deg);
    }

    /* В моб. хедере скрываем только текстовые ссылки, но оставляем телефон */
    .nav-links > a {
        display: none;
    }

    .main-nav .header-menu .burger {
        display: flex;
        align-self: center;
        width: 42px;
        height: 38px;
        flex: 0 0 42px;
    }

    .main-nav .burger span {
        left: 6px;
        right: 6px;
        height: 3px;
    }

    .main-nav .burger span:nth-child(1) {
        transform: translateY(-9px);
    }

    .main-nav .burger span:nth-child(3) {
        transform: translateY(9px);
    }

    .header-info {
        display: none;
    }

    /* В моб. хедере график работы не показываем */
    .worktime-switcher {
        display: none;
    }

    .header-auth-links {
        display: none;
    }

    .main-nav {
        padding: 5px 0;
    }

    .logo-img {
        height: 38px;
    }
}

/* Fixed кнопка корзины */
.cart-fixed-btn {
    position: fixed;
    right: 0;
    top: 35%;
    transform: translateY(-50%);
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 16px 0 0 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s;
}

.scroll-top-btn {
    position: fixed;
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
    transform: translateY(8px);
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
    background: var(--primary-dark);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.popular-categories {
    margin: 24px 0 32px;
}

.popular-categories-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.popular-categories-row {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.popular-cat-featured {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    min-height: 280px;
    text-decoration: none;
    color: #fff;
    background: #2a2a2a;
}

.popular-cat-grid {
    flex: 0 0 calc(50% - 8px);
    max-width: calc(50% - 8px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}

.popular-cat-small {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    min-height: 132px;
    text-decoration: none;
    color: #fff;
    background: #2a2a2a;
}

.popular-cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.popular-cat-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #525252, #2a2a2a);
}

.popular-cat-name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    font-weight: 600;
    z-index: 1;
}

@media (max-width: 768px) {
    .popular-categories-row {
        flex-direction: column;
    }

    .popular-cat-featured,
    .popular-cat-grid {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .popular-cat-featured {
        min-height: 200px;
    }

    .scroll-top-btn {
        bottom: calc(128px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        width: 46px;
        height: 46px;
    }
}

body:has(.categories-subnav.is-open) .scroll-top-btn,
body:has(.categories-subnav:not([hidden])) .scroll-top-btn {
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    body:has(.categories-subnav.is-open) .scroll-top-btn,
    body:has(.categories-subnav:not([hidden])) .scroll-top-btn {
        bottom: calc(168px + env(safe-area-inset-bottom, 0px));
    }
}

.cart-fixed-btn .cart-icon {
    filter: brightness(0) invert(1);
    color: #fff;
}

.cart-fixed-btn .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    font-size: 12px;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 999px;
}

/* Вертикальный блок соцсетей справа, как на референсе */
.side-socials {
    position: fixed;
    right: 0;
    top: 65%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* чтобы панель не перекрывала скролл, кликабельны только сами иконки */
}

.side-socials-panel {
    background: #fff;
    border-radius: 18px 0 0 18px; /* слева скруглённо, справа ровно */
    padding: 10px 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.side-socials-link {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 20px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.side-socials-link:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .side-socials {
        right: 0;
        top: auto;
        bottom: 150px;
        transform: none;
    }

    .side-socials-panel {
        width: 36px; /* как кнопка корзины */
        padding: 6px 0;
        border-radius: 18px 0 0 18px;
    }

    .side-socials-link {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .cart-fixed-btn {
        right: 0;
        width: 36px;
        height: 36px;
        font-size: 18px;
        top: 30%;
        transform: none;
    }
}

.social-fab.open .social-fab-toggle {
    background: #111;
}

.social-fab .bi {
    font-size: 22px;
}

/* старый FAB соцсетей больше не используется, сохраняем только общие цвета иконок */

/* Цвета для иконок соцсетей (используются также в FAB) */
.social-fab-item.telegram,
.social-fab-swipe-item.telegram {
    background: #2AABEE;
}

.social-fab-item.instagram,
.social-fab-swipe-item.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-fab-item.facebook,
.social-fab-swipe-item.facebook {
    background: #1877f2;
}

.social-fab-item.tiktok,
.social-fab-swipe-item.tiktok {
    background: #000;
}

.social-fab-item.youtube,
.social-fab-swipe-item.youtube {
    background: #FF0000;
}

.social-fab-item.whatsapp,
.social-fab-swipe-item.whatsapp {
    background: #25D366;
}

/* Модальное окно корзины — выше нижнего меню категорий (1001–1005) */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1300;
}

.cart-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.cart-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-dark);
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.cart-modal-close:hover {
    color: var(--primary-color);
}

.cart-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.cart-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.cart-modal-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.cart-modal-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-light);
}

.cart-modal-item-image-placeholder {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
}

.cart-modal-item-info {
    flex: 1;
}

.cart-modal-item-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.cart-modal-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-modal-item-quantity.quantity-control {
    margin-top: 4px;
    width: 200px; /* уже, чем в карточке блюда */
}

.cart-modal-item-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s;
}

.cart-modal-item-remove:hover {
    color: var(--primary-color);
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-modal-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-modal-actions .btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    min-height: 45px;
}

.cart-modal-actions .btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.cart-modal-actions .btn-primary:hover {
    background: var(--primary-dark);
}

.cart-modal-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
}

.cart-modal-actions .btn-secondary:hover {
    background: var(--border-color);
}

.cart-modal-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.cart-modal-empty p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Рекомендованные блюда в модалке */
.cart-modal-recommended {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.cart-modal-recommended h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.cart-modal-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-modal-recommended-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.cart-modal-recommended-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.cart-modal-recommended-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.cart-modal-recommended-image-placeholder {
    width: 100%;
    height: 100px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 8px;
}

.cart-modal-recommended-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-modal-recommended-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.cart-modal-recommended-item .btn {
    width: 100%;
    padding: 6px 12px;
    font-size: 12px;
}

.cart-modal-recommended-item .btn.disabled,
.cart-modal-recommended-item .btn:disabled {
    cursor: default;
    pointer-events: none;
    opacity: 1;
}

/* Секция рекомендованных на странице корзины */
.recommended-section {
    margin-top: 50px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Универсальная модалка подтверждения — выше корзины */
.confirm-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1350;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.confirm-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 16px;
    max-width: 360px;
    width: 90%;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

.confirm-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.confirm-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.confirm-modal-content p {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--sushi-text);
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
}

.confirm-modal-actions .btn {
    flex: 1;
}

/* Фиксированное левое меню категорий — удалено (только нижнее) */

/* Нижнее меню категорий (все ширины) */
.categories-bottom-menu {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    padding: 6px 12px calc(10px + env(safe-area-inset-bottom));
}

.categories-bottom-menu-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}

@media (min-width: 769px) {
    .categories-bottom-menu {
        overflow: visible;
    }

    .categories-bottom-menu-inner {
        overflow: visible;
    }

    /* Невидимый «мост» вверх, чтобы курсор не терял hover по пути к dropdown */
    .categories-bottom-item-wrap.has-dropdown {
        padding-top: 14px;
        margin-top: -14px;
    }

    .categories-bottom-item-wrap.has-dropdown:hover,
    .categories-bottom-item-wrap.has-dropdown:focus-within,
    .categories-bottom-item-wrap.has-dropdown.is-open {
        z-index: 1004;
    }
}

.categories-bottom-item {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    color: var(--primary-color);
    background: #eee;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.categories-bottom-item.active {
    background: var(--primary-color);
    color: #fff;
}

.categories-bottom-item-wrap {
    position: relative;
    flex: 0 0 auto;
}

.categories-bottom-dropdown {
    display: none;
}

@media (min-width: 769px) {
    .categories-bottom-dropdown {
        position: absolute;
        left: 0;
        bottom: 100%;
        min-width: 180px;
        max-height: min(50vh, 360px);
        overflow-y: auto;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        padding: 6px;
        z-index: 1005;
    }

    .categories-bottom-item-wrap.has-dropdown:hover .categories-bottom-dropdown,
    .categories-bottom-item-wrap.has-dropdown:focus-within .categories-bottom-dropdown,
    .categories-bottom-item-wrap.has-dropdown.is-open .categories-bottom-dropdown {
        display: block;
    }

    .categories-bottom-item-wrap.has-dropdown:hover .categories-bottom-dropdown[hidden],
    .categories-bottom-item-wrap.has-dropdown:focus-within .categories-bottom-dropdown[hidden],
    .categories-bottom-item-wrap.has-dropdown.is-open .categories-bottom-dropdown[hidden] {
        display: block;
    }

    .categories-bottom-dropdown-item {
        display: block;
        padding: 8px 12px;
        border-radius: 8px;
        text-decoration: none;
        color: var(--text-dark);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

    .categories-bottom-dropdown-item:hover {
        background: #f0f0f0;
    }
}

@media (max-width: 768px) {
    .categories-bottom-dropdown {
        display: none !important;
    }
}

/* Панель подкатегорий над нижним рядом */
.categories-subnav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 56px;
    z-index: 1002;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    padding: 6px 12px;
}

.categories-subnav.is-open,
.categories-subnav:not([hidden]) {
    display: block;
}

.categories-subnav[hidden] {
    display: none !important;
}

.categories-subnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}

.categories-subnav-item {
    flex: 0 0 auto;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.categories-subnav-item.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.category-section-title {
    margin: 28px 0 16px;
    font-size: 1.35rem;
    color: var(--text-dark);
}

.category-section-title a {
    color: inherit;
    text-decoration: none;
}

.category-section-title a:hover {
    color: var(--primary-color);
}

/* отступ снизу под панель категорий (+ subnav) */
.main-with-categories {
    margin-left: 0;
    padding-bottom: 72px;
}

body:has(.categories-subnav.is-open) .main-with-categories,
body:has(.categories-subnav:not([hidden])) .main-with-categories {
    padding-bottom: 120px;
}

/* SEO текст на страницах */
.seo-text {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-dark);
    line-height: 1.8;
}

.seo-text h1,
.seo-text h2,
.seo-text h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.seo-text p {
    margin-bottom: 15px;
}

.seo-text ul,
.seo-text ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.seo-text:last-child {
    margin-bottom: 0;
}

/* Dish filter chips (menu) */
.dish-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
}

.dish-filter-chips__selected {
    flex: 1 0 100%;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.dish-filter-chips__scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 4px;
    flex: 1;
    min-width: 0;
}

.dish-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: none;
    border-radius: 999px;
    background: #eee;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.dish-filter-chip:hover {
    background: #e2e2e2;
    color: var(--primary-dark);
}

.dish-filter-chip.is-active {
    background: var(--primary-color);
    border-color: transparent;
    color: #fff;
}

.dish-filter-chips__clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.dish-filter-chips__clear:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

@media (max-width: 768px) {
    .dish-filter-chips__clear {
        display: none;
    }
}

/* Delivery & payment static page (fallback content) */
.delivery-payment {
    margin-top: 24px;
}

.dp-section + .dp-section {
    margin-top: 48px;
}

.dp-map-wrapper {
    margin-bottom: 26px;
}

.dp-map-iframe {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.dp-title {
    font-size: 44px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(var(--primary-color-rgb), 0.55);
    margin: 0 0 20px; /* единый отступ от заголовка до карточек */
}

/* H2-заголовки секций на странице доставки/оплаты */
.dp-title-section {
    line-height: 1.2;
}

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

.dp-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: var(--shadow);
}

.dp-card-title {
    margin: 0 0 14px 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-dark);
}

.dp-card-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

.dp-card-text + .dp-card-text {
    margin-top: 0.75em;
}

.dp-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-dark);
}

.dp-list li {
    margin: 0 0 12px;
    line-height: 1.7;
    font-size: 15px;
}

.dp-list li:last-child {
    margin-bottom: 0;
}

.dp-section-zones {
    margin-top: 40px;
}

.dp-zones-legend {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    font-size: 14px;
    color: var(--text-dark);
}

.dp-zone-card {
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: var(--shadow);
}

.dp-zone-header {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.dp-zone-name {
    font-weight: 700;
    color: var(--text-dark);
    white-space: pre-line;
    line-height: 1.35;
}

.dp-zone-text {
    line-height: 1.6;
}

.dp-zone-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
    margin-top: 3px;
}

@media (max-width: 768px) {
    .dp-zones-legend {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dp-title {
        font-size: 34px;
    }
    .dp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dp-card {
        padding: 20px 18px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Categories Section */
.categories-section {
    margin: 60px 0;
}

.categories-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-card h3 {
    font-size: 24px;
    margin-top: 15px;
}

/* Dishes Grid */
.dishes-section {
    margin: 60px 0;
}

.dishes-section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.category-cover {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.category-cover-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.category-block{
    width: 100%;
}

.category-block .category-title-link {
    color: inherit;
    text-decoration: none;
}

.category-block .category-title-link:hover {
    text-decoration: underline;
}

.category-more {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
}

.category-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    border-radius: 999px;
}

.dishes-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.dish-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
    display: block;
    height: 100%;
    width: 100%;
}

.dish-card-link {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 фото и правый блок */
    align-items: stretch;
    height: 220px; /* ПК: высота под фото */
}

.dish-card .dish-actions {
    margin-top: auto;
    border-top: none;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.dish-card:hover {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.dish-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-light);
}

.dish-image-placeholder {
    width: 100%;
    height: 220px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.dish-info {
    padding: 5px 10px 10px 10px; /* снизу чуть больше, чтобы кнопка не прилипала */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.dish-card .dish-title-link {
    display: block;
    width: 100%;
    text-align: center;
}

.dish-card .dish-info h3 {
    text-align: center;
}

.dish-card .dish-meta {
    align-items: center;
    width: 100%;
}

/* ПК/ноут: назва обрізається, ціна й «Купити» завжди внизу картки */
@media (min-width: 481px) {
    .dish-card .dish-info {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 4px;
    }

    .dish-card .dish-title-link {
        min-height: 0;
        overflow: hidden;
    }

    .dish-card .dish-info h3 {
        font-size: clamp(14px, 1.2vw, 18px);
        line-height: 1.25;
        margin-bottom: 0;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: anywhere;
    }

    .dish-card .dish-meta {
        margin-top: 0;
        flex-shrink: 0;
    }
}

@media (min-width: 481px) and (max-width: 1280px) {
    .dish-card-link {
        height: 240px;
    }

    .dish-card .dish-image,
    .dish-card .dish-image-placeholder {
        height: 240px;
    }

    .dish-card .dish-info h3 {
        -webkit-line-clamp: 2;
    }

    .dish-card .dish-specs {
        font-size: 12px;
    }

    .dish-card .price,
    .dish-card .price-new {
        font-size: 17px;
    }

    .dish-card .price-old {
        font-size: 14px;
    }
}

@media (min-width: 1025px) {
    .dish-card .dish-info h3 {
        -webkit-line-clamp: 3;
    }
}

.dish-card .dish-specs {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.dish-card .dish-price {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    width: 100%;
    text-align: center;
}

.dish-card .dish-actions {
    align-items: center;
}

.dish-info h3 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 480px) {
    .dish-info h3 {
        font-size: 15px;
        line-height: 1.2;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: break-word;
    }

    .price,
    .price-new {
        font-size: 17px;
    }
}

.dish-title-link {
    text-decoration: none;
    color: inherit;
}

.dish-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.price-old {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 10px;
}

.price-new {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.dish-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.dish-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    overflow: hidden;
    box-sizing: border-box;
}

.quantity-btn-increase,
.quantity-btn-decrease {
    flex: 1;
    height: 40px;
    border: none;
    background: var(--primary-color);
    cursor: pointer;
    box-sizing: border-box;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #fff;
}

.quantity-btn-increase:hover,
.quantity-btn-decrease:hover {
    background: var(--primary-dark);
}

.quantity-btn-decrease:disabled,
.quantity-btn-increase:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--primary-color);
}

.quantity-btn-decrease:disabled:hover,
.quantity-btn-increase:disabled:hover {
    background: var(--primary-color);
}

.quantity-value {
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    box-sizing: border-box;
    padding: 0 15px;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-radius: 999px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    flex: 1;
    box-sizing: border-box;
    height: 40px;
}

.dish-actions .btn-primary {
    width: 100%;
    height: 34px;
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.dish-card .quantity-btn-increase,
.dish-card .quantity-btn-decrease {
    height: 34px;
    font-size: 18px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Кнопка "Перейти до категорії" на главной */
.category-more .btn-primary.category-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Кнопка "Назад до меню" на странице блюда */
.dish-detail .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border-width: 2px;
    border-style: solid;
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #ffffff;
    box-sizing: border-box;
    white-space: nowrap;
}

.dish-detail .btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-color);
}

/* Menu Layout */
.menu-layout {
    display: block;
}

.menu-categories {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.menu-categories h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.categories-list {
    list-style: none;
    padding-left: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.categories-list a:hover,
.categories-list a.active {
    background: var(--primary-color);
    color: #fff;
}

.menu-content > h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.menu-content .category-block > h2 {
    font-size: 1.5rem;
    margin: 28px 0 16px;
    color: var(--text-dark);
}

.menu-content h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

/* Flash messages */
.flash-messages {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.flash {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

/* Auth forms */
.auth-form {
    max-width: 450px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.telegram-link-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0 6px;
}

.telegram-link-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    flex: 1 1 320px;
    min-width: 240px;
}

.telegram-link-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-form h1 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark);
    font-size: 28px;
}

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

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

.desired-time {
    margin-top: 10px;
}

.desired-time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.desired-time .checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin: 0;
}

.desired-time .checkbox-inline span {
    line-height: 1.2;
}

.desired-time .time-input {
    width: 150px;
    padding: 8px 10px;
}

.desired-time .time-option {
    padding: 8px 12px;
    gap: 10px;
    align-items: center;
}

.desired-time .time-option .delivery-radio-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.desired-time .time-option .time-extra {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.time-input-wrapper {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .address-grid {
        grid-template-columns: 1fr;
    }
}

/* Delivery mode radios (checkout) */
.delivery-mode {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.delivery-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    user-select: none;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.delivery-radio:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.delivery-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-radio-custom {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #fff;
}

.delivery-radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.delivery-radio input:checked + .delivery-radio-custom::after {
    transform: scale(1);
}

.delivery-radio input:checked ~ .delivery-radio-custom {
    border-color: var(--primary-dark);
}

.delivery-radio input:checked ~ .delivery-radio-text {
    color: var(--primary-dark);
}

.delivery-radio-text {
    font-weight: 600;
    color: var(--text-dark);
}

.pickup-point-radios {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.pickup-point-radio {
    width: 100%;
}

.pickup-point-address {
    font-weight: 400;
    color: var(--text-light, #666);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 14px;
}

.auth-link {
    margin-top: 20px;
    text-align: center;
    color: var(--text-light);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* Method selector */
.method-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
}

.radio-label:hover {
    border-color: var(--primary-color);
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: #fff5f5;
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer */
.main-footer {
    position: relative;
    z-index: 2;
    margin-top: 80px;
    background: var(--text-dark);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-col h4 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-decoration: none;
}
.footer-logo-img {
    display: block;
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    margin-bottom: 4px;
    font-size: 14px;
}

.footer-contact a {
    color: #fff;
    font-weight: 600;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 8px;
}

.footer-links-small {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social-links a {
    color: #ccc;
    font-size: 20px;
}

.footer-social-links a:hover {
    color: #fff;
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

.error-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-box h1 {
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
}

.error-box p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-muted);
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dish Detail */
.dish-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.dish-detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.dish-detail-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.dish-detail-info .dish-price {
    margin-bottom: 30px;
}

.dish-composition {
    margin-bottom: 25px;
}

.dish-composition h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.dish-detail .dish-composition h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.dish-detail .dish-composition p {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-dark);
}

.dish-specs {
    display: flex;
    gap: 20px;
    font-size: 16px;
    color: var(--text-light);
}

@media (max-width: 480px) {
    .dish-specs {
        font-size: 14px;
    }
}

.dish-allergens-block {
    margin-bottom: 30px;
}

.dish-allergens-block h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.dish-detail .dish-allergens-block h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.dish-detail .allergen-chips {
    gap: 10px;
}

.dish-detail .allergen-chip {
    font-size: 16px;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    line-height: 1;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    border-width: 1px;
    border-color: rgba(var(--primary-color-rgb), 0.14);
    background: rgba(var(--primary-color-rgb), 0.07);
}

.dish-detail .allergen-chip__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.dish-detail .allergen-chip__icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.dish-detail .allergen-chip__label {
    max-width: none;
    display: inline-flex;
    align-items: center;
    height: 24px;
    line-height: 24px;
    padding: 0;
    margin: 0;
}

.allergen-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dish-card .allergen-chips {
    margin-bottom: 6px;
    gap: 8px;
    justify-content: center;
}

.allergen-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 10px 4px 4px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.24);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-dark);
}

.allergen-chip--compact {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

/* На карточке блюда — только иконка, без кружка-обводки */
.dish-card .allergen-chip--compact {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: default;
}

.dish-card .allergen-chip__icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.allergen-chip__icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.allergen-chip--compact .allergen-chip__icon {
    width: 22px;
    height: 22px;
}

.dish-card .allergen-chip--compact .allergen-chip__icon {
    width: 28px;
    height: 28px;
}

.allergen-tooltip {
    position: fixed;
    z-index: 10000;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(33, 37, 41, 0.94);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.allergen-chip__label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.dish-detail .dish-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.dish-detail .dish-actions-group {
    flex: 1;
    min-width: 0;
}

.dish-detail .dish-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    box-sizing: border-box;
}

.dish-detail .quantity-control {
    height: 44px;
}

.dish-detail .quantity-btn-increase,
.dish-detail .quantity-btn-decrease {
    height: 44px;
}

/* Планшеты: 2 карточки в ряд (481px - 1024px) */
@media (max-width: 1024px) and (min-width: 481px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Responsive для других элементов */
@media (max-width: 768px) {
    .menu-layout {
        grid-template-columns: 1fr;
    }
    
    .menu-categories {
        position: static;
    }
}

/* Телефоны: 1 карточка в ряд */
@media (max-width: 480px) {
    .dishes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Мобильная карточка: высота по контенту, фото тянется вместе с текстом */
    .dish-card-link {
        height: auto;
        min-height: 168px;
        grid-template-columns: minmax(128px, 40%) 1fr;
        align-items: stretch;
    }

    .dish-card .dish-image-link {
        display: block;
        min-height: 168px;
        height: 100%;
    }

    .dish-card .dish-image,
    .dish-card .dish-image-placeholder {
        height: 100%;
        min-height: 168px;
    }

    .dish-card .dish-info {
        height: auto;
        min-height: 168px;
        overflow: visible;
        padding: 6px 8px 8px;
    }

    .dish-card .dish-specs {
        font-size: 12px;
        line-height: 1.2;
    }

    .dish-card .dish-meta {
        gap: 3px;
    }

    .dish-card .allergen-chips {
        gap: 3px;
        margin-bottom: 4px;
    }

    .dish-card .allergen-chip--compact .allergen-chip__icon {
        width: 20px;
        height: 20px;
    }

    .dish-card .dish-price {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 8px;
        width: 100%;
        text-align: center;
    }

    .dish-card .dish-actions .btn-primary,
    .dish-card .dish-actions .quantity-control {
        width: 100%;
    }
    
    .container {
        padding: 0 42px;
    }
    
    .dish-detail {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 0;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        position: relative;
    }
    
    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
    }
    
    .cart-item-quantity {
        justify-self: start;
    }
    
    .cart-item-total {
        justify-self: end;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .cart-summary {
        position: static;
        margin-top: 20px;
        width: 100%;
    }
    
    .kit-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .kit-control {
        justify-content: space-between;
    }
    
    .promo-code-input-group {
        flex-direction: column;
    }
    
    .promo-code-input-group .promo-btn {
        width: 100%;
    }
    
    .promo-applied {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .promo-remove {
        align-self: flex-end;
    }
}

/* Cart */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.cart-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.cart-container .cart-content,
.cart-container .cart-items,
.cart-container .cart-item,
.cart-container .cart-summary,
.cart-container .kit-section,
.cart-container .recommended-section,
.cart-container .dishes-grid,
.cart-container .dish-card,
.cart-container .promo-code-section {
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    .cart-container {
        padding: 0 15px;
    }
    .cart-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
    }
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kit-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow);
}

.kit-section h2 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: var(--primary-color);
}

.kit-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.kit-label {
    color: var(--text-dark);
    font-size: 14px;
}

.kit-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    padding: 6px 10px;
    border-radius: 999px;
}

.kit-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.kit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kit-value {
    min-width: 18px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
        margin: 20px 0;
    }
    .cart-summary {
        position: static;
        width: 100%;
        margin-top: 20px;
    }
    .kit-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .kit-control {
        justify-content: space-between;
    }
}

.cart-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    min-width: 0;
}

.cart-item:hover {
    box-shadow: var(--shadow-hover);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-image-placeholder {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
}

.cart-item-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity .quantity-control {
    width: 100%;
    max-width: 200px;
}

.cart-item-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
}

.cart-item-remove {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background: #fee;
    color: var(--primary-color);
}

/* Order accordion (checkout) */
.order-accordion {
    margin: 15px 0 20px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 0;
}

.order-accordion summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-accordion summary::-webkit-details-marker {
    display: none;
}

.order-accordion summary::after {
    content: '▸';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
}

.order-accordion[open] summary::after {
    transform: rotate(90deg);
    color: var(--primary-dark);
    background: rgba(0, 0, 0, 0.08);
}

.order-accordion-body {
    padding: 0 16px 16px 16px;
}

.order-items-list.compact .order-item-summary {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-items-list.compact .order-item-summary:last-child {
    border-bottom: none;
}

.order-kit {
    margin-top: 10px;
}

.order-kit .kit-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.order-kit .kit-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-dark);
}

.order-review-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-review-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.order-review-row:last-child {
    border-bottom: none;
}

.order-review-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.order-review-image.placeholder {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 12px;
}

.order-review-info h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.order-review-meta {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.order-summary-inline {
    margin-top: 20px;
    position: static;
    width: 100%;
}

.cart-summary {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.summary-section {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.discount {
    color: var(--success-color);
}

.summary-row.discount .discount-value {
    color: var(--success-color);
    font-weight: 600;
}

.summary-row.total {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    border-bottom: none;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.order-form-errors {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    min-height: 0;
    color: var(--text-dark, #333);
}
.order-form-errors[hidden] {
    display: none !important;
}
.order-form-errors.order-form-errors-visible {
    display: block;
    background: #fde8e8;
    color: #c53030;
    border: 1px solid #feb2b2;
}
.order-form-errors-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}
.order-form-errors-list li {
    margin: 0.25em 0;
}

.delivery-check-alert {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 0.95rem;
    line-height: 1.45;
}

.delivery-check-alert[hidden] {
    display: none !important;
}

.delivery-check-alert--info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

.delivery-check-alert--success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.delivery-check-alert--error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.check-delivery-btn {
    margin-top: 12px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
    width: 100%;
}

.form-actions .align-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-actions .btn {
    width: auto;
}

.order-submit-actions {
    display: flex;
    justify-content: flex-end;
}

.order-submit-btn {
    width: auto;
    min-width: 180px;
    text-align: center;
    flex: 0 0 auto;
}

.order-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.order-promo-section .promo-btn {
    width: auto;
    min-width: 140px;
    white-space: nowrap;
    align-self: flex-end;
    flex: 0 0 auto;
}

.order-promo-section .order-promo-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.order-promo-section .order-promo-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Промокод секция */
.promo-code-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.promo-code-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.promo-code-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.promo-code-input-group .promo-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.promo-code-input-group .promo-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.promo-code-input-group .promo-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.add-to-cart-btn[disabled],
.add-to-cart-btn.disabled {
    opacity: 1;
    cursor: default;
    pointer-events: none;
}

.promo-btn {
    padding: 10px 20px;
    white-space: nowrap;
    font-size: 14px;
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    width: 100%;
    margin-top: 5px;
    transition: all 0.2s;
}

.promo-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.promo-message {
    font-size: 13px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    display: none;
}

.promo-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.promo-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.promo-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
}

.promo-applied-code {
    color: #155724;
    font-size: 14px;
}

.promo-applied-code strong {
    font-weight: 600;
}

.promo-remove {
    color: #155724;
    font-size: 13px;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
}

.promo-remove:hover {
    opacity: 0.7;
}

.cart-summary-actions {
    margin-top: 20px;
}

.cart-summary-actions .btn-large {
    width: 100%;
    height: 45px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    min-width: 150px;
}

.cart-item-quantity .quantity-control {
    width: 100%;
    max-width: 150px;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty p {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 30px;
}
