:root {
    --bg-main: #050508;
    --bg-card: rgba(16, 16, 24, 0.95);
    --bg-glass: rgba(10, 10, 18, 0.92);
    --accent-gold: #f4c66d;
    --accent-red: #ff4d5a;
    --text-main: #f6f6f8;
    --text-muted: #a7a7b5;
    --border-soft: rgba(255, 255, 255, 0.06);
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.85);
    --transition-fast: 0.18s ease-out;
}

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

html, body {
    min-height: 100%;
    background: radial-gradient(circle at top, #1c1e2a 0, #050508 45%, #000 100%);
    color: var(--text-main);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    padding: 16px;
    overflow-x: hidden;
}

/* SPLASH */
#splash {
    position: fixed !important; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: #000; 
    z-index: 99999; 

    position: absolute;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splashFade 2.4s ease forwards;
}

#splash img {
    width: 60%;
    max-width: 380px;
    animation: splashLogo 1.3s ease forwards;
}

@keyframes splashLogo {
    0%   { opacity: 0; transform: scale(0.5); }
    60%  { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes splashFade {
    0%   { opacity: 1; }
    70%  { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* APP SHELL */

.app-shell {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    background:
        radial-gradient(circle at top right, rgba(244,198,109,0.12), transparent 55%),
        radial-gradient(circle at bottom left, rgba(255,77,90,0.12), transparent 50%),
        #050508;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

/* HEADER */

.app-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(5,5,10,0.96), rgba(10,10,18,0.9));
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: 90px;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo-main {
    height: 72px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    display: none; /* убираем текст около логотипа */
}

/* КНОПКА КОРЗИНЫ — фиксированная и тонкая */

.cart-pill {
    position: relative;
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 120;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(244,198,109,0.92), rgba(154,111,48,0.98));
    color: #1a1207;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
    border: 2px solid rgba(244,198,109,0.5);
    min-width: 120px;
}

.cart-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(0,0,0,1);
}

.cart-pill-icon {
    font-size: 16px;
}

.cart-pill-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.cart-pill-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.cart-pill-value {
    font-size: 13px;
}

/* скрываем корзину, когда открыт чек */

/* LAYOUT */

.app-body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    gap: 18px;
    padding: 18px 26px 22px;
}

@media (max-width: 900px) {
    .app-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

.content-panel {
    border-radius: 22px;
    background: var(--bg-glass);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 18px 18px 20px;
    position: relative;
    overflow: hidden;
}

.content-panel::before {
    content: "";
    position: absolute;
    inset: -40%;
    background-image:
        radial-gradient(circle at 10% 0, rgba(244,198,109,0.18), transparent 60%),
        radial-gradient(circle at 90% 100%, rgba(255,77,90,0.15), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.content-inner {
    position: relative;
    z-index: 1;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.05fr);
    gap: 16px;
    margin-bottom: 18px;
    align-items: stretch;
}

@media (max-width: 780px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
}

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

.hero-kicker {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #fff6e1, #f4c66d 55%, #a76a22 100%);
    box-shadow: 0 0 0 4px rgba(244,198,109,0.12);
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    line-height: 1.2;
}

.hero-highlight {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 32rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    align-items: center;
}

.hero-chip {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(244,198,109,0.5);
    background: linear-gradient(to right, rgba(244,198,109,0.16), rgba(6,6,10,0.8));
    color: var(--accent-gold);
}

/* убираем текст про круглосуточно */
.working-hours-text {
    display: none;
}

.hero-image-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: radial-gradient(circle at top left, #f4c66d, #ff4d5a 60%, #1a0907 100%);
    min-height: 260px;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0,0,0,0.58), rgba(0,0,0,0.85));
}

.hero-image-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.hero-dish-photo {
    border-radius: 18px;
    overflow: hidden;
    height: 180px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 14px 38px rgba(0,0,0,0.85);
    transition: opacity 0.6s ease;
}

.hero-dish-tag {
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-gold);
    font-weight: 600;
}

.hero-dish-caption {
    font-size: 12px;
    color: rgba(255,255,255,0.78);
}

