/* Sallekha web (server/web/): the design system, approved in design/web-mockups.
   Brand: Navy Pro (navy #0F1B3D, orange #FF6B00, gold #FFC93C), Cairo 400 + 700 only.
   Spacing scale: 4 8 12 16 24 32 48 64. Logical properties everywhere, so RTL and LTR share it. */
@font-face { font-family: Cairo; font-weight: 400; font-display: swap; src: url(/_s/fonts/Cairo-400.ttf) format('truetype'); }
@font-face { font-family: Cairo; font-weight: 700; font-display: swap; src: url(/_s/fonts/Cairo-700.ttf) format('truetype'); }

:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --navy: #0F1B3D; --navy-2: #1E3A8A; --orange: #FF6B00; --orange-soft: #FFE8D6; --gold: #FFC93C; --gold-soft: #FFF3C4;
  --red: #E63946;
  --canvas: #F5F7FB; --surface: #FFFFFF; --surface-2: #EEF1F8; --line: #E6E9F2; --ink: #0F1B3D; --muted: #5E6888;
  --focus: #3B82F6;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --shadow-1: 0 1px 2px rgb(15 27 61 / .06), 0 1px 3px rgb(15 27 61 / .05);
  --shadow-2: 0 6px 16px rgb(15 27 61 / .08), 0 2px 4px rgb(15 27 61 / .05);
  --shadow-3: 0 18px 40px rgb(15 27 61 / .14);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
