/* KisKis — рынок 90-х */
:root {
  --ink: #1A1714; --paper: #F2ECDD; --paper2: #E6DCC5; --card: #FFFDF6;
  --kraft: #C9A26B; --kraft-dark: #8B6A3E; --red: #B3261E; --blue: #1F4FA3; --yellow: #FFD43B;
  --green: #2F6B3A; --board: #23302A; --muted: #5A4E3F; --line: #5C544A;
  --display: 'Rubik Mono One', 'Rubik', system-ui, sans-serif;
  --body: 'Rubik', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --mono: 'PT Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; }
a { color: var(--ink); }
a:hover { color: var(--red); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.kraft { background-color: var(--kraft); background-image: repeating-linear-gradient(90deg, rgba(26,23,20,.06) 0 2px, transparent 2px 7px); }
.plaid { height: 44px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, rgba(179,38,30,.9) 0 18px, transparent 18px 36px, rgba(31,79,163,.9) 36px 44px, transparent 44px 72px),
                    repeating-linear-gradient(0deg, rgba(179,38,30,.55) 0 18px, transparent 18px 36px, rgba(31,79,163,.55) 36px 44px, transparent 44px 72px); }
.mono { font-family: var(--mono); }
.hand { font-family: var(--hand); }
.display { font-family: var(--display); font-weight: 400; }
h1, h2, h3 { margin: 0; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); }