.hero-dish-button {
    margin-top: 10px;
}

/* ШАГИ */

.steps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 4px;
}

.steps-title {
    font-size: 15px;
    font-weight: 500;
}

.steps-indicator {
    display: flex;
    gap: 6px;
}

.steps-pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--text-muted);
    background: rgba(3,3,8,0.9);
    opacity: 0.7;
}

.steps-pill.active {
    border-color: rgba(244,198,109,0.85);
    background: linear-gradient(to right, rgba(244,198,109,0.18), rgba(255,77,90,0.18));
    color: var(--accent-gold);
    opacity: 1;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* КАТЕГОРИИ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.category-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: radial-gradient(circle at top, rgba(244,198,109,0.25), rgba(14,14,24,0.9));
    border: 1px solid rgba(255,255,255,0.08);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,2,6,0.9), rgba(8,8,16,0.2));
}

.category-content {
    position: relative;
    z-index: 1;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
}

.category-description {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.35;
    margin-top: 6px; /* Чуть ниже */
}

.category-chip {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
    opacity: 0.9;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244,198,109,0.6);
    box-shadow: 0 18px 40px rgba(0,0,0,0.9);
    background: radial-gradient(circle at top, rgba(244,198,109,0.4), rgba(14,14,24,0.98));
}

/* МЕНЮ */

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.category-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-name {
    font-family: "Playfair Display", serif;
    font-size: 24px;
}

.category-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.category-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-ghost {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(4,4,10,0.9);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-ghost:hover {
    background: rgba(244,198,109,0.1);
    border-color: rgba(244,198,109,0.75);
    transform: translateY(-1px);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.dish-card {
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    position: relative;
}

.dish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.9);
    border-color: rgba(244,198,109,0.7);
}

.dish-image {
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.dish-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.15));
}

.dish-tag {
    position: absolute;
    bottom: 8px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.dish-body {
    padding: 10px 11px 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dish-name-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}

.dish-name {
    font-size: 18px;
    font-weight: 500;
}

.dish-price {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
}

.dish-ingredients {
    font-size: 11px;
    color: var(--text-muted);
}

.dish-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.dish-footer {
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dish-meta {
    font-size: 10px;
    color: var(--text-muted);
}

/* BUTTONS */

.btn-add {
    padding: 6px 11px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f4c66d, #ff8a4a);
    color: #120b06;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.85);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.95);
}

.btn-primary {
    margin-top: 11px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f4c66d, #ff4d5a);
    color: #120b06;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0,0,0,0.95);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 52px rgba(0,0,0,0.98);
}

/* ФОРМА */

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 14px;
}

@media (max-width: 780px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.form-card {
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: 12px 13px;
}

.form-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

label {
    font-size: 11px;
    color: var(--text-muted);
}

input,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(6,6,12,0.95);
    color: var(--text-main);
    font-size: 13px;
    padding: 8px 9px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
textarea:focus {
    border-color: rgba(244,198,109,0.9);
    box-shadow: 0 0 0 1px rgba(244,198,109,0.7);
    background: rgba(6,6,12,0.98);
}

textarea {
    min-height: 70px;
    resize: vertical;
}

.order-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.order-summary-line.muted span {
    color: var(--text-muted);
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255,255,255,0.16);
    font-size: 18px;
}

/* SIDEBAR */

.sidebar-panel {
    border-radius: 22px;
    background: radial-gradient(circle at top, rgba(244,198,109,0.14), rgba(8,8,14,0.98));
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 106px;
    align-self: flex-start;
}

.sidebar-block {
    border-radius: 16px;
    background: rgba(6,6,12,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px 11px;
}

.sidebar-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 500;
}

.sidebar-badge {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(244,198,109,0.7);
    color: var(--accent-gold);
}

.cart-items {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 3px;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 8px;
    row-gap: 2px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    font-size: 12px;
    align-items: center;
}

.cart-item-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-size: 12px;
}

.cart-item-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-price {
    font-size: 12px;
    color: var(--accent-gold);
}

