/* PRAGA PUB — витрина меню. Тёмная тема под печатное меню: чёрный фон, золото. */

:root {
    --bg: #0c0c0e;
    --bg-2: #141417;
    --bg-3: #1c1c21;
    --line: #2b2b33;
    --gold: #d9b45b;
    --gold-2: #f0d391;
    --gold-dim: #8f7534;
    --text: #ececef;
    --text-dim: #9a9aa4;
    --red: #d9534f;
    --green: #4caf7d;
    --radius: 14px;
    --maxw: 1180px;
    --hdr-h: 60px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */
.hdr {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(12, 12, 14, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.hdr__in {
    max-width: var(--maxw);
    margin: 0 auto;
    height: var(--hdr-h);
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo__name {
    display: block;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .14em;
    color: var(--gold);
    text-transform: uppercase;
}

.logo__sub {
    display: block;
    font-size: 10px;
    letter-spacing: .22em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.hdr__right { display: flex; align-items: center; gap: 14px; }
.hdr__phone { font-weight: 600; white-space: nowrap; }

.cart-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    border-radius: 10px;
    width: 42px;
    height: 38px;
    font-size: 17px;
    cursor: pointer;
}

.cart-btn__count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--gold);
    color: #17130a;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
}

/* ── Герой ─────────────────────────────────────────────────────────────── */
.hero {
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(217, 180, 91, .13), transparent 62%),
        var(--bg);
}

.hero__in { max-width: var(--maxw); margin: 0 auto; padding: 26px 14px 22px; }

.hero__title {
    font-size: 26px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-2);
}

.hero__facts {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__facts li {
    font-size: 13px;
    color: var(--text-dim);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
}

/* ── Навигация по категориям ───────────────────────────────────────────── */
.cats {
    position: sticky;
    top: var(--hdr-h);
    z-index: 30;
    background: rgba(12, 12, 14, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.cats__scroll {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10px 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.cats__scroll::-webkit-scrollbar { display: none; }

.cats__item {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-dim);
    white-space: nowrap;
    transition: .15s;
}

.cats__item:hover,
.cats__item.is-active {
    color: #17130a;
    background: var(--gold);
    border-color: var(--gold);
}

.cats__ico { margin-right: 6px; }

/* ── Меню ──────────────────────────────────────────────────────────────── */
.menu { max-width: var(--maxw); margin: 0 auto; padding: 8px 14px 40px; }

.cat { padding-top: 28px; scroll-margin-top: calc(var(--hdr-h) + 56px); }

.cat__title {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold-2);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold-dim);
    display: flex;
    align-items: center;
    gap: 9px;
}

.cat__notice {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--text-dim);
    border-left: 2px solid var(--gold-dim);
    padding-left: 10px;
}