/* Шапка */
.strip { background: var(--blue); color: #fff; font-family: var(--mono); font-size: 13px; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: center; }
.top { background: var(--ink); color: var(--paper); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 18px; padding-bottom: 18px; }
.logo { text-decoration: none; color: var(--paper); display: flex; align-items: baseline; gap: 4px; }
.logo b { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--yellow); letter-spacing: .02em; }
.logo span { font-family: var(--mono); font-size: 14px; }
.logo:hover { color: var(--paper); }
.search { flex: 1 1 320px; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 2px solid var(--paper); border-right: 0; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 15px; border-radius: 0; }
.search button { height: 50px; padding: 0 20px; background: var(--yellow); color: var(--ink); border: 2px solid var(--paper); font-family: var(--body); font-weight: 700; font-size: 15px; cursor: pointer; }
.langs { display: flex; gap: 4px; }
.langs a { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); color: var(--paper); text-decoration: none; font-family: var(--mono); font-size: 14px; }
.langs a[aria-current="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 700; }
.cartlink { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 2px solid var(--paper); color: var(--paper); text-decoration: none; font-weight: 500; }
.cartlink:hover { color: var(--yellow); border-color: var(--yellow); }
.rownav { border-bottom: 3px solid var(--ink); }
.rownav .wrap { display: flex; flex-wrap: wrap; gap: 0 4px; }
.rownav a { padding: 14px; font-weight: 700; text-decoration: none; font-size: 15px; }
.rownav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; font-family: var(--body); font-weight: 700; font-size: 18px; text-decoration: none; border: 3px solid var(--ink); cursor: pointer; }
.btn-red { background: var(--red); color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.btn-red:hover { color: #fff; transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--ink); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Главная */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border: 2px solid var(--ink); padding: 6px 10px; transform: rotate(-1.5deg); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
.hero p { margin: 0; font-size: 20px; line-height: 1.5; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.stall { flex: 1 1 440px; min-width: 0; position: relative; min-height: 420px; }
.sign { position: absolute; inset: 20px 30px 40px 10px; border: 3px solid var(--ink); transform: rotate(-2deg); box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 32px; text-align: center; }
.sign b { font-family: var(--hand); font-size: clamp(44px, 6vw, 64px); line-height: .95; }
.sign i { font-family: var(--hand); font-style: normal; font-weight: 600; font-size: 34px; }
.sign span { margin-top: 14px; font-family: var(--mono); font-size: 15px; background: var(--paper); border: 2px dashed var(--ink); padding: 8px 14px; }
.tape { position: absolute; top: 0; left: 46%; width: 120px; height: 34px; background: rgba(255,212,59,.75); transform: rotate(6deg); }
.sticker { position: absolute; border: 3px solid var(--ink); font-family: var(--hand); font-weight: 700; padding: 6px 16px; }
.sticker.price { right: 0; top: 70px; transform: rotate(8deg); background: var(--yellow); font-size: 40px; }
.sticker.note { left: 0; bottom: 0; transform: rotate(-6deg); background: #fff; font-size: 28px; color: var(--red); }
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.section-head .hand { font-size: 28px; font-weight: 600; }
.band { background: var(--paper2); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.rows-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.rowcard { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); text-decoration: none; color: var(--ink); transition: transform .12s; }
.rowcard:hover { transform: translate(-2px,-2px); color: var(--ink); }
.rowcard .num { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; transform: rotate(-8deg); }
.rowcard b { display: block; font-size: 22px; }
.rowcard span span { font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.step { background: var(--card); border: 2px solid var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); }
.step .n { font-family: var(--display); font-size: 44px; color: var(--red); }
.step b { font-family: var(--body); font-size: 21px; }
.step span { font-size: 15px; line-height: 1.55; }
.board { background: var(--board); color: var(--paper); border: 10px solid var(--kraft-dark); padding: 40px clamp(20px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 28px 64px; }
.board h2 { flex: 1 1 260px; font-family: var(--hand); font-weight: 700; font-size: 56px; line-height: 1; }
.board ol { flex: 2 1 420px; margin: 0; padding-left: 28px; font-family: var(--hand); font-size: 30px; line-height: 1.35; }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 16px; }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; background: var(--card); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transition: transform .12s; min-width: 0; }
.card:hover { transform: translate(-2px,-2px); color: var(--ink); }
.card .pic { aspect-ratio: 4 / 3; position: relative; border-bottom: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .name { overflow-wrap: anywhere; }
.nopic { font-family: var(--mono); font-size: 13px; background: var(--paper); padding: 4px 8px; border: 1px dashed var(--ink); }
.tag { position: absolute; top: 12px; right: 12px; transform: rotate(5deg); background: var(--yellow); font-family: var(--hand); font-weight: 700; font-size: 32px; line-height: 1; padding: 6px 12px; border: 2px solid var(--ink); }
.cond { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 12px; background: var(--ink); color: var(--paper); padding: 3px 8px; }
.held { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(26,23,20,.55); }
.held span { background: var(--paper); border: 2px solid var(--ink); font-family: var(--mono); font-size: 14px; padding: 6px 10px; transform: rotate(-4deg); }
.card .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.card .row { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.card .name { font-weight: 700; font-size: 16px; line-height: 1.25; }
.card .note { font-family: var(--hand); font-size: 20px; line-height: 1.1; color: var(--red); }
.empty { font-family: var(--hand); font-size: 30px; padding: 40px 0; }

/* Каталог */
.crumbs { font-family: var(--mono); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 28px; }
.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 14px; }
.cat-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 46px); }
.sortbox { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea {
  height: 46px; padding: 0 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--mono); font-size: 15px; border-radius: 0; width: 100%; }
textarea { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.5; }
.sortbox select { width: auto; }
.cat { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 28px; padding-bottom: 80px; }
.filters { flex: 1 1 250px; max-width: 100%; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.filters .title { font-family: var(--hand); font-weight: 700; font-size: 34px; line-height: 1; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
legend { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.range { display: flex; gap: 8px; align-items: center; }
.range input { height: 42px; }
.lockerbox { font-weight: 700; background: var(--paper); border: 2px dashed var(--ink); padding: 12px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }

/* Товар */
.product { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 28px; padding-bottom: 64px; }
.gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mainpic { aspect-ratio: 1 / 1; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.mainpic img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); }
.one { position: absolute; top: 18px; left: 18px; transform: rotate(-4deg); background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 13px; padding: 6px 10px; letter-spacing: .06em; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.thumbs button { aspect-ratio: 1 / 1; border: 2px solid var(--ink); padding: 0; cursor: pointer; overflow: hidden; background: var(--paper); }
.thumbs button[aria-current="true"] { border: 3px solid var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pinfo h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.pricerow { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.bigtag { transform: rotate(-3deg); background: var(--yellow); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-family: var(--hand); font-weight: 700; font-size: 56px; line-height: 1; padding: 8px 22px; }
.pricerow .hand { font-size: 28px; color: var(--red); line-height: 1.1; }
.box { background: var(--card); border: 2px solid var(--ink); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.box > b { font-size: 18px; }
.checkline { display: flex; gap: 12px; align-items: flex-start; font-family: var(--mono); font-size: 15px; line-height: 1.45; }
.checkline svg { flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.actions form { flex: 1 1 240px; display: flex; }
.actions form .btn { flex: 1; }
.notice { font-family: var(--mono); font-size: 15px; background: var(--paper2); border: 2px dashed var(--ink); padding: 14px 16px; }
.shiprow { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--ink); padding: 6px 0; }
.shiprow:last-child { border-bottom: 0; }
.desc { display: flex; flex-wrap: wrap; gap: 32px; padding-bottom: 72px; }
.desc > div { flex: 2 1 480px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.6; white-space: pre-line; }

/* Корзина и оформление */
.page { padding-top: 36px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.cartlist { display: flex; flex-direction: column; gap: 14px; }
.cartitem { display: flex; gap: 16px; align-items: center; background: var(--card); border: 2px solid var(--ink); padding: 12px; }
.cartitem .thumb { width: 88px; height: 88px; flex: none; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cartitem .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cartitem .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cartitem .price { font-family: var(--hand); font-weight: 700; font-size: 30px; }
.linkbtn { background: none; border: 0; padding: 10px; min-height: 44px; font-family: var(--mono); font-size: 14px; text-decoration: underline; cursor: pointer; color: var(--ink); }
.cartfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.cartfoot .sum { font-family: var(--mono); font-size: 20px; font-weight: 700; }
.error { background: var(--red); color: #fff; padding: 14px 18px; border: 3px solid var(--ink); font-weight: 500; }
.ok { background: var(--yellow); padding: 14px 18px; border: 3px solid var(--ink); font-weight: 500; }
.co { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 36px; padding-bottom: 80px; }
.co form.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.co h1 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 40px); }
.panel { border: 3px solid var(--ink); background: var(--card); margin: 0; padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.panel legend { font-size: 18px; padding: 0 8px; background: var(--paper); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.carriers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.carrier { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 14px 16px; border: 2px solid var(--ink); background: #fff; cursor: pointer; }
.carrier input { position: absolute; opacity: 0; pointer-events: none; }
.carrier:has(input:checked) { background: var(--yellow); border-width: 3px; box-shadow: 4px 4px 0 var(--ink); }
.carrier:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.carrier .top2 { display: flex; justify-content: space-between; gap: 8px; }
.carrier b { font-size: 17px; }
.carrier small { font-size: 14px; }
.receipt-wrap { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; position: sticky; top: 16px; }
.receipt { background: var(--card); border: 2px solid var(--ink); border-bottom: 0; padding: 26px 24px 18px; font-family: var(--mono); font-size: 15px; display: flex; flex-direction: column; gap: 12px; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 2px dashed var(--ink); margin: 0; width: 100%; }
.receipt .l { display: flex; justify-content: space-between; gap: 12px; }
.receipt .tot { font-weight: 700; font-size: 20px; border-top: 2px solid var(--ink); padding-top: 10px; }
.zig { height: 14px; background: linear-gradient(-45deg, transparent 7px, var(--card) 0) 0 0 / 14px 14px repeat-x, linear-gradient(45deg, transparent 7px, var(--card) 0) 0 0 / 14px 14px repeat-x; }
.paybtn { margin-top: 22px; min-height: 64px; font-size: 19px; width: 100%; }
.heldnote { margin-top: 16px; font-family: var(--hand); font-size: 26px; text-align: center; transform: rotate(-2deg); }
.hide { display: none !important; }

/* Подвал */
.foot { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 14px; }
.foot .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.foot .col { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.foot b { color: var(--yellow); }
.foot a { color: var(--paper); }
.foot a:hover { color: var(--yellow); }
.foot .logo2 { font-family: var(--display); font-size: 22px; color: var(--yellow); }

/* Админка */
.admin { font-family: var(--body); }
.admin-bar { background: var(--ink); color: var(--paper); }
.admin-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 12px; padding-bottom: 12px; }
.admin-bar a, .admin-bar button { color: var(--paper); font-family: var(--mono); font-size: 14px; }
.admin-bar button { background: none; border: 0; text-decoration: underline; cursor: pointer; }
.atable { width: 100%; border-collapse: collapse; background: var(--card); border: 2px solid var(--ink); font-size: 15px; }
.atable th, .atable td { padding: 10px 12px; border-bottom: 1px solid #cfc4ad; text-align: left; vertical-align: middle; }
.atable th { font-family: var(--mono); font-size: 13px; text-transform: uppercase; background: var(--paper2); }
.atable img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--ink); }
.scroll { overflow-x: auto; }
.pill { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 2px 8px; border: 1px solid var(--ink); }
.pill.active, .pill.paid { background: var(--yellow); }
.pill.reserved, .pill.pending { background: var(--paper2); }
.pill.sold, .pill.shipped { background: var(--ink); color: var(--paper); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { font-family: var(--mono); font-size: 14px; padding: 8px 12px; border: 2px solid var(--ink); text-decoration: none; }
.tabs a[aria-current="true"] { background: var(--ink); color: var(--yellow); }
.aform { display: flex; flex-direction: column; gap: 22px; }
.langcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hint { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 400; }
.photos { display: flex; flex-wrap: wrap; gap: 12px; }
.photos figure { margin: 0; width: 130px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.photos img { width: 130px; height: 130px; object-fit: cover; border: 2px solid var(--ink); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 36px; gap: 32px; }
  .stall { min-height: 340px; }
  .sticker.price { font-size: 32px; }
  .board h2 { font-size: 44px; }
  .board ol { font-size: 26px; }
  .receipt-wrap { position: static; }
}

/* На телефонах полоса рядов вверху не нужна: ряды есть на главной и в фильтре каталога. */
@media (max-width: 820px) {
  .rownav { display: none; }
}

/* Вход через Telegram, профили, звёзды */
.btn-tg { background: #229ED9; border-color: #229ED9; color: #fff; }
.btn-tg:hover { color: #fff; filter: brightness(1.05); }
.avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); flex: none; }
.avatar-empty { display: inline-flex; align-items: center; justify-content: center; background: var(--card); font-weight: 700; font-size: 22px; }
.userlink .avatar { border-width: 1px; }
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.profile-head > div { display: flex; flex-direction: column; gap: 4px; }
.stars { font-family: var(--mono); font-size: 14px; }
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mini { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 2px solid var(--ink); overflow: hidden; }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sellerbox { flex-direction: row; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.sellerbox > span { display: flex; flex-direction: column; gap: 2px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.safedeal { margin: 0; }
.tgwidget { min-height: 48px; }
.flash { margin-top: 16px; }

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .card .info { padding: 8px 9px 10px; }
  .card .name { font-size: 14px; }
  .card .row { font-size: 10px; }
  .card .note { font-size: 17px; }
  .userlink span { display: none; }
  .minis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
.card .tag { top: 8px; right: 8px; font-size: 24px; padding: 4px 9px; }
.card .cond { left: 6px; bottom: 6px; font-size: 11px; padding: 2px 6px; }
@media (max-width: 640px) {
  .card .tag { font-size: 19px; padding: 3px 7px; top: 6px; right: 6px; }
  .card .cond { font-size: 10px; }
}

/* Поделиться в соцсетях */
.share { display: flex; flex-direction: column; gap: 8px; }
.share-title { font-size: 15px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.share-btn:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); }
.share-tg { background: #229ED9; border-color: #229ED9; color: #fff; }
.share-wa { background: #25D366; border-color: #1da851; color: #fff; }
.share-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-vb { background: #7360F2; border-color: #7360F2; color: #fff; }
.share-x { background: #111; border-color: #111; color: #fff; }
.share-tg:hover, .share-wa:hover, .share-fb:hover, .share-vb:hover, .share-x:hover { color: #fff; }
.foot-share { padding-top: 22px; margin-top: 22px; border-top: 1px dashed currentColor; }
.foot .share-btn:not(.share-tg):not(.share-wa):not(.share-fb):not(.share-vb):not(.share-x) { background: transparent; color: inherit; border-color: currentColor; }
@media (max-width: 640px) { .share-btn { min-height: 40px; padding: 6px 12px; } }
.foot .share-x { border-color: currentColor; }

/* Кнопка «Войти» в шапке — яркая и заметная */
.top .userlink span { display: inline !important; }
.top a.userlink[href$="/login"] {
  background: #FFD43B; color: #1A1714; border-color: #FFD43B;
  font-weight: 700; font-size: 17px; letter-spacing: .02em;
  box-shadow: 4px 4px 0 #B3261E;
  animation: bh-nudge 2.6s ease-in-out 1s 3;
}
.top a.userlink[href$="/login"] svg { stroke: #1A1714; }
.top a.userlink[href$="/login"]:hover { background: #fff; color: #1A1714; border-color: #fff; }
@keyframes bh-nudge { 0%, 30%, 100% { transform: none; } 8% { transform: rotate(-3deg) scale(1.05); } 16% { transform: rotate(3deg) scale(1.05); } 24% { transform: rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .top a.userlink[href$="/login"] { animation: none; } }
@media (max-width: 640px) { .top a.userlink { flex: 1 1 100%; justify-content: center; min-height: 52px; } }

/* promo */
.promobox { display: block; padding: 10px 14px; font-size: 15px; }
.promobox summary { cursor: pointer; font-weight: 700; }
.promorow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.promobox > .promorow { margin-top: 0; }
.promorow input[type="text"] { flex: 1 1 140px; min-height: 42px; padding: 6px 10px; text-transform: uppercase; font-family: var(--mono); letter-spacing: .06em; }
.promorow .btn { min-height: 42px; }
.promoprice { color: var(--red); font-size: 18px; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.promogift { display: block; margin: 8px 0 0; padding: 10px 14px; border: 2px dashed currentColor; font-weight: 700; font-size: 15px; line-height: 1.4; }
a.promogift { text-decoration: none; }
.receipt-wrap .promobox { margin-bottom: 14px; }
.promoline { color: var(--red); font-weight: 700; }

/* Instagram в «Поделиться» */
.share-ig { background: #E1306C; border-color: #E1306C; color: #fff; }
.share-ig:hover { color: #fff; }

/* share-icons: одинаковые квадратные иконки «Поделиться» */
.share-btns { gap: 10px; }
.share-btn, .foot .share-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border: 0 !important; border-radius: 10px; box-shadow: none; color: #fff !important; }
.share-btn svg { width: 22px; height: 22px; display: block; }
.share-btn:hover { transform: translateY(-1px); box-shadow: none; opacity: .88; }
.share-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.share-tg { background: #229ED9; } .share-wa { background: #25D366; } .share-fb { background: #1877F2; }
.share-vb { background: #7360F2; } .share-x { background: #111; } .share-ig { background: #E1306C; }
.share-copy, .share-native, .foot .share-copy, .foot .share-native { background: #555 !important; }
.share-copy.is-done { background: #2F8F4E !important; }
.share-msg { font-size: 14px; min-height: 1em; }
@media (max-width: 640px) { .share-btn { width: 46px; height: 46px; } }

/* share-center */
.share { align-items: center; text-align: center; }
.share-btns { justify-content: center; }

/* foot-fix: подвал */
.foot .foot-share { justify-content: center; }
.foot .foot-share .share { align-items: center; }
.share-btns .share-btn.share-ig { background: #E1306C !important; }
.foot .foot-copy { justify-content: center; padding-top: 0; padding-bottom: 28px; font-size: 13px; opacity: .8; }

/* share-center2: «Поделиться» по центру страницы */
.share-wide { display: flex; justify-content: center; padding-top: 28px; padding-bottom: 8px; }
.share { align-items: center; text-align: center; }
.share-btns { justify-content: center; }
.foot-share { display: flex; justify-content: center; }

/* enya-chat: «Спросить Еню» */
.enya-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 2px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.enya-btn[aria-expanded="true"] { background: var(--yellow, #FFD43B); color: #111; border-color: var(--yellow, #FFD43B); }
.enya-panel { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 276px; height: 368px; display: flex; flex-direction: column; background: #fff; color: #1b1b1b; border: 2px solid #1b1b1b; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-family: system-ui, sans-serif; overflow: hidden; }
.enya-panel[hidden] { display: none; }
.enya-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 12px; border-bottom: 1px solid #e6e6e6; font-size: 13px; }
.enya-back { display: none; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.enya-x { width: 40px; height: 40px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: inherit; }
.enya-log { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.enya-msg { max-width: 90%; padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 1.45; word-wrap: break-word; }
.enya-bot { align-self: flex-start; background: #F2F4F7; }
.enya-me { align-self: flex-end; background: #2B2118; color: #fff; }
.enya-me a { color: #fff; }
.enya-wait { opacity: .7; font-style: italic; }
.enya-card { align-self: flex-start; display: flex; gap: 10px; align-items: center; width: 88%; padding: 8px; border: 1px solid #e6e6e6; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.enya-card img, .enya-nophoto { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.enya-card > span { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.enya-card u { text-decoration: none; font-weight: 700; color: #2E8B57; }
.enya-form { display: flex; gap: 6px; padding: 6px; border-top: 1px solid #e6e6e6; }
.enya-form input { flex: 1; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid #ccc; border-radius: 10px; font: inherit; font-size: 13px; }
.enya-form button { min-height: 40px; padding: 0 10px; font-size: 13px; border: 0; border-radius: 10px; background: #D9572B; color: #1b1b1b; font: inherit; font-weight: 700; cursor: pointer; }
.enya-sr { position: absolute; left: -9999px; }
@media (max-width: 640px) {
  .enya-panel { inset: 0; width: 100vw; height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; z-index: 1000; }
  .enya-head { padding: 4px 8px; font-size: 15px; padding-top: max(4px, env(safe-area-inset-top)); }
  .enya-back { display: inline-flex; }
  .enya-x { display: none; }
  .enya-msg { font-size: 16px; } .enya-card > span { font-size: 15px; } .enya-card img, .enya-nophoto { width: 64px; height: 64px; }
  .enya-form { padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .enya-form input, .enya-form button { min-height: 48px; font-size: 16px; }
  body.enya-open { overflow: hidden; }
}

/* login-providers: Google / Facebook */
.login-providers { display: flex; flex-wrap: wrap; gap: 10px; }
.login-providers .btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; }
.btn-google { background: #fff; border-color: #747775; color: #1f1f1f; }
.btn-google:hover { color: #1f1f1f; background: #f8f9fa; }
.btn-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.btn-facebook:hover { background: #166fe5; color: #fff; }

/* login-equal: кнопки входа одной ширины */
.login-providers { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; gap: 10px; }
.login-providers > .btn, .login-providers > a, .login-bot, a.btn.btn-tg[href$="/login/bot"] { width: 100%; max-width: 320px; box-sizing: border-box; justify-content: center; text-align: center; }
.login-providers iframe { display: block; margin: 0 auto; }

/* login-center: вход по центру */
.box:has(.login-providers), .box:has(a[href$="/login/bot"]) { align-items: center !important; text-align: center; }
.login-providers { align-items: center; margin: 0 auto; }
.login-providers > * { margin-left: auto; margin-right: auto; }

/* «Спросить Еню» — плавающая кнопка внизу справа */
body > .enya-btn {
  position: fixed !important; right: 20px; bottom: 20px; left: auto; top: auto;
  z-index: 9990; margin: 0 !important;
  padding: 14px 20px; border-radius: 999px;
  background: #5b2d8e; color: #fff !important; border: 0;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(60, 20, 100, .35);
  cursor: pointer;
}
body > .enya-btn:hover { background: #6d39a8; }
body.enya-open > .enya-btn { display: none; }
@media (max-width: 640px) {
  body > .enya-btn { right: 14px; bottom: 14px; padding: 12px 16px; font-size: 15px; }
}
body > .enya-btn, body > .enya-btn:focus, body > .enya-btn:active {
  background: #5b2d8e !important; background-image: none !important;
  color: #fff !important; opacity: 1 !important; border: 0 !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
body > .enya-btn:hover { background: #6d39a8 !important; }

/* BH_PAYSHIP (10.11): «Мои пакоматы:» в оформлении заказа — белые «таблетки», выбранная — с зелёной рамкой */
.ps-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; }
.ps-mine > span { font-weight: 700; font-size: 14px; }
.ps-pick { appearance: none; font: inherit; font-size: 14px; line-height: 1.3; text-align: left; padding: 8px 14px; border: 1.5px solid #D0D5DD; border-radius: 999px; background: #fff; color: inherit; cursor: pointer; }
.ps-pick:hover { border-color: #98A2B3; }
.ps-pick.is-on { border-color: #1E8E4A; box-shadow: 0 0 0 1px #1E8E4A; }
.ps-pick[hidden] { display: none; }

/* BH_VIEWS_LINE: просмотры на странице вещи — бледно, мелко */
.item-views { margin: 2px 0 8px; font-size: 12px; font-weight: 400; color: #9A94A3; line-height: 1.3; }
.btn-mail { background: #fff; border-color: #747775; color: #1f1f1f; } .btn-mail:hover { color: #1f1f1f; background: #f8f9fa; }   /* BH_MAIL_LOGIN2 */