.btn-qty {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(6,6,12,0.95);
    color: var(--text-main);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-qty:hover {
    background: rgba(244,198,109,0.15);
    border-color: rgba(244,198,109,0.8);
    transform: translateY(-0.5px);
}

.cart-footer {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cart-footer-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 2px;
}

.cart-footer-line span:last-child {
    color: var(--accent-gold);
    font-weight: 600;
}

.contact-lines {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
}

/* TOAST */

.toast {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: #050508;
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid rgba(244,198,109,0.7);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.95);
    z-index: 130;
    opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #fff, #f4c66d 55%, #a76a22 100%);
}

.toast-text {
    white-space: nowrap;
}

/* ШАГИ отображения */

.step {
    display: none;
}

.step.active {
    display: block;
}

/* ===== МОДАЛКА ЧЕКА: ЗОЛОТАЯ КАРТА ===== */

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,5,10,0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.receipt-modal {
    width: 360px;
    max-width: 94vw;
    border-radius: 24px;
    background: radial-gradient(circle at top, #2b1a08 0%, #050509 55%, #000000 100%);
    padding: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.9);
    color: #f7f3e9;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
}

@media (max-width: 480px) {
    .receipt-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        padding: 16px;
    }
}

.receipt-card {
    position: relative;
    padding: 18px 18px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1b1207 0%, #06050a 40%, #151515 100%);
    border: 1px solid rgba(255,215,138,0.35);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
}

.receipt-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,215,128,0.45), rgba(255,240,200,0.05), rgba(140,90,30,0.4));
    opacity: 0.9;
    mix-blend-mode: screen;
    pointer-events: none;
}

.receipt-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.receipt-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.receipt-brand-name {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: 20px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fce3b0;
}

.receipt-brand-sub {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
}

.receipt-chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,215,160,0.7);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffe9bf;
    background: radial-gradient(circle at top, rgba(255,222,173,0.16), transparent 60%);
    white-space: nowrap;
}

.receipt-main-lines {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 8px 14px;
    font-size: 13px;
    margin-top: 4px;
}

.receipt-line-col,
.receipt-line-full {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.receipt-line-label {
    opacity: 0.6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.receipt-line-value {
    font-weight: 500;
}

.receipt-line-full {
    grid-column: 1 / -1;
}

/* Список блюд */

.receipt-items-block {
    margin-top: 8px;
}

.receipt-items-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.75;
    margin-bottom: 4px;
}

.receipt-items-list {
    padding-top: 6px;
    border-top: 1px dashed rgba(255,215,170,0.35);
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.receipt-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 13px;
    padding: 4px 0;
    gap: 6px;
}

.receipt-item-name {
    font-weight: 500;
    max-width: 65%;
}

.receipt-item-meta {
    font-size: 11px;
    opacity: 0.7;
    text-align: right;
}

.receipt-items-empty {
    font-size: 12px;
    opacity: 0.75;
}

/* Итоги */

.receipt-totals {
    margin-top: 8px;
    border-top: 1px dashed rgba(255,215,170,0.35);
    padding-top: 6px;
    font-size: 13px;
}

.receipt-totals .receipt-line {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.receipt-line-total {
    font-weight: 600;
    margin-top: 4px;
}

/* Статус */

.receipt-status {
    margin-top: 8px;
    padding: 9px 10px;
    border-radius: 999px;
    background: rgba(244,198,109,0.08);
    border: 1px solid rgba(244,198,109,0.35);
    text-align: center;
}

.receipt-status-text {
    color: #fce3b0;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* QR */

.receipt-qr-block {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.receipt-qr-title {
    font-size: 11px;
    opacity: 0.7;
}

.receipt-qr-img {
    width: 120px;
    height: 180px;
    border-radius: 16px;
    background: #000;
    padding: 6px;
}

/* Кнопки чека */

.receipt-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-close,
.btn-download {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: none;
}

.btn-close {
    background: rgba(255,255,255,0.08);
    color: #f7f3e9;
}

.btn-close:hover {
    background: rgba(255,255,255,0.18);
}

.btn-download {
    background: linear-gradient(135deg, #f4c66d, #ff8a4a);
    color: #120b06;
    box-shadow: 0 12px 28px rgba(0,0,0,0.9);
}

.btn-download:hover {
}

/* Мобилка адаптация */

@media (max-width: 640px) {
    body {
        padding: 8px;
    }

    .app-shell {
        border-radius: 16px;
    }

    .app-body {
        padding: 12px 12px 16px;
    }

    .app-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
        padding: 8px 12px;
        height: 72px;
    }

    .cart-pill {
    position: relative;
        top: 14px;
        right: 14px;
        padding: 7px 12px;
    }
}

/* === LIGHT DISH CARDS (override) === */
.dish-card .dish-image {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    overflow: hidden;
}

/* убираем тёмную маску поверх фото в карточках меню */
.dish-card .dish-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: none;            /* без чёрного слоя */
    /* если внутри есть старые filter/opacity – это переопределим */
    opacity: 1;
}

/* === FIX: заголовок "Соберите заказ в три шага" === */
.steps-header {
    display: flex;
    flex-direction: column;   /* текст сверху, пилюли ниже */
    align-items: center;      /* центрируем */
    text-align: center;
    gap: 10px;                /* расстояние между текстом и пилюлями */
    margin-bottom: 10px;
}

.steps-title {
    font-size: 18px !important;        /* нормальный размер */
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    color: var(--accent-gold) !important;  /* золотой */
    text-align: center;
    margin: 0 auto;
    width: 100%;
}


/* === CATEGORY CARD — FULL IMAGE WITH LEFT DARK GRADIENT === */

.category-card {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(244,198,109,0.35); /* soft gold border */
}

/* Фото на всю кнопку */
.category-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Темный градиент слева → вправо */
.category-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.70) 0%,
        rgba(0,0,0,0.55) 35%,
        rgba(0,0,0,0.25) 70%,
        rgba(0,0,0,0.05) 100%
    );
}

