/* Мал табар — степные цвета: кийиз (войлок), бирюза неба, золото солнца, терракота. */
:root {
  --bg: #f6f0e4; --bg2: #efe5d1; --surface: #fffdf8; --surface2: #fbf6ec;
  --ink: #2a2017; --ink2: #5a4b3a; --muted: #8a7a66; --line: #e6dac4; --line2: #d9cab0;
  --brand: #0b6e69; --brand2: #08524e; --brand-soft: #dceeea; --on-brand: #fff;
  --gold: #e0a526; --gold2: #b98309; --gold-soft: #fbefd2;
  --terra: #b9532f; --terra-soft: #f7e1d7;
  --ok: #2b7d4f; --ok-soft: #dff0e5; --warn: #a8700a; --warn-soft: #fbefd4; --bad: #b8382a; --bad-soft: #f8e0dc;
  --c-free: #fff4dc; --c-free-s: #e2c98f; --c-taken: #cdbb9f; --c-sel: #e0a526; --c-mine: #7cc2b9; --c-na: #ebe3d4;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 6px 20px rgba(60, 40, 10, .07);
  --shadow-lg: 0 10px 40px rgba(40, 25, 5, .18);
  --r: 18px; --r-sm: 11px;
  --f-head: 'Unbounded', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130e; --bg2: #201a13; --surface: #221c15; --surface2: #2a231a;
    --ink: #f3ebde; --ink2: #d3c6b3; --muted: #a3937d; --line: #3a3024; --line2: #4a3e2f;
    --brand: #2aa198; --brand2: #4cc1b7; --brand-soft: #173b38; --on-brand: #0e1a19;
    --gold: #f0b93c; --gold2: #f5c862; --gold-soft: #3b2f15;
    --terra: #e07a54; --terra-soft: #3b2219;
    --ok: #5cc48a; --ok-soft: #173325; --warn: #f0b93c; --warn-soft: #3b2f15; --bad: #ef7b6c; --bad-soft: #3d1d18;
    --c-free: #6b5733; --c-free-s: #a88a4f; --c-taken: #3a3229; --c-sel: #f0b93c; --c-mine: #2aa198; --c-na: #2a241b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17130e; --bg2: #201a13; --surface: #221c15; --surface2: #2a231a;
  --ink: #f3ebde; --ink2: #d3c6b3; --muted: #a3937d; --line: #3a3024; --line2: #4a3e2f;
  --brand: #2aa198; --brand2: #4cc1b7; --brand-soft: #173b38; --on-brand: #0e1a19;
  --gold: #f0b93c; --gold2: #f5c862; --gold-soft: #3b2f15;
  --terra: #e07a54; --terra-soft: #3b2219;
  --ok: #5cc48a; --ok-soft: #173325; --warn: #f0b93c; --warn-soft: #3b2f15; --bad: #ef7b6c; --bad-soft: #3d1d18;
  --c-free: #6b5733; --c-free-s: #a88a4f; --c-taken: #3a3229; --c-sel: #f0b93c; --c-mine: #2aa198; --c-na: #2a241b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.noscroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; }
h1 { font: 700 clamp(22px, 3.2vw, 32px)/1.15 var(--f-head); letter-spacing: -.01em; }
h1 > .ic { width: .9em; height: .9em; margin-right: 10px; vertical-align: -.1em; color: var(--brand); }
h2 { font: 600 clamp(18px, 2.2vw, 23px)/1.2 var(--f-head); }
h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
h4 { font-size: 15px; }
p { margin: 0 0 .8em; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 22px; padding-bottom: 48px; }
.page.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 18px; } .mt-s { margin-top: 8px; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .end { justify-content: flex-end; } .row.center { justify-content: center; }
.wrap-row { flex-wrap: wrap; }
.pre { white-space: pre-line; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
[hidden] { display: none !important; }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--brand);
  background: var(--brand); color: var(--on-brand); font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s; }
