/* ================= Шрифты ================= */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Шрифт заголовков: временный (Unbounded). Замените файлы и имя на свой шрифт из макета */
@font-face { font-family: 'Display'; font-weight: 900; font-display: swap; src: url(../fonts/unbounded-cyrillic-900-normal.woff2) format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Display'; font-weight: 900; font-display: swap; src: url(../fonts/unbounded-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+2000-206F,U+20BD; }

/* ================= Цвета и размеры ================= */
:root {
  --bg: #302759;
  --header: #49339f;
  --surface: #3e3179;
  --surface-2: #463c87;
  --line: rgba(255,255,255,.18);
  --text: #fff;
  --muted: #baacf9;
  --label: #bbabff;
  --link: #8fd0ff;
  --violet: #694af5;
  --chip: #694af5;
  --grad: linear-gradient(90deg, #0560ff 0%, #3eaeff 100%);
  --grad-violet: linear-gradient(90deg, #0878fe 0%, #a44ce3 100%);
  --grad-danger: linear-gradient(90deg, #c75d5c 0%, #9c55d0 100%);
  --ok: #6be38a;
  --radius: 22px;
  --tabbar-h: 62px;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  /* Фоны карточек из макета: цвет + узор (assets/patterns/p1…p6.png) */
  --bg1: #c39400; --bg2: #e5554d; --bg3: #8685ed; --bg4: #946afa; --bg5: #c46417; --bg6: #43a499;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--text); font-family: 'Montserrat', system-ui, sans-serif; font-size: 15px; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
.hidden { display: none !important; }

.pat-1 { background: var(--bg1) url(../assets/patterns/p1.png) center / cover; }
.pat-2 { background: var(--bg2) url(../assets/patterns/p2.png) center / cover; }
.pat-3 { background: var(--bg3) url(../assets/patterns/p3.png) center / cover; }
.pat-4 { background: var(--bg4) url(../assets/patterns/p4.png) center / cover; }
.pat-5 { background: var(--bg5) url(../assets/patterns/p5.png) center / cover; }
/* для больших областей: узор плиткой */
.tile-3 { background: var(--bg3) url(../assets/patterns/p3.png) 0 0 / 300px; }
.tile-4 { background: var(--bg4) url(../assets/patterns/p4.png) 0 0 / 300px; }
.pat-6 { background: var(--bg6) url(../assets/patterns/p6.png) center / cover; }

/* ================= Каркас ================= */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.screen { flex: 1; padding: 14px 16px calc(var(--tabbar-h) + 28px + var(--safe-b)); }
.screen.no-tabbar { padding-bottom: calc(24px + var(--safe-b)); }
.screen.with-sticky { padding-bottom: calc(var(--tabbar-h) + 92px + var(--safe-b)); }
.screen.no-tabbar.with-sticky { padding-bottom: calc(88px + var(--safe-b)); }
.screen.full { padding: 0; }

/* Шапка в браузере (в Telegram её рисует сам клиент) */
.fake-header { position: sticky; top: 0; z-index: 30; height: calc(54px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px) !important; background: var(--header); display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; padding: 0 12px; }
.fake-header .back { display: flex; align-items: center; gap: 4px; font-size: 17px; }
.fake-header .title { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 17px; }
.fake-header .title img { width: 30px; height: 30px; border-radius: 50%; }
.fake-header .more { justify-self: end; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 800; line-height: 0; }

.h1 { font-family: 'Display', 'Montserrat', sans-serif; font-weight: 900; font-size: 24px; line-height: 1.12; margin: 6px 0 16px; letter-spacing: .2px; }
.h1.center { text-align: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.label { color: var(--label); font-weight: 600; font-size: 15px; margin: 18px 0 10px; }
.link-btn { color: var(--link); font-weight: 600; font-size: 16px; }

/* ================= Кнопки ================= */
.btn { height: 48px; width: 100%; border-radius: 24px; background: var(--grad); font-size: 14px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { background: #4d4b81; color: #9ba8ca; cursor: default; transform: none; }
.btn.secondary { background: transparent; border: 1.5px solid rgba(255,255,255,.4); }
.btn.violet { background: var(--grad-violet); }
.btn.sm { height: 40px; border-radius: 20px; font-size: 13px; }
.pill { height: 40px; padding: 0 18px; border-radius: 20px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; }
.pill.danger { background: var(--grad-danger); }
.pill.blue { background: linear-gradient(90deg, #0977fd 0%, #8c6cec 100%); }
.pill.blue .ic-round { background: #7f5eff; }
.pill .ic-round { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; margin-right: -12px; }
.sticky-cta { position: fixed; left: 16px; right: 16px; z-index: 20; bottom: calc(var(--tabbar-h) + 22px + var(--safe-b)); }
.sticky-cta.no-tabbar { bottom: calc(16px + var(--safe-b)); }
.sticky-cta::before { content: ''; position: absolute; z-index: -1; left: -16px; right: -16px; top: -22px; bottom: -200px; background: linear-gradient(180deg, rgba(46,40,86,0) 0%, var(--cta-fade, var(--bg)) 34%); pointer-events: none; }

.icon-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(62,46,126,.4); color: #fff; display: grid; place-items: center; }

/* ================= Нижнее меню ================= */
.tabbar { position: fixed; z-index: 25; left: 16px; right: 16px; bottom: calc(10px + var(--safe-b)); height: var(--tabbar-h); border-radius: 30px; background: #3f2f7e; border: 1px solid rgba(255,255,255,.12); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 12px; align-items: center; box-shadow: 0 10px 30px rgba(10,5,30,.35); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #bcaaff; font-size: clamp(9px, 2.75vw, 10.5px); white-space: nowrap; font-weight: 600; position: relative; }
.tab.active { color: #fff; font-weight: 700; }
.tab svg { width: 26px; height: 26px; }
.tab .badge { position: absolute; top: -4px; left: 55%; min-width: 17px; height: 17px; border-radius: 9px; background: #ff5a5f; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.tab .avatar-sm { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* ================= Главная ================= */
.banner { position: relative; height: 124px; border-radius: 24px; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; overflow: hidden; }
.banner img.logo { max-height: 112px; max-width: 46%; filter: drop-shadow(0 4px 10px rgba(30,15,80,.35)); }
.promo { margin-top: 12px; border-radius: 24px; padding: 16px; text-align: center; border: 1px solid rgba(255,255,255,.3); position: relative; overflow: hidden; }
.promo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(48,39,89,0) 50%, rgba(48,39,89,.65) 100%); }
.promo > * { position: relative; }
.promo h2 { font-family: 'Display', sans-serif; font-weight: 900; font-size: 20px; margin: 2px 0 6px; }
.promo p { margin: 0 0 14px; font-size: 13px; font-weight: 500; }
.promo .btn { height: 40px; border-radius: 20px; font-size: 14px; font-weight: 500; }

.filters { display: flex; gap: 8px; margin: 14px -16px 14px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
/* сортировка закреплена слева, чипы уезжают под неё с затуханием */
.sort-pin { position: sticky; left: -16px; z-index: 2; flex: none; display: flex; margin-left: -16px; padding-left: 16px; background: var(--bg); }
.sort-pin::after { content: ''; position: absolute; top: 0; bottom: 0; left: 100%; width: 24px; opacity: 0; transition: opacity .15s; background: linear-gradient(90deg, var(--bg) 0%, rgba(48,39,89,0) 100%); pointer-events: none; }
.chip { flex: none; height: 40px; padding: 0 14px; border-radius: 12px; background: #6943ff; border: 1px solid transparent; font-weight: 500; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.chip.active { background: #ffcb2e; border-color: transparent; color: #2b2160; font-weight: 600; }
.chip.square { width: 40px; padding: 0; justify-content: center; background: #6943ff; }
.chip.cat-select { background: var(--grad-violet); gap: 4px; }

/* ================= Карточка товара в сетке ================= */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard { position: relative; border-radius: 16px; border: 1px solid rgba(255,255,255,.28); padding: 9px; overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.pcard::after, .glowbox::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(66,40,122,0) 54%, rgba(66,40,122,.84) 100%); }
.pcard .top .icon-btn { width: 30px; height: 30px; }
.pcard > *, .glowbox > * { position: relative; z-index: 1; }
.pcard .top { display: flex; gap: 6px; }
.pcard .top .spacer { flex: 1; }
.pcard .img { height: 160px; margin: 8px 0 10px; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.22), rgba(255,255,255,0) 60%); }
.pcard .img img { max-height: 150px; max-width: 60%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(20,10,50,.35)); }
.pcard .name { font-weight: 600; font-size: 14px; line-height: 1.15; min-height: 38px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.price-btn { height: 30px; border-radius: 15px; background: var(--grad); font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.pcard.soldout .img, .pcard.soldout .name { opacity: .55; }
.pcard .tag { position: absolute; z-index: 2; left: 50%; top: 46%; transform: translate(-50%, -50%); background: rgba(30,20,70,.75); padding: 6px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.skeleton { border-radius: var(--radius); height: 290px; background: linear-gradient(90deg, #3a3172 0%, #463c87 50%, #3a3172 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; font-size: 16px; }

/* ================= Поиск ================= */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ================= Карточка товара (экран) ================= */
.pd-hero { position: relative; border-radius: 28px; border: 1px solid rgba(255,255,255,.28); overflow: hidden; }
.pd-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(30,18,70,.4) 100%); }
.pd-hero .actions { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; }
.pd-hero .actions .icon-btn { width: 40px; height: 40px; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .slide { flex: 0 0 100%; scroll-snap-align: center; height: 380px; padding: 62px 0 18px; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.6), rgba(255,255,255,0) 60%); }
.gallery .slide img { max-height: 300px; max-width: 80%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(20,10,50,.4)); }
.dots { position: absolute; z-index: 2; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.dots i.on { background: #fff; }
.pd-title { font-weight: 700; font-size: 20px; line-height: 1.3; margin: 16px 0 6px; }
.pd-price { font-family: 'Display', sans-serif; font-weight: 900; font-size: 24px; margin-bottom: 12px; }
.stock { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.cubes { display: flex; gap: 4px; }
.cubes i { width: 14px; height: 14px; border-radius: 4px; background: rgba(255,255,255,.16); }
.cubes i.on { background: #ffcb2e; }
.badge-unique { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,203,46,.16); color: #ffd85c; border: 1px solid rgba(255,203,46,.35); padding: 6px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.specs { margin-top: 18px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.specs .r { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 14.5px; }
.specs .r + .r { border-top: 1px solid rgba(255,255,255,.08); }
.specs .r span:first-child { color: var(--muted); }
.specs .r span:last-child { font-weight: 600; text-align: right; }
.desc { margin-top: 16px; line-height: 1.5; color: #e7e2ff; font-size: 15px; white-space: pre-line; }
.cta-row { display: flex; gap: 10px; }
.cta-row .stepper { height: 48px; border-radius: 24px; }
.cta-row .stepper button { width: 44px; height: 48px; }
.cta-row .btn { flex: 1; }

/* ================= Корзина ================= */
.citem { position: relative; display: grid; grid-template-columns: 42% 1fr; gap: 12px; border-radius: 24px; border: 1px solid rgba(255,255,255,.3); padding: 14px; overflow: hidden; margin-bottom: 12px; min-height: 196px; }
.citem::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(30,18,70,.35) 100%); }
.citem > * { position: relative; z-index: 1; }
.citem .img { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.55), rgba(255,255,255,0) 62%); }
.citem .img img { max-height: 160px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(20,10,50,.35)); }
.citem .info { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-right: 8px; }
.citem .name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.citem .sum { font-weight: 700; font-size: 18px; }
.citem .per { font-size: 12.5px; color: rgba(255,255,255,.75); font-weight: 500; margin-top: 2px; }
.citem .remove { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; }
.citem.compact { min-height: 150px; }
.citem.compact .img img { max-height: 120px; }
.citem.warn { outline: 2px solid #ffcb2e; }
.stepper { display: inline-flex; align-items: center; height: 36px; border-radius: 18px; background: linear-gradient(90deg, #4f6cf7, #8b5cf0); align-self: flex-start; }
.stepper button { width: 38px; height: 36px; display: grid; place-items: center; }
.stepper button[disabled] { opacity: .35; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 17px; }
.totals { margin-top: 10px; }
.totals .r { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: 15.5px; }
.totals .r.total { color: #fff; font-weight: 700; font-size: 18px; padding-top: 12px; }
.totals .note { font-size: 13px; }

/* ================= Формы ================= */
.field { display: block; margin-bottom: 12px; }
.input { width: 100%; height: 48px; border-radius: 24px; background: #3f2f7e; border: 1px solid transparent; padding: 0 20px; font-size: 16px; outline: none; transition: border-color .15s; }
.input::placeholder, textarea.input::placeholder { color: #a99fd8; }
.input:focus { border-color: rgba(143,208,255,.8); }
.input.err { border-color: #ff7a7a; }
textarea.input { height: 86px; border-radius: 24px; padding: 14px 20px; resize: none; }
.phone { display: flex; align-items: center; height: 48px; border-radius: 24px; background: #3f2f7e; border: 1px solid transparent; padding: 0 16px; gap: 10px; }
.phone:focus-within { border-color: rgba(143,208,255,.8); }
.phone.err { border-color: #ff7a7a; }
.phone .flag { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex: none; }
.phone .sep { width: 1px; height: 24px; background: var(--line); }
.phone .code { font-size: 16px; color: #e8e3ff; min-width: 28px; }
.phone input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.phone input::placeholder { color: #a99fd8; }
.err-text { color: #ff9a9a; font-size: 13px; margin: -6px 0 10px 18px; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 4px; font-size: 13.5px; line-height: 1.4; color: #ddd6ff; }
.check .box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.45); display: grid; place-items: center; }
.check .box.on { background: var(--grad); border-color: transparent; }

/* ================= Доставка / карта ================= */
.map-wrap { position: fixed; inset: 0; top: var(--header-h, 0px); }
/* подложка карты: видна, пока грузятся тайлы или если они заблокированы */
#map { position: absolute; inset: 0; background-color: #1f1c33 !important; background-image: linear-gradient(rgba(255,255,255,.05) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.05) 2px, transparent 2px), linear-gradient(35deg, transparent 48%, rgba(255,255,255,.07) 49%, rgba(255,255,255,.07) 51%, transparent 52%); background-size: 120px 120px, 120px 120px, 340px 340px; }
.map-top { position: absolute; z-index: 1000; top: 12px; left: 12px; right: 12px; }
.map-top .input { background: rgba(70,58,140,.92); backdrop-filter: blur(6px); border-color: rgba(255,255,255,.3); }
.sheet { position: absolute; z-index: 1000; left: 0; right: 0; bottom: 0; background: rgba(54,44,112,.97); border-radius: 24px 24px 0 0; padding: 16px 16px calc(16px + var(--safe-b)); max-height: 46vh; overflow-y: auto; box-shadow: 0 -10px 30px rgba(10,5,30,.4); }
.sheet .grip { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: -6px auto 10px; }
.sheet h3 { margin: 0 0 10px; font-size: 16px; color: var(--label); font-weight: 600; }
.svc-note { font-size: 13px; color: var(--muted); margin: -4px 0 8px; line-height: 1.4; }
.pp { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; width: 100%; text-align: left; }
.pp + .pp { border-top: 1px solid rgba(255,255,255,.08); }
.svc-logo { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #6943ff; display: grid; place-items: center; font-weight: 800; font-size: 11px; letter-spacing: .3px; }
.pp b { display: block; font-size: 15px; margin-bottom: 4px; }
.pp div div { font-size: 13.5px; color: #e1dbff; line-height: 1.45; }
.sel h4 { color: var(--label); font-size: 16px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .3px; }
.sel .k { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.sel .v { font-size: 15px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sel .hours-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 14px; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.sel .open { color: var(--ok); }
.sel .closed { color: #ff9a9a; }
.hours-list { font-size: 13.5px; margin: -6px 0 14px; color: #e1dbff; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.pin { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #1d1b2e; border-radius: 10px; padding: 3px 8px 3px 3px; font: 600 12px Montserrat, sans-serif; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.35); transform: translate(-50%, -50%); }
.pin i { width: 20px; height: 20px; border-radius: 50%; background: #6943ff; display: grid; place-items: center; font-style: normal; }
.pin small { color: #777; font-weight: 600; }
.pin.on { background: #ff6a3d; color: #fff; transform: translate(-50%, -50%) scale(1.15); }
.pin.on i { background: #fff; }
.pin.on i svg { stroke: #ff6a3d; }
.sheet.selected { max-height: 74vh; }
.sheet .sel .btn { position: sticky; bottom: 0; box-shadow: 0 -12px 16px rgba(54,44,112,.95); }
.pin.on small { color: #ffe1d6; }
.leaflet-container { font-family: Montserrat, sans-serif; }
.leaflet-control-attribution { font-size: 9px !important; background: rgba(30,25,60,.7) !important; color: #aaa !important; }
.leaflet-control-attribution a { color: #ccc !important; }

/* ================= Подтверждение ================= */
.block { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.block .t { color: var(--label); font-weight: 600; font-size: 16px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.block .t button { width: 34px; height: 34px; display: grid; place-items: center; }
.block p { margin: 0 0 6px; line-height: 1.45; font-size: 14.5px; }

/* ================= Экраны-результаты ================= */
.result { min-height: calc(100vh - 54px); display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 24px 16px calc(24px + var(--safe-b)); }
.result p { font-size: 15px; font-weight: 500; margin: 0 0 18px; line-height: 1.5; }
.result .ill { width: 240px; margin: 8px auto 28px; }
.result .btns { display: grid; gap: 12px; margin-top: auto; }
.result.with-tabbar { padding-bottom: calc(var(--tabbar-h) + 22px + var(--safe-b)); }
.result.with-tabbar .h1 { margin-top: auto; }
.result.with-tabbar .ill { width: 250px; }

/* ================= История заказов ================= */
.order { margin-bottom: 22px; }
.order .head { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.order .meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.order .meta button { color: var(--link); font-weight: 600; font-size: 13px; }
.order + .order { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }

/* ================= Профиль и контакты ================= */
.profile-head { text-align: center; padding-top: 18px; }
.avatar-lg { width: 144px; height: 144px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; display: block; display: grid; place-items: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 56px; background: radial-gradient(circle at 50% 40%, #ffe27a, #e5a81e 60%, #9a6a12); color: #2b2160; }
.menu { margin-top: 18px; display: grid; gap: 10px; }
.mitem { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font-size: 16px; font-weight: 500; padding: 2px 0; }
.mitem .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #4a3d8f; color: #baacf9; display: grid; place-items: center; overflow: hidden; }
.mitem .ico img { width: 100%; height: 100%; object-fit: cover; }
.mitem .txt { flex: 1; display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.mitem.hl .txt { background: var(--violet); border-radius: 20px; padding: 0 12px 0 16px; font-weight: 600; }
.mitem .sub { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }

/* ================= Выкуп слабов ================= */
.sell-bg { --cta-fade: #5f4aa5; min-height: calc(100vh - 54px); }
.sell-bg::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(rgba(38,24,96,.42), rgba(38,24,96,.42)), var(--bg4) url(../assets/patterns/p4.png) 0 0 / 300px; }
.lead { font-size: 16px; line-height: 1.45; font-weight: 500; margin: 0 0 14px; }
.label.how { color: #76ddff; margin: 20px 0 12px; font-size: 16px; }
.step { border-radius: 24px; border: 1px solid rgba(255,255,255,.35); padding: 14px 10px; text-align: center; margin-bottom: 8px; }
.step h3 { font-family: 'Display', sans-serif; font-weight: 900; font-size: 21px; margin: 0 0 6px; letter-spacing: .3px; }
.step p { margin: 0; font-size: 14px; line-height: 1.25; font-weight: 500; }
.divider { border: 0; height: 1px; background: #8470d5; margin: 16px 0; }
.center-row { display: flex; justify-content: center; margin-top: 14px; }

/* ================= Тосты, модалки, шторки ================= */
.toast { position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: calc(var(--tabbar-h) + 24px + var(--safe-b)); background: rgba(24,18,52,.95); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 500; animation: up .2s ease-out; }
.toast.low { bottom: calc(90px + var(--safe-b)); }
/* если на экране есть закреплённая кнопка: тост поднимается над ней */
.app:has(.sticky-cta) .toast { bottom: calc(var(--tabbar-h) + 84px + var(--safe-b)); }
.app:has(.sticky-cta.no-tabbar) .toast { bottom: calc(78px + var(--safe-b)); }
.toast button { color: var(--link); font-weight: 700; white-space: nowrap; }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }
.overlay { position: fixed; inset: 0; z-index: 900; background: rgba(20,14,50,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.overlay.bottom { align-items: flex-end; padding: 0; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 420px; border-radius: 24px; background: var(--bg4) url(../assets/patterns/p4.png) center / cover; border: 1px solid rgba(255,255,255,.35); padding: 18px 16px 16px; text-align: center; }
.modal h3 { font-family: 'Display', sans-serif; font-size: 20px; margin: 0 0 6px; }
.modal p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.4; font-weight: 500; }
.modal .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal .two button { height: 44px; border-radius: 22px; font-weight: 600; font-size: 14px; }
.bsheet { width: 100%; background: #3a3175; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); animation: up .2s ease-out; }
.bsheet h3 { margin: 0 0 8px; font-size: 17px; }
.bsheet .opt { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.bsheet .opt.on { color: var(--link); font-weight: 600; }

.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 12px; }
.gate h2 { font-family: 'Display', sans-serif; margin: 0; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- заглушка фото товара (пока менеджер не загрузил фото) ---------- */
.noimg { aspect-ratio: 63 / 88; height: 86%; max-height: 300px; max-width: 100%; border-radius: 10px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.38); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; }
.noimg .ic { width: 36px; height: 36px; border-radius: 50%; background: rgba(62,46,126,.4); display: grid; place-items: center; }
.noimg .t { font-size: 12px; font-weight: 600; opacity: .9; text-shadow: 0 1px 4px rgba(30,18,70,.35); }
.citem .noimg { height: 150px; }
.citem.compact .noimg { height: 110px; }
.gallery .slide .noimg { height: 300px; }
.gallery .slide .noimg .ic { width: 52px; height: 52px; }
.gallery .slide .noimg .t { font-size: 14px; }
.pcard .img:has(.noimg), .citem .img:has(.noimg), .gallery .slide:has(.noimg) { background: none; }

/* ---------- правила (выкуп) ---------- */
.rules { border-radius: 24px; border: 1px solid rgba(255,255,255,.35); padding: 14px; position: relative; overflow: hidden; }
.rules::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.18); }
.rules > * { position: relative; }
.rules .in { background: #7b6fcd; border-radius: 16px; padding: 14px 16px; }
.rules h3 { font-family: 'Display', sans-serif; font-size: 20px; margin: 0 0 8px; text-align: center; }
.rules ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.4; font-weight: 500; }
.rules li + li { margin-top: 6px; }
.nowrap { white-space: nowrap; }

/* ---------- отзывы: карусель ---------- */
.rv-title { font-family: 'Display', 'Montserrat', sans-serif; font-weight: 900; font-size: 22px; line-height: 1.12; margin: 18px 0 10px; letter-spacing: .2px; }
.rv-sub { margin: 0 0 22px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.rv-track { --rvw: min(76vw, 320px); display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 calc((100vw - var(--rvw)) / 2) 4px; }
.rv-track::-webkit-scrollbar { display: none; }
/* карточка отзыва: фото 4:5 и подпись фиксированной высоты, чтобы при листании ничего не прыгало */
.rv-card { position: relative; flex: 0 0 var(--rvw); scroll-snap-align: center; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); background: #3b2f78; padding: 0; text-align: left; display: flex; flex-direction: column; }
.rv-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2f2766; }
.rv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-card.skeleton { height: calc(var(--rvw) * 1.25 + 104px); animation: sk 1.2s infinite linear; background: linear-gradient(90deg, #3a3172 0%, #463c87 50%, #3a3172 100%); background-size: 200% 100%; }
.rv-cap { height: 104px; padding: 14px 16px 0; box-sizing: border-box; flex: none; }
.rv-author { font-weight: 700; font-size: 16px; line-height: 20px; height: 20px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-text { font-size: 14px; font-weight: 500; line-height: 19px; color: #e4ddff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-ph { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 15px; text-shadow: 0 1px 4px rgba(30,18,70,.35); }
.rv-ph .ic { width: 48px; height: 48px; border-radius: 50%; background: rgba(62,46,126,.45); display: grid; place-items: center; }
.rv-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.rv-dots button { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.3); padding: 0; transition: width .2s, background .2s; }
.rv-dots button.on { width: 20px; background: #fff; }
.rv-viewer { position: fixed; inset: 0; z-index: 100; background: rgba(12,8,30,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; gap: 14px; }
.rv-viewer img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: 16px; }
.rv-vcap { text-align: center; font-size: 15px; line-height: 1.4; display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.rv-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; }



.filters.scrolled .sort-pin::after { opacity: 1; }
/* градиент на всю кнопку вместе с прозрачной рамкой: иначе по краю видна полоска начала градиента */
.chip, .btn, .pill, .price-btn { background-origin: border-box !important; }

.modal .two button.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); }

/* ---------- выбор ПВЗ в виджете Яндекса ---------- */
.ywidget { display: flex; flex-direction: column; min-height: calc(100vh - 54px); }
.yw-head { padding: 14px 16px 12px; }
.yw-title { font-weight: 700; font-size: 17px; }
.yw-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.yw-prev { margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; font-size: 13.5px; font-weight: 500; padding: 10px 12px; border-radius: 14px; background: #3f2f7e; }
.yw-box { position: relative; flex: 1; min-height: 420px; background: #fff; border-radius: 20px 20px 0 0; overflow: hidden; }
.yw-box #delivery-widget { height: 100%; }
.yw-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--bg); color: var(--muted); font-size: 14px; }
.yw-fallback { padding: 4px 16px 24px; }
.yw-fallback p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.yw-fallback textarea.input { height: 96px; margin-bottom: 12px; }

/* Политика обработки персональных данных */

/* ---------- Выкуп слабов ---------- */
.sell-promo { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; text-align: left; cursor: pointer; }
.sell-promo .txt { flex: 1; min-width: 0; }
.sell-promo h2 { font-size: clamp(12.5px, 4.1vw, 17px); margin: 0 0 2px; white-space: nowrap; }
@media (max-width: 345px) { .sell-promo { gap: 8px; padding-left: 12px; } .sell-promo .btn { padding: 0 12px; font-size: 13px; } }
.sell-promo p { margin: 0; font-size: 12.5px; }
.sell-promo .btn { flex: none; width: auto; padding: 0 16px; margin: 0; }
.mbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 10px; background: #ff5a5f; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.err-label { color: #ff9a9e; }
.sell-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sell-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: #3f2f7e; border: 1.5px dashed rgba(255,255,255,.35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center; }
.sell-photo.has { border-style: solid; border-color: rgba(255,255,255,.25); padding: 0; }
.sell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sell-photo .ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(105,67,255,.55); display: grid; place-items: center; }
.sell-photo .cap { display: flex; flex-direction: column; gap: 3px; }
.sell-photo .cap b { font-size: 14px; }
.sell-photo .cap small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.sell-photo.has .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; background: linear-gradient(180deg, rgba(36,24,84,0), rgba(36,24,84,.9)); }
.sell-photo.has .cap small { color: #e4ddff; }
.sell-qr { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,203,46,.14); color: #ffe27a; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.sell-qr.ok { display: flex; align-items: center; gap: 8px; background: rgba(46,204,113,.16); color: #8ff0b4; }
.sell-hint { color: var(--muted); font-size: 14px; margin: -2px 0 10px; }
.sell-results { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; margin-bottom: 10px; }
.sell-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 8px 12px 8px 8px; border-radius: 16px; background: #3f2f7e; }
.sell-card img, .sell-card .noimg { flex: none; width: 44px; height: 61px; border-radius: 6px; object-fit: cover; background: #2f2766; display: grid; place-items: center; color: #baacf9; }
.sell-card .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sell-card .t b { font-size: 15px; }
.sell-card .t small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.sell-card.picked { background: rgba(105,67,255,.35); border: 1px solid rgba(255,255,255,.25); }
.sell-card.picked .link-btn { font-size: 14px; flex: none; }
.sell-form .chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.sell-item { background: #3f2f7e; border-radius: 20px; padding: 12px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.12); }
.sell-item .row { display: flex; gap: 12px; align-items: center; }
.sell-item img { flex: none; width: 64px; height: 84px; border-radius: 10px; object-fit: cover; background: #2f2766; }
.sell-item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sell-item .t b { font-size: 15px; line-height: 1.3; }
.sell-item .t small { font-size: 13px; color: var(--muted); }
.sell-item .st { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; background: rgba(255,255,255,.12); }
.sell-item.st-offered .st { background: #ffcb2e; color: #2b2160; }
.sell-item.st-accepted .st, .sell-item.st-received .st, .sell-item.st-paid .st { background: rgba(46,204,113,.25); color: #8ff0b4; }
.sell-item.st-rejected .st, .sell-item.st-declined .st, .sell-item.st-cancelled .st { color: var(--muted); }
.sell-item .offer { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.sell-item .offer b { font-family: 'Display', sans-serif; font-weight: 900; font-size: 20px; }
.sell-item .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sell-item .acts .btn { height: 42px; font-size: 14px; }
.sell-item > .link-btn { margin-top: 10px; font-size: 14px; }
.link-btn.danger { color: #ff9a9e; }

/* ---------- Админка ---------- */
.adm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.adm-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 120px; padding: 14px; border-radius: 20px; background: #3f2f7e; border: 1px solid rgba(255,255,255,.12); text-align: left; }
.adm-tile.hot { background: linear-gradient(160deg, #6943ff, #3f2f7e); border-color: rgba(255,255,255,.3); }
.adm-tile .ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; margin-bottom: 6px; color: #d9d0ff; }
.adm-tile b { font-size: 17px; }
.adm-tile small { font-size: 12.5px; color: #cfc6f5; line-height: 1.3; }
.adm-stat { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: #3f2f7e; font-size: 14px; }
.adm-stat b { font-family: 'Display', sans-serif; font-weight: 900; font-size: 20px; }
.adm-hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 10px 2px 0; }
.adm-filter { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.adm-filter::-webkit-scrollbar { display: none; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.adm-list { display: flex; flex-direction: column; gap: 8px; }
.adm-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 10px; border-radius: 16px; background: #3f2f7e; text-align: left; color: inherit; }
.adm-row.dim { opacity: .6; }
.adm-row .thumb { flex: none; width: 48px; height: 60px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #2f2766; color: #baacf9; }
.adm-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-row .t b { font-size: 14.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adm-row .t small { font-size: 12.5px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.adm-row > svg { flex: none; opacity: .5; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.12); }
.tag.warn { background: rgba(255,90,95,.22); color: #ffb4b6; }
.tag.st-awaiting_payment, .tag.sl-review { background: #ffcb2e; color: #2b2160; }
.tag.st-paid, .tag.sl-offered { background: rgba(118,221,255,.22); color: #9ee6ff; }
.tag.st-shipped, .tag.st-delivered, .tag.sl-accepted, .tag.sl-received, .tag.sl-paid { background: rgba(46,204,113,.22); color: #8ff0b4; }
.tag.st-cancelled, .tag.sl-rejected, .tag.sl-declined, .tag.sl-cancelled { color: var(--muted); }
.adm-status { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.adm-status .tag { font-size: 13px; padding: 4px 10px; }
.adm-card { background: #3f2f7e; border-radius: 18px; padding: 14px 16px; margin-bottom: 4px; }
.adm-card p { margin: 0 0 6px; line-height: 1.45; }
.adm-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.adm-line span { color: #d3caf7; }
.adm-line b { text-align: right; }
.adm-line.total { border-top: 1px solid rgba(255,255,255,.12); margin-top: 6px; padding-top: 10px; font-size: 15px; }
.adm-copy { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; color: var(--link); }
.adm-copy b { color: #fff; }
.adm-buyer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.adm-buyer div { display: flex; flex-direction: column; gap: 2px; }
.adm-buyer small { color: var(--muted); font-size: 13px; }
.adm-buyer + .adm-hint { margin-top: 8px; }
.adm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.adm-actions .field { margin: 0; }
.adm-warn { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255,203,46,.14); color: #ffe27a; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.adm-card .adm-warn { margin: 6px 0 0; }
.adm-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.adm-links .link-btn { font-size: 14px; }
.adm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.adm-two .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-two .field { margin-bottom: 10px; }
.adm-qty { display: flex; align-items: center; height: 48px; border-radius: 24px; background: #3f2f7e; margin-bottom: 10px; overflow: hidden; }
.adm-qty button { flex: none; width: 44px; height: 48px; display: grid; place-items: center; }
.adm-qty input { flex: 1; min-width: 0; text-align: center; background: none; border: 0; color: inherit; font-size: 17px; font-weight: 600; outline: none; }
.adm-desc { height: 150px !important; }
.adm-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm-photos .ph, .adm-review-new .ph { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #3f2f7e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #d3caf7; }
.adm-photos .ph img, .adm-review-new .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-photos .ph i { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 8px; background: rgba(36,24,84,.85); }
.adm-photos .ph.add { border: 1.5px dashed rgba(255,255,255,.35); }
.adm-photos .ph small { font-size: 12px; }
.adm-sheet-img { display: block; width: 120px; height: 160px; object-fit: cover; border-radius: 12px; margin: 0 auto 8px; }
.bsheet .opt.danger { color: #ff9a9e; }
.adm-sell-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.adm-sell-photos button { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #2f2766; }
.adm-sell-photos img { width: 100%; height: 100%; object-fit: cover; }
.adm-sell-photos small { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 8px; background: rgba(36,24,84,.85); }
.adm-calc { margin: 12px 0 8px !important; font-size: 14px; }
.adm-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-offers .btn { height: auto; min-height: 52px; padding: 8px 6px; flex-direction: column; font-size: 14px; line-height: 1.2; }
.adm-offers .btn small { font-size: 12px; opacity: .85; font-weight: 500; text-transform: none; }
.adm-custom { margin-top: 10px; }
.adm-custom .field { margin: 0; }
.adm-custom .btn { height: 48px; }
.adm-card .btn.secondary { width: 100%; }
.adm-review-new { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; margin-bottom: 12px; }
.adm-review-new .fields .field { margin-bottom: 8px; }
.adm-review-new textarea { height: 74px; }

/* поля внутри карточек админки: темнее карточки, иначе сливаются */
.adm-card .input, .adm-card .ph, .adm-card textarea, .adm-review-new .input, .adm-review-new textarea, .adm-review-new .ph { background: #2f2766; }
.adm-buyer .link-btn { font-size: 14px; }
.load-fail .btn { margin: 18px auto 0; max-width: 220px; color: #fff; }

/* Админка → Доставка */
.adm-tile.wide { grid-column: 1 / -1; min-height: auto; flex-direction: row; align-items: center; gap: 12px; }
.adm-tile.wide .ic { margin-bottom: 0; }
.adm-tile.wide small { margin-left: auto; text-align: right; }
.adm-tariffs { border-radius: 18px; background: #3f2f7e; border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.adm-tariff { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 46px); gap: 6px; align-items: center; width: 100%; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); text-align: left; font-size: 13.5px; }
.adm-tariff span:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.adm-tariff.head { border-top: none; color: var(--muted); font-size: 12px; }
.adm-tariff.edit { background: rgba(255,255,255,.06); }
.adm-tariff.edit .input { height: 36px; padding: 0 6px; font-size: 13.5px; text-align: right; background: #2f2766; border-radius: 10px; }

/* Поиск на главной */
.search { position: relative; display: flex; align-items: center; margin-top: 12px; }
.search > svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 44px; padding-right: 40px; }
.search .input::-webkit-search-cancel-button { display: none; }
.search button { position: absolute; right: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.order .meta button.danger { color: #ff9a9a; }