/* Контент */
.category-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    color: #fff;
    max-width: 60%; /* чтобы текст не уходил слишком вправо */
}

.category-chip {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.75;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 6px;
}

.contact-label,
.contact-value-highlight {
    background: linear-gradient(90deg, #f4c66d, #ffdf9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.contact-item {
    margin-bottom: 12px;
}

.contact-value {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.4;
}

/* === PREMIUM FREE DELIVERY BADGE === */

/* === FREE DELIVERY: +20% SIZE, PREMIUM BUT NOT HUGE === */

/* === FREE DELIVERY LABEL — +10% only === */

/* === FREE DELIVERY LABEL — +5% only (very subtle) === */

/* === FREE DELIVERY LABEL — 10% smaller === */

/* === FREE DELIVERY LABEL — smaller again (14px) === */

/* === FREE DELIVERY LABEL — smaller (13px) === */

/* === FREE DELIVERY LABEL — smaller (12px) === */
.hero-free-delivery {
    font-size: 12px !important;        /* уменьшено ещё на 10% */
    font-weight: 600 !important;
    padding: 5px 12px !important;

    letter-spacing: 0.10em !important;

    border: 2px solid rgba(244,198,109,0.85) !important;
    border-radius: 12px !important;

    background: rgba(244,198,109,0.05) !important;
    box-shadow: 0 0 5px rgba(244,198,109,0.20) !important;

    display: inline-block !important;
}

#restaurantPhone1,
#restaurantPhone2 {
    color: #fff !important;
    font-weight: 400 !important;
}
#receiptQrBlock { display: none !important; }
.receipt-card-inner { padding: 16px !important; } .receipt-line, .receipt-line-col, .receipt-line-full { margin: 4px 0 !important; } .receipt-card { max-width: 300px !important; } .receipt-brand-name { font-size: 16px !important; } .receipt-brand-sub { font-size: 10px !important; } .receipt-line-value, .receipt-line-label { font-size: 12px !important; } .receipt-items-title { font-size: 13px !important; margin-bottom: 6px !important; } .receipt-items-list { margin-bottom: 8px !important; } .receipt-totals span { font-size: 12px !important; } .receipt-status-text { font-size: 11px !important; margin-top: 8px !important; }