.cat__group {
    margin: 20px 0 0;
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.grid {
    margin-top: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* ── Карточка ──────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, transform .15s;
}

.card:hover { border-color: var(--gold-dim); }

.card__media {
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, #1b1b20, #101013);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
}

.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__ph { font-size: 40px; opacity: .35; }

.card__body {
    padding: 12px 13px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card__name { font-size: 15px; line-height: 1.3; }

.card__descr {
    margin: 0;
    font-size: 13px;
    color: var(--text-dim);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.variant span {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-dim);
    cursor: pointer;
}

.variant input:checked + span {
    color: var(--gold-2);
    border-color: var(--gold);
}

.card__foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card__price { font-size: 16px; font-weight: 700; color: var(--gold-2); white-space: nowrap; }
.card__price_ask { font-size: 13px; font-weight: 500; color: var(--text-dim); }

.card_showcase { opacity: .92; }

.tag {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-dim);
    white-space: nowrap;
}

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.btn {
    font: inherit;
    cursor: pointer;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 9px 14px;
    transition: .15s;
}

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

.btn_add {
    background: transparent;
    border-color: var(--gold-dim);
    color: var(--gold);
    font-size: 14px;
    white-space: nowrap;
}

.btn_add:hover { background: var(--gold); color: #17130a; border-color: var(--gold); }
.btn_add.is-added { background: var(--green); border-color: var(--green); color: #06180f; }

.btn_primary { background: var(--gold); color: #17130a; font-weight: 700; }
.btn_primary:hover:not(:disabled) { background: var(--gold-2); }

.btn_ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }

.btn_wide { width: 100%; padding: 13px; font-size: 16px; }

/* ── Подвал ────────────────────────────────────────────────────────────── */
.ftr { border-top: 1px solid var(--line); background: var(--bg-2); margin-bottom: 66px; }

.ftr__in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 26px 14px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    font-size: 14px;
    color: var(--text-dim);
}

.ftr__logo { color: var(--gold); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ftr__col p { margin: 4px 0; }
.ftr__links { display: flex; gap: 14px; align-items: flex-start; }
.ftr__links a { color: var(--gold); }

.ftr__note {
    border-top: 1px solid var(--line);
    padding: 12px 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}

/* ── Нижняя плашка корзины ─────────────────────────────────────────────── */
.cart-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: var(--gold);
    color: #17130a;
    font: 600 16px/1 inherit;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
}

.cart-bar[hidden] { display: none; }

/* ── Шторка корзины ────────────────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }

.sheet__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }

.sheet__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 460px;
    max-width: 100%;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--line);
}

.sheet__title { font-size: 18px; color: var(--gold-2); }

.sheet__close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}

.sheet__body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.cart-empty { color: var(--text-dim); text-align: center; padding: 40px 0; }

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

.ci {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.ci__name { font-size: 15px; }
.ci__variant { font-size: 12px; color: var(--text-dim); }
.ci__sum { font-weight: 700; color: var(--gold-2); white-space: nowrap; }

.ci__qty { display: flex; align-items: center; gap: 10px; }

.ci__btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg-3);
    color: var(--text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.ci__num { min-width: 22px; text-align: center; }

.totals { margin: 18px 0; border-top: 1px solid var(--line); padding-top: 14px; }
.totals__row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--text-dim); font-size: 14px; }
.totals__row_final { color: var(--text); font-size: 18px; padding-top: 10px; }
.totals__row_final b { color: var(--gold-2); }

.totals__warn { margin: 10px 0 0; font-size: 13px; color: var(--red); }

/* ── Форма ─────────────────────────────────────────────────────────────── */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="time"],
.field input[type="number"],
.field textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--bg-3);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
}

.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold-dim); }

.field input.is-error { border-color: var(--red); }

.field_inline { display: flex; align-items: center; gap: 12px; }
.field_inline .field__label { margin: 0; }
.field__num { width: 80px; }
.field__time { margin-top: 8px; }
.field__time[hidden] { display: none; }

.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }

.radio span {
    display: inline-block;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text-dim);
    cursor: pointer;
}

.radio input:checked + span { color: #17130a; background: var(--gold); border-color: var(--gold); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(217, 83, 79, .12);
    border: 1px solid var(--red);
    color: #f0a9a7;
    font-size: 14px;
}

.form-actions { display: flex; gap: 10px; }
.form-actions .btn_ghost { flex: 0 0 auto; }

.form-legal { margin: 12px 0 0; font-size: 12px; color: var(--text-dim); }

/* ── Готово ────────────────────────────────────────────────────────────── */
.done { text-align: center; padding: 30px 0; }

.done__ico {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(76, 175, 125, .14);
    border: 1px solid var(--green);
    color: var(--green);
    font-size: 32px;
    line-height: 64px;
}

.done__title { font-size: 20px; color: var(--gold-2); }
.done__no { margin: 10px 0 4px; }
.done__text { color: var(--text-dim); margin: 0 0 22px; }

/* ── Мобильные ─────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .hdr__phone { display: none; }
    .hero__title { font-size: 21px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card__body { padding: 10px; gap: 6px; }
    .card__name { font-size: 14px; }
    .card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .btn_add { width: 100%; }
    .cat__title { font-size: 17px; }

    .sheet__panel {
        top: auto;
        left: 0;
        width: 100%;
        height: 92%;
        border-left: none;
        border-top: 1px solid var(--line);
        border-radius: 16px 16px 0 0;
    }
}

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