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

:root {
    --red: #c41e3a;
    --red-dark: #9a1830;
    --red-deep: #7a1225;
    --gold: #d4af37;
    --gold-light: #f0d78c;
    --cream: #faf6f0;
    --dark: #1a1210;
    --dark-soft: #2d2220;
    --text: #3d2f2c;
    --text-muted: #7a6b67;
    --white: #ffffff;
    --shadow: 0 8px 32px rgba(26, 18, 16, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Montserrat', sans-serif;
    --font-cn: 'Noto Serif SC', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

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

/* Top bar */
.top-bar {
    background: var(--white);
    color: var(--red);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(196, 30, 58, 0.12);
}

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

.top-bar__hours {
    font-weight: 600;
}

/* Переключатель языка */
.lang-switch {
    display: inline-flex;
    gap: 2px;
    background: rgba(196, 30, 58, 0.08);
    border-radius: 999px;
    padding: 2px;
}

.lang-switch__btn {
    border: none;
    background: transparent;
    color: rgba(196, 30, 58, 0.75);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn:hover {
    color: var(--red);
}

.lang-switch__btn--active {
    background: var(--primary, #c41e3a);
    color: #fff;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid rgba(196, 30, 58, 0.1);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 24px;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo__img {
    height: 46px;
    width: auto;
    display: block;
}

.logo__cn {
    font-family: var(--font-cn);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.15em;
}

.logo__ru {
    font-family: var(--font-cn);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--red);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--red);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cart-btn {
    position: relative;
    background: var(--red);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.cart-btn:hover {
    background: var(--red-dark);
    transform: scale(1.05);
}

.cart-btn__count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.cart-btn__count:empty,
.cart-btn__count[data-count="0"] {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
}

/* Address banner */
.address-banner {
    background: linear-gradient(90deg, var(--red-deep), var(--red));
    color: var(--white);
    padding: 12px 0;
    font-size: 0.9rem;
}

.address-banner__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.address-banner__link {
    background: none;
    border: none;
    color: var(--gold-light);
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.address-banner__current {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Hero */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1525755662778-989d0524087e?w=1400&q=80') center/cover no-repeat;
}

.hero--roujiamo {
    background-image: url('images/roujiamo-hero.png');
    background-position: center 40%;
}

.hero--roujiamo .hero__overlay {
    background: linear-gradient(105deg, rgba(26, 18, 16, 0.9) 0%, rgba(26, 18, 16, 0.55) 45%, rgba(26, 18, 16, 0.35) 100%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.85) 0%, rgba(122, 18, 37, 0.7) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    color: var(--white);
    max-width: 680px;
}

.hero__subtitle {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero__title {
    font-family: var(--font-cn);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__title span {
    color: var(--gold-light);
    font-size: 0.65em;
    display: block;
    margin-top: 8px;
}

.hero__text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Signature dish — 肉夹馍 */
.signature-dish {
    padding: 72px 0;
    background: linear-gradient(180deg, #faf6f0 0%, #f3ebe0 50%, #faf6f0 100%);
    border-bottom: 1px solid rgba(196, 30, 58, 0.08);
}

.signature-dish__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.signature-dish__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.signature-dish__figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.signature-dish__label {
    color: var(--red);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.signature-dish__cn {
    font-family: var(--font-cn);
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 8px;
}

.signature-dish__pinyin {
    font-size: 1.1rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 20px;
}

.signature-dish__ru {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 24px;
    max-width: 420px;
}

.signature-dish__ru em {
    font-style: normal;
    color: var(--red);
    font-weight: 600;
}

.signature-dish__facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    margin-bottom: 28px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.signature-dish__facts strong {
    color: var(--dark);
    font-weight: 600;
}

.menu-card__name-cn {
    display: block;
    font-family: var(--font-cn);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 4px;
    line-height: 1.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn--primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn--full {
    width: 100%;
}

/* Category nav */
.category-nav {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 78px;
    z-index: 150;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav__inner {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
}

.category-nav__btn {
    flex-shrink: 0;
    background: var(--cream);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-nav__btn:hover,
.category-nav__btn--active {
    background: var(--red);
    color: var(--white);
}

/* Menu */
.menu-page {
    padding: 48px 0 80px;
}

.menu-section {
    margin-bottom: 56px;
    scroll-margin-top: 140px;
}

.menu-section__title {
    font-family: var(--font-cn);
    font-size: 1.75rem;
    color: var(--red);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(26, 18, 16, 0.15);
}

.menu-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #ffffff;
}

.menu-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}

.menu-card__image--contain {
    object-fit: contain;
}

.menu-card:hover .menu-card__image {
    transform: scale(1.05);
}

.menu-card__tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.menu-card__tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-card__tag--spicy {
    background: var(--red);
    color: var(--white);
}

.menu-card__tag--new {
    background: var(--gold);
    color: var(--dark);
}

.menu-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card__code {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.menu-card__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.menu-card__weight {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.menu-card__desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex: 1;
}

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

.menu-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--red);
}

.menu-card__price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.menu-card__add {
    background: var(--red);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.menu-card__add:hover {
    background: var(--red-dark);
    transform: scale(1.1);
}

/* Delivery */
.delivery {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    font-family: var(--font-cn);
    font-size: 2rem;
    text-align: center;
    color: var(--red);
    margin-bottom: 48px;
}

.section-title--left {
    text-align: left;
}

.delivery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.delivery__card {
    background: var(--cream);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(196, 30, 58, 0.08);
    transition: transform 0.2s;
}

.delivery__card:hover {
    transform: translateY(-4px);
}

.delivery__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.delivery__card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.delivery__card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Cart panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100dvh;
    background: var(--white);
    z-index: 300;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-panel--open {
    right: 0;
}

.cart-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-panel__header h2 {
    font-size: 1.25rem;
    color: var(--dark);
}

.cart-panel__close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.cart-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-panel__empty {
    text-align: center;
    color: var(--text-muted);
    padding: 48px 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item__info {
    flex: 1;
}

.cart-item__name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item__qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item__qty {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item__price {
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
}

.cart-panel__footer {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-panel__note {
    margin: 0 0 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

.cart-panel__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.cart-panel__total strong {
    font-size: 1.35rem;
    color: var(--red);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 16, 0.5);
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay--visible {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.modal {
    border: none;
    padding: 0;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: calc(100% - 40px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.modal--map {
    max-width: 640px;
}

.modal::backdrop {
    background: rgba(26, 18, 16, 0.6);
}

.modal__content {
    padding: 32px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Программный фокус (autofocus на заголовок/карту, чтобы не всплывала клавиатура) — без синей обводки */
.modal [tabindex="-1"]:focus,
.modal [tabindex="-1"]:focus-visible {
    outline: none;
}

.modal__content h3 {
    font-size: 1.35rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.modal__hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.modal__actions--address {
    justify-content: flex-end;
}

.modal__actions--address .btn--primary {
    margin-left: auto;
}


.modal__actions .btn--outline {
    color: var(--text);
    border-color: rgba(0, 0, 0, 0.2);
}

.modal__actions .btn--outline:hover {
    background: var(--cream);
}

.modal__content--map {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 32px calc(24px + env(safe-area-inset-bottom, 0px));
    max-height: min(90vh, 100dvh);
}

#addressModal .delivery-map {
    height: 360px;
    min-height: 360px;
    margin-bottom: 14px;
}

.modal__content--map .modal__actions--address {
    margin-top: 20px;
    padding: 0;
    border-top: none;
    background: transparent;
    box-shadow: none;
}

.modal__content--map .form-group {
    margin-bottom: 12px;
}

.modal__content--map .address-validation {
    margin: 4px 0 10px;
}

.modal__content--map .delivery-zones-details {
    margin-bottom: 4px;
}

.delivery-map {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    background: #e8eef3;
    overflow: hidden;
}

#addressModal:not([open]) #deliveryMap {
    display: none;
}

.delivery-map .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    font-family: var(--font);
    background: #ddd;
}

/* Leaflet 1.9: plus-lighter делает тайлы невидимыми на сером фоне (Chromium) */
.delivery-map .leaflet-tile-pane img.leaflet-tile,
.checkout-map-preview .leaflet-tile-pane img.leaflet-tile {
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: none !important;
    max-height: none !important;
}

.delivery-map .leaflet-tile-pane {
    z-index: 200;
}

.delivery-map--error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    color: var(--red);
    font-size: 0.9rem;
}

.delivery-map--svg {
    background: #e8eef3;
}

.svg-map {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    cursor: crosshair;
    box-sizing: border-box;
}

#svgMapClickArea:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.svg-map__canvas {
    display: block;
    width: 100%;
    flex: 1 1 auto;
    min-height: 260px;
    height: calc(100% - 36px);
    cursor: crosshair;
    touch-action: manipulation;
}

.svg-map__title {
    font: 600 11px var(--font);
    fill: #555;
}

.svg-map__cafe {
    font-size: 14px;
}

.svg-map__dot {
    stroke: #fff;
    stroke-width: 2;
}

.svg-map__dot--ok {
    fill: #1a5fb4;
}

.svg-map__dot--out {
    fill: #c41e3a;
}

.svg-map__hint {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 10px;
    font-size: 0.8rem;
    color: var(--dark);
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.btn--map-link {
    display: block;
    width: 100%;
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.checkout-map-preview {
    width: 100%;
    margin-top: 10px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #e8eef3;
}

.checkout-map-preview[hidden] {
    display: none !important;
}

.checkout-map-preview--tap {
    cursor: pointer;
}

.checkout-map-preview--tap:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.checkout-map-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.checkout-map-preview--tap::after {
    content: none;
}

.checkout-map-preview__hint {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.9);
}

.delivery-map--loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8eef3;
}

.delivery-map__loading {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.delivery-map--error {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    text-align: center;
    background: #e8eef3;
}

.delivery-map--error p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.delivery-map__error-hint {
    font-size: 0.8rem !important;
}

/* Не даём иконкам Leaflet «вылезать» за пределы блока карты */
.delivery-map,
.checkout-map-preview {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.delivery-map .leaflet-marker-pane,
.delivery-map .leaflet-shadow-pane,
.checkout-map-preview .leaflet-marker-pane {
    z-index: 600;
}

#checkoutModal .delivery-map,
#checkoutModal #deliveryMap {
    display: none !important;
}

.address-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.address-fields--apt {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px;
}

.address-validation {
    font-size: 0.9rem;
    min-height: 1.4em;
    margin: 8px 0 0;
}

.address-validation--ok {
    color: #1a7a3a;
}

.address-validation--error {
    color: var(--red);
}

.address-validation--pending {
    color: var(--text-muted);
}

.delivery-zones-details {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.delivery-zones-details summary {
    cursor: pointer;
    color: var(--red);
    font-weight: 500;
}

.delivery-zones-list {
    margin-top: 8px;
    line-height: 1.6;
}

.cafe-marker {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
}

.delivery-marker span {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.delivery-marker--ok span {
    background: #1a5fb4;
}

.delivery-marker--out span {
    background: #c41e3a;
}

.order-address-info {
    font-size: 0.85rem;
    margin-top: 6px;
}

.order-address-info.address-valid {
    color: #1a7a3a;
}

.order-address-info.address-error {
    color: var(--red);
}

.order-address-info.address-pending {
    color: var(--text-muted);
}

.btn--small {
    margin-top: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
}

.checkout-summary {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
}

.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.checkout-summary__row--total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-item--delivery {
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    padding-top: 12px;
    margin-top: 8px;
}

.delivery__zones {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.7;
}

.delivery__zones li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery__zone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.delivery__card--zones {
    text-align: left;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--white);
}

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

/* Убираем «красную плашку» от нативной :invalid-подсветки (Firefox и пр.) */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    box-shadow: none;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Page hero (inner pages) */
.page-hero {
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-hero--booking {
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.9), rgba(122, 18, 37, 0.85)),
        url('images/interior-bar.jpg') center 58%/cover;
}

.page-hero--about {
    background: linear-gradient(135deg, rgba(26, 18, 16, 0.9), rgba(122, 18, 37, 0.85)),
        url('images/interior-hall.jpg') center/cover;
}

.page-hero__label {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-hero__title {
    font-family: var(--font-cn);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.page-hero__text {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto;
}

/* Booking */
.booking-section {
    padding: 80px 0;
}

.booking-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.booking-info h2 {
    font-family: var(--font-cn);
    font-size: 1.5rem;
    color: var(--red);
    margin-bottom: 24px;
}

.booking-info__photo {
    margin-top: 28px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.booking-info__photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.booking-info__list {
    list-style: none;
    margin-bottom: 32px;
}

.booking-info__list li {
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}

.booking-info__list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

.booking-info__list p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.booking-info__phone {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--red);
    box-shadow: var(--shadow);
}

.booking-info__phone-label {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.booking-info__phone-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.booking-info__phone-link {
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}

.booking-info__phone-link:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

.booking-info__features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.booking-info__feature {
    background: var(--white);
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
}

.booking-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.booking-form h2 {
    font-family: var(--font-cn);
    font-size: 1.35rem;
    color: var(--red);
    margin-bottom: 24px;
}

/* About */
.about-story {
    padding: 80px 0;
}

.about-story__grid {
    max-width: 760px;
}

.about-story__text p {
    margin-bottom: 16px;
    color: var(--text);
}

.about-story__image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.about-values {
    padding: 80px 0;
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.value-card {
    background: var(--cream);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.value-card__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.value-card h3 {
    color: var(--red);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.interior {
    padding: 80px 0;
}

.interior__intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    color: var(--text-muted);
}

.interior__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.interior__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.interior__gallery--duo {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.interior__item--large {
    grid-row: span 2;
}

.interior__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

.interior__item figcaption {
    padding: 12px 16px;
    background: var(--white);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--red-deep), var(--red));
    color: var(--white);
}

.about-cta__inner {
    text-align: center;
}

.about-cta__inner h2 {
    font-family: var(--font-cn);
    font-size: 2rem;
    margin-bottom: 12px;
}

.about-cta__inner p {
    opacity: 0.9;
    margin-bottom: 32px;
}

.about-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta .btn--outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 48px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__brand .logo__cn {
    display: block;
    margin-bottom: 4px;
}

.footer__brand .logo__ru {
    color: var(--white);
    display: block;
    margin-bottom: 12px;
}

.footer__brand p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__contact p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--white);
}

/* Телефон на тёмном фоне: браузеры авто-определяют номер как tel-ссылку и красят синим */
.footer__contact a {
    color: var(--white) !important;
    text-decoration: none;
}

.footer__copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0 28px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 1;
}

.footer__copy-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer__legal a:hover {
    color: var(--white);
}

.footer__legal-sep {
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
}

.footer__copy-text {
    color: rgba(255, 255, 255, 0.45);
}

/* Toast animation */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--white);
    color: #000;
    border: 1px solid #000;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 400;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow);
}

/* Responsive */
@media (max-width: 992px) {
    .signature-dish__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .signature-dish__content {
        text-align: center;
    }

    .signature-dish__ru,
    .signature-dish__facts {
        margin-left: auto;
        margin-right: auto;
    }

    .signature-dish__facts {
        justify-content: center;
    }

    .booking-section__grid,
    .about-story__grid {
        grid-template-columns: 1fr;
    }

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

    .interior__item--large {
        grid-row: span 1;
    }

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

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow);
    }

    .nav--open {
        display: flex;
    }

    .burger {
        display: flex;
    }

    .category-nav {
        top: 78px;
    }

    /* Плашки заказа/адреса на телефоне — на весь экран */
    .modal,
    .modal--map {
        max-width: none;
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .modal__content,
    .modal__content--map {
        height: 100dvh;
        max-height: 100dvh;
        padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
    }

    #addressModal .delivery-map {
        height: 52dvh;
        min-height: 240px;
        max-height: 420px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    .modal__content--map .form-group label {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }

    .modal__content--map .form-group input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .modal__content--map .address-fields--apt {
        gap: 8px;
        margin-bottom: 6px;
    }

    .modal__content--map .modal__actions--address {
        margin-top: 14px;
        gap: 8px;
        padding-bottom: 4px;
    }

    .modal__content--map .modal__actions--address .btn {
        flex: 1 1 auto;
        min-width: 0;
        padding: 11px 8px;
        font-size: 0.8rem;
    }

    .modal__content--map .modal__actions--address .btn--primary {
        margin-left: 0;
    }

    /* Корзина-шторка тоже на всю ширину */
    .cart-panel {
        max-width: none;
    }

    .cart-panel:not(.cart-panel--open) {
        right: -100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__links {
        align-items: center;
    }

    .booking-form {
        padding: 24px;
    }

    /* Модальные окна на мобильных: кнопки всегда видны и не перекрыты панелью браузера */
    .modal__content {
        padding: 22px 18px;
    }

    .modal__actions:not(.modal__actions--address) {
        position: sticky;
        bottom: 0;
        margin: 20px -18px 0;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--white);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .modal__content--map {
        max-height: 100dvh;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

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

    .address-fields {
        grid-template-columns: 1fr;
    }

    .address-fields--apt {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .delivery-map {
        height: 260px;
    }
}

/* Auth & cabinet */
.auth-nav {
    display: flex;
    align-items: center;
}

.profile-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: var(--white, #fff);
    color: var(--text, #1a1a1a);
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.profile-btn:hover {
    border-color: var(--red, #c41e3a);
    color: var(--red, #c41e3a);
    transform: scale(1.05);
}

.profile-btn--guest {
    opacity: 0.85;
}

.auth-nav__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text, #1a1a1a);
    text-decoration: none;
    white-space: nowrap;
}

.auth-nav__link--accent {
    color: var(--accent, #c41e3a);
}

.auth-page {
    padding: 3rem 0 5rem;
    min-height: 60vh;
}

.auth-page__inner {
    max-width: 440px;
    margin: 0 auto;
}

.auth-page__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-page__subtitle {
    color: var(--muted, #666);
    margin-bottom: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-form__hint {
    margin: -0.25rem 0 0.5rem;
    text-align: right;
    font-size: 0.875rem;
}

.auth-form__hint a {
    color: var(--accent, #c41e3a);
    font-weight: 500;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    width: 100%;
    padding-right: 48px;
}

.password-field__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted, #666);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.password-field__toggle:hover {
    color: var(--text, #222);
    background: rgba(0, 0, 0, 0.05);
}

.password-field__toggle:focus-visible {
    outline: 2px solid var(--red, #c41e3a);
    outline-offset: 2px;
}

.btn--ghost {
    background: transparent;
    color: var(--muted, #666);
    border: 1px solid var(--border, #ddd);
}

.btn--ghost:hover {
    color: var(--text, #222);
    border-color: var(--text, #222);
}

.auth-page__footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--muted, #666);
}

.auth-page__footer a {
    color: var(--accent, #c41e3a);
    font-weight: 600;
}

.btn--block {
    width: 100%;
    margin-top: 0.5rem;
}

.form-group--checkbox {
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
}

.form-group--checkbox .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.5;
    cursor: pointer;
    text-align: left;
}

.form-group--checkbox .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--red, #c41e3a);
    cursor: pointer;
}

.form-group--checkbox .checkbox-label__text {
    flex: 1;
    min-width: 0;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.35rem;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
    accent-color: var(--red, #c41e3a);
}

.payment-option__text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text, #3d2f2c);
}

.payment-option--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.payment-options__hint {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted, #7a6b67);
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text, #3d2f2c);
}

.checkbox-label a {
    color: var(--red, #c41e3a);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.checkbox-label a:hover {
    color: var(--red-dark, #9a1830);
}

.cabinet-page {
    padding: 2.5rem 0 4rem;
}

.cabinet-page__inner {
    max-width: 760px;
}

.cabinet-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.9rem 0.45rem 0.65rem;
    border-radius: 999px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: var(--white, #fff);
    color: var(--text, #3d2c1e);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.cabinet-page__back:hover {
    color: var(--red, #c41e3a);
    border-color: rgba(196, 30, 58, 0.35);
    background: rgba(196, 30, 58, 0.04);
    transform: translateX(-2px);
}

.cabinet-page__title {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
}

.cabinet__section {
    margin-bottom: 2rem;
}

.cabinet__section-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.cabinet__profile-line {
    margin: 0.35rem 0;
}

.cabinet-profile {
    background: var(--white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1.35rem 1.6rem 1.2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.cabinet-profile .cabinet__section-title {
    margin-bottom: 0.75rem;
}

.cabinet-profile__address {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.cabinet-profile__address-title {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(61, 44, 30, 0.55);
}

.cabinet-profile__address-text {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text, #3d2c1e);
}

.cabinet-profile__address-text--empty {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(61, 44, 30, 0.5);
}

.cabinet-profile__address-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

.cabinet-profile__footer {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cabinet-profile__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 1.2rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font-family: var(--font, inherit);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.cabinet-profile__btn--primary {
    background: linear-gradient(135deg, #c41e3a 0%, #a81830 100%);
    border-color: #a81830;
    color: var(--white, #fff);
    box-shadow: 0 4px 14px rgba(196, 30, 58, 0.22);
}

.cabinet-profile__btn--primary:hover {
    background: linear-gradient(135deg, #d42240 0%, #b81a34 100%);
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.3);
    transform: translateY(-1px);
}

.cabinet-profile__btn--ghost {
    background: var(--white, #fff);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(61, 44, 30, 0.72);
}

.cabinet-profile__btn--ghost:hover {
    border-color: rgba(196, 30, 58, 0.35);
    color: var(--red, #c41e3a);
    background: rgba(196, 30, 58, 0.04);
}

.cabinet-profile__btn--logout {
    background: transparent;
    border-color: rgba(196, 30, 58, 0.22);
    color: var(--red, #c41e3a);
}

.cabinet-profile__btn--logout:hover {
    background: rgba(196, 30, 58, 0.08);
    border-color: rgba(196, 30, 58, 0.4);
}

.cabinet-profile__btn:active {
    transform: translateY(0);
}

.cabinet-profile__btn svg {
    flex-shrink: 0;
}

.cabinet__logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 1.35rem;
    border: 2px solid rgba(196, 30, 58, 0.45);
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.08);
    color: var(--red, #c41e3a);
    font-family: var(--font, inherit);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cabinet__logout:hover {
    background: var(--red, #c41e3a);
    border-color: var(--red, #c41e3a);
    color: var(--white, #fff);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.28);
}

.cabinet__logout:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
}

.cabinet__logout svg {
    flex-shrink: 0;
}

.cabinet__empty,
.cabinet__loading {
    color: var(--muted, #666);
}

.order-card {
    background: var(--white, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.order-card--active {
    border-color: rgba(196, 30, 58, 0.35);
}

.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.order-card__id {
    font-weight: 700;
    display: block;
}

.order-card__date {
    font-size: 0.85rem;
    color: var(--muted, #666);
}

.order-status {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #eee;
    white-space: nowrap;
}

.order-status--pending { background: #f3ecff; color: #5b3d91; }
.order-status--new { background: #e8f4fd; color: #0b6ba8; }
.order-status--progress { background: #fff3cd; color: #856404; }
.order-status--cooking { background: #fde8d8; color: #a04b10; }
.order-status--delivering { background: #e2f0e8; color: #1f6b42; }
.order-status--done { background: #e8f5e9; color: #2e7d32; }
.order-status--cancelled { background: #f5e8e8; color: #8b1e1e; }

.order-card__items {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.order-card__item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.92rem;
}

.order-card__meta {
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.order-card__meta p {
    margin: 0.25rem 0;
}

.order-card__totals {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.order-card__row {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 0;
    font-size: 0.92rem;
}

.order-card__row--total {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.order-card__cancel-hint {
    font-size: 0.85rem;
    color: var(--muted, #666);
    margin: 0 0 0.75rem;
}

.order-card__cancel {
    width: 100%;
}

.admin-status-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-top: 0.75rem;
}

.admin-status-form .form-group {
    flex: 1;
    min-width: 140px;
    margin: 0;
}

.admin-status-msg {
    font-size: 0.85rem;
    color: var(--muted, #666);
}

@media (max-width: 768px) {
    .profile-btn {
        width: 40px;
        height: 40px;
    }
}