[data-theme='dark'] {
  --canvas: #0A1230; --surface: #121C3F; --surface-2: #1A2650; --line: #243159; --ink: #EEF2FB; --muted: #A2ABC7;
  --navy-2: #8EA8F0; --orange-soft: #3A2414; --gold-soft: #3A3216;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4); --shadow-2: 0 6px 16px rgb(0 0 0 / .35); --shadow-3: 0 18px 40px rgb(0 0 0 / .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Cairo, 'Segoe UI', Tahoma, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--canvas); }
b, strong, h1, h2, h3, h4 { font-weight: 700; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.wrap { width: min(1240px, 100% - 2 * var(--s4)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--surface); border-block-end: 1px solid var(--line); }
.hdr__in { height: var(--header-h); display: flex; align-items: center; gap: var(--s4); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 40px; width: auto; }
.logo .logo--dark { display: none; }
[data-theme='dark'] .logo .logo--light { display: none; }
[data-theme='dark'] .logo .logo--dark { display: block; }
.hdr__actions { display: flex; align-items: center; gap: var(--s2); margin-inline-start: auto; }
.ibtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; position: relative; transition: background .15s; }
.ibtn:hover { background: var(--surface-2); }
.ibtn .dot { position: absolute; inset-block-start: 9px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--surface); }
.lang { font-size: 14px; color: var(--muted); padding-inline: var(--s2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); height: 44px; padding-inline: var(--s5); border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--post { background: var(--orange); color: var(--navy); box-shadow: 0 4px 12px rgb(255 107 0 / .28); }
.btn--post:hover { box-shadow: 0 6px 18px rgb(255 107 0 / .38); }
.btn--navy { background: var(--navy); color: #fff; }
[data-theme='dark'] .btn--navy { background: #2B4BB0; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--block { width: 100%; }
.btn--lg { height: 52px; font-size: 16px; }

/* ---------- Sections ---------- */
.sec { padding-block: var(--s7) 0; }
.sec__h { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-block-end: var(--s4); }
.sec__h h2 { font-size: 22px; line-height: 1.3; }
.sec__h p { color: var(--muted); font-size: 14px; }
.more { display: inline-flex; align-items: center; gap: var(--s1); color: var(--navy-2); font-weight: 700; font-size: 14px; }
.more .icon { transition: transform .2s var(--ease); }
.more:hover .icon { transform: translateX(-3px); }
[dir='ltr'] .more .icon { transform: scaleX(-1); }
[dir='ltr'] .more:hover .icon { transform: scaleX(-1) translateX(-3px); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 20px; }
.badge--gold { background: var(--gold); color: #3B2A00; }
.badge--navy { background: var(--navy); color: #fff; }
.badge--soft { background: var(--surface-2); color: var(--muted); }

/* Listing card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5) var(--s4); }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card__ph { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23B5BCD2' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E") center no-repeat; overflow: hidden; }
.card__ph img.broken { visibility: hidden; }
.card__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__ph img { transform: scale(1.04); }
.card__ph .badge { position: absolute; inset-block-start: var(--s3); inset-inline-start: var(--s3); }
.card__n { position: absolute; inset-block-end: var(--s2); inset-inline-start: var(--s2); background: rgb(10 16 40 / .6); color: #fff; font-size: 12px; padding: 0 8px; border-radius: 999px; display: flex; align-items: center; gap: 4px; }
.fav { position: absolute; inset-block-start: var(--s2); inset-inline-end: var(--s2); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: transform .15s var(--ease); }
.fav:hover { transform: scale(1.08); }
.fav .icon { width: 18px; height: 18px; }
.fav.on { color: var(--red); } .fav.on .icon { fill: currentColor; }
.card__b { padding: var(--s3) var(--s4) var(--s4); display: flex; flex-direction: column; gap: 2px; }
.card__p { font-size: 19px; font-weight: 700; color: var(--ink); }
.card__p small { font-size: 13px; font-weight: 400; color: var(--muted); }
.card__t { font-size: 15px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 3em; }
.card__m { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-block-start: var(--s2); color: var(--muted); font-size: 13px; }
.card__m span { display: flex; align-items: center; gap: 4px; min-width: 0; }
.card__m span:last-child { white-space: nowrap; flex: none; }
.card__m span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Horizontal strip (used cars…) */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * var(--s4)) / 5); gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: var(--s2); scrollbar-width: none; }
.strip > * { scroll-snap-align: start; }

/* App band */
.appband { margin-block-start: var(--s8); background: var(--surface); border-block: 1px solid var(--line); }
.appband__in { display: grid; grid-template-columns: 1fr auto; gap: var(--s6); align-items: center; padding-block: var(--s6); }
.appband h2 { font-size: 24px; }
.appband p { color: var(--muted); }
.stores { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.stores img { height: 46px; width: auto; }
.qr { width: 96px; height: 96px; border-radius: var(--r); background: #fff; padding: 6px; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.ftr { background: var(--navy); color: #C5CCE3; margin-block-start: var(--s8); font-size: 14px; }
.appband + .ftr { margin-block-start: 0; }
.ftr__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s6); padding-block: var(--s7) var(--s6); }
.ftr__brand img { height: 44px; width: auto; }
.ftr__brand p { margin-block: var(--s3) var(--s4); max-width: 34ch; line-height: 1.7; }
.ftr h4 { color: #fff; font-size: 15px; margin-block-end: var(--s3); }
.ftr nav a { display: block; padding-block: 5px; transition: color .15s; }
.ftr nav a:hover { color: #fff; }
.social { display: flex; gap: var(--s2); }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: #fff; transition: background .2s; }
.social a:hover { background: var(--orange); color: var(--navy); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.ftr__contact a { display: flex; align-items: center; gap: var(--s2); padding-block: 5px; }
.ftr__bot { border-block-start: 1px solid rgb(255 255 255 / .1); padding-block: var(--s4); display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; color: #8E97B8; font-size: 13px; }
.ftr__bot .row { display: flex; gap: var(--s4); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid rgb(255 255 255 / .18); border-radius: 999px; color: #fff; }

/* ---------- Results ---------- */
.crumbs { display: flex; gap: var(--s2); align-items: center; color: var(--muted); font-size: 13px; padding-block: var(--s4) 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 14px; height: 14px; }
[dir='ltr'] .crumbs .icon { transform: scaleX(-1); }
.rhead { display: flex; align-items: center; gap: var(--s4); padding-block: var(--s3) var(--s5); }
.rhead__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; }
.rhead__ic .icon { width: 28px; height: 28px; }
.rhead h1 { font-size: 28px; line-height: 1.25; }
.rhead p { color: var(--muted); font-size: 14px; }
.subcats { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding-block-end: var(--s5); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: var(--s4); border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme='dark'] .chip.on { background: #2B4BB0; border-color: #2B4BB0; }
.chip .x { opacity: .7; }
.rlayout { display: grid; grid-template-columns: 280px 1fr; gap: var(--s6); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + var(--s4)); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: var(--s2) var(--s5) var(--s5); }
.fgroup { padding-block: var(--s4); border-block-end: 1px solid var(--line); }
.fgroup:last-of-type { border: 0; }
.fgroup h3 { font-size: 15px; margin-block-end: var(--s3); display: flex; justify-content: space-between; }
.fgroup h3 small { font-weight: 400; color: var(--navy-2); font-size: 13px; cursor: pointer; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); }
.input, .select { height: 44px; border: 1px solid var(--line); border-radius: var(--r); padding-inline: var(--s3); background: var(--surface); width: 100%; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgb(59 130 246 / .18); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235E6888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-inline-end: 36px; }
[dir='ltr'] .select { background-position: right 12px center; }
.seg { display: flex; background: var(--surface-2); border-radius: var(--r); padding: 4px; gap: 4px; }
.seg label { flex: 1; text-align: center; padding-block: 6px; border-radius: 9px; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg label.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-1); }
.check { display: flex; align-items: center; gap: var(--s2); padding-block: 5px; font-size: 14px; cursor: pointer; }
.check i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #B5BCD2; display: grid; place-items: center; flex: none; }
.check.on i { background: var(--navy); border-color: var(--navy); }
.check.on i::after { content: ''; width: 10px; height: 5px; border: 2px solid #fff; border-block-start: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check small { margin-inline-start: auto; color: var(--muted); }
.rbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-block-end: var(--s4); }
.rbar__l { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.rbar__count { font-size: 14px; color: var(--muted); }
.rbar__count b { color: var(--ink); }
.sort { display: flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--muted); }
.sort .select { height: 40px; width: auto; min-width: 170px; color: var(--ink); }
.views { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.views button { width: 40px; height: 38px; border: 0; background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.views button.on { background: var(--surface-2); color: var(--ink); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.pager { display: flex; justify-content: center; align-items: center; gap: var(--s2); margin-block-start: var(--s6); }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; padding-inline: var(--s3); }
.pager a:hover { border-color: var(--muted); }
.pager .on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .gap { border: 0; background: none; }
.pager .icon { width: 18px; height: 18px; }
[dir='ltr'] .pager .icon { transform: scaleX(-1); }
.mbar { display: none; }

/* Skeletons */
.sk { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%) 0 0 / 200% 100%; animation: sk 1.3s linear infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }
.card--sk .card__ph { animation: sk 1.3s linear infinite; background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%) 0 0 / 200% 100%; }
.card--sk:hover { transform: none; box-shadow: var(--shadow-1); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Listing page ---------- */
.lp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s6); align-items: start; padding-block-start: var(--s4); }
.gal--one { grid-template-columns: 1fr !important; }
.gal { display: grid; grid-template-columns: 1fr 140px; gap: var(--s2); border-radius: var(--r-xl); overflow: hidden; }
.gal__main { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumbs { display: grid; grid-auto-rows: 1fr; gap: var(--s2); }
.gal__thumbs a { position: relative; overflow: hidden; background: var(--surface-2); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gal__thumbs a:not(.on) img { opacity: .78; }
.gal__thumbs a:hover img { opacity: 1; }
.gal__thumbs a.on { box-shadow: inset 0 0 0 3px var(--orange); }
.gal__thumbs a.on img { opacity: 1; }
.gal__all { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(10 16 40 / .55); color: #fff; font-weight: 700; }
.gal__count { position: absolute; inset-block-end: var(--s4); inset-inline-start: var(--s4); background: rgb(10 16 40 / .65); color: #fff; padding: 2px 12px; border-radius: 999px; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.gal__nav { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-2); }
.gal__nav--a { inset-inline-start: var(--s4); } .gal__nav--b { inset-inline-end: var(--s4); }
[dir='ltr'] .gal__nav .icon { transform: scaleX(-1); }
.lp__h { padding-block: var(--s5) var(--s4); border-block-end: 1px solid var(--line); }
.lp__h h1 { font-size: 26px; line-height: 1.4; }
.lp__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); color: var(--muted); font-size: 14px; margin-block-start: var(--s2); }
.lp__meta span { display: flex; align-items: center; gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); padding-block: var(--s5); border-block-end: 1px solid var(--line); }
.fact { background: var(--surface); border-radius: var(--r); padding: var(--s3) var(--s4); box-shadow: var(--shadow-1); }
.fact small { display: block; color: var(--muted); font-size: 12px; }
.fact b { font-size: 16px; }
.lp__sec { padding-block: var(--s5); border-block-end: 1px solid var(--line); }
.lp__sec h2 { font-size: 18px; margin-block-end: var(--s3); }
.lp__desc { white-space: pre-line; line-height: 1.9; max-width: 70ch; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s6); }
.specs div { display: flex; justify-content: space-between; padding-block: var(--s3); border-block-end: 1px dashed var(--line); font-size: 15px; }
.specs dt { color: var(--muted); } .specs dd { margin: 0; font-weight: 700; }
.side { position: sticky; top: calc(var(--header-h) + var(--s4)); display: flex; flex-direction: column; gap: var(--s4); }
.box { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: var(--s5); }
.box--price .p { font-size: 32px; font-weight: 700; line-height: 1.2; }
.box--price .p small { font-size: 16px; font-weight: 400; color: var(--muted); }
.box--price .tags { display: flex; gap: var(--s2); margin-block: var(--s2) var(--s4); }
.box .btns { display: grid; gap: var(--s2); }
.box .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.seller { display: flex; align-items: center; gap: var(--s3); }
.ava { width: 52px; height: 52px; border-radius: 50%; background: var(--orange-soft); color: #9A3412; display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
[data-theme='dark'] .ava { color: var(--orange); }
.seller b { display: flex; align-items: center; gap: 6px; }
.seller small { color: var(--muted); font-size: 13px; display: block; }
.verified { color: var(--navy-2); }
.note { display: flex; gap: var(--s3); font-size: 13px; color: var(--muted); line-height: 1.7; }
.note .icon { color: var(--orange); margin-block-start: 3px; }
.note b { color: var(--ink); display: block; font-size: 14px; }
.mapbox { border-radius: var(--r-lg); overflow: hidden; height: 180px; background: var(--surface-2); position: relative; display: grid; place-items: center; color: var(--muted); }
.mapbox::before { content: ''; position: absolute; inset: 0; opacity: .55; background: repeating-linear-gradient(45deg, transparent 0 22px, var(--line) 22px 23px), repeating-linear-gradient(-45deg, transparent 0 34px, var(--line) 34px 35px); }
.mapbox .pin { position: relative; width: 96px; height: 96px; border-radius: 50%; background: rgb(255 107 0 / .15); border: 2px solid rgb(255 107 0 / .5); display: grid; place-items: center; }
.mapbox .pin .icon { color: var(--orange); width: 26px; height: 26px; }
.mapbox span { position: absolute; inset-block-end: var(--s3); background: var(--surface); padding: 2px 12px; border-radius: 999px; font-size: 13px; color: var(--ink); box-shadow: var(--shadow-1); }
.lp__report { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding-block: var(--s4); }
.lp__report a { display: flex; align-items: center; gap: 6px; }
.lp__report a:hover { color: var(--red); }
.cta-bar { display: none; }

/* ---------- Post an ad ---------- */
.post { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); align-items: start; padding-block: var(--s5) var(--s8); }
.steps { display: flex; gap: var(--s2); margin-block-end: var(--s5); counter-reset: s; }
.steps li { list-style: none; flex: 1; display: flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--muted); padding-block-end: var(--s2); border-block-end: 3px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2); }
.steps li.done { color: var(--ink); border-color: var(--navy); }
.steps li.done::before { background: var(--navy); color: #fff; content: '✓'; }
.steps li.on { color: var(--ink); font-weight: 700; border-color: var(--orange); }
.steps li.on::before { background: var(--orange); color: var(--navy); }
.steps { padding: 0; margin-block-start: 0; }
.panel { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: var(--s5) var(--s6); margin-block-end: var(--s4); }
.panel h2 { font-size: 18px; margin-block-end: var(--s1); }
.panel > p { color: var(--muted); font-size: 14px; margin-block-end: var(--s4); }
.catpick { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-lg); }
.catpick .cat__ic { width: 44px; height: 44px; }
.catpick b { display: block; } .catpick small { color: var(--muted); }
.catpick .btn { margin-inline-start: auto; height: 36px; padding-inline: var(--s4); font-size: 14px; }
.photos { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s3); }
.ph { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .badge { position: absolute; inset-block-end: 6px; inset-inline-start: 6px; }
.ph__x { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgb(10 16 40 / .65); color: #fff; display: grid; place-items: center; border: 0; }
.ph__x .icon { width: 14px; height: 14px; }
.ph--add { border: 2px dashed #B5BCD2; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--navy-2); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .2s, background .2s; }
.ph--add:hover { border-color: var(--navy-2); background: var(--surface-2); }
.ph--up::after { content: ''; position: absolute; inset-inline: 8px; inset-block-end: 8px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--orange) 62%, rgb(255 255 255 / .6) 62%); }
.ph--up img { filter: saturate(.6) brightness(.8); }
.hint { font-size: 13px; color: var(--muted); margin-block-start: var(--s3); display: flex; gap: 6px; align-items: center; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form2 .full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.field label i { color: var(--red); font-style: normal; }
.field .help { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.textarea { min-height: 150px; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); resize: vertical; line-height: 1.8; }
.input--money { position: relative; }
.input--money .input { padding-inline-end: 56px; font-weight: 700; font-size: 18px; }
.input--money span { position: absolute; inset-inline-end: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-size: 14px; }
.toggle { display: flex; align-items: center; gap: var(--s2); font-size: 14px; }
.toggle i { width: 40px; height: 24px; border-radius: 999px; background: var(--navy); position: relative; }
.toggle i::after { content: ''; position: absolute; top: 3px; inset-inline-end: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.err { border-color: var(--red) !important; }
.errmsg { color: var(--red); font-size: 12px; }
.post__side { position: sticky; top: calc(var(--header-h) + var(--s4)); display: flex; flex-direction: column; gap: var(--s4); }
.preview-label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-block-end: var(--s2); }
.tips li { margin-block-end: var(--s2); font-size: 14px; color: var(--muted); }
.tips { padding-inline-start: var(--s4); margin: 0; }
.limits { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-block: var(--s2); }
.meter i { display: block; height: 100%; width: 40%; background: var(--navy); border-radius: 6px; }
.post__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }

/* Bottom sheet (mobile filters) */
.sheet-bg { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .ftr__top { grid-template-columns: 1fr 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .wrap { width: calc(100% - 2 * var(--s4)); }
  .logo img { height: 34px; }
  .grid, .grid--3 { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .card__b { padding: var(--s2) var(--s3) var(--s3); }
  .card__p { font-size: 16px; }
  .card__t { font-size: 13px; }
  .card__m { font-size: 11px; }
  .card__m span:last-child { display: none; }
  .fav { width: 32px; height: 32px; }
  .strip { grid-auto-columns: 44%; margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); scroll-padding-inline: var(--s4); }
  .appband__in { grid-template-columns: 1fr; text-align: center; }
  .appband .stores { justify-content: center; }
  .appband .qr { display: none; }
  .ftr__top { grid-template-columns: 1fr 1fr; gap: var(--s5); padding-block: var(--s6) var(--s5); }
  .ftr__bot { flex-direction: column; align-items: start; }
  /* results */
  .rlayout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .rhead { padding-block: var(--s2) var(--s4); }
  .rhead__ic { width: 44px; height: 44px; border-radius: 12px; }
  .rhead h1 { font-size: 22px; }
  .rbar .sort, .rbar .views { display: none; }
  .mbar { display: flex; position: sticky; top: var(--header-h); z-index: 30; background: var(--canvas); gap: var(--s2); padding-block: var(--s2); margin-block-end: var(--s2); }
  .mbar .chip { flex: 1; justify-content: center; background: var(--surface); }
  .mbar .chip b { background: var(--orange); color: var(--navy); border-radius: 999px; min-width: 20px; height: 20px; font-size: 12px; display: grid; place-items: center; }
  .pager a:not(.edge):not(.on), .pager .gap { display: none; }
  /* listing */
  .lp { grid-template-columns: 1fr; gap: 0; padding-block-start: 0; }
  .lp .crumbs { display: none; }
  .gal { grid-template-columns: 1fr; border-radius: 0; margin-inline: calc(-1 * var(--s4)); }
  .gal__thumbs, .gal__nav { display: none; }
  .gal__dots { display: flex; }
  .lp__h h1 { font-size: 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
  .side { position: static; }
  .side .box--price { display: none; }
  .box { padding: var(--s4); }
  .cta-bar { display: flex; position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 50; background: var(--surface); border-block-start: 1px solid var(--line); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); gap: var(--s3); align-items: center; box-shadow: 0 -6px 20px rgb(15 27 61 / .08); }
  .cta-bar .p { font-size: 18px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
  .cta-bar .p small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
  .cta-bar .btn { flex: 1; height: 48px; }
  .cta-bar .ibtn { border: 1px solid var(--line); }
  body.has-cta { padding-block-end: 84px; }
  .mtop { position: absolute; inset-block-start: calc(var(--header-h) + var(--s3)); inset-inline: var(--s3); display: flex; justify-content: space-between; z-index: 5; }
  /* post */
  .post { grid-template-columns: 1fr; padding-block: var(--s3) 120px; }
  .post__side { position: static; }
  .post__side .preview { display: none; }
  .steps li { font-size: 0; gap: 0; justify-content: center; }
  .steps li.on { font-size: 13px; gap: var(--s2); flex: 2.4; }
  .panel { padding: var(--s4); border-radius: var(--r-lg); }
  .photos { grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
  .form2 { grid-template-columns: 1fr; }
  .post__foot { position: fixed; inset-inline: 0; inset-block-end: 0; background: var(--surface); padding: var(--s3) var(--s4); border-block-start: 1px solid var(--line); z-index: 50; }
  .post__foot .btn { flex: 1; }
  /* sheet */
  .sheet-bg.open { display: block; position: fixed; inset: 0; background: rgb(10 16 40 / .5); z-index: 60; }
  .sheet { position: absolute; inset-inline: 0; inset-block-end: 0; max-height: 82%; background: var(--surface); border-radius: 20px 20px 0 0; display: flex; flex-direction: column; }
  .sheet__h { display: flex; justify-content: space-between; align-items: center; padding: var(--s4); border-block-end: 1px solid var(--line); }
  .sheet__h::before { content: ''; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 40px; height: 4px; border-radius: 4px; background: var(--line); }
  .sheet__b { overflow: auto; padding: 0 var(--s4); }
  .sheet__f { display: flex; gap: var(--s2); padding: var(--s3) var(--s4); border-block-start: 1px solid var(--line); }
  .sheet__f .btn { flex: 1; }
}
.gal__dots { display: none; position: absolute; inset-block-end: var(--s3); left: 50%; translate: -50% 0; gap: 6px; }
.gal__dots i { width: 6px; height: 6px; border-radius: 6px; background: rgb(255 255 255 / .6); }
.gal__dots i.on { width: 18px; background: #fff; }
.mtop { display: none; }
@media (max-width: 760px) { .mtop { display: flex; } .mtop .ibtn { background: rgb(255 255 255 / .92); color: var(--navy); } }

/* ---------- Header search (desktop: in the header row; mobile: full width under logo + post) ---------- */
.hdr__in { height: 76px; }
.srch { flex: 1; max-width: 720px; margin-inline: auto; display: flex; align-items: stretch; height: 50px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.srch:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgb(59 130 246 / .12); }
.srch__q { flex: 1; display: flex; align-items: center; gap: var(--s2); padding-inline: var(--s4); color: var(--muted); min-width: 0; }
.srch__q input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font-size: 15px; }
.srch__loc { display: flex; align-items: center; gap: 6px; padding-inline: var(--s3); border-inline-start: 1px solid var(--line); color: var(--muted); }
.srch__loc select { border: 0; background: none; outline: none; color: var(--ink); font-size: 14px; cursor: pointer; max-width: 150px; }
.srch__go { display: flex; align-items: center; gap: 6px; border: 0; margin: 4px; padding-inline: var(--s5); border-radius: 9px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; transition: background .15s; }
.srch__go:hover { background: #1B2B5C; }
[data-theme='dark'] .srch__go { background: #2B4BB0; }
.hdr__actions { margin-inline-start: 0; }

/* ---------- Category row (one row; scrolls on small screens) ---------- */
.catbar { background: var(--surface); border-block-end: 1px solid var(--line); }
.catrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr); gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding-block: var(--s4) var(--s3); }
.catrow::-webkit-scrollbar { display: none; }
.cat2 { display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; font-size: 13px; line-height: 1.35; color: var(--ink); padding: var(--s1); border-radius: var(--r); transition: background .15s; }
.cat2:hover { background: var(--surface-2); }
.cat2__ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; transition: transform .2s var(--ease); }
.cat2:hover .cat2__ic { transform: translateY(-2px); }
.cat2__ic .icon { width: 26px; height: 26px; }

/* ---------- Hero banner from the admins (1200x375, rounded, dots when several) ---------- */
.hb { position: relative; margin-block-start: var(--s5); }
.hb__track { position: relative; aspect-ratio: 1200 / 375; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-2); }
.hb__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); isolation: isolate; color: #fff; }
.hb__slide.on { opacity: 1; z-index: 1; }
.hb__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hb__slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgb(15 27 61 / .88) 0%, rgb(15 27 61 / .55) 45%, transparent 75%); }
[dir='ltr'] .hb__slide::after { background: linear-gradient(to right, rgb(15 27 61 / .88) 0%, rgb(15 27 61 / .55) 45%, transparent 75%); }
.hb__t { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(460px, 60%); padding: var(--s6) var(--s7); display: flex; flex-direction: column; justify-content: center; align-items: start; gap: var(--s2); }
.hb__t b { font-size: clamp(20px, 2.6vw, 32px); line-height: 1.3; }
.hb__t > span:not(.btn):not(.hb__tag) { color: #DCE2F2; font-size: 15px; }
.hb__t .btn { margin-block-start: var(--s2); height: 42px; }
.hb__tag { font-size: 12px; font-weight: 700; background: var(--gold); color: #3B2A00; padding: 0 10px; border-radius: 999px; }
.hb__dots { position: absolute; inset-block-end: var(--s4); left: 50%; translate: -50% 0; z-index: 2; display: flex; gap: 6px; }
.hb__dots button { width: 8px; height: 8px; border-radius: 8px; border: 0; padding: 0; background: rgb(255 255 255 / .55); cursor: pointer; transition: width .25s var(--ease), background .25s; }
.hb__dots button.on { width: 24px; background: #fff; }

/* Small sponsored banners (slot "ad") */
.sec--tight { padding-block-start: var(--s4); }
.adrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.adb { position: relative; display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.adb:hover { border-color: transparent; box-shadow: var(--shadow-2); }
.adb__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.adb b { display: block; font-size: 15px; }
.adb small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; padding-inline-end: var(--s5); }
.adb__sp { position: absolute; inset-block-start: 8px; inset-inline-end: 10px; font-size: 11px; color: var(--muted); }

/* Strips with arrows on desktop */
.rail { position: relative; }
.rail__btn { position: absolute; top: 38%; translate: 0 -50%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-2); cursor: pointer; }
.rail__btn--a { inset-inline-start: -20px; } .rail__btn--b { inset-inline-end: -20px; }
[dir='ltr'] .rail__btn .icon { transform: scaleX(-1); }

@media (max-width: 1100px) {
  .srch__go span, .hdr__actions .lang { display: none; }
  .srch__go { padding-inline: var(--s3); }
}
@media (max-width: 760px) {
  .hdr__in { height: auto; display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'logo act' 'srch srch'; row-gap: var(--s2); padding-block: var(--s2) var(--s3); }
  .logo { grid-area: logo; }
  .hdr__actions { grid-area: act; justify-self: end; gap: 4px; }
  .hdr__actions .ibtn, .hdr__actions .btn--ghost { display: none; }
  .hdr__actions .btn--post { height: 40px; padding-inline: var(--s4); font-size: 14px; }
  .srch { grid-area: srch; max-width: none; width: 100%; height: 46px; margin: 0; }
  .srch__q { padding-inline: var(--s3); }
  .srch__loc { padding-inline: var(--s2); }
  .srch__loc select { max-width: 84px; font-size: 13px; }
  .srch__go { margin: 3px; }
  :root { --header-h: 118px; }
  .catrow { grid-auto-columns: 76px; gap: var(--s1); margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); padding-block: var(--s3) var(--s2); }
  .cat2 { font-size: 12px; }
  .cat2__ic { width: 52px; height: 52px; border-radius: 15px; }
  .hb { margin-block-start: var(--s3); }
  .hb__track { border-radius: var(--r-lg); }
  .hb__t { width: 72%; padding: var(--s3) var(--s4); gap: 2px; }
  .hb__t b { font-size: 16px; }
  .hb__t > span:not(.btn):not(.hb__tag) { display: none; }
  .hb__t .btn { height: 30px; font-size: 12px; padding-inline: var(--s3); margin-block-start: 4px; }
  .hb__tag { font-size: 10px; }
  .hb__dots { inset-block-end: var(--s2); }
  .rail__btn { display: none; }
  .adrow { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }
}

/* ---------- Production additions (server/web) ---------- */
.skip { position: absolute; inset-inline-start: var(--s3); inset-block-start: -60px; z-index: 100; background: var(--navy); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r); }
.skip:focus { inset-block-start: var(--s3); }
.ann { background: var(--navy); color: #fff; text-align: center; font-size: 14px; padding: 6px var(--s4); }
.ann a { text-decoration: underline; text-underline-offset: 3px; }
.i-sun { display: none; }
[data-theme='dark'] .i-sun { display: block; }
[data-theme='dark'] .i-moon { display: none; }
.icon--xl { width: 48px; height: 48px; }
.center { text-align: center; }
.hide-m { }
.home > .sec:first-child { padding-block-start: var(--s5); }

/* Cards: no photo → the category's icon on a soft wash of its colour */
.card__ph--none, .gal__main--none { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, var(--surface)); }
.card__ph--none .icon { width: 44px; height: 44px; stroke-width: 1.6; }
.gal__main--none { aspect-ratio: 4 / 3; }
.gal__main--none .icon { width: 96px; height: 96px; stroke-width: 1.4; }
.card--premium { box-shadow: 0 0 0 2px var(--gold), var(--shadow-1); }
.card__ph .badge--navy, .card__ph .badge--soft { position: absolute; inset-block-start: var(--s3); inset-inline-start: var(--s3); }
.card__ph .badge--soft { background: rgb(255 255 255 / .92); color: var(--navy); }

