@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/montserrat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Museo Cyrl';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/static/fonts/MuseoCyrl-900.ttf') format('truetype');
}

/* ---- Дизайн-токены (Figma «Дари Красиво — Mini App», конституция v1.1.0) ---- */
:root {
  --green: #0F5350;
  --orange: #FA9200;
  --pink: #FFDEF5;
  --pink-soft: #FFF2FB;
  --muted: #5E5E5E;
  --border: #EADDE5;
  --divider: #F0E6EC;
  --grey: #F4F2F2;
  --ink: #0B0B0B;
  --white: #FFFFFF;
  --danger: #C62828;
  --font-text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Museo Cyrl', 'Montserrat', system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--white); color: var(--ink); font-family: var(--font-text); font-size: 14px; line-height: 1.35; }
body { min-height: 100vh; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none !important; }
.head { font-family: var(--font-head); font-weight: 900; }

#app { max-width: 430px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--white); }
.screen { min-height: 100vh; padding-bottom: calc(110px + var(--safe-bottom)); }
.screen.no-bar { padding-bottom: calc(24px + var(--safe-bottom)); }

/* ---- Шапки ---- */
.topbar { background: var(--green); color: var(--white); border-radius: 0 0 28px 28px; padding: 16px 16px 16px; }
.topbar-row { display: flex; align-items: center; gap: 12px; }
.topbar-title { flex: 1; min-width: 0; }
.topbar-title h1 { font-family: var(--font-head); font-weight: 900; font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: .2px; }
.topbar-title p { font-size: 13px; font-weight: 500; opacity: .9; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.16); color: var(--white); }
.round-btn.white { background: var(--white); color: var(--ink); }
.round-btn svg { width: 22px; height: 22px; }
.step-counter { font-size: 13px; font-weight: 700; white-space: nowrap; }

.logo { font-family: var(--font-head); font-weight: 900; font-size: 25px; line-height: .98; text-transform: uppercase; color: var(--white); letter-spacing: .2px; }
.logo .clover { display: inline-block; width: .82em; height: .82em; vertical-align: -.06em; margin: 0 .02em; }
.logo .l2 { display: flex; align-items: flex-end; gap: 6px; white-space: nowrap; }
.logo small { font-family: var(--font-text); font-weight: 700; font-size: 8px; letter-spacing: .1px; color: var(--orange); text-transform: none; margin-bottom: 2px; line-height: 1; }
.profile-pill { display: flex; align-items: center; gap: 8px; background: var(--white); color: var(--green); border-radius: 26px; padding: 5px 14px 5px 5px; min-height: 44px; }
.profile-pill .coin { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.profile-pill b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 17px; line-height: 1; }
.profile-pill span { display: block; font-size: 10px; font-weight: 700; text-align: center; }

.search { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 26px; padding: 0 18px; height: 50px; margin-top: 12px; color: var(--muted); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; font-weight: 500; color: var(--ink); }
.search input::placeholder { color: var(--muted); }

