/* astime.kz — mobile-first. Зелёный + белый, всегда light. */
:root {
  color-scheme: only light;
  --bg: #f6f9f6;
  --card: #ffffff;
  --ink: #1d2b23;
  --muted: #8b968e;
  --line: #e6ece7;
  --brand: #189a55;
  --brand-dark: #117a42;
  --brand-soft: #e7f5ec;
  --amber: #d99a2b;
  --amber-soft: #faf1dc;
  --red: #cc4b3a;
  --sand: #edf2ee;
  --r: 18px;
  --shadow: 0 1px 3px rgba(29, 43, 35, .04), 0 4px 16px rgba(29, 43, 35, .05);
  --shadow-lg: 0 12px 40px rgba(29, 43, 35, .16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; color-scheme: only light; background: var(--bg); }
body {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
/* light всегда, даже при системной тёмной теме и авто-затемнении браузеров */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: only light; --bg: #f6f9f6; --card: #ffffff; --ink: #1d2b23; --muted: #8b968e; --line: #e6ece7; }
  html, body { background: #f6f9f6; color: #1d2b23; }
}
main { flex: 1; width: 100%; padding-bottom: 90px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; width: 100%; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* header */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 247, 241, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.logo svg { color: var(--brand); }
.logo b { color: var(--brand); font-weight: 700; }
.hdr-nav { display: flex; align-items: center; gap: 10px; }
.hdr-link { color: var(--ink); opacity: .7; display: flex; padding: 6px; }
.langs { display: flex; background: var(--sand); border-radius: 999px; padding: 3px; }
.lang { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; color: var(--muted); }
.lang.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* hero */
.hero { padding: 28px 0 10px; }
.hero h1 { font-size: clamp(26px, 6vw, 38px); letter-spacing: -.03em; line-height: 1.15; }
.hero-emoji { display: inline-block; }
.hero-sub { color: #4d545e; margin-top: 10px; max-width: 34em; }

/* banners */
.banner {
  background: var(--brand-soft); border: 1px solid #c8e8d8; color: #0a5c40;
  padding: 10px 14px; border-radius: 12px; margin: 14px 0; font-size: 14px;
}
.banner-warn { background: var(--amber-soft); border-color: #f3ddb0; color: #8a5a00; }
.banner-ok { background: var(--brand-soft); }
.banner-gift { background: var(--amber-soft); border-color: #ecd9ad; color: #96631a; font-weight: 600; }

/* usp */
.usps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
.usp {
  background: var(--card); border-radius: var(--r); padding: 14px; display: flex; gap: 11px;
  align-items: flex-start; box-shadow: var(--shadow);
}
.usp-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center; }
.usp-ico svg { width: 20px; height: 20px; }
.usp b { display: block; font-size: 14px; }
.usp span { font-size: 12px; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }
.usp:last-child { grid-column: 1 / -1; }

.sec-title { font-size: 21px; letter-spacing: -.02em; margin: 22px 0 12px; }

/* spots */
.spots { display: grid; gap: 12px; }
.spot {
  background: var(--card); border-radius: var(--r); padding: 16px; color: var(--ink);
  box-shadow: var(--shadow); position: relative; transition: transform .12s ease;
  display: block; border: 1px solid transparent;
}
.spot:active { transform: scale(.985); }
.spot-addr { font-weight: 700; font-size: 17px; }
.spot-note { color: var(--muted); font-size: 13px; margin-top: 2px; }
.spot-cnt {
  margin-top: 10px; font-size: 13px; color: var(--brand-dark); background: var(--brand-soft);
  border-radius: 10px; padding: 7px 11px; display: inline-block;
}
.spot-cnt i { font-style: normal; font-weight: 800; }
.spot-cnt.big { font-size: 14px; }
.spot-go { margin-top: 10px; color: var(--brand); font-weight: 700; font-size: 14px; }
.spot-off { background: #fcfaf6; border: 1px solid var(--line); box-shadow: none; }
.spot-off .spot-addr { color: #6b7280; }
.spot-off .btn { margin-top: 12px; }
.soon-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #8a5a00; background: var(--amber-soft);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 8px;
}

/* menu */
.menu-head { padding-top: 16px; }
.crumb { font-size: 14px; color: var(--muted); display: inline-block; margin-bottom: 6px; }
.menu-spot { font-size: clamp(20px, 5vw, 28px); letter-spacing: -.02em; }
.combo-hint { font-size: 13px; color: #0a5c40; background: var(--brand-soft); border-radius: 10px; padding: 7px 10px; display: inline-block; margin-bottom: 4px; }
.cats {
  position: sticky; top: 58px; z-index: 30; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 0; background: var(--bg); scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; background: var(--card); border: 1px solid var(--line); color: var(--ink);
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; box-shadow: var(--shadow);
}
.items { display: grid; gap: 10px; }
@media (min-width: 640px) { .items { grid-template-columns: 1fr 1fr; } }
.item {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  display: flex; gap: 12px; padding: 10px; align-items: stretch;
}
.item-off { opacity: .55; }
.item-ph { position: relative; flex: none; width: 96px; }
.item-ph img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--brand-soft); }
.soldout {
  position: absolute; inset: auto 0 6px 0; margin: 0 auto; width: max-content; max-width: 92px;
  background: rgba(34,37,42,.8); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 7px; border-radius: 999px; text-align: center;
}
.item-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.item-body h3 { font-size: 15px; line-height: 1.3; }
.item-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.item-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 15px; white-space: nowrap; }

/* buttons */
.btn {
  background: var(--brand); color: #fff; border: 0; border-radius: 12px;
  padding: 12px 18px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .12s ease, transform .1s ease; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--brand-dark); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-full { width: 100%; margin-top: 10px; }
/* кнопка, прилипающая к низу скроллящейся модалки */
.btn-sticky {
  position: sticky; bottom: 0; z-index: 5;
  box-shadow: 0 -10px 18px rgba(246, 249, 246, .95), var(--shadow);
}
.btn-outline { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: #f0ece4; color: var(--ink); }
.btn-ghost:hover { background: #e7e2d8; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 2px; }
.stepper .stp {
  width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--brand-soft);
  color: var(--brand); font-size: 18px; font-weight: 800;
}
.stepper .stq { min-width: 26px; text-align: center; font-weight: 800; font-size: 15px; }

/* cart bar */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 40%);
}
.cartbar-btn {
  width: 100%; max-width: 728px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  background: var(--brand); color: #fff; border: 0; border-radius: 16px; padding: 15px 18px;
  font-size: 15px; font-weight: 700; box-shadow: var(--shadow-lg);
}
.cartbar-info { opacity: .9; }

/* modals */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20, 22, 26, .5); display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-card {
  background: var(--card); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); position: relative;
  animation: sheetUp .22s ease;
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 20px; }
  .modal-card { border-radius: 20px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 999px;
  border: 0; background: #f0ece4; color: var(--ink); font-size: 15px;
}
.modal h3 { margin-bottom: 12px; padding-right: 36px; font-size: 18px; }

/* options */
.opt-group { margin-bottom: 14px; }
.opt-group > b { display: block; margin-bottom: 8px; font-size: 14px; }
.opt-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); margin-bottom: 7px; font-size: 15px;
}
.opt-row input[type=radio] {
  accent-color: var(--brand); width: 20px; height: 20px;
  flex: none; margin: 0; padding: 0;
}
.opt-row span { flex: 1; min-width: 0; }
.opt-row.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt-row.dis { opacity: .45; }