.btn:hover { background: var(--brand2); border-color: var(--brand2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2a1c02; }
.btn.gold:hover { background: var(--gold2); border-color: var(--gold2); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { background: var(--surface2); border-color: var(--muted); }
.btn.ghost.on { color: var(--terra); border-color: var(--terra); }
.btn.ghost.on .ic { fill: currentColor; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-t { color: var(--bad); }
.btn.wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn.wa:hover { background: #178a45; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.block { display: flex; width: 100%; margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--brand); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.linkbtn.muted { color: var(--muted); }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; }
.iconbtn:hover { background: var(--surface2); text-decoration: none; }
.iconbtn.sm { width: 30px; height: 30px; }
.inp { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 11px; background: var(--surface); color: var(--ink); font: inherit; transition: border .15s, box-shadow .15s; }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.inp.sm { min-height: 38px; padding: 6px 10px; font-size: 14px; width: auto; }
.inp.big { font-size: 20px; font-weight: 700; }
.inp.code { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 700; }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7a66' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
textarea.inp { resize: vertical; min-height: 90px; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.fl { font-weight: 600; font-size: 14px; color: var(--ink2); }
.req { color: var(--terra); font-style: normal; }
.cols2, .cols3 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.cols3 { grid-template-columns: repeat(3, 1fr); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 1px 0 0; }
.check span { display: block; }
.check span > .ic { margin-right: 6px; }
.check.big span b { font-size: 16px; }
.check.sm { font-size: 14px; padding: 0 6px; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- значки ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.2; background: var(--surface2); color: var(--ink2); white-space: nowrap; }
.badge .ic { width: 14px; height: 14px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.gold { background: var(--gold); color: #2a1c02; }
.badge.red { background: var(--terra); color: #fff; }
.badge.dark { background: rgba(20, 14, 8, .78); color: #fff; }
.badge.vid { background: rgba(20, 14, 8, .72); color: #fff; }
.badge.light { background: var(--surface); color: var(--ink2); border: 1px solid var(--line); }
.badge.sm { font-size: 11px; padding: 2px 7px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.gold { background: var(--gold-soft); color: var(--gold2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.dark { background: var(--line); color: var(--ink2); }
.pill.hot { background: var(--terra); color: #fff; text-decoration: none; }
.pill .ic { width: 13px; height: 13px; }
.kk-term { color: var(--terra); font-weight: 700; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.top-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { font: 700 19px/1 var(--f-head); letter-spacing: -.01em; display: flex; flex-direction: column; gap: 3px; }
.logo-text small { font: 500 11px/1 var(--f-body); color: var(--muted); letter-spacing: 0; }
.mainnav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.mainnav a { padding: 8px 11px; border-radius: 10px; color: var(--ink2); font-weight: 600; font-size: 14.5px; white-space: nowrap; text-decoration: none; }
.mainnav a:hover { background: var(--surface2); color: var(--ink); }
.mainnav a.on { background: var(--brand-soft); color: var(--brand); }
.top-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: flex; background: var(--bg2); border-radius: 10px; padding: 3px; }
.lang button { border: 0; background: transparent; padding: 5px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; letter-spacing: .02em; }
.lang button.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.bell .badge, .iconbtn .badge { position: absolute; top: 2px; right: 0; background: var(--terra); color: #fff; font-size: 10.5px; padding: 1px 5px; min-width: 18px; justify-content: center; }
.userbtn { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; padding: 4px 8px 4px 4px; border-radius: 12px; text-decoration: none !important; }
.userbtn:hover { background: var(--surface2); }
.ava { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold2); font-weight: 700; font-size: 13px; flex: none; border: 1.5px solid var(--gold); }
.ava.sm { width: 24px; height: 24px; font-size: 10px; border-width: 1px; }
.ava.lg { width: 54px; height: 54px; font-size: 19px; }
.ava.xl { width: 84px; height: 84px; font-size: 28px; border-width: 2px; }
.ornament { height: 12px; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 22V13C24 5 35 3 39 9C43 15 37 20 32 17C29 15 31 10 35 12M24 13C24 5 13 3 9 9C5 15 11 20 16 17C19 15 17 10 13 12' fill='none' stroke='%23e0a526' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center / 24px 12px; }
.subnav { display: none; }

/* ---------- главная: герой ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: #0d3b38; margin-top: 0; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 40, 38, .93) 0%, rgba(6, 40, 38, .72) 45%, rgba(6, 40, 38, .25) 100%); }
.hero-in { position: relative; padding: 54px 16px 34px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.eyebrow .ic { color: var(--gold); }
.eyebrow.dark { background: var(--gold-soft); color: var(--gold2); border-color: transparent; }
.hero h1 { font-size: clamp(26px, 4.4vw, 46px); max-width: 780px; margin-bottom: 14px; text-wrap: balance; }
.lead { font-size: clamp(15px, 1.6vw, 18px); max-width: 640px; color: rgba(255, 255, 255, .86); }
.hero-search { margin-top: 24px; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-lg); max-width: 860px; }
.type-pick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.type-pick::-webkit-scrollbar { display: none; }
.type-pick label, .type-chips label { flex: none; cursor: pointer; }
.type-pick input, .type-chips input, .tiles input, .seg input, .mode-pick input, .radios input, .chip-c input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick span { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; background: var(--bg2); font-weight: 600; font-size: 14.5px; border: 1.5px solid transparent; }
.type-pick em, .type-chips em, .tiles em { font-style: normal; font-size: 19px; line-height: 1; }
.type-pick input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.type-pick input:focus-visible + span, .tiles input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.hs-row { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 8px; margin-top: 10px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.quick a:hover { border-color: var(--gold); background: var(--gold-soft); }
.quick em { font-style: normal; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 26px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font: 700 26px/1.1 var(--f-head); color: var(--gold); }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .78); }

/* ---------- секции ---------- */
section { margin-top: 34px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.sec-sub { color: var(--muted); margin-top: -4px; max-width: 760px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; }
.box h3 .ic { color: var(--brand); }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.cat { position: relative; border-radius: var(--r); overflow: hidden; min-height: 150px; display: flex; align-items: flex-end; color: #fff; text-decoration: none !important; box-shadow: var(--shadow); isolation: isolate; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.cat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(20, 12, 4, .82)); z-index: -1; }
.cat:hover img { transform: scale(1.05); }
.cat-t { padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.cat-t b { font: 600 17px/1.2 var(--f-head); }
.cat-t small { font-size: 12.5px; color: rgba(255, 255, 255, .85); line-height: 1.35; }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--gold); color: #2a1c02; font: 700 11.5px/1 var(--f-body); padding: 5px 9px; border-radius: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .04em; }
.cat:first-child { grid-row: span 2; min-height: 312px; }
.wanted-cat { background: linear-gradient(135deg, var(--terra), #8c3a1f); }
.wanted-cat::before { display: none; }
.cat-ic { position: absolute; top: 14px; right: 14px; opacity: .35; }
.cat-ic .ic { width: 56px; height: 56px; }

/* ---------- карточки ---------- */
.grid.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
.grid.cards.sm { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card-ph { position: relative; aspect-ratio: 4 / 3; background: var(--bg2); overflow: hidden; }
.card-ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-empty { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; font-size: 52px; background: repeating-linear-gradient(45deg, var(--bg2) 0 14px, var(--surface2) 14px 28px); }
.ph-empty small { font-size: 13px; font-weight: 700; color: var(--ink2); }
.ph-empty.cat-dairy { background: radial-gradient(circle at 30% 30%, #fff8e8, #f1e2c4); }
.ph-empty.cat-meat { background: radial-gradient(circle at 30% 30%, #fbe5dc, #eec3b3); }
.ph-empty.cat-feed { background: radial-gradient(circle at 30% 30%, #f6f0d6, #e6d7a5); }
.ph-empty.cat-service { background: radial-gradient(circle at 30% 30%, #e1f1ee, #bfdcd6); }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 2; pointer-events: none; max-width: calc(100% - 60px); }
.card-badges .badge.ok, .card-badges .badge.warn { background: rgba(255, 255, 255, .94); }
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink2); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: transform .15s; }
.fav:hover { transform: scale(1.1); }
.fav.on { color: var(--terra); }
.fav.on .ic { fill: currentColor; }
.heads, .nph { position: absolute; bottom: 10px; z-index: 2; background: rgba(20, 14, 8, .75); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 8px; display: inline-flex; gap: 4px; align-items: center; }
.heads { left: 10px; background: var(--gold); color: #2a1c02; }
.nph { right: 10px; }
.nph .ic { width: 14px; height: 14px; }
.card-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card-t b { font-size: 16px; line-height: 1.25; }
.card-t span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.card-s { font-size: 13.5px; color: var(--ink2); line-height: 1.35; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card-price { font: 700 19px/1.2 var(--f-head); margin-top: 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.card-price small { font: 500 12.5px var(--f-body); color: var(--muted); }
.card-loc { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.card-loc i { font-style: normal; white-space: nowrap; display: inline-flex; gap: 3px; align-items: center; }
.card-loc .ic { width: 14px; height: 14px; }
.fresh { color: var(--ok); font-weight: 600; font-size: 12.5px; }
.chips-mini { display: flex; gap: 4px; flex-wrap: wrap; }
.chips-mini span { display: inline-flex; gap: 3px; align-items: center; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: var(--bg2); color: var(--ink2); }
.chips-mini .ic { width: 12px; height: 12px; }
.zh-strip { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; background: var(--gold-soft); border-radius: 10px; margin-top: 4px; }
.zh-strip .ring { flex: none; }

.scard .card-ph { aspect-ratio: 16 / 8; }
.scard-top { display: flex; gap: 12px; align-items: center; }
.scard-top b { font-size: 15.5px; }
.s-status { font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 2px; }
.s-status.hot { color: var(--terra); }
.scard.hot { border-color: var(--terra); box-shadow: 0 0 0 2px color-mix(in srgb, var(--terra) 22%, transparent), var(--shadow); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px); gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }

/* кольцо прогресса */
.ring { flex: none; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; transition: stroke-dasharray .5s; }
.ring.full .ring-fg { stroke: var(--ok); }
.ring text { font: 700 17px var(--f-head); fill: var(--ink); }
.ring tspan { font-size: 11px; fill: var(--muted); }

/* ---------- цены ---------- */
.prices .sec-head { margin-bottom: 4px; }
.ptable { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: 150px 170px 1fr 1.3fr 120px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.pt { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.pt b { font-size: 15px; }
.pv { display: flex; flex-direction: column; }
.pv b { font: 700 17px var(--f-head); }
.pv small, .pr small { color: var(--muted); font-size: 12.5px; }
.pk { position: relative; height: 26px; background: var(--bg2); border-radius: 8px; overflow: hidden; display: flex; align-items: center; }
.pk i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--gold-soft), var(--gold)); border-radius: 8px; }
.pk b { position: relative; padding-left: 10px; font-size: 13px; }
.pn { font-size: 13px; text-align: right; }

/* как работает */
.how-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 48px; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #2a1c02; display: grid; place-items: center; font: 700 15px var(--f-head); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--line); }
.steps span { color: var(--ink2); font-size: 14px; }
.how-pic { background: var(--surface2); border-radius: var(--r); padding: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink2); }
.lg::before { content: ''; display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--line2); }
.lg.free::before { background: var(--c-free); border-color: var(--c-free-s); }
.lg.taken::before { background: repeating-linear-gradient(45deg, var(--c-taken) 0 3px, color-mix(in srgb, var(--c-taken) 60%, var(--surface)) 3px 6px); }
.lg.sel::before { background: var(--c-sel); }
.lg.mine::before { background: var(--c-mine); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.trust .ic { width: 30px; height: 30px; color: var(--brand); padding: 6px; background: var(--brand-soft); border-radius: 10px; box-sizing: content-box; }
.trust span { font-size: 13.5px; color: var(--ink2); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px; border-radius: 22px; color: #fff;
  background: var(--brand2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M24 22V13C24 5 35 3 39 9C43 15 37 20 32 17C29 15 31 10 35 12M24 13C24 5 13 3 9 9C5 15 11 20 16 17C19 15 17 10 13 12' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") repeat center / 72px 36px; }
.cta h2 { color: #fff; margin-bottom: 4px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .8); }

/* «Куплю» */
.wlist { display: flex; flex-direction: column; gap: 10px; }
.wcard { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--terra); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.w-ic { font-size: 32px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--terra-soft); border-radius: 14px; flex: none; }
.w-b { flex: 1; min-width: 0; }
.w-t { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.w-b p { margin: 4px 0; color: var(--ink2); font-size: 14px; }
.w-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); align-items: center; }
.w-meta b { color: var(--ink); }
.w-meta span { display: inline-flex; gap: 4px; align-items: center; }
.w-meta .ic { width: 14px; height: 14px; }
.w-act { display: flex; gap: 6px; flex: none; }

/* ---------- каталог ---------- */
.cat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.cat-head h1 { margin-bottom: 4px; }
.cat-head p { max-width: 720px; }
.cat-layout { display: grid; grid-template-columns: 290px 1fr; gap: 20px; align-items: start; }
.filters { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow-y: auto; }
.f-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 16px; }
.f-sec { padding: 10px 0; border-top: 1px solid var(--line); }
.f-sec:first-of-type { border-top: 0; }
.f-l { display: block; font-size: 13px; font-weight: 700; color: var(--ink2); margin-bottom: 7px; text-transform: uppercase; letter-spacing: .03em; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.type-chips span { display: inline-flex; gap: 5px; align-items: center; padding: 7px 10px; border-radius: 10px; background: var(--bg2); font-size: 13.5px; font-weight: 600; border: 1.5px solid transparent; }
.type-chips em { font-size: 16px; }
.type-chips input:checked + span { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.age-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; line-height: 1.25; }
.chip b { font-size: 14px; }
.chip small { font-size: 11.5px; color: var(--muted); }
.chip.on { background: var(--gold-soft); border-color: var(--gold); }
.range { display: flex; align-items: center; gap: 6px; }
.range span { color: var(--muted); }
.checks .check { font-size: 14px; }
.checks .ic { color: var(--brand); width: 16px; height: 16px; }
.f-act { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.f-act .btn { flex: 1; }
.res-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.show-mob { display: none !important; }
.f-show { position: sticky; bottom: 0; margin-top: 12px; box-shadow: 0 -6px 16px var(--surface); }
.empty { text-align: center; padding: 50px 20px; color: var(--ink2); }
.empty > .ic { width: 46px; height: 46px; color: var(--muted); margin-bottom: 10px; }
.empty.wide { grid-column: 1 / -1; }
.empty h3, .empty h2 { justify-content: center; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button, .seg label span { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink2); cursor: pointer; display: block; }
.seg button.on, .seg input:checked + span { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg.wide { display: flex; }
.seg.wide label { flex: 1; text-align: center; cursor: pointer; }
.kind-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.kind-chips .chip { flex-direction: row; gap: 4px; white-space: nowrap; font-weight: 600; font-size: 14px; }
.kind-chips .chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* ---------- карточка объявления ---------- */
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs .ic { width: 14px; height: 14px; }
.crumbs span { color: var(--ink2); }
.d-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.d-side { position: sticky; top: 90px; display: flex; flex-direction: column; }
.gal { margin-bottom: 16px; }
.gal-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: #1c160f; box-shadow: var(--shadow); }
.gal-main img, .gal-main video { width: 100%; height: 100%; object-fit: contain; background: #1c160f; }
.gal-main.ph { background: var(--bg2); }
.gal-main.ph .ph-empty { font-size: 90px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.gal-nav.prev { left: 12px; } .gal-nav.next { right: 12px; }
.gal-count { position: absolute; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .6); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumbs button { flex: none; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 2.5px solid transparent; padding: 0; cursor: pointer; background: var(--bg2); }
.gal-thumbs button.on { border-color: var(--gold); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal-vid { display: grid; place-items: center; width: 100%; height: 100%; background: #1c160f; color: #fff; }
.d-title h1 { margin-bottom: 8px; }
.d-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.d-title p { font-size: 14px; line-height: 1.6; }
.d-title .ic { width: 15px; height: 15px; margin: 0 3px 0 6px; }
.d-title .ic:first-child { margin-left: 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.pb-price { font: 700 30px/1.1 var(--f-head); display: flex; align-items: baseline; gap: 8px; }
.pb-price small { font: 500 14px var(--f-body); color: var(--muted); }
.pb-sub { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.pb-act { display: flex; gap: 8px; margin-top: 12px; }
.pb-act .btn { flex: 1; }
.price-mob { display: none; }
.seller-head { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none !important; }
.seller-head > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.seller-head b { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seller .contact { margin-top: 8px; }
.seller-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ok-ic { color: var(--ok); width: 14px; height: 14px; }
.rt { display: inline-flex; gap: 2px; align-items: center; color: var(--gold2); }
.rt .ic { width: 13px; height: 13px; fill: currentColor; }
.stars { display: inline-flex; gap: 1px; color: var(--line2); vertical-align: -3px; }
.stars i .ic { width: 16px; height: 16px; }
.stars.sm i .ic { width: 13px; height: 13px; }
.stars i.on, .stars i.half { color: var(--gold); }
.stars i.on .ic { fill: currentColor; }
.tip { display: flex; gap: 12px; background: var(--brand-soft); border-color: transparent; }
.tip > .ic { color: var(--brand); width: 26px; height: 26px; }
.tip p { font-size: 13.5px; margin: 4px 0; color: var(--ink2); }
.doclist { list-style: none; margin: 0 0 10px; padding: 0; }
.doclist li { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.doclist li .ic { flex: none; margin-top: 2px; }
.doclist li.yes .ic { color: var(--ok); }
.doclist li.no { color: var(--muted); }
.doclist li.no .ic { color: var(--line2); }
.zh-box { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, var(--gold-soft), var(--surface)); border-color: var(--gold); color: var(--ink); text-decoration: none !important; }
.zh-box p { margin: 4px 0 8px; color: var(--ink2); }
.video-box video { width: 100%; border-radius: 12px; background: #000; max-height: 480px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bg2); color: var(--ink2); margin-bottom: 12px; font-size: 14px; }
.banner > .ic { flex: none; margin-top: 1px; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.gold { background: var(--gold-soft); color: var(--ink); }
.banner.gold .ic { color: var(--gold2); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.dark { background: var(--ink); color: var(--bg); }
.banner.sm { padding: 6px 10px; font-size: 12.5px; margin: 6px 0 0; }
.owner { border: 1.5px dashed var(--brand); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.progress { position: relative; height: 22px; background: var(--bg2); border-radius: 11px; overflow: hidden; margin-top: 10px; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--brand); transition: width .2s; }
.progress span { position: relative; display: block; text-align: center; font-size: 12px; font-weight: 700; line-height: 22px; mix-blend-mode: difference; color: #fff; }
.linkbox { display: flex; gap: 8px; align-items: center; font-weight: 600; }

/* ---------- складчина ---------- */
.sojys-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; background: linear-gradient(120deg, var(--surface), var(--gold-soft)); }
.sojys-hero h1 { font-size: clamp(22px, 3vw, 34px); }
.sh-pic { background: var(--surface); border-radius: var(--r); padding: 10px; }
.sd-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.sd-head h1 { margin: 8px 0 4px; }
.sd-status { font: 600 17px var(--f-head); color: var(--terra); margin: 0 0 4px; }
.sd-head .muted { margin: 0; }
.sd-head .muted .ic { width: 15px; height: 15px; margin-right: 3px; }
.sd-ring .ring text { font-size: 18px; }
.sd-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.sd-pick-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.sd-pick-head h3 { margin: 0; }
.sd-side { display: flex; flex-direction: column; }
.sticky-sum { position: sticky; top: 90px; border: 2px solid var(--gold); }
.prow2 { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.pn2 { display: flex; flex-direction: column; }
.pn2 b { font-size: 14.5px; }
.pn2 small { color: var(--muted); font-size: 12px; }
.pp { font-weight: 700; font-size: 14px; text-align: right; }
.slots { grid-column: 1 / -1; display: flex; gap: 6px; }
.slot { flex: 1; min-height: 34px; border-radius: 9px; border: 1.5px solid var(--c-free-s); background: var(--c-free); font-size: 12.5px; font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }
.slot:hover:not(:disabled) { border-color: var(--gold2); }
.slot.sel { background: var(--c-sel); border-color: var(--gold2); color: #2a1c02; }
.slot.taken { background: var(--bg2); border-color: var(--line); color: var(--muted); cursor: not-allowed; font-weight: 500; }
.slot.mine { background: var(--c-mine); border-color: var(--brand); color: #05302d; }
.slot.na { background: transparent; border-style: dashed; border-color: var(--line); color: var(--muted); cursor: default; }
.prow2.ex { grid-template-columns: 1fr auto 92px; }
.prow2.ex .pp { grid-column: 2; grid-row: 1; }
.prow2.ex .slots { grid-column: 3; grid-row: 1; }
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.mrow.total { border-bottom: 0; font-size: 17px; padding-top: 10px; }
.mrow.total b { font: 700 20px var(--f-head); }
.mine-box { border-color: var(--brand); }
.own-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.own-stats div { background: var(--surface); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.own-stats b { font: 700 19px var(--f-head); }
.own-stats span { font-size: 12.5px; color: var(--muted); }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 6px 8px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* 12 равных долей */
.share-pie { width: 100%; max-width: 360px; display: block; margin: 0 auto; user-select: none; }
.share-pie .seg path { fill: var(--c-free); stroke: var(--surface); stroke-width: 2; transition: fill .15s; }
.share-pie .seg text { fill: var(--ink); font: 700 15px var(--f-body); text-anchor: middle; pointer-events: none; }
.share-pie .seg[tabindex] { cursor: pointer; outline: none; }
.share-pie .seg[tabindex]:hover path, .share-pie .seg[tabindex]:focus-visible path { fill: color-mix(in srgb, var(--gold) 45%, var(--c-free)); }
.share-pie .seg.taken path { fill: var(--c-taken); }
.share-pie .seg.taken text { fill: var(--ink2); }
.share-pie .seg.mine path { fill: var(--c-mine); }
.share-pie .seg.sel path { fill: var(--c-sel); }
.pie-c1 { font: 700 34px var(--f-head); fill: var(--ink); text-anchor: middle; }
.pie-c1 tspan { font-size: 18px; fill: var(--muted); }
.pie-c2 { font: 600 12.5px var(--f-body); fill: var(--muted); text-anchor: middle; }
.share-info { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.share-info > div { flex: 1 1 100px; background: var(--gold-soft); border-radius: 12px; padding: 9px 11px; display: flex; flex-direction: column; }
.share-info b { font: 700 16px var(--f-head); }
.share-info span { font-size: 12px; color: var(--ink2); }
.share-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-weight: 600; }
.share-pick .stepper { width: 160px; }
.share-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.share-chips .slot { display: flex; align-items: center; gap: 6px; text-align: left; min-height: 38px; }
.share-chips .slot i { font-style: normal; font-weight: 700; color: var(--muted); }

/* схема туши */
.carcass { width: 100%; height: auto; display: block; user-select: none; }
.carcass .creg path { fill: var(--c-free); stroke: var(--surface); stroke-width: 3.5; stroke-linejoin: round; transition: fill .15s; }
.carcass .creg text { fill: var(--ink); font-family: var(--f-body); font-weight: 700; text-anchor: middle; pointer-events: none; }
.carcass .creg.zh path { stroke: var(--surface); }
.carcass .creg[tabindex] { cursor: pointer; outline: none; }
.carcass .creg[tabindex]:hover path, .carcass .creg[tabindex]:focus-visible path { fill: color-mix(in srgb, var(--gold) 45%, var(--c-free)); }
.carcass .creg.half path { fill: color-mix(in srgb, var(--c-taken) 45%, var(--c-free)); }
.carcass .creg.taken path { fill: url(#hatch); }
.carcass .creg.taken text { fill: var(--ink2); }
.carcass .creg.mine path, .carcass .creg.mine-half path { fill: var(--c-mine); }
.carcass .creg.sel path { fill: var(--c-sel); }
.carcass .creg.na path { fill: var(--c-na); }
.carcass .creg.na text { fill: var(--muted); font-weight: 500; }
.carcass .creg.ex:not(.sirak) path { fill-opacity: .92; }
.carcass .sirak path { stroke-width: 2.5; }
.carcass .hatch-bg { fill: var(--c-taken); }
.carcass .hatch-ln { stroke: color-mix(in srgb, var(--c-taken) 55%, var(--surface)); stroke-width: 3; }
.carcass .cfar path { fill: color-mix(in srgb, var(--c-taken) 40%, var(--bg2)); }
.carcass .ctail { fill: none; stroke: var(--c-taken); stroke-width: 5; stroke-linecap: round; }
.carcass .ctuft, .carcass .cear { fill: var(--c-taken); }
.carcass .ceye { fill: var(--ink); }
.carcass .cdot { stroke-width: 1.6; stroke: var(--gold2); fill: var(--surface); pointer-events: none; }
.carcass .cdot.taken { fill: var(--ink2); stroke: var(--ink2); }
.carcass .cdot.mine { fill: var(--brand); stroke: var(--brand); }
.carcass .cdot.sel { fill: var(--terra); stroke: var(--terra); }

/* ---------- товары ---------- */
.order-box { border: 2px solid var(--gold); }
.stepper { display: flex; }
.stepper button { width: 46px; border: 1.5px solid var(--line2); background: var(--surface2); font-size: 20px; cursor: pointer; }
.stepper button:first-child { border-radius: 11px 0 0 11px; }
.stepper button:last-child { border-radius: 0 11px 11px 0; }
.stepper .inp { border-radius: 0; text-align: center; border-left: 0; border-right: 0; font-weight: 700; font-size: 17px; }
.radios { display: flex; flex-direction: column; gap: 6px; }
.radios label span { display: block; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; font-size: 14px; font-weight: 600; }
.radios input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.my-orders { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.st { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg2); white-space: nowrap; }
.st-new { background: var(--gold-soft); color: var(--gold2); }
.st-accepted { background: var(--brand-soft); color: var(--brand); }
.st-done { background: var(--ok-soft); color: var(--ok); }
.st-rejected, .st-cancelled { background: var(--bad-soft); color: var(--bad); }

/* ---------- выбор места (КАТО): кнопка и окно «Облыс | Аудан | Ауыл» ---------- */
.geo-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.geo-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-btn > .ic { color: var(--brand); flex: none; }
.geo-btn > .ic:last-child { color: var(--muted); }
.geo-btn.inp:hover { border-color: var(--brand); }
.geo-btn.inp.is-empty span { color: var(--muted); }
.geo-btn.link { width: auto; max-width: 320px; background: none; border: 0; padding: 6px 4px; font-weight: 600; }
.geo-btn.link span { border-bottom: 1.5px dotted currentColor; }
.geo-btn.link:hover { color: var(--brand); }
.plc.compact { display: inline-flex; }
.gp-wrap { position: fixed; inset: 0; z-index: 120; }
.gp { position: fixed; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px; max-height: min(560px, calc(100vh - 24px)); }
.gp::before { content: ''; position: absolute; top: -8px; left: 28px; width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--line2); border-top: 1px solid var(--line2); transform: rotate(45deg); }
.gp-top { display: none; }
.gp-search { position: relative; margin-bottom: 12px; }
.gp-search > .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.gp-search .inp { padding-right: 42px; min-height: 48px; font-size: 16px; }
.gp-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.gp-cols[hidden] { display: none; }
.gp-col, .gp-results { border: 1px solid var(--line2); border-radius: 12px; overflow-y: auto; min-height: 0; height: 380px; background: var(--surface); }
.gp-results { height: auto; max-height: 420px; }
.gp-col[data-col="d"] { border-color: var(--brand); }
.gp-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 4px; padding: 9px 12px; background: var(--surface2); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .03em; }
.gp-back { display: none; border: 0; background: none; padding: 2px; cursor: pointer; color: var(--brand); }
.gp-it { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 14px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.gp-it span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gp-it small { font-size: 12px; color: var(--muted); }
.gp-it .ic { width: 15px; height: 15px; color: var(--muted); flex: none; }
.gp-it:hover { background: var(--bg2); }
.gp-it.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.gp-it.on .ic { color: var(--brand); }
.gp-g { padding: 10px 14px 4px; font-size: 11.5px; font-weight: 700; color: var(--terra); text-transform: uppercase; letter-spacing: .03em; }
.gp-hint { padding: 14px; color: var(--muted); font-size: 14px; margin: 0; }
.gp-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.gp-sum { flex: 1; min-width: 0; font-weight: 600; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-foot .btn { min-width: 150px; }
@media (max-width: 640px) {
  .gp { inset: 0; border-radius: 0; max-height: none; width: auto !important; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
  .gp::before { display: none; }
  .gp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 17px; }
  .gp-cols { grid-template-columns: 1fr; }
  .gp-col { height: auto; flex: 1; }
  .gp[data-step="r"] .gp-col:not([data-col="r"]), .gp[data-step="d"] .gp-col:not([data-col="d"]), .gp[data-step="v"] .gp-col:not([data-col="v"]) { display: none; }
  .gp-back { display: inline-flex; }
  .gp-col[data-col="r"] .gp-back { display: none; }
  .gp-results { flex: 1; max-height: none; }
  .gp-foot .btn { min-width: 0; flex: 1; }
  .gp-sum { display: none; }
  .plc.compact { display: flex; width: 100%; }
  .geo-btn.link { max-width: none; }
}
select.inp:disabled { opacity: .55; }

/* ---------- профиль продавца ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr 280px; gap: 20px; align-items: center; }
.profile-head h1 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ph-info p .ic { width: 15px; height: 15px; margin-right: 3px; }
.ph-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.review p { margin: 6px 0; }
.star-pick { display: flex; gap: 4px; margin-bottom: 10px; }
.star-pick button { border: 0; background: none; cursor: pointer; color: var(--line2); padding: 2px; }
.star-pick button .ic { width: 32px; height: 32px; }
.star-pick button.on { color: var(--gold); }
.star-pick button.on .ic { fill: currentColor; }

/* ---------- формы ---------- */
.form-page { max-width: 860px; }
.fbox h3 { font: 600 17px var(--f-head); margin-bottom: 14px; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 14px; flex: none; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tiles.kinds { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: 14px; }
.tile { cursor: pointer; }
.tile span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface2); text-align: center; transition: border .15s, background .15s; height: 100%; }
.tile em { font-size: 30px; }
.tile b { font-size: 14px; }
.tile input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.kk-age { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 11px; background: var(--gold-soft); font: 700 18px var(--f-head); color: var(--terra); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-c { cursor: pointer; }
.chip-c span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; background: var(--surface); }
.chip-c input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.chip-c input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.zh-opt { background: var(--gold-soft); border-radius: 14px; padding: 12px 14px; margin-top: 4px; }
.zh-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.zh-split div { background: var(--surface); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; font-size: 13px; }
.zh-split small { color: var(--muted); }
.zh-split span { font-weight: 700; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price-grid label { display: flex; flex-direction: column; gap: 5px; }
.price-grid label > span { display: flex; flex-direction: column; line-height: 1.2; }
.price-grid small { color: var(--muted); font-size: 12px; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-pick label { cursor: pointer; }
.mode-pick span { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); height: 100%; }
.mode-pick small { color: var(--muted); }
.mode-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.media-fld .mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.mthumb, .madd { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg2); }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mthumb.main { outline: 2.5px solid var(--gold); outline-offset: -2.5px; }
.mthumb.up { display: grid; align-items: center; padding: 10px; }
.mdel { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mdel .ic { width: 15px; height: 15px; }
.mmain, .mfirst { position: absolute; left: 5px; bottom: 5px; background: var(--gold); color: #2a1c02; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 0; }
.mfirst { background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; }
.madd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line2); background: var(--surface2); cursor: pointer; color: var(--ink2); font-size: 13px; font-weight: 600; text-align: center; padding: 6px; }
.madd:hover { border-color: var(--brand); color: var(--brand); }
.madd .ic { width: 26px; height: 26px; }
.submit-bar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 35%); display: flex; justify-content: flex-end; z-index: 5; }
.add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.add-tile { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none !important; transition: transform .15s, border .15s; margin: 0; }
.add-tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.add-tile em { font-style: normal; font-size: 36px; }
.add-tile b { font: 600 17px var(--f-head); }
.add-tile span { color: var(--ink2); font-size: 14px; }

/* вход */
.auth { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; padding: 26px; }
.auth-card h1 { text-align: center; }
.auth-mark { display: flex; justify-content: center; margin-bottom: 12px; }
.auth-mark .logo-mark { width: 56px; height: 56px; }
.auth-links { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; }
.wall { text-align: center; max-width: 560px; margin: 30px auto; padding: 30px; background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.wall-mark .logo-mark { width: 64px; height: 64px; margin: 0 auto 14px; }

/* кабинет */
.cab-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cab-head h1 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; font-size: 22px; }
.cab-head p { margin: 0; }
.cab-act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 4px 0 16px; padding-bottom: 4px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; color: var(--ink2); font-weight: 600; font-size: 14.5px; white-space: nowrap; border-bottom: 2.5px solid transparent; text-decoration: none; margin-bottom: -5px; }
.tabs a.on { color: var(--brand); border-color: var(--brand); }
.cnt { font-style: normal; font-size: 11.5px; background: var(--bg2); color: var(--ink2); border-radius: 999px; padding: 1px 7px; }
.cnt.hot { background: var(--terra); color: #fff; }
.my-item, .order, .mod-item { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 10px; }
.my-item.slim { padding: 10px 14px; }
.mi-ph { width: 92px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--bg2); flex: none; display: block; }
.mi-ph img { width: 100%; height: 100%; object-fit: cover; }
.mi-ph .ph-empty { font-size: 28px; }
.mi-ph .ph-empty small { display: none; }
.mi-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mi-b > a { color: var(--ink); }
.mi-st { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.mi-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; flex: none; }
.notifs { display: flex; flex-direction: column; gap: 6px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.notif.new { border-color: var(--gold); background: var(--gold-soft); }
.n-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.n-b { display: flex; flex-direction: column; gap: 2px; }
.n-b small { color: var(--muted); }
.doc-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.doc-thumbs a { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--ink2); }
.doc-thumbs img { width: 120px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }

/* помощь */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help ol, .help ul { padding-left: 20px; margin: 0; }
.help li { margin-bottom: 6px; }
.help-carcass { max-width: 620px; margin: 10px auto; }
.age-table { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.age-col { background: var(--surface2); border-radius: 12px; padding: 12px; }
.age-col h4 { margin-bottom: 8px; }
.age-col div { display: flex; flex-direction: column; padding: 5px 0; border-top: 1px dashed var(--line); }
.age-col b { color: var(--terra); }
.age-col span { font-size: 12.5px; color: var(--muted); }
.tip-box { background: var(--brand-soft); border-color: transparent; }

/* окна, тосты */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(20, 12, 4, .55); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .15s; }
.modal-wrap.show { opacity: 1; }
.modal { position: relative; background: var(--surface); border-radius: 20px; padding: 22px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.wide { max-width: 720px; }
.modal-x { position: absolute; top: 10px; right: 10px; border: 0; background: var(--bg2); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ask-text { font-size: 16px; padding-right: 30px; }
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 480px); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 500; opacity: 0; transform: translateY(10px); transition: all .25s; pointer-events: auto; }
.toast.show { opacity: 1; transform: none; }
.toast .ic { color: var(--gold); }
.toast.err { background: var(--bad); color: #fff; }
.toast.err .ic { color: #fff; }
.skeleton { height: 420px; border-radius: var(--r); background: linear-gradient(90deg, var(--bg2), var(--surface2), var(--bg2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.boot { min-height: 70vh; }
.loading { min-height: 50vh; display: grid; place-items: center; color: var(--brand); }
.loading .spin { width: 34px; height: 34px; border-width: 3px; }

/* подвал */
.foot { margin-top: 30px; background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 20px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 420px; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col h4 { margin-bottom: 4px; }
.foot-col a { color: var(--ink2); font-size: 14px; }
.foot-bottom { padding-top: 14px; padding-bottom: 24px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.tabbar { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
  .addbtn span, .logo-text small { display: none; }
  .top-in { gap: 12px; }
}
@media (max-width: 1100px) {
  .mainnav a { padding: 8px 7px; font-size: 13.5px; }
  .uname { display: none; }
  .prow { grid-template-columns: 130px 150px 1fr 110px; }
  .prow .pr { display: none; }
  .age-table { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .mainnav, .addbtn, .uname, .logo-text small { display: none; }
  .subnav { display: block; border-top: 1px solid var(--line); }
  .subnav-in { display: flex; gap: 4px; overflow-x: auto; padding: 6px 12px; scrollbar-width: none; }
  .subnav-in::-webkit-scrollbar { display: none; }
  .subnav a { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--bg2); color: var(--ink2); font-weight: 600; font-size: 13.5px; text-decoration: none; }
  .subnav a.on { background: var(--brand); color: var(--on-brand); }
  .top-in { height: 58px; gap: 10px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(40, 25, 5, .08); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; position: relative; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--brand); }
  .tabbar .tab-add .ic { width: 44px; height: 44px; padding: 10px; border-radius: 15px; background: var(--gold); color: #2a1c02; margin-top: -18px; box-shadow: 0 4px 14px color-mix(in srgb, var(--gold) 55%, transparent); }
  .tdot { position: absolute; top: 4px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: var(--terra); }
  body { padding-bottom: 72px; }
  #toasts { bottom: 86px; }
  .submit-bar { bottom: 64px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat:first-child { grid-row: auto; grid-column: span 2; min-height: 180px; }
  .cat { min-height: 130px; }
  .cat-layout, .d-layout, .sd-layout, .how-grid, .sojys-hero, .help-grid { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 90; border-radius: 0; max-height: none; transform: translateX(-100%); transition: transform .25s; padding-bottom: 90px; }
  .filters.open { transform: none; }
  .show-mob { display: inline-flex !important; }
  .btn.block.show-mob { display: flex !important; }
  .d-side { position: static; }
  .price-desk { display: none; }
  .price-mob { display: block; }
  .trust { grid-template-columns: 1fr 1fr; }
  .profile-head { grid-template-columns: auto 1fr; }
  .ph-contact { grid-column: 1 / -1; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .sticky-sum { position: static; }
  .sd-side { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hero-in { padding: 30px 16px 24px; }
  .hs-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px 22px; }
  .hero-stats b { font-size: 21px; }
  .lang button { padding: 5px 7px; }
  .logo-text { font-size: 17px; }
  .logo-mark { width: 34px; height: 34px; }
  .cols2, .cols3 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid.cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid.cards.sm { grid-template-columns: 1fr 1fr; }
  .card-b { padding: 10px; }
  .card-t { flex-direction: column; gap: 0; }
  .card-t b { font-size: 14.5px; }
  .card-price { font-size: 16px; }
  .card-s { font-size: 12.5px; }
  .fav { width: 34px; height: 34px; }
  .scard-top .ring { width: 46px; height: 46px; }
  .hscroll { grid-auto-columns: 82%; }
  .prow { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .prow .pk { grid-column: 1 / -1; }
  .prow .pn { display: none; }
  .specs { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .zh-split, .price-grid { grid-template-columns: 1fr 1fr; }
  .mode-pick { grid-template-columns: 1fr; }
  .wcard { flex-wrap: wrap; }
  .w-act { width: 100%; }
  .w-act .btn { flex: 1; }
  .my-item, .order, .mod-item { flex-wrap: wrap; }
  .mi-act { width: 100%; justify-content: flex-start; }
  .age-table { grid-template-columns: 1fr 1fr; }
  .sd-head { align-items: flex-start; }
  .sd-ring .ring { width: 70px; height: 70px; }
  .cat-head { flex-direction: column; }
  .box { padding: 14px; }
  .gal-main { border-radius: 14px; }
  .gal-nav { width: 36px; height: 36px; }
  .cta { padding: 20px; }
  .own-stats b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
