/* Общие стили экранов Mini App. Тема = класс на корне: t-price | t-home | t-fresh, тёмная = + dark */

.t-price {
  --font: 'Golos Text', system-ui, sans-serif;
  --font-d: 'Unbounded', 'Golos Text', sans-serif;
  --bg: #FBF8F1; --surface: #FFFFFF; --ink: #1B1A17; --muted: #6B675E; --line: #E5DFCF;
  --accent: #FFD83A; --accent-ink: #1B1A17; --price: #C7321B; --ok: #2F7D4F; --warn-bg: #FFF1C2;
  --r: 6px; --r-lg: 10px; --btn-r: 6px; --shadow: 0 1px 0 rgba(27,26,23,.08);
}
.t-price.dark {
  --bg: #151412; --surface: #1F1D1A; --ink: #F4F0E6; --muted: #A8A292; --line: #34312B;
  --price: #FF7A5C; --ok: #6CCB92; --warn-bg: #3A3216; --shadow: none;
}

.t-home {
  --font: 'Source Sans 3', system-ui, sans-serif;
  --font-d: 'Literata', Georgia, serif;
  --bg: #F4EFE6; --surface: #FFFDF8; --ink: #2A2A24; --muted: #6A675B; --line: #E4DCCB;
  --accent: #4E6F4B; --accent-ink: #FFFFFF; --price: #B4532F; --ok: #4E6F4B; --warn-bg: #F1E3C4;
  --r: 14px; --r-lg: 22px; --btn-r: 999px; --shadow: 0 2px 10px rgba(60,50,30,.07);
}
.t-home.dark {
  --bg: #1C1D19; --surface: #26281F; --ink: #F1EDE0; --muted: #AEAA9A; --line: #383A2E;
  --accent: #8DB487; --accent-ink: #14180F; --price: #E48E69; --ok: #8DB487; --warn-bg: #3B3720; --shadow: none;
}

.t-fresh {
  --font: 'Manrope', system-ui, sans-serif;
  --font-d: 'Manrope', system-ui, sans-serif;
  --bg: #FFFFFF; --surface: #F2F3F5; --ink: #0F1115; --muted: #5E6573; --line: #E3E5EA;
  --accent: #1A73B0; --accent-ink: #FFFFFF; --price: #0F1115; --ok: #1E8A4C; --warn-bg: #E8F1F8;
  --r: 12px; --r-lg: 16px; --btn-r: 12px; --shadow: none;
}
.t-fresh.dark {
  --bg: #17212B; --surface: #232E3C; --ink: #F5F7FA; --muted: #9AA7B6; --line: #2C3A4A;
  --accent: #5AB0E8; --accent-ink: #0B1722; --price: #F5F7FA; --ok: #6CCB92; --warn-bg: #1F3347; --shadow: none;
}

