/* Синица: тёмная «чайная полка», золото и сиреневый, Prata + Manrope */
:root {
  --bg: #100f15; --card: #19161e; --card-2: #211b28; --ink: #f4ede3; --muted: #b9afb9;
  --gold: #edbe82; --lilac: #c88abb; --line: #36303b; --on-gold: #21141a; --bad: #f0b5b5;
  --display: "Prata", Georgia, serif; --body: "Manrope", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--body); }
body { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
em { color: var(--lilac); font-style: italic; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
[hidden] { display: none !important; }

.top { display: flex; align-items: center; height: 64px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand span { font: italic 26px/1 var(--display); color: var(--lilac); }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hero { padding: 26px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.hero h1 { font-size: 32px; line-height: 1.3; margin: 12px 0; }
.hero h1 em { display: block; }
.hero p { color: var(--muted); margin: 0 0 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 20px;
  border: 1px solid var(--gold); background: var(--gold); color: var(--on-gold); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; color: var(--lilac); cursor: pointer; padding: 8px 0; }

.search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 0 14px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 15px var(--body); padding: 12px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 9px 14px; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.note { font-size: 12px; color: var(--muted); margin: 12px 0 16px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; text-align: left; color: inherit; font: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; cursor: pointer; }
.card.off { opacity: .55; }
.art { height: 92px; display: grid; place-items: center; position: relative; background: linear-gradient(140deg, #29202f, #15121a); }
.art::after { content: ""; position: absolute; width: 62px; height: 62px; border-radius: 50%; border: 1px solid #c88abb44; }
.art span { font: 38px/1 var(--display); color: var(--lilac); }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.type { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 15px; line-height: 1.4; }
.price { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { color: var(--muted); font-weight: 400; font-size: 11px; }

.nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 760px); display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(24, 21, 31, .97); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; }
.nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; text-decoration: none; color: #aaa2ae; font-size: 11px; font-weight: 600; border-radius: 10px; }
.nav a.active { color: var(--gold); background: #efbf7e10; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--on-gold); font: 700 10px/17px var(--body); text-align: center; }

dialog { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 32px); }
dialog::backdrop { background: rgba(8, 6, 11, .85); }
.sheet { padding: 20px; overflow: auto; position: relative; }
.sheet .art { height: 120px; margin: -20px -20px 16px; }
.close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #302735; cursor: pointer; }
.sheet h2 { font-size: 24px; line-height: 1.3; margin: 6px 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 10px; }
.sizes .chip { font-size: 14px; color: var(--ink); }
.sizes .chip[aria-pressed="true"] { color: var(--on-gold); }
.big-price { font: 28px var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.big-price small { font: 13px var(--body); color: var(--muted); }
.block { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.block h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.recipe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 14px; }
.recipe span { display: block; font-size: 12px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 14px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #302735; font-size: 18px; cursor: pointer; }
.row-actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.row-actions .btn { flex: 1; }

/* подбор */
.quiz-head { padding: 22px 0 8px; }
.progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin: 14px 0 22px; }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .25s; }
.q-title { font-size: 24px; line-height: 1.35; margin-bottom: 6px; }
.options { display: grid; gap: 10px; margin: 18px 0; }
.option { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.option .e { font-size: 22px; width: 28px; text-align: center; }
.option small { display: block; color: var(--muted); font-size: 12px; }
.option[aria-pressed="true"] { border-color: var(--gold); background: #efbf7e12; }
.quiz-nav { display: flex; gap: 10px; }
.quiz-nav .btn { flex: 1; }
.result { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.result .role { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lilac); }
.result h3 { font-size: 19px; margin: 6px 0; }
.result p { margin: 6px 0; color: var(--muted); font-size: 14px; }
.result .mug { font-size: 13px; color: var(--ink); }
.trial { border: 1px solid var(--gold); border-radius: 12px; padding: 16px; margin: 16px 0; background: radial-gradient(circle at 100% 0, #c88abb22, transparent 60%), var(--card); }
.trial h3 { font-size: 20px; }

/* корзина и заказы */
.line { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line h3 { font-size: 16px; line-height: 1.4; }
.line .sum { color: var(--gold); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; font: 22px var(--display); color: var(--gold); margin: 16px 0; }
form label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0; }
form input, form textarea, form select { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); color: var(--ink); font: 15px var(--body); }
.error { color: var(--bad); font-size: 14px; min-height: 20px; }
.status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold); }
.status.cancelled { color: var(--muted); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.section-title { padding: 22px 0 6px; font-size: 26px; }

.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 30; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* наборы и промокод */
.sets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 78%); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.set { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(circle at 100% 0, #c88abb1f, transparent 55%), var(--card); }
.set-e { font-size: 26px; }
.set h3 { font-size: 20px; }
.set p { margin: 0; }
.set .btn { margin-top: auto; }
.promo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
.promo .search { flex: 1 1 160px; }
.promo .error { flex-basis: 100%; margin: 0; }
.promo .error:empty { display: none; }
.promo-ok { flex-basis: 100%; margin: 0; color: #9fd6a6; font-weight: 600; }

/* фото чаёв и согласие */
.art.photo { background: #1b1720; overflow: hidden; height: auto; aspect-ratio: 1; }
.art.photo::after { display: none; }
.art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.sheet .art.photo { aspect-ratio: 1; height: auto; }
form label.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 13px; line-height: 1.5; }
form label.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }
form label.consent a { color: var(--gold); }

.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-top .quit { margin: 0; padding: 4px 0; font-size: 13px; }
.quiz-end { display: grid; gap: 4px; margin-top: 18px; justify-items: center; }

.more-row { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; font: inherit; }
.more-row b { display: block; font-weight: 600; font-size: 15px; }
.more-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.more-price { white-space: nowrap; color: var(--gold); font-size: 14px; }
.more-ask { text-align: center; margin: 14px 0 0; }
.more-ask .link { padding: 0; font: inherit; }
#more-btn { margin-top: 4px; }

.sets-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 14px 0 6px; border: 1px solid var(--gold); border-radius: 12px; text-decoration: none; color: var(--ink); background: radial-gradient(circle at 100% 0, #c88abb22, transparent 60%), var(--card); }
.sets-banner > span:first-child { font-size: 26px; }
.sets-banner b { display: block; font-weight: 600; }
.sets-banner small { display: block; color: var(--muted); font-size: 12px; }
.sets-banner .more-price { margin-left: auto; }
.sets-list { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 640px) { .sets-list { grid-template-columns: 1fr 1fr; } }
.set-teas { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.set-tea { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.set .sizes { margin: 6px 0 8px; }

.build-start { width: 100%; font: inherit; cursor: pointer; text-align: left; margin-bottom: 14px; }
.build-row .tick { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--on-gold); font-weight: 700; font-size: 13px; }
.build-row[aria-pressed="true"] { border-color: var(--gold); background: #efbf7e12; }
.build-row[aria-pressed="true"] .tick { background: var(--gold); border-color: var(--gold); }
.build-row > span:nth-child(2) { flex: 1; }
.build-row:disabled { opacity: .45; cursor: default; }
.build-bar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; background: var(--card-2); }

.dl { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.dl legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; padding: 0; }
.dl-opt { display: flex !important; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; margin: 0 !important; }
.dl-opt:has(input:checked) { border-color: var(--gold); background: #efbf7e12; }
.dl-opt input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; flex: none; }
.dl-opt > span:nth-of-type(1) { flex: 1; }
.dl-opt b { display: block; font-weight: 600; font-size: 14px; color: var(--ink); }
.dl-opt small { display: block; color: var(--muted); font-size: 12px; }
.dl-price { white-space: nowrap; font-size: 13px; color: var(--ink); }
.dl-price.free { color: var(--gold); font-weight: 600; }

.free-left { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #efbf7e14; color: var(--gold); font-size: 13px; }
.dl-info { margin: 8px 0 16px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.dl-info summary { cursor: pointer; color: var(--lilac); font-size: 14px; }
.dl-info p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.pay { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 12px; background: #efbf7e0d; }
.pay-row { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.pay-row small { color: var(--lilac); font-size: 12px; }
.status.accepted { color: var(--gold); }
.status.paid { color: #9fd6a6; }

.undo { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); width: min(calc(100% - 32px), 728px); box-shadow: 0 8px 24px #0008; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; }
.undo .link { padding: 0; font: inherit; font-weight: 600; color: var(--gold); white-space: nowrap; }
.cart-set .set-items { list-style: none; padding: 0; margin: 8px 0 0; }
.cart-set .set-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.cart-set .set-items .link { padding: 0; font-size: 12px; color: var(--muted); }

.cart-set .set-items li.off s { color: var(--muted); text-decoration-color: #e0605a; text-decoration-thickness: 1.5px; }
.cart-set .set-items li.off .back { color: var(--gold); }

/* Ошибки формы заказа — ярко, чтобы не терялись на тёмном фоне */
#err:not(:empty) { color: #ff5c5c; font-weight: 600; background: #ff5c5c1a; border-left: 3px solid #ff5c5c; border-radius: 8px; padding: 10px 12px; }
form label.consent.need { color: #ff5c5c; }
form label.consent.need input { outline: 2px solid #ff5c5c; outline-offset: 2px; border-radius: 4px; }

.opt-box { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.opt-box > span:first-child { font-size: 26px; }
.opt-box b { display: block; font-weight: 600; }
.opt-box small { display: block; color: var(--muted); font-size: 12px; }
.opt-box .btn { white-space: nowrap; padding: 10px 14px; }
@media (max-width: 420px) { .opt-box { flex-wrap: wrap; } .opt-box .btn { width: 100%; } }
.opt-link { padding: 0; font: inherit; }

/* Сайт: ссылки на главную и блог (в Telegram скрыты) */
.sitenav { margin-left: auto; display: flex; gap: 16px; font-size: 14px; }
.sitenav a { text-decoration: none; color: var(--muted); }
.sitenav a:hover { color: var(--gold); }
.tg .sitenav, .site-hide { display: none !important; }
.tg .site-hide { display: revert !important; }
/* способ связи — три ровные кнопки-плашки, сам кружок радио скрыт */
.contact-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.contact-opts label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; text-align: center; white-space: nowrap; }
.contact-opts label:has(input:checked) { border-color: var(--gold); color: var(--on-gold); background: var(--gold); font-weight: 700; }
.contact-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; pointer-events: none; }
.contact-opts label:has(input:focus-visible) { outline: 2px solid var(--lilac); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Незаполненное поле формы — красной рамкой */
form input.bad, form textarea.bad { border-color: #ff5c5c; box-shadow: 0 0 0 3px #ff5c5c33; background: #ff5c5c12; }
form label.need { color: #ff5c5c; }
/* Выбор варианта (зайчик / тигр / дракон) */
.variants { margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.variants.need, .var-pick.need { border-color: #ff5c5c; background: #ff5c5c12; }
.var-pick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding: 6px; border: 1px solid transparent; border-radius: 10px; }
.var-pick .chip { padding: 5px 10px; font-size: 12px; color: var(--ink); }
.var-pick .chip[aria-pressed="true"] { color: var(--on-gold); }

.ask-us { text-align: center; margin: 10px 0 0; }
.ask-us a { color: var(--gold); }

/* Премиальные чаи */
.prem { color: var(--gold); font-weight: 700; letter-spacing: .08em; }
.card:has(.prem) { border-color: #edbe8266; }

/* Оплата на сайте: QR-код из ссылки банка */
.pay-qr { display: flex; gap: 14px; align-items: center; margin: 8px 0 0; }
.pay-qr .qr { flex: none; width: 132px; height: 132px; background: #fff; border-radius: 10px; padding: 6px; }
.pay-qr .qr svg { width: 100%; height: 100%; display: block; }
.pay-qr .qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; -webkit-touch-callout: default; }
.pay-row + .pay-row { margin-top: 6px; }
.pay-row span { text-align: left; word-break: break-all; }
.pay-req { margin: 10px 0 0; }
.pay-req summary { cursor: pointer; color: var(--lilac); }
.pay-req .pay-row { margin-top: 6px; }
@media (max-width: 420px) { .pay-qr { flex-direction: column; align-items: stretch; } .pay-qr .qr { align-self: center; width: 180px; height: 180px; } }


/* карусель на главной (простая вёрстка: без aspect-ratio у родителей и без container queries — Safari) */
.sc { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--card); margin: 4px 0 14px; min-width: 0; align-self: start; }
.sc-track { display: flex; align-items: flex-start; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.sc-slide { flex: 0 0 100%; width: 100%; min-width: 0; display: block; padding: 0; margin: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none; }
.sc-img { display: block; overflow: hidden; background: #14121a; }
.sc-img > img, .sc-sets { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sc-img > img { transition: transform .6s; }
.sc-slide:hover .sc-img > img { transform: scale(1.03); }
.sc-slide.prem .sc-img > img { filter: saturate(.9) brightness(.9); }
.sc-txt { display: block; padding: 14px 16px 34px; min-height: 150px; }
.sc-txt > * { display: block; }
.sc-txt small { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.sc-txt b { font: 21px/1.25 var(--display); font-weight: 400; margin-bottom: 4px; }
.sc-txt > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.sc-txt em { font-style: normal; color: var(--gold); font-weight: 700; margin-top: 8px; }
.sc-slide.cat .sc-txt small { color: #b6e07a; }
.sc-sets { position: relative; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 70% 20%, #c88abb33, transparent 60%), #1b1720; }
.sc-sets img { display: block; width: 30%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--card); margin: 0 -4%; box-shadow: 0 10px 24px #0008; }
.sc-sets img:nth-child(2) { width: 36%; position: relative; z-index: 1; }
.sc-sets b { position: absolute; right: 7%; top: 9%; z-index: 2; background: var(--gold); color: var(--on-gold); font: 700 18px var(--body); padding: 6px 12px; border-radius: 999px; transform: rotate(8deg); }
/* стрелки лежат на слое размером с картинку */
.sc-nav { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; pointer-events: none; }
.sc-arr { pointer-events: auto; position: absolute; top: 50%; margin-top: -19px; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid #ffffff33; background: #100f15aa; color: var(--ink); font-size: 24px; line-height: 36px; text-align: center; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sc-arr.prev { left: 10px; } .sc-arr.next { right: 10px; }
.sc-arr:hover { border-color: var(--gold); color: var(--gold); }
.sc-dots { position: absolute; left: 16px; bottom: 12px; display: flex; gap: 6px; }
.sc-dots button { width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.sc-dots button[aria-current="true"] { width: 22px; background: var(--gold); }
@media (prefers-reduced-motion: reduce) { .sc-track, .sc-img > img { transition: none; } }
.tg-btn { background: #2aabee; border-color: #2aabee; color: #fff; }
.tg-link { margin-top: 10px; display: inline-flex; }
/* шкала статуса заказа */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 12px 0 4px; padding: 0; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.ok::before, .steps li.now::before { background: var(--gold); }
.steps i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.steps li.ok i { background: var(--gold); border-color: var(--gold); }
.steps li.now i { border-color: var(--gold); box-shadow: 0 0 0 4px #edbe8233; background: var(--gold); }
.steps li.now span { color: var(--gold); font-weight: 700; }
.steps li.ok span { color: var(--ink); }
.steps-off { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.order-link { display: block; margin-top: 10px; font-size: 13px; }
.sc-tg { margin: 14px 0 4px; }
.sc-tg + .hero { padding-top: 14px; }

/* кнопка «В корзину» на карточке */
.quick { margin-top: 8px; width: 100%; min-height: 38px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font: 600 13px var(--body); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.quick:hover { background: #edbe8218; }
.quick.in { background: var(--gold); color: var(--on-gold); }
.quick.pop { transform: scale(1.04); }
.card:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }

/* корзина рядом с каталогом */
.mini-cart { display: none; }
.mc-bar { display: none; }
@media (max-width: 999px) {
  /* телефон: полоса над нижним меню, только когда в корзине что-то есть */
  body[data-tab="catalog"].has-cart .mini-cart { display: block; position: fixed; z-index: 19; left: 50%; transform: translateX(-50%); bottom: calc(68px + env(safe-area-inset-bottom)); width: min(100% - 20px, 740px); }
  .mini-cart > *:not(.mc-bar) { display: none !important; }
  .mc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--gold); color: var(--on-gold); text-decoration: none; font-weight: 600; box-shadow: 0 8px 24px #000a; }
  body[data-tab="catalog"].has-cart #view { padding-bottom: 64px; }
}
@media (min-width: 1000px) {
  html:not(.tg) .cat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  html:not(.tg) .cat-wrap .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html:not(.tg) .mini-cart { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 140px; max-height: calc(100vh - 160px); padding: 16px; border: 1px solid var(--gold); border-radius: 16px;
    background: radial-gradient(circle at 100% 0, #c88abb1f, transparent 60%), var(--card); }
  .mc-head { display: flex; justify-content: space-between; align-items: baseline; }
  .mc-head b { font: 20px var(--display); font-weight: 400; }
  .mc-head span, .mc-empty span { color: var(--muted); font-size: 13px; }
  .mc-empty { display: flex; flex-direction: column; gap: 8px; }
  .mc-list { list-style: none; margin: 0; padding: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
  .mc-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: start; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .mc-name small { display: block; color: var(--muted); font-size: 12px; }
  .mc-sum { color: var(--gold); font-weight: 600; white-space: nowrap; }
  .mc-del { border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
  .mc-del:hover { color: var(--bad); }
  .mc-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
  .mc-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
  .mc-total b { font: 24px var(--display); font-weight: 400; color: var(--gold); }
  .mc-free { margin: 0; font-size: 12px; color: var(--gold); }
}
@media (max-width: 999px) { body[data-tab="catalog"].has-cart .toast { bottom: calc(136px + env(safe-area-inset-bottom)); } }

/* выбор веса и количество прямо на карточке */
.qc { margin-top: 8px; }
.qc .quick { margin-top: 0; }
.qc-packs { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 4px; }
.qc-packs button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 4px 2px; border: 1px solid var(--gold); border-radius: 10px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.qc-packs button b { font-size: 13px; color: var(--gold); }
.qc-packs button small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.qc-packs button:hover { background: #edbe8218; }
.qc-packs .qc-x { border-color: var(--line); color: var(--muted); font-size: 18px; padding: 0 8px; }
.qc-step { display: flex; align-items: center; justify-content: space-between; min-height: 38px; border-radius: 999px; background: var(--gold); color: var(--on-gold); padding: 0 4px; }
.qc-step button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #21141a1f; color: var(--on-gold); font-size: 20px; line-height: 1; cursor: pointer; }
.qc-step span { font-size: 13px; }
.qc-more { display: block; width: 100%; margin-top: 4px; border: 0; background: none; color: var(--muted); font: 12px var(--body); text-decoration: underline; cursor: pointer; }
.mc-step { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; }
.mc-step button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; font-size: 16px; line-height: 1; }
.mc-step button:hover { border-color: var(--gold); color: var(--gold); }

/* Чайный клуб (подписка) */
.club-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.club-plan { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.club-plan b { font-family: Prata, serif; font-weight: 400; font-size: 18px; }
.club-plan span { font-size: 13px; }
.club-plan small { color: var(--muted); font-size: 12px; }
.club-plan em { font-style: normal; color: var(--gold); font-weight: 700; margin-top: 4px; }
.club-plan[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; background: radial-gradient(circle at 100% 0, #edbe8222, transparent 60%), var(--card); }
#view > label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
#view > label.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--gold); }
.sub-card { margin-bottom: 10px; }
.btn.sm { padding: 8px 14px; font-size: 13px; width: auto; }
@media (max-width: 380px) { .club-plans { grid-template-columns: 1fr; } }
.sc-slide.club .sc-txt small { color: #f2c48d; }