/* === COMPACT RECEIPT LAYOUT === */
#receiptCard {
    max-width: 340px !important;
    margin: 0 auto !important;
}

.receipt-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important;
}

.receipt-card-inner {
    padding: 14px 16px !important;
}

.receipt-brand-name {
    font-size: 16px !important;
}

.receipt-brand-sub {
    font-size: 10px !important;
}

.receipt-line-label,
.receipt-line-value,
.receipt-line span,
.receipt-items-title,
.receipt-status-text {
    font-size: 12px !important;
}

.receipt-line,
.receipt-line-col,
.receipt-line-full {
    margin: 3px 0 !important;
}

.receipt-items-block {
    margin: 6px 0 !important;
}

.receipt-items-list {
    margin: 4px 0 !important;
}

.receipt-totals {
    margin-top: 6px !important;
}

/* hide QR code on receipt */
#receiptQrBlock {
    display: none !important;
}

/* === GOLD GRADIENT FOR FORM LABELS === */
#step2 label,
.form-title {
    background: linear-gradient(90deg, #f4c66d, #ffdf9a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600 !important;
}

/* Улучшим заметность заголовка "Контактные данные" */
#step2 .form-title {
    font-size: 18px !important;
    margin-bottom: 8px !important;
}


.snowflake {
    color: #7fd2ff \!important;
    text-shadow: 0 0 3px #a6e4ff, 0 0 6px #c2f0ff;
    position: absolute;
    top: -10px;
    pointer-events: none; /* не мешает кликам */
    z-index: 9999;
    animation-name: snow-fall;
    animation-timing-function: linear;
    animation-iteration-count: 1;
}


/* Корзина всегда в правом верхнем углу хедера */
.cart-pill {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 120;
    display: inline-flex;
}

/* На мобилке тоже не прячем, не двигаем */
@media (max-width: 640px) {
    .cart-pill {
        position: absolute;
        top: 18px;
        right: 16px;
    }
}

/* === FINAL Z-INDEX FIX FOR HEADER, CART & SNOW BUTTON === */
.app-header {
    z-index: 3000 !important;
}

.cart-pill {
    z-index: 3100 !important;
}

.snow-toggle-btn {
    z-index: 3200 !important;
}

/* === CART FIXED BUTTON === */
.cart-pill {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 4000 !important;
}

/* снежинка тоже фиксируется рядом */
.snow-toggle-btn {
    position: fixed !important;
    top: 20px !important;
    right: 80px !important;
    z-index: 4100 !important;
}

/* === RESTORE SNOW TOGGLE BUTTON === */
#snowToggleBtn,
.snow-toggle-btn {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10, 12, 24, 0.8);
    border: 1px solid rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #d0ecff;
    cursor: pointer;
    z-index: 4200 !important;
    box-shadow: 0 0 10px rgba(127, 210, 255, 0.5);
}


/* FIX iOS AUTO-ZOOM ON INPUT FOCUS */
input[type="text"],
input[type="tel"],
textarea {
    font-size: 16px !important;
}

/* === RECEIPT: HEIGHT -15% TUNING === */
#receiptCard {
    transform: scale(0.85); /* 15% меньше */
    transform-origin: top center;
}

.receipt-card-inner {
    padding: 14px !important; /* чуть меньше отступы */
}

.receipt-line,
.receipt-line-col,
.receipt-line-full {
    margin: 3px 0 !important; /* уменьшение вертикальных промежутков */
}

.receipt-brand-name {
    font-size: 15px !important;
}

.receipt-brand-sub {
    font-size: 10px !important;
}

.receipt-line-label,
.receipt-line-value {
    font-size: 12px !important;
}

.receipt-status-text {
    font-size: 10px !important;
}

/* === RECEIPT: HEIGHT +5% (slightly larger) === */
#receiptCard {
    transform: scale(1.05);   /* +5% */
    transform-origin: top center;
}


