/* ============================================================
   screens.css — оформление конкретных экранов:
   заставка, главная, меню, карточка блюда, корзина, оформление,
   статус заказа и чат, площадки, отзывы, контакты.
   Общие элементы (кнопки, карточки) лежат в base.css.
   ============================================================ */

/* ---------- Заставка ---------- */
.splash {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
}
.splash .emb { width: 210px; height: auto; animation: pop .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.splash h1 { font-size: 36px; letter-spacing: -.5px; font-family: Georgia, "Times New Roman", serif; }
.splash p { color: var(--hint); font-size: 16px; max-width: 280px; }
.splash .dots { display: flex; gap: 8px; margin-top: 18px; }
.splash .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); opacity: .3; animation: blink 1s infinite; }
.splash .dots i:nth-child(2) { animation-delay: .2s; } .splash .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blink { 50% { opacity: 1; } }

/* ---------- Главная ---------- */
.hello { padding: 8px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hello h1 { font-size: 24px; letter-spacing: -.3px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 16px; font-weight: 600; font-size: 14px; background: rgba(43,154,74,.14); color: var(--ok); white-space: nowrap; }
.status-pill.closed { background: rgba(224,68,62,.14); color: var(--danger); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.hero {
  position: relative; margin: 12px 16px 14px; padding: 18px 16px; min-height: 168px; border-radius: 20px; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #5fb8ee 0%, #2a85c0 55%, #1d5f8f 100%); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: flex-end;
}
[data-brand="logo"] .hero { background: linear-gradient(150deg, #9db3aa 0%, #6e8f84 55%, #476a5f 100%); }
/* Кромка-«ёлочка» внизу баннера: мотив деревянных панелей фасада и гор */
[data-brand="logo"] .hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; opacity: .9;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) 0 0 / 20px 10px,
    linear-gradient(225deg, var(--gold) 25%, transparent 25%) 0 0 / 20px 10px;
}
[data-brand="logo"] .hero h2, [data-brand="logo"] .hero p { z-index: 1; }
.hero .mtn { position: absolute; right: -10px; bottom: 0; width: 78%; opacity: .28; }
.hero .emb { position: absolute; right: 10px; top: 8px; width: 112px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.25)); }
.hero h2 { font-size: 22px; line-height: 1.15; max-width: 62%; position: relative; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.hero p { position: relative; font-size: 14px; margin-top: 4px; opacity: .95; max-width: 70%; }

.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px; }
.tile-btn { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; min-height: 84px; padding: 12px 14px; border-radius: 18px; text-align: left; font-weight: 700; font-size: 17px; transition: transform .1s, filter .12s; }
.tile-btn small { font-weight: 500; font-size: 14px; opacity: .85; }
.tile-btn:active { transform: scale(.97); filter: brightness(.95); }
.tile-btn.primary { background: var(--accent); color: var(--accent-text); }
.tile-btn.soft { background: var(--card); box-shadow: var(--shadow); }

.hits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px; }
.hit { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: left; transition: transform .1s; }
.hit:active { transform: scale(.97); }
.hit .pic { height: 96px; display: flex; align-items: center; justify-content: center; font-size: 46px; }
.hit .tx { padding: 10px 12px 12px; }
.hit .nm { font-weight: 600; line-height: 1.2; min-height: 38px; }
.hit .pr { color: var(--hint); font-size: 14px; margin-top: 2px; }

.cond { margin: 14px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; line-height: 1.45; }
.cond b { color: var(--accent); }

.rating-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.rating-row .score { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 18px; }