/* ---- Каталог ---- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 16px 16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 42px; padding: 0 20px; border-radius: 21px; border: 1.5px solid var(--border); background: var(--white); font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.chip.active { background: var(--green); border-color: var(--green); color: var(--white); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 16px 12px; }
.section-head h2 { font-family: var(--font-head); font-weight: 900; font-size: 22px; }
.section-head span { color: var(--muted); font-size: 13px; font-weight: 700; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; padding: 0 16px; }
.card { position: relative; min-width: 0; display: flex; flex-direction: column; }
.card.sold { opacity: .55; }
.card .pic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 26px; overflow: hidden; background: var(--pink); display: block; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .pic .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--orange); color: var(--ink); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 14px; max-width: calc(100% - 64px); }
.badge.dark { background: var(--ink); color: var(--white); }
.card h3 { font-size: 16px; font-weight: 600; margin-top: 10px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .buy { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 6px; }
.price { font-family: var(--font-head); font-weight: 900; font-size: 17px; white-space: nowrap; }
.price small { font-family: var(--font-text); font-weight: 600; font-size: 11px; color: var(--muted); margin-left: 2px; }
.plus { width: 42px; height: 42px; border-radius: 50%; background: var(--pink-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.plus svg { width: 20px; height: 20px; }
.plus[disabled] { opacity: .4; }
.counter { display: inline-flex; align-items: center; gap: 2px; height: 42px; border-radius: 22px; background: var(--green); color: var(--white); padding: 0 6px; flex: none; }
.counter button { width: 30px; height: 36px; display: grid; place-items: center; color: inherit; }
.counter button svg { width: 18px; height: 18px; }
.counter b { min-width: 22px; text-align: center; font-weight: 800; font-size: 16px; }
.counter.light { background: var(--white); color: var(--ink); }
.counter.grey { background: var(--grey); color: var(--ink); }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.empty h3 { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: var(--ink); margin-bottom: 8px; }

.cart-bar { position: fixed; left: 0; right: 0; margin: 0 auto; bottom: calc(12px + var(--safe-bottom)); width: calc(100% - 32px); max-width: 398px; height: 58px; border-radius: 29px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 22px; font-weight: 800; font-size: 16px; z-index: 30; box-shadow: 0 6px 20px rgba(15,83,80,.3); }
.cart-bar .left { display: flex; align-items: center; gap: 14px; }
.cart-bar svg { width: 22px; height: 22px; }
.cart-bar .count { background: var(--orange); color: var(--ink); border-radius: 22px; padding: 0 16px; height: 42px; display: grid; place-items: center; font-weight: 800; }

/* ---- Страница товара ---- */
.product { position: relative; min-height: 100vh; background: var(--white); max-width: 430px; margin: 0 auto; overflow-x: hidden; }
.product .hero { position: relative; height: 400px; background: var(--pink); }
.product .hero img.main { width: 100%; height: 100%; object-fit: cover; }
.product .hero .back { position: absolute; top: 16px; z-index: 3; width: 44px; height: 44px; }
.product .hero .back { left: 16px; background: var(--white); color: var(--ink); border-radius: 50%; display: grid; place-items: center; }
.dots { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.7); }
.dots i.on { width: 22px; background: var(--green); }
.sheet { position: relative; margin-top: -24px; background: var(--white); border-radius: 28px 28px 0 0; padding: 18px 20px calc(120px + var(--safe-bottom)); }
.sheet .tag { display: inline-block; background: var(--orange); font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 14px; margin-bottom: 8px; }
.sheet .title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet h1 { font-family: var(--font-head); font-weight: 900; font-size: 28px; line-height: 1.08; text-transform: uppercase; }
.sheet .price-big { font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--green); white-space: nowrap; }
.sheet .price-big small { font-family: var(--font-text); font-size: 12px; font-weight: 600; color: var(--muted); }
.sheet .desc { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 10px; }
.label { font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.seg { display: flex; padding: 4px; background: var(--grey); border-radius: 18px; gap: 2px; }
.seg button { flex: 1; height: 44px; border-radius: 14px; font-weight: 700; color: var(--muted); font-size: 15px; }
.seg button.active { background: var(--white); color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; border: 1.5px solid rgba(0,0,0,.18); }
.info-pill { display: flex; align-items: center; gap: 14px; background: var(--pink-soft); border-radius: 22px; padding: 14px 16px; margin-top: 22px; }
.info-pill .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--pink); color: var(--green); display: grid; place-items: center; flex: none; }
.info-pill .ico svg { width: 22px; height: 22px; }
.info-pill b { display: block; font-size: 15px; }
.info-pill span { color: var(--muted); font-size: 13px; }
.bottom-bar { position: fixed; left: 0; right: 0; margin: 0 auto; bottom: 0; width: 100%; max-width: 430px; box-sizing: border-box; background: var(--white); border-top: 1px solid var(--divider); padding: 14px 16px calc(14px + var(--safe-bottom)); display: flex; align-items: center; gap: 14px; z-index: 70; }
.bottom-bar .total-block { line-height: 1.1; }
.bottom-bar .total-block span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.bottom-bar .total-block b { font-family: var(--font-head); font-weight: 900; font-size: 24px; white-space: nowrap; }
.btn { flex: 1; min-width: 0; height: 56px; border-radius: 28px; background: var(--green); color: var(--white); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; }
.btn[disabled] { opacity: .45; }
.btn.white { background: var(--white); color: var(--green); }
.btn.outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn.on-green-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.6); }
.btn.small { height: 44px; flex: none; font-size: 14px; padding: 0 22px; width: fit-content; margin-left: auto; margin-right: auto; }