/* Desktop columns from the admins' web options */
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.strip.cols-4 { grid-auto-columns: calc((100% - 3 * var(--s4)) / 4); }
.strip.cols-5 { grid-auto-columns: calc((100% - 4 * var(--s4)) / 5); }
.strip.cols-6 { grid-auto-columns: calc((100% - 5 * var(--s4)) / 6); }
.cols-6 .card__p { font-size: 17px; }
.cols-6 .card__t { font-size: 14px; }

.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s2); padding-block: var(--s4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.txt--sm { font-size: 14px; } .txt--lg { font-size: 19px; } .txt--title { font-size: 22px; }
.txt--center { text-align: center; } .txt--end { text-align: end; }
.txt--muted { color: var(--muted); } .txt--brand { color: var(--navy-2); } .txt--b { font-weight: 700; }
.notice { display: flex; gap: var(--s2); align-items: center; background: var(--gold-soft); color: var(--ink); padding: var(--s3) var(--s4); border-radius: var(--r); font-size: 15px; }
.block-img { width: 100%; object-fit: cover; }
.block-img.r { border-radius: var(--r-xl); }
.lbanner { display: flex; flex-direction: column; gap: 2px; padding: var(--s5) var(--s6); border-radius: var(--r-xl); }
.lbanner b { font-size: 20px; }
.promo-b { display: flex; flex-direction: column; align-items: start; gap: var(--s2); padding: var(--s5) var(--s6); border-radius: var(--r-xl); background: var(--navy); color: #fff; }
.promo-b--accent { background: var(--orange); color: var(--navy); }
.promo-b--gold { background: var(--gold); color: #3B2A00; }
.promo-b b { font-size: 20px; }
.hb__slide--plain .hb__ic { position: absolute; inset-inline-end: 8%; top: 50%; translate: 0 -50%; opacity: .25; color: #fff; }
.hb__slide--plain .hb__ic .icon { width: 140px; height: 140px; stroke-width: 1.2; }
.hb__slide--plain::after { display: none; }
.hb__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.prices { margin-block-start: var(--s1); }
.price-tile { border-radius: var(--r-lg); padding: var(--s4) var(--s5); display: flex; flex-direction: column; transition: transform .2s var(--ease); }
.price-tile:hover { transform: translateY(-2px); }
.price-tile small, .price-tile span { font-size: 13px; color: #4A5170; }
.price-tile b { font-size: 24px; color: #0F1B3D; line-height: 1.3; }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.pt1 { background: #FFF3C4; } .pt2 { background: #FFE8D6; } .pt3 { background: #E1E7FA; } .pt4 { background: #DDF4E8; }
[data-theme='dark'] .price-tile { filter: brightness(.86) saturate(.9); }

/* Results */
.cover { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--r-xl); margin-block-end: var(--s5); }
.stack { display: grid; gap: var(--s2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-1); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); }
.chip--sel { position: relative; }
.chip--sel select { appearance: none; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.empty { text-align: center; padding: var(--s8) var(--s4); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.empty .icon { width: 40px; height: 40px; color: var(--muted); }
.empty h2 { font-size: 19px; }
.empty p { color: var(--muted); margin-block-end: var(--s3); }
.is-loading .grid { position: relative; pointer-events: none; }
.is-loading .card { opacity: .55; }
.is-loading .card__ph { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%) 0 0 / 200% 100%; animation: sk 1.3s linear infinite; }
.is-loading .card__ph img { opacity: 0; }
.sheet-bg[hidden] { display: none !important; }

/* Listing */
.old { color: var(--muted); font-size: 15px; }
.hint-s { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }
.ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ava .icon { width: 24px; height: 24px; }
[data-share].done::after { content: '✓'; margin-inline-start: 4px; }

/* Pages */
.center-box { max-width: 560px; margin: var(--s7) auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s3); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: var(--s7) var(--s5); }
.center-box h1 { font-size: 24px; line-height: 1.4; }
.center-box p { color: var(--muted); }
.center-box > .icon { color: var(--orange); }
.big404 { font-size: 64px; line-height: 1; color: var(--orange); }
.prose-wrap { padding-block: var(--s6) 0; }
.prose { max-width: 760px; margin-inline: auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: var(--s6) var(--s7); line-height: 1.9; }
.prose h1 { font-size: 28px; margin-block-end: var(--s4); line-height: 1.35; }
.prose h2 { font-size: 21px; margin-block: var(--s5) var(--s2); }
.prose h3 { font-size: 18px; margin-block: var(--s4) var(--s2); }
.prose p, .prose ul, .prose ol { margin-block: 0 var(--s3); }
.prose a { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r); height: auto; }
.prose blockquote { margin: 0 0 var(--s3); padding-inline-start: var(--s4); border-inline-start: 4px solid var(--orange); color: var(--muted); }
.legacy { display: block; padding-block-end: var(--s6); }
.ftr__contact { display: flex; flex-direction: column; gap: 2px; margin-block-start: var(--s4); }
.ftr__contact a { display: inline-flex; align-items: center; gap: var(--s2); padding-block: 4px; }

@media (max-width: 1100px) {
  .grid.cols-5, .grid.cols-6 { grid-template-columns: repeat(4, 1fr); }
  .strip.cols-5, .strip.cols-6 { grid-auto-columns: calc((100% - 3 * var(--s4)) / 4); }
}
@media (max-width: 900px) {
  .grid.cols-4, .grid.cols-5, .grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
  .strip.cols-4, .strip.cols-5, .strip.cols-6 { grid-auto-columns: 30%; }
}
@media (max-width: 760px) {
  .hide-m { display: none; }
  .grid.cols-4, .grid.cols-5, .grid.cols-6 { grid-template-columns: 1fr 1fr; }
  .strip.cols-4, .strip.cols-5, .strip.cols-6 { grid-auto-columns: 44%; }
  .prices { grid-template-columns: repeat(4, 150px); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }
  .prose { padding: var(--s5) var(--s4); border-radius: var(--r-lg); }
  .prose h1 { font-size: 23px; }
  .center-box { margin-block-start: var(--s5); padding: var(--s6) var(--s4); }
  .home > .sec:first-child { padding-block-start: var(--s3); }
  .sheet-bg.open { display: block; }
}

.card__ph > .card__ph--none { position: absolute; inset: 0; }
.card__ph > img { position: relative; }
.card__ph > img.broken { visibility: hidden; }
.card__ph .badge, .card__n { z-index: 1; }
.rail.fits .rail__btn { display: none; }