/* Цвета «картинок» блюд (пока нет фото — цветные плитки с эмодзи) */
.pic { background: linear-gradient(135deg, #ffe7c2, #ffc98b); }
.pic.c-zakuski { background: linear-gradient(135deg, #d9f0cf, #a8d89a); }
.pic.c-hinkali { background: linear-gradient(135deg, #fff1d6, #f6d19a); }
.pic.c-tandyr  { background: linear-gradient(135deg, #ffe0b8, #f2a863); }
.pic.c-mangal  { background: linear-gradient(135deg, #ffd0c2, #ef8f72); }
.pic.c-goryachee { background: linear-gradient(135deg, #ffd9cf, #e8795f); }
.pic.c-salaty  { background: linear-gradient(135deg, #e2f5d3, #9fd37b); }
.pic.c-deserty { background: linear-gradient(135deg, #ffe0ee, #f5a9c8); }
.pic.c-napitki { background: linear-gradient(135deg, #e6dccf, #bfa68a); }
[data-theme="dark"] .pic { filter: brightness(.85) saturate(.9); }

/* ---------- Меню ---------- */
.menu-top { position: sticky; top: 0; z-index: 6; background: var(--bg2); padding-bottom: 8px; }
.search { position: relative; margin: 0 16px 10px; }
.search .input { padding-left: 44px; }
.search::before { content: "🔍"; position: absolute; left: 14px; top: 13px; font-size: 18px; opacity: .6; }
.cats { display: flex; gap: 8px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }  /* лента категорий (прокрутка внутри ленты) */
.cats::-webkit-scrollbar { display: none; }
.cats .chip { flex: none; }
.cat-title { font-size: 20px; font-weight: 700; margin: 18px 16px 8px; letter-spacing: -.2px; }
.dish { display: flex; gap: 12px; padding: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 16px 10px; text-align: left; width: calc(100% - 32px); transition: transform .1s; }
.dish:active { transform: scale(.985); }
.dish .pic { width: 92px; height: 92px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 42px; }
.dish .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dish .nm { font-weight: 600; line-height: 1.25; }
.dish .meta { color: var(--hint); font-size: 14px; margin-top: 2px; }
.dish .bottom { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dish .price { font-weight: 700; font-size: 17px; }
.add-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--accent); color: var(--accent-text); font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: transform .1s; }
.add-btn:active { transform: scale(.9); }
.dish .stepper { background: var(--accent-soft); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.tag { font-size: 14px; font-weight: 600; color: var(--warn); }
.tag.hit { color: var(--accent); }

/* Липкая плашка корзины */
.cartbar {
  position: sticky; bottom: 12px; z-index: 7; display: flex; align-items: center; justify-content: space-between;
  width: calc(100% - 32px); margin: 12px 16px 0; min-height: 54px; padding: 0 18px; border-radius: 16px;
  background: var(--accent); color: var(--accent-text); font-weight: 700; box-shadow: var(--shadow-lg); transition: transform .12s;
}
.cartbar:active { transform: scale(.98); }

/* ---------- Карточка блюда (шторка) ---------- */
.dish-sheet .pic-big { height: 190px; border-radius: 22px 22px 0 0; display: flex; align-items: center; justify-content: center; font-size: 84px; margin-top: -9px; }
.dish-sheet .body { padding: 16px 16px 4px; }
.dish-sheet h2 { font-size: 22px; letter-spacing: -.3px; }
.dish-sheet .desc { margin-top: 8px; line-height: 1.5; }
.dish-sheet .story { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; line-height: 1.45; }
.opt-group { margin-top: 16px; }
.opt-group h4 { margin: 0 0 8px; font-size: 14px; color: var(--hint); text-transform: uppercase; letter-spacing: .4px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; margin-bottom: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; width: 100%; text-align: left; transition: border-color .12s, background .12s; }
.opt .mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--hint); flex: none; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 14px; font-weight: 800; }
.opt.check .mark { border-radius: 7px; }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt.on .mark { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.opt .nm { flex: 1; font-weight: 500; }
.opt .pl { color: var(--hint); font-size: 14px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }

/* ---------- Корзина ---------- */
.cart-line { display: flex; gap: 12px; padding: 12px 14px; align-items: center; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line .pic { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex: none; }
.cart-line .grow { flex: 1; min-width: 0; }
.cart-line .nm { font-weight: 600; line-height: 1.2; }
.cart-line .opts { color: var(--hint); font-size: 14px; margin-top: 2px; }
.cart-line .sum { font-weight: 700; margin-top: 4px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 16px; }
.sum-row.total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.sum-row .free { color: var(--ok); font-weight: 600; }
.note { margin: 12px 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; background: rgba(201,138,11,.14); color: var(--text); }
.note.ok { background: rgba(43,154,74,.13); }
.note.info { background: var(--accent-soft); }
.note.bad { background: rgba(224,68,62,.12); }

/* ---------- Оформление ---------- */
.addr-wrap { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 280px; overflow-y: auto; }
.suggest button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.suggest button:active { background: var(--accent-soft); }
.suggest button:last-child { border-bottom: 0; }
.suggest .z { font-size: 14px; color: var(--hint); flex: none; }
.zone-box { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.zone-box b { font-size: 16px; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.time-grid .chip { justify-content: center; padding: 0 6px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; cursor: pointer; min-height: 44px; }
.check-row .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--hint); flex: none; display: flex; align-items: center; justify-content: center; color: transparent; font-weight: 800; transition: .12s; }
.check-row.on .box { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.check-row span { font-size: 14px; line-height: 1.4; color: var(--hint); }

/* ---------- Заказ принят ---------- */
.success { text-align: center; padding: 56px 24px 24px; }
.success .ok-ring { width: 104px; height: 104px; margin: 0 auto 20px; border-radius: 50%; background: rgba(43,154,74,.14); color: var(--ok); font-size: 54px; display: flex; align-items: center; justify-content: center; animation: pop .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.success h2 { font-size: 24px; margin-bottom: 8px; }
.success p { color: var(--hint); max-width: 300px; margin: 0 auto 8px; }

/* ---------- Статус заказа ---------- */
.steps { padding: 6px 16px 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); flex: none; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: transparent; z-index: 1; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step.done .dot { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.step.done::before { background: var(--accent); }
.step.now .dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.step .tx b { display: block; line-height: 1.25; }
.step .tx span { color: var(--hint); font-size: 14px; }
.step.todo .tx b { color: var(--hint); font-weight: 500; }

/* ---------- Чат ---------- */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; line-height: 1.4; word-wrap: break-word; }
.msg small { display: block; opacity: .65; font-size: 14px; margin-top: 2px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 6px; }
.msg.cafe { align-self: flex-start; background: var(--bg2); border-bottom-left-radius: 6px; }
.chat-send { display: flex; gap: 8px; padding: 0 14px 14px; }
.chat-send .input { box-shadow: none; background: var(--bg2); }
.chat-send .btn { min-width: 52px; padding: 0; }

/* ---------- Площадки и банкеты ---------- */
.venue { margin: 0 16px 14px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.venue .ph { position: relative; height: 190px; background: var(--bg2) center / cover no-repeat; }
.venue .ph .cap { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.venue .ph .cap span { padding: 4px 10px; border-radius: 12px; background: rgba(0,0,0,.62); color: #fff; font-size: 14px; font-weight: 600; }
.venue .in { padding: 14px 16px 16px; }
.venue h3 { font-size: 20px; letter-spacing: -.2px; }
.venue p { color: var(--hint); margin: 4px 0 12px; line-height: 1.45; }
.venue.off { opacity: .6; }
.info-box { margin: 0 16px 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); line-height: 1.5; }

/* ---------- Отзывы ---------- */
.review { padding: 14px 16px; }
.review + .review { border-top: 1px solid var(--line); }
.review .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review .who { font-weight: 600; }
.review .when { color: var(--hint); font-size: 14px; }
.review p { margin-top: 6px; line-height: 1.45; }
.review .reply { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); font-size: 14px; line-height: 1.45; }
.star-pick { display: flex; gap: 4px; justify-content: center; margin: 8px 0 16px; }
.star-pick button { width: 52px; height: 52px; font-size: 36px; color: var(--line); transition: transform .1s, color .12s; }
.star-pick button.on { color: var(--gold); }
.star-pick button:active { transform: scale(.88); }

/* ---------- О нас и контакты ---------- */
.about-hero { margin: 0 16px 14px; padding: 20px 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.about-hero .emb { width: 150px; margin: 0 auto 8px; }
.about-hero h2 { font-size: 24px; font-family: Georgia, "Times New Roman", serif; }
.about-hero p { color: var(--hint); margin-top: 6px; line-height: 1.5; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; }

/* Пояс-зигзаг «ёлочкой» (мотив фасада) как разделитель */
.zig { height: 10px; margin: 6px 16px; opacity: .5; background:
  linear-gradient(135deg, var(--accent) 25%, transparent 25%) -8px 0 / 16px 10px,
  linear-gradient(225deg, var(--accent) 25%, transparent 25%) -8px 0 / 16px 10px; }