/* ---- Корзина ---- */
.cart-items { padding: 16px; display: grid; gap: 14px; }
.cart-item { display: flex; gap: 12px; background: var(--pink-soft); border-radius: 26px; padding: 12px; position: relative; }
.cart-item .thumb { width: 90px; height: 90px; border-radius: 20px; overflow: hidden; background: var(--pink); flex: none; }
.cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-item h3 { font-size: 15px; font-weight: 600; padding-right: 28px; }
.cart-item .opt { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cart-item .bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cart-item .del { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; color: var(--muted); display: grid; place-items: center; }
.cart-item .del svg { width: 20px; height: 20px; }
.cart-item .counter { height: 36px; }
.cart-item .counter button { height: 32px; width: 28px; }
.h2 { font-family: var(--font-head); font-weight: 900; font-size: 22px; padding: 6px 16px 12px; }
.row-card { display: flex; align-items: center; gap: 14px; background: var(--grey); border-radius: 22px; padding: 12px 16px 12px 12px; margin: 14px 16px 0; }
.row-card .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--green); display: grid; place-items: center; flex: none; }
.row-card .ico svg { width: 22px; height: 22px; }
.row-card .txt { flex: 1; min-width: 0; }
.row-card b { display: block; font-size: 15px; }
.row-card span { font-size: 13px; color: var(--muted); }
.row-card .end { font-weight: 800; color: var(--green); font-size: 15px; }
.row-card.pink { background: var(--pink); }
.notice { margin: 12px 16px 0; padding: 12px 16px; border-radius: 18px; background: #FFF4DF; color: #6B4300; font-size: 13px; font-weight: 600; }
.notice.error { background: #FDE8E8; color: var(--danger); }

/* ---- Оформление ---- */
.progress { display: flex; gap: 6px; padding: 12px 16px 6px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--divider); }
.progress i.done { background: var(--green); }
.progress i.now { background: var(--orange); }
.steps { padding: 6px 16px 0; display: grid; gap: 10px; }
.step { border-radius: 24px; background: var(--grey); padding: 0 16px; }
.step.head-only { display: flex; align-items: center; gap: 12px; min-height: 58px; color: var(--muted); font-weight: 700; font-size: 15px; }
.step .num { width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--muted); display: grid; place-items: center; font-weight: 800; flex: none; }
.step.done { background: var(--white); border: 1.5px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; color: var(--ink); }
.step.done .num { background: var(--green); color: var(--white); }
.step.done .num svg { width: 18px; height: 18px; }
.step.done .txt { flex: 1; min-width: 0; }
.step.done .txt b { display: block; font-size: 15px; font-weight: 700; }
.step.done .txt span { display: block; font-size: 13px; color: var(--muted); }
.step.done .edit { color: var(--green); font-weight: 800; font-size: 14px; }
.step.open { background: var(--white); border: 1.5px solid var(--green); padding: 16px 16px 18px; }
.step.open .step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step.open .num { background: var(--green); color: var(--white); }
.step.open h2 { font-family: var(--font-head); font-weight: 900; font-size: 22px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field input, .field textarea { width: 100%; height: 52px; border: 1.5px solid var(--border); border-radius: 18px; padding: 0 16px; font-size: 15px; font-weight: 500; background: var(--white); outline: none; }
.field textarea { height: 96px; padding: 14px 16px; resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field input::placeholder, .field textarea::placeholder { color: #8B8B8B; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field .counter-text { text-align: right; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.err { color: var(--danger); font-size: 13px; font-weight: 600; margin-top: 12px; }
.days { display: flex; gap: 8px; }
.day { flex: 1; height: 62px; border-radius: 18px; border: 1.5px solid var(--border); background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
.day span { font-size: 12px; color: var(--muted); font-weight: 600; }
.day b { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.day.active { background: var(--green); border-color: var(--green); color: var(--white); }
.day.active span { color: rgba(255,255,255,.85); }
.day[disabled] { opacity: .4; }
.time-input { display: flex; align-items: center; gap: 12px; }
.time-input span { font-size: 13px; color: var(--muted); }
.radio-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1.5px solid var(--border); border-radius: 20px; padding: 14px 16px; background: var(--white); margin-top: 10px; }
.radio-card.active { border-color: var(--green); border-width: 2px; }
.radio-card .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); flex: none; display: grid; place-items: center; }
.radio-card.active .radio { border-color: var(--green); }
.radio-card.active .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.radio-card b { display: block; font-size: 15px; }
.radio-card span { font-size: 13px; color: var(--muted); }
.pickup-card { display: flex; gap: 12px; align-items: flex-start; background: var(--pink-soft); border-radius: 18px; padding: 14px 16px; margin-top: 14px; }
.pickup-card b { display: block; font-size: 14px; }
.pickup-card span { font-size: 14px; color: var(--muted); }
.saved-addr { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.saved-addr .chip { height: 36px; font-size: 13px; padding: 0 14px; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 15px; font-weight: 500; }
.sum-row b { font-weight: 800; }
.sum-row .free { color: var(--green); font-weight: 800; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 15px; background: #C9BEC5; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); transition: transform .15s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(22px); }
.pay-total { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; }
.pay-total h3 { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.pay-total .new { font-family: var(--font-head); font-weight: 900; font-size: 28px; color: var(--green); text-align: right; line-height: 1.05; }

/* ---- Заказ принят ---- */
.done-screen { background: var(--green); color: var(--white); min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 0 20px calc(24px + var(--safe-bottom)); position: relative; overflow: hidden; border-radius: 0 0 28px 28px; }
.done-screen .deco1 { position: absolute; left: -40px; top: 60px; width: 120px; opacity: .9; }
.done-screen .deco2 { position: absolute; right: 36px; top: 120px; width: 64px; }
.done-screen .big { width: 160px; height: 160px; margin-top: 182px; flex: none; }
.done-screen h1 { font-family: var(--font-head); font-weight: 900; font-size: 34px; text-transform: uppercase; margin-top: 49px; text-align: center; }
.done-screen .order-pill { background: var(--orange); color: var(--ink); font-weight: 800; font-size: 13px; padding: 5px 14px; border-radius: 14px; margin-top: 12px; }
.done-screen p { text-align: center; font-size: 16px; line-height: 1.4; margin-top: 16px; max-width: 280px; }
.done-screen .actions { margin-top: auto; width: 100%; display: grid; gap: 12px; padding-top: 24px; }
.done-screen .btn { flex: none; }

/* ---- Профиль ---- */
.profile-top { background: var(--green); color: var(--white); border-radius: 0 0 28px 28px; padding: 16px 16px 90px; }
.note { padding: 10px 16px 0; font-size: 13px; color: var(--muted); }
.order-card { margin: 0 16px 12px; border: 1.5px solid var(--border); border-radius: 22px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.order-card .num { font-size: 13px; color: var(--muted); }
.order-card b { font-size: 16px; font-weight: 700; }
.order-card .sum { font-size: 14px; color: var(--muted); font-weight: 600; }
.status { font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 14px; background: var(--grey); color: var(--green); white-space: nowrap; }
.status.work { background: var(--orange); color: var(--ink); }
.status.bad { color: var(--muted); }
.order-card .repeat { color: var(--green); font-weight: 800; font-size: 13px; text-align: right; }
.menu { margin: 8px 16px 0; background: var(--grey); border-radius: 24px; overflow: hidden; }
.menu button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 16px; text-align: left; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--white); color: var(--green); }
.menu button:last-child { border-bottom: 0; }
.menu button svg { width: 22px; height: 22px; flex: none; }
.menu button span { flex: 1; color: var(--ink); }
.menu button .chev { color: var(--green); }
.guest-card { margin: 16px; background: var(--pink-soft); border-radius: 26px; padding: 22px 20px; }
.guest-card h2 { font-family: var(--font-head); font-weight: 900; font-size: 22px; margin-bottom: 8px; }
.guest-card p { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---- Вложенные экраны (адреса, данные, история…) ---- */
.page-pad { padding: 16px; }
.list-card { border: 1.5px solid var(--border); border-radius: 22px; padding: 14px 16px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.list-card .txt { flex: 1; min-width: 0; }
.list-card b { display: block; font-size: 15px; }
.list-card span { color: var(--muted); font-size: 13px; }
.link-btn { color: var(--green); font-weight: 800; font-size: 14px; padding: 6px; }
.link-btn.danger { color: var(--danger); }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--grey); border-radius: 22px; margin-bottom: 12px; }
.toggle-row .txt { flex: 1; }
.toggle-row b { display: block; font-size: 15px; }
.toggle-row span { font-size: 13px; color: var(--muted); }

/* ---- Окно с QR и подсказки ---- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + var(--safe-bottom)); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 18px; font-size: 14px; font-weight: 600; z-index: 200; max-width: 340px; text-align: center; }
.loading { padding: 60px 20px; text-align: center; color: var(--muted); font-weight: 600; }

/* Недоступный вариант в ряду чипов (как на прежнем сайте — зачёркнут и приглушён) */
.chip.sold-chip { opacity: .5; text-decoration: line-through; }

.logo-img { display: block; height: 52px; width: auto; max-width: 62vw; }

.bottom-bar .counter { flex: none; }
.bottom-bar .btn { font-size: 15px; }
html, body { overflow-x: hidden; }

.profile-pill .coin.avatar { overflow: hidden; background: var(--pink); }
.profile-pill .coin.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-pill .coin.guest svg { width: 18px; height: 18px; }

/* Количество цветов: сетка 3 в ряд и своё число */
.qty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qty-grid .chip { width: 100%; padding: 0 8px; text-align: center; }
.qty-custom { margin-top: 14px; }
.qty-custom label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.qty-custom input { width: 100%; height: 52px; border: 1.5px solid var(--border); border-radius: 18px; padding: 0 16px; font-size: 15px; font-weight: 600; background: var(--white); outline: none; }
.qty-custom input:focus, .qty-custom input.on { border-color: var(--green); }

/* Поля даты и времени: на iPhone системный вид обходим — одинаковые рамки, ничего не вылезает за карточку */
input[type="date"], input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box;
  width: 100%; min-width: 0; max-width: 100%; height: 52px; line-height: 52px; padding: 0 16px;
  border: 1.5px solid var(--border); border-radius: 18px; background: var(--white); color: var(--ink);
  font-family: var(--font-text); font-size: 16px; font-weight: 600; text-align: left; outline: none;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }
input[type="date"]::-webkit-datetime-edit, input[type="time"]::-webkit-datetime-edit { padding: 0; }
.time-input { display: block; }
.time-input input[type="time"] { width: 100%; text-align: left; }
.time-input span { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Выпадающие списки (число и месяц) в одном стиле с полями ввода */
.field select {
  -webkit-appearance: none; appearance: none; width: 100%; height: 52px; padding: 0 40px 0 16px;
  border: 1.5px solid var(--border); border-radius: 18px; background-color: var(--white); color: var(--ink);
  font-family: var(--font-text); font-size: 16px; font-weight: 600; outline: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%230F5350' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:focus { border-color: var(--green); }
.link-btn svg { width: 22px; height: 22px; display: block; }

/* ---- Важные даты (макет Figma D1, D2, D3) ---- */

.btn svg { width: 20px; height: 20px; flex: none; }
.in-cart-badge { font-size: 12px; font-weight: 800; color: var(--green); background: var(--pink-soft); border-radius: 12px; padding: 5px 9px; }