/* «Ценник 2»: по референсам (жирный геометрический гротеск, холодный фон, цена крупно справа, скругления 12–16) */
.t-tag {
  --font: 'Onest', system-ui, sans-serif;
  --font-d: 'Onest', system-ui, sans-serif;
  --font-p: 'Unbounded', 'Onest', sans-serif;
  --bg: #F1F4F3; --surface: #FFFFFF; --ink: #16181A; --muted: #5C6468; --line: #DCE3E1;
  --accent: #FFD93B; --accent-ink: #16181A; --price: #16181A; --ok: #0B8A43; --sale: #D4281A; --warn-bg: #FFF3C4;
  --r: 10px; --r-lg: 16px; --btn-r: 12px; --shadow: none;
}
.t-tag.dark {
  --bg: #121516; --surface: #1C2022; --ink: #F2F5F4; --muted: #9DA7AB; --line: #2D3437;
  --price: #F2F5F4; --ok: #5FD18C; --sale: #FF7A68; --warn-bg: #3A3314; --shadow: none;
}
.t-tag .h1 { font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.t-tag .h2 { font-weight: 800; font-size: 17px; }
.t-tag .eyebrow { letter-spacing: .04em; }
.t-tag .btn { font-weight: 800; box-shadow: none; border: 0; }
.t-tag .chip.on { border-color: var(--accent); }
.t-tag .seg span.on { background: var(--ink); color: var(--bg); }
.t-tag .price { font-family: var(--font-p); }
.t-tag .pricetag { background: var(--accent); color: var(--accent-ink); padding: 4px 9px; border-radius: 8px; font-family: var(--font-p); font-weight: 700; font-size: 15px; }
.t-tag .day { border-radius: 8px; font-weight: 800; }
.t-tag .badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 800; background: var(--ok); color: #fff; }
.t-tag.dark .badge { color: #0B1A12; }
.t-tag .old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.t-tag .bar b { background: var(--ok); }

/* недоступные пока города и сети */
.soon { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px dashed var(--line);
  background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.off { border-style: dashed; color: var(--muted); background: transparent; }
.listrow { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; }
.listrow.off { color: var(--muted); }

* { box-sizing: border-box; }
.app { width: 390px; height: 844px; overflow: hidden; position: relative; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.4; }
.app button { font-family: inherit; }

.body { flex: 1; min-height: 0; overflow: hidden; padding: 20px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.h1 { font-family: var(--font-d); font-size: 26px; line-height: 1.15; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.t-price .h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.t-home .h1 { font-size: 30px; font-weight: 600; }
.h2 { font-family: var(--font-d); font-size: 18px; font-weight: 700; margin: 0; }
.t-price .h2 { font-size: 15px; }
.p { color: var(--muted); margin: 0; }
.small { font-size: 13px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.pad { padding: 14px 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.col { display: flex; flex-direction: column; gap: 8px; }
.sp { justify-content: space-between; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }
.t-price .chip { border-radius: var(--r); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.t-price .chip.on { border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.t-price .tag { border-radius: 3px; }

/* ценник: цена как этикетка на полке */
.price { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-d); font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }
.t-price .pricetag { background: var(--accent); color: var(--accent-ink); padding: 3px 8px; border-radius: 3px; font-family: var(--font-d); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.t-home .pricetag, .t-fresh .pricetag { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--btn-r);
  background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 700; width: 100%; }
.t-price .btn { border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.t-price.dark .btn { border-color: var(--accent); box-shadow: 3px 3px 0 rgba(255,216,58,.35); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.btn.sm { min-height: 44px; font-size: 14px; width: auto; padding: 0 16px; }
.iconbtn { width: 44px; height: 44px; border-radius: var(--btn-r); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.t-home .iconbtn { border-radius: 999px; }

/* Telegram MainButton */
.main { padding: 10px 16px 20px; background: var(--bg); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.linkbtn { background: none; border: 0; color: var(--muted); font-size: 14px; font-weight: 600; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }

.steps { display: flex; gap: 6px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--ink); }
.t-home .steps i.on, .t-fresh .steps i.on { background: var(--accent); }

.seg { display: flex; padding: 3px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.seg span { flex: 1; text-align: center; padding: 9px 0; border-radius: calc(var(--r) - 2px); font-weight: 600; font-size: 14px; color: var(--muted); }
.seg span.on { background: var(--accent); color: var(--accent-ink); }
.t-price .seg span.on { outline: 1.5px solid var(--ink); }

.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--ok); border-radius: 4px; }
.dish { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.day { width: 40px; flex: none; text-align: center; padding: 6px 0; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line);
  font-weight: 700; font-size: 13px; color: var(--ink); }
.who { display: inline-flex; margin-left: 4px; }
.who i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-left: -4px; border: 2px solid var(--surface); }
.check { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--line); flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.t-home .check { border-radius: 50%; }
.dim { position: absolute; inset: 0; background: rgba(10,10,8,.5); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 20px 20px 0 0; padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 14px;
  border-top: 1px solid var(--line); }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; }
.note { padding: 10px 12px; border-radius: var(--r); background: var(--warn-bg); font-size: 13px; line-height: 1.35; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: var(--btn-r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; font-weight: 600; }
.val { min-width: 96px; text-align: center; font-family: var(--font-d); font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; }
.t-price .val { font-size: 26px; }
.sk { height: 14px; border-radius: 4px; background: var(--line); }
.empty { color: var(--muted); }
.ring { width: 76px; height: 76px; border-radius: 50%; border: 6px solid var(--line); border-top-color: var(--accent); }
.t-price .ring { border-top-color: var(--ink); }
