:root { --bg:#fbf7f2; --surf:#f3ebe1; --line:#cdb8a6; --field:#9c8472; --hair:#e6d9c9; --ink:#2a1f24; --muted:#76626b; --plum:#8f2450; --gold:#c9a25e; --error:#a01632; color-scheme:light }
* { box-sizing:border-box }
[hidden] { display:none !important }
html { -webkit-text-size-adjust:100% }
body { margin:0; background:var(--bg); color:var(--ink); font:400 16px/1.45 "Avenir Next","Segoe UI",Roboto,"Helvetica Neue",sans-serif; padding-bottom:calc(88px + env(safe-area-inset-bottom)) }
button,input,textarea,select { font:inherit; color:inherit }
button { cursor:pointer; border:0; background:none; padding:0; text-align:left }
:focus-visible { outline:3px solid var(--plum); outline-offset:2px }
h1 { font-size:30px; line-height:1.12; font-weight:600; letter-spacing:-.015em; margin:0 }
h2 { font-size:20px; line-height:1.2; font-weight:600; margin:0 }
.top { position:sticky; top:0; z-index:3; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 16px; background:var(--surf) }
.brand { font-weight:600; min-height:44px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; line-height:1.1; text-align:left }
.brand .name { font-size:1.3rem; letter-spacing:.03em }
.brand .logo { display:block; height:34px; width:auto }
.brand small { font-weight:400; font-size:.75rem; color:var(--muted) }
.quiet { min-height:44px; padding:0 6px; color:var(--ink); text-decoration:underline; text-underline-offset:4px }
main { max-width:1080px; margin:0 auto; outline:0 }
.find { padding:12px 16px 4px }
.small { font-size:.85rem; color:var(--muted); margin:0 }
.search { width:100%; max-width:520px; min-height:48px; padding:0 14px; border:2px solid var(--field); border-radius:24px; background:var(--bg) }
.chips { display:flex; gap:8px; overflow-x:auto; padding:14px 16px; scrollbar-width:none }
.chips button { flex:none; min-height:44px; padding:0 14px; border-radius:22px; background:var(--surf) }
.chips button[aria-pressed=true] { background:var(--ink); color:var(--bg) }
.block { padding:10px 16px 28px }
.block > h2 { margin-bottom:6px }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); column-gap:0; row-gap:26px }
.item { display:flex; flex-direction:column; min-width:0 }
.stand { display:flex; align-items:flex-end; justify-content:center; width:100%; height:150px; border-bottom:7px solid var(--line); background:linear-gradient(var(--bg),var(--surf)) }
.stand img { max-width:88%; max-height:138px; object-fit:contain; display:block; mix-blend-mode:multiply }
.stand svg { height:124px; display:block }
.item .text { padding:8px 10px 0 2px; display:grid; gap:2px }
.item strong { font-weight:600; font-size:15px }
.item span { font-size:14px; overflow-wrap:anywhere }
.price { color:var(--muted) }
.price b { color:var(--ink); font-weight:600 }
.nasiya { font-size:13px; color:var(--plum) }
.text .nasiya { font-size:13px }
.item .add { margin:8px 10px 0 2px }
.add,.main { min-height:44px; padding:0 16px; border-radius:22px; background:var(--plum); color:#fff; text-align:center; font-weight:600 }
.add { align-self:flex-start; background:var(--surf); color:var(--plum) }
.main { width:100%; min-height:52px; border-radius:26px }
.main:disabled { opacity:.55; cursor:default }
.bundles { display:grid; grid-auto-flow:column; grid-auto-columns:min(82%,300px); gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; padding-bottom:10px; -webkit-overflow-scrolling:touch }
.bundle { background:var(--surf); padding:0 0 16px; display:flex; flex-direction:column; gap:10px; scroll-snap-align:start }
.bundle .text > span:nth-of-type(1) { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden }
.bundle .stand { height:132px; gap:4px; background:none }
.bundle .stand svg { height:104px }
.bundle .stand img { max-width:31%; max-height:112px }
.bundle .text { padding:0 14px; display:grid; gap:4px }
.bundle .add { margin:auto 14px 0; background:var(--plum); color:#fff }
.page { max-width:620px; margin:0 auto; padding:20px 16px 40px; display:grid; gap:18px }
.page .stand { height:240px } .page .stand svg { height:210px } .page .stand img { max-height:228px }
.note { background:var(--surf); padding:12px 14px; margin:0 }
.trial { background:#f6e3ea; color:var(--plum); font-weight:600; text-align:center }
.lines { list-style:none; margin:0; padding:0; display:grid; gap:14px }
.lines li { display:grid; grid-template-columns:1fr auto; gap:6px 12px; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--hair) }
.qty { display:flex; align-items:center; gap:4px }
.qty button { width:44px; height:44px; border-radius:22px; background:var(--surf); text-align:center; font-size:20px }
.qty output { min-width:26px; text-align:center }
form { display:grid; gap:14px }
label { display:grid; gap:5px; font-weight:600 }
label input,label textarea,label select { font-weight:400; width:100%; min-height:48px; padding:10px 12px; border:2px solid var(--field); border-radius:8px; background:#fff }
.check { grid-template-columns:24px 1fr; align-items:start; font-weight:400 }
.check input { width:24px; min-height:24px; height:24px; margin:0; accent-color:var(--plum) }
.how { display:grid; gap:12px; border:1px solid var(--line); border-radius:8px; padding:10px 14px 14px; margin:0 }
.how legend { font-weight:600; padding:0 6px }
.doc { gap:10px; line-height:1.5 } .doc h2 { font-size:18px; margin-top:14px } .doc ul { margin:0; padding-left:20px; display:grid; gap:6px } .doc p { margin:0 } .nav a, .foot a, .check a { color:var(--plum) }
.foot { padding:8px 16px 24px; text-align:center }
.how small { display:block; color:var(--muted); font-size:.85rem; margin-top:2px }
.error { color:var(--error); font-weight:600; margin:0 }
.cartbar { position:fixed; z-index:4; left:16px; right:16px; bottom:calc(14px + env(safe-area-inset-bottom)); max-width:588px; margin:0 auto; min-height:56px; padding:0 22px; border-radius:28px; background:var(--plum); color:#fff; font-weight:600; display:flex; justify-content:space-between; align-items:center }
.toast { position:fixed; z-index:5; left:50%; top:66px; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); margin:0; padding:10px 18px; border-radius:22px; background:var(--ink); color:#fff; visibility:hidden }
.toast.on { visibility:visible }
.empty { padding:24px 0; color:var(--muted) }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
/* экран заявок */
.tabs { display:flex; gap:8px; overflow-x:auto; padding:14px 16px 0 }
.tabs button { flex:none; min-height:44px; padding:0 16px; border-radius:22px; background:var(--surf) }
.tabs button[aria-pressed=true] { background:var(--ink); color:#fff }
.panel { padding:18px 16px 40px; display:grid; gap:18px }
.order { background:var(--surf); padding:14px; display:grid; gap:8px }
.order ul { margin:0; padding-left:20px }
.order p { margin:0; overflow-wrap:anywhere }
.row { display:flex; flex-wrap:wrap; gap:8px; align-items:center }
.row .add { background:#fff }
.bar { height:12px; border-radius:6px; background:var(--surf); overflow:hidden }
.bar i { display:block; height:100%; background:var(--plum) }
.goods { display:grid; grid-template-columns:minmax(0,1fr) 130px auto auto; gap:8px 12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--hair) }
.goods input[type=number] { width:100%; min-height:44px; padding:0 10px; border:2px solid var(--field); border-radius:8px }
.pick { max-height:260px; overflow:auto; border:2px solid var(--field); border-radius:8px; padding:10px; display:grid; gap:6px }
.file input { width:1px; height:1px; min-height:0; padding:0; opacity:0; position:absolute }
.file { display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border-radius:22px; background:var(--surf); cursor:pointer }
.file:focus-within { outline:3px solid var(--plum) }
@media (max-width:620px) { .goods { grid-template-columns:1fr 1fr } .goods > span:first-of-type { grid-column:1/-1 } }
@media (min-width:760px) { h1 { font-size:42px } .stand { height:176px } .stand svg { height:148px } .stand img { max-height:164px } }

/* Описание товара */
.info { display:grid; gap:16px }
.info h2 { font-size:1.05rem; margin:0 0 6px }
.info p { margin:0; line-height:1.5 }
.specs { display:grid; grid-template-columns:1fr; gap:2px; margin:0; padding:14px; background:var(--surf) }
.specs dt { font-size:.85rem; color:var(--muted); margin-top:10px }
.specs dt:first-child { margin-top:0 }
.specs dd { margin:0; font-weight:600 }
@media (min-width:620px) { .specs { grid-template-columns:max-content 1fr; gap:8px 14px } .specs dt { margin:0; font-size:1rem } }
.info .small { font-size:.85rem }
.goods details.texts { grid-column:1/-1; order:9 }
.texts summary { cursor:pointer; min-height:36px; display:flex; align-items:center; color:var(--muted) }
.texts form { display:grid; gap:10px; padding:8px 0 4px }
.texts label { display:grid; gap:4px }
.texts textarea, .texts input { width:100%; padding:8px 10px; border:2px solid var(--field); border-radius:8px; font:inherit }

/* Вход через Telegram и профиль */
.acts { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:6px }
.pill { min-height:44px; padding:0 16px; border-radius:22px; background:var(--bg); color:var(--plum); font-weight:600 }
a.main, a.add { display:flex; align-items:center; justify-content:center; text-decoration:none }
a.add { display:inline-flex; justify-self:start; background:var(--plum); color:#fff }
.stack { display:grid; gap:10px }
.field { display:grid; gap:6px; justify-items:start }
.field .label { font-weight:600 }
.field b { font-size:1.1rem; font-weight:600 }
.field small { color:var(--muted); font-size:.85rem }
.hist { list-style:none; margin:0; padding:0; display:grid; gap:12px }
.spread { justify-content:space-between }
.status { justify-self:start; padding:4px 12px; border-radius:14px; background:var(--bg); border:1px solid var(--line); font-size:.9rem; font-weight:600 }
.st-done { color:var(--plum); border-color:var(--plum) }
.st-cancelled, .st-returned { color:var(--muted); border-color:var(--hair) }

/* Админка в Telegram: клиенты, журнал бонусов, показатели */
.client { display:grid; gap:2px; width:100%; padding:12px 14px; min-height:64px; background:var(--surf); border-radius:8px }
.client strong { font-weight:600 }
.journal { list-style:none; margin:0; padding:0; display:grid; gap:10px }
.journal li { display:grid; gap:2px; padding-bottom:10px; border-bottom:1px solid var(--hair); overflow-wrap:anywhere }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px }
.top10 { margin:0; padding-left:22px; display:grid; gap:6px }
/* Возврат после выдачи: форма в заявке и список возвратов */
.texts .check input { width:24px; padding:0 }
.returns { display:grid; gap:8px; border-top:1px solid var(--hair); padding-top:8px }
.returns h3 { margin:0; font-size:1rem }