/* checkout */
.co-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.co-line-name { flex: 1; font-size: 14px; min-width: 0; }
.co-line-name span { display: block; color: var(--muted); font-size: 12px; }
.co-line-sum { font-weight: 700; font-size: 14px; white-space: nowrap; }
.co-sums { margin: 12px 0; font-size: 14px; }
.co-sums .row { display: flex; justify-content: space-between; padding: 3px 0; }
.co-sums .row.total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; }
.co-sums .good { color: var(--brand); }
.co-sums .warn { color: #8a5a00; }

form input, form textarea, form select, .modal input, .modal textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
  margin-bottom: 9px; background: #fff; color: var(--ink); font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
form input::placeholder, form textarea::placeholder, .modal input::placeholder, .modal textarea::placeholder { color: #b3a99b; }
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.frow { display: grid; gap: 0 10px; }
@media (min-width: 520px) { .frow { grid-template-columns: 1fr 1fr; } .frow.frow3 { grid-template-columns: repeat(3, 1fr); } }
.hint { font-size: 12px; color: var(--muted); margin: -3px 0 10px; }
.hint-warn { color: #8a5a00; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 9px; }
.chk input { width: auto; margin: 0; accent-color: var(--brand); }
.err { background: #fdecec; color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* request block */
.request-blk { background: var(--card); border-radius: var(--r); padding: 16px; margin: 22px 0; box-shadow: var(--shadow); }
.request-blk p { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }

/* status */
.status { padding-top: 18px; }
.status-card {
  background: var(--card); border-radius: 20px; padding: 26px 18px; text-align: center; box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.status-ico { width: 58px; height: 58px; margin: 0 auto 4px; color: var(--brand); }
.status-ico svg { width: 100%; height: 100%; }
.st-canceled .status-ico { color: var(--red); }
.status-card h1 { font-size: 24px; margin: 8px 0 6px; letter-spacing: -.02em; }
.status-card p { color: #6b6155; font-size: 14px; max-width: 30em; margin: 0 auto; }
.st-new .status-ico { animation: pulse 1.6s ease infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.steps { display: flex; justify-content: center; gap: 0; margin-top: 18px; }
.step { flex: 1; max-width: 130px; position: relative; }
.step::before {
  content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: var(--line);
}
.step:first-child::before { display: none; }
.step.done::before { background: var(--brand); }
.step-dot { display: block; width: 16px; height: 16px; margin: 0 auto; border-radius: 999px; background: var(--line); position: relative; z-index: 1; border: 3px solid var(--bg); box-sizing: content-box; }
.step.done .step-dot { background: var(--brand); }
.step-lbl { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.step.done .step-lbl { color: var(--brand); font-weight: 700; }

.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.ol { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.ol td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ol-qty { text-align: center; color: var(--muted); width: 40px; }
.ol-sum { text-align: right; white-space: nowrap; font-weight: 600; width: 84px; }
.ol-extra td { color: var(--muted); font-weight: 400; }
.ol-total td { font-weight: 800; font-size: 16px; border-bottom: 0; }
.ol-spot { font-size: 14px; margin-top: 4px; }
.loyalty { font-size: 14px; }
.loy-bar { height: 8px; background: var(--line); border-radius: 999px; margin-top: 9px; overflow: hidden; }
.loy-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--amber)); border-radius: 999px; }
.status-actions { display: flex; gap: 10px; }
.status-actions .btn { flex: 1; }

/* history */
.hist { display: grid; gap: 9px; }
.hist-row {
  background: var(--card); border-radius: 14px; padding: 13px 15px; display: flex; justify-content: space-between;
  align-items: center; color: var(--ink); box-shadow: var(--shadow); gap: 10px;
}
.hist-right { text-align: right; font-size: 13px; display: grid; gap: 2px; }

/* auth */
.auth { max-width: 420px; padding-top: 30px; }

/* empty */
.empty { text-align: center; padding: 50px 0; color: var(--muted); }
.empty-ico { font-size: 44px; margin-bottom: 8px; }
.empty .btn { margin-top: 14px; }

/* push bar */
.pushbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 55;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 13px 15px;
  box-shadow: var(--shadow-lg); animation: sheetUp .3s ease;
  max-width: 560px; margin: 0 auto;
}
.pushbar-txt { font-size: 13px; line-height: 1.4; margin-bottom: 9px; }
.pushbar-btns { display: flex; gap: 8px; }
.pushbar .btn-ghost { background: rgba(255,255,255,.14); color: #fff; }

/* footer */
.ftr { border-top: 1px solid var(--line); margin-top: 30px; padding: 22px 0 26px; font-size: 13px; color: var(--muted); }
.ftr-brand { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.ftr p { max-width: 46em; margin-bottom: 6px; }
.ftr-note { font-size: 12px; }

/* ===== admin ===== */
.adm main { padding-bottom: 40px; }
.adm-tabs { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 4px; }
.adm-tabs a {
  flex: none; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--card);
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
}
.adm-tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.adm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 10px; flex-wrap: wrap; }
.adm-stats { display: flex; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.adm-date input { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.b-new { background: var(--amber-soft); color: #8a5a00; }
.b-paid { background: var(--brand-soft); color: var(--brand-dark); }
.b-del { background: #e5edff; color: #2a4faa; }
.b-can { background: #f3f3f3; color: #888; }
.b-gift { background: #fdeef5; color: #a83e6e; }
.adm-order-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.adm-order-items { font-size: 13px; margin: 6px 0; }
.adm-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-acts form { display: inline; }
.adm-spot .frow { grid-template-columns: 2fr 1.4fr; }
.adm-spot-row { display: flex !important; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-spot-row label { font-size: 13px; display: flex; align-items: center; gap: 6px; margin: 0; }
.mini { width: 66px !important; margin: 0 !important; padding: 7px 9px !important; }
.spacer { flex: 1; }
.adm-item { display: flex; gap: 12px; align-items: center; padding: 10px; }
.adm-item-ph img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--brand-soft); }
.adm-item-body { flex: 1; min-width: 0; font-size: 14px; }
.adm-item-body .muted { font-size: 12px; }
.adm-req { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.adm-opts { display: flex; gap: 4px 16px; flex-wrap: wrap; margin: 6px 0 12px; }
.adm-photo-preview { width: 120px; border-radius: 12px; margin-bottom: 10px; }
label { font-size: 13px; color: #4d545e; display: block; }
label > input, label > select, label > textarea { margin-top: 4px; }
code { background: #f0ece4; border-radius: 6px; padding: 1px 6px; font-size: 13px; }