/* === FIXED NAVIGATION BUTTONS (bottom floating) === */
.fixed-nav-buttons {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 5000;
    pointer-events: none;
}

.fixed-btn {
    pointer-events: auto;
    padding: 10px 18px;
    border-radius: 14px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #1a1207;
    background: linear-gradient(90deg, #f4c66d, #ffdf9a);
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
    opacity: 0.85;
    transition: opacity .2s, transform .2s;
}

.fixed-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.fixed-left { margin-right: auto; }
.fixed-right { margin-left: auto; }

/* скрываем кнопки на шаге оформления заказа */
.step#step2.active ~ .fixed-nav-buttons {
    display: none;
}

/* === ROUND FIXED NAV BUTTONS === */
.fixed-nav-buttons {
    position: fixed;
    bottom: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 22px;
    z-index: 6000;
    pointer-events: none;
}

.fixed-btn {
    pointer-events: auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(244,198,109,0.85);
    background: rgba(5,5,10,0.65);
    backdrop-filter: blur(6px);
    color: #f4c66d;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(244,198,109,0.35);
    transition: transform .2s ease, opacity .2s ease;
}

.fixed-btn:hover {
    transform: translateY(-3px) scale(1.05);
    opacity: 1;
}

.fixed-left { margin-right: auto; }
.fixed-right { margin-left: auto; }

/* скрываем кнопки на шаге оформления */
.step#step2.active ~ .fixed-nav-buttons {
    display: none;
}

/* скрыть кнопки на шаге 0 (категории) и шаге 2 (оформление) */
.step#step0.active ~ .fixed-nav-buttons,
.step#step2.active ~ .fixed-nav-buttons {
    display: none !important;
}

/* ensure fixed nav buttons are hidden by default; JS shows only on step1 */
.fixed-nav-buttons {
    display: none;
}

/* скрывать кнопки, если открыт чек */
body.receipt-open .fixed-nav-buttons {
    display: none !important;
}

/* скрываем корзину и кнопку снега, когда открыт чек */
body.receipt-open .cart-pill,
body.receipt-open #snowToggleBtn {
    display: none !important;
}

/* скрываем старую кнопку "Назад к категориям" */
#step1 .category-header-actions button.btn-ghost:first-child {
    display: none !important;
}

/* === ADVANCED LAZY-LOAD для блюд === */
.dish-image-lazy {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}

.dish-image-lazy.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* === SIMPLE SNOWFALL — stable version === */
.snowflake {
    position: fixed;
    top: -10vh;
    color: #7fd2ff;
    pointer-events: none;
    z-index: 3000;
    font-family: sans-serif;
    animation: snowFall var(--fall-duration, 12s) linear forwards;
    text-shadow: 0 0 3px #a6e4ff, 0 0 6px #c2f0ff;
}

@keyframes snowFall {
    0%   { transform: translateY(-10vh); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(110vh); opacity: 0; }
}

/* выключение снега */
body.snow-off .snowflake {
    display: none !important;
}

/* состояние "ВКЛ" — без класса .snow-off */
#snowToggleBtn:not(.snow-off),
.snow-toggle-btn:not(.snow-off) {
    opacity: 1;
    background: rgba(10, 12, 24, 0.9);
    color: #d0ecff;
    box-shadow: 0 0 10px rgba(127, 210, 255, 0.8), 0 0 18px rgba(127, 210, 255, 0.5);
    transform: scale(1);
}

/* состояние "ВЫКЛ" — класс .snow-off висит на кнопке */
#snowToggleBtn.snow-off,
.snow-toggle-btn.snow-off {
    opacity: 0.4;
    background: rgba(10, 12, 24, 0.6);
    color: #7b8da3;
    box-shadow: none;
    transform: scale(0.92);
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

/* === HIDE CHEF HERO PANEL === */
.hero-image-wrap {
    display: none !important;
}

/* === CANCEL BUTTON (admin) === */
.btn-danger {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #ff5b5b, #ff9f43);
    color: #1b0b0b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.6);
    margin-right: 10px;
}
.btn-danger:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
