
/* NAVIA Имоти design system — tokens first, components below. No framework. */
:root {
  --ink: #14231d; --ink-2: #44534d; --muted: #66756f;
  --pine: #0e4a39; --pine-d: #093528; --pine-t: #e4eee9;
  --sun: #ffc530; --sun-d: #eeb008;
  --paper: #fff; --mist: #f2f5f3; --line: #d8e0db; --line-2: #b9c5bf;
  --danger: #b3261e; --danger-t: #fbeceb; --ok: #1d7a4f;
  --r: 6px; --r-s: 3px;
  --font: 'Sofia Sans Variable', 'Sofia Sans', system-ui, sans-serif;
  --cond: 'Sofia Sans Condensed Variable', 'Sofia Sans Condensed', var(--font);
  --wrap: 1280px; --gap: 24px; --head: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; font: 400 16px/1.5 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--s, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrapx { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 899px) { .hide-m { display: none !important; } .head .wrap { gap: 10px; } .logo { font-size: 21px; } .lang { padding: 8px 6px; } }
@media (min-width: 900px) { .hide-d { display: none !important; } }

/* Type */
.display { font: 800 clamp(40px, 6.2vw, 84px)/0.95 var(--cond); letter-spacing: -0.01em; text-wrap: balance; }
.h1 { font: 800 clamp(30px, 3.6vw, 44px)/1.05 var(--cond); text-wrap: balance; }
.h2 { font: 700 clamp(24px, 2.4vw, 32px)/1.1 var(--cond); }
.h3 { font: 700 19px/1.25 var(--font); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 56ch; }
.price { font: 700 26px/1 var(--cond); letter-spacing: 0.005em; font-variant-numeric: tabular-nums; }
.price.big { font-size: clamp(34px, 4vw, 48px); font-weight: 800; }
.num { font-variant-numeric: tabular-nums; }
.link { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r); font-weight: 650; white-space: nowrap; border: 1.5px solid transparent; transition: background 0.12s, border-color 0.12s; }
.btn-sun { background: var(--sun); color: var(--ink); } .btn-sun:hover { background: var(--sun-d); }
.btn-pine { background: var(--pine); color: #fff; } .btn-pine:hover { background: var(--pine-d); }
.btn-line { border-color: var(--line-2); background: var(--paper); } .btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: var(--pine); padding: 0 10px; } .btn-ghost:hover { background: var(--pine-t); }
.btn-danger { color: var(--danger); border-color: #e3b5b1; } .btn-danger:hover { background: var(--danger-t); }
.btn-s { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Forms */
.field { display: block; }
.field > span, .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--paper); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--pine-t); }
.textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314231d' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 4px 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pine); flex: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.err { color: var(--danger); font-size: 14px; font-weight: 600; }
.note { padding: 12px 14px; border-radius: var(--r); background: var(--mist); font-size: 14px; }
.note.warn { background: #fff5d6; } .note.bad { background: var(--danger-t); color: #7a1a14; } .note.good { background: var(--pine-t); color: var(--pine-d); }

/* Segmented control & choice tiles */
.seg { display: inline-flex; padding: 3px; background: var(--mist); border-radius: var(--r); }
.seg > * { min-height: 40px; padding: 0 18px; border-radius: 4px; font-weight: 650; display: inline-flex; align-items: center; color: var(--ink-2); }
.seg > [aria-pressed='true'], .seg > [aria-current='true'] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile { text-align: left; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--paper); font-weight: 600; min-height: 48px; }
.tile:hover { border-color: var(--ink); }
.tile[aria-pressed='true'] { border-color: var(--pine); background: var(--pine-t); box-shadow: inset 0 0 0 1px var(--pine); }
.tile small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 6px 0 12px; border-radius: 16px; background: var(--pine-t); color: var(--pine-d); font-size: 14px; font-weight: 600; }
.chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.chip button:hover { background: var(--pine); color: #fff; }
.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1.5px solid var(--line-2); font-size: 14px; font-weight: 600; background: var(--paper); }
.pill:hover { border-color: var(--ink); } .pill[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Tags */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: var(--r-s); font: 700 12px/1 var(--font); letter-spacing: 0.02em; background: var(--mist); color: var(--ink-2); }
.tag-premium { background: var(--ink); color: var(--sun); } .tag-top { background: var(--sun); color: var(--ink); } .tag-vip { background: var(--pine); color: #fff; }
.tag-demo { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); } .tag-drop { background: var(--pine-t); color: var(--pine-d); }
.tag-st-active { background: var(--pine-t); color: var(--pine-d); } .tag-st-pending_moderation, .tag-st-pending_payment { background: #fff5d6; color: #6b4e00; }
.tag-st-rejected, .tag-st-suspended { background: var(--danger-t); color: #7a1a14; }

/* Header */
.promo-bar { background: var(--pine); color: #fff; font-size: 14.5px; }
.promo-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding-block: 6px; flex-wrap: wrap; text-align: center; }
.promo-bar a { color: var(--sun); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.head { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 28px; height: var(--head); }
.logo { display: flex; align-items: baseline; gap: 7px; font: 800 25px/1 var(--cond); letter-spacing: 0.01em; }
.logo b { color: var(--pine); font-weight: 800; } .logo i { font-style: normal; font-weight: 500; }
.logo::before { content: ''; width: 12px; height: 12px; background: var(--sun); border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translateY(-2px); align-self: center; }
.nav { display: none; gap: 4px; } .nav a { padding: 8px 12px; border-radius: var(--r); font-weight: 600; } .nav a:hover { background: var(--mist); }
.nav a[aria-current='page'] { box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
.head-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang { font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: var(--r); color: var(--ink-2); } .lang:hover { background: var(--mist); }
@media (min-width: 900px) { .nav { display: flex; } }
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.tabbar a[aria-current='page'] { color: var(--pine); } .tabbar svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .tabbar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 62px; } }
.foot { margin-top: 80px; background: var(--ink); color: #cbd6d1; padding: 40px 0; font-size: 14.5px; }
.foot .logo { color: #fff; } .foot .logo b { color: #fff; } .foot a:hover { color: #fff; text-decoration: underline; }

/* Home */
.hero { background: var(--mist); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 32px; padding-block: 40px 48px; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; padding-block: 56px 64px; gap: 48px; } }
.searchbox { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 18px; }
.searchbox .fields { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 560px) { .searchbox .fields { grid-template-columns: 1fr 1fr; } .searchbox .fields .full { grid-column: 1 / -1; } }
.bgmap svg { width: 100%; height: auto; overflow: visible; aspect-ratio: 4.884 / 3.2; }
.bgmap path { fill: #fff; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill 0.1s; }
.bgmap path.has { fill: var(--pine-t); } .bgmap a:hover path, .bgmap a:focus-visible path { fill: var(--sun); }
.bgmap-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 30px; margin-bottom: 6px; }
.section { padding-block: 56px 0; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1.5px solid var(--ink); }
.cities a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--line); font: 700 22px/1.1 var(--cond); }
.cities a span { font: 400 14px var(--font); color: var(--muted); } .cities a:hover { background: var(--mist); }
.band { margin-top: 64px; background: var(--pine); color: #fff; }
.band .wrap { padding-block: 44px; display: grid; gap: 20px; } .band .lead { color: #d5e4dd; }
@media (min-width: 800px) { .band .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* Cards */
.cards { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards.list { grid-template-columns: 1fr; gap: 0; }
.card { position: relative; min-width: 0; }
.card-ph { position: relative; aspect-ratio: 4 / 3; background: var(--mist); border-radius: var(--r); overflow: hidden; }
.card-ph img { width: 100%; height: 100%; object-fit: cover; }
.card-ph .nav-b { position: absolute; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; opacity: 0; transition: opacity 0.12s; z-index: 2; }
.card-ph .nav-b.l { left: 8px; } .card-ph .nav-b.r { right: 8px; } .card:hover .nav-b, .nav-b:focus-visible { opacity: 1; }
@media (hover: none) { .card-ph .nav-b { opacity: 1; } }
.card-tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; z-index: 2; }
.card-count { position: absolute; right: 8px; bottom: 8px; background: rgba(20, 35, 29, 0.78); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-s); z-index: 2; }
.fav { position: absolute; right: 8px; top: 8px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: grid; place-items: center; }
.fav svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; } .fav[aria-pressed='true'] svg { fill: var(--danger); stroke: var(--danger); }
.card-b { padding: 12px 2px 0; } .card-b .price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-t { font-weight: 650; margin-top: 6px; display: block; } .card-t::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-m { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; } .card-m span + span::before { content: ''; display: inline-block; width: 1px; height: 11px; background: var(--line-2); margin: 0 8px; }
.card-p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.card.vip .card-ph { box-shadow: 0 0 0 2px var(--pine); } .card.hl .card-ph { box-shadow: 0 0 0 3px var(--sun); }
.cards.list .card { display: grid; grid-template-columns: 240px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); } .cards.list .card-b { padding: 0; }
@media (max-width: 620px) { .cards.list .card { grid-template-columns: 130px 1fr; gap: 12px; } }
.promoted { background: var(--mist); border-radius: var(--r); padding: 16px; margin-bottom: 28px; }
.promoted-h { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 12px; font-weight: 700; } .promoted-h span { font-weight: 400; color: var(--muted); }
.empty { text-align: center; padding: 64px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r); } .empty p { color: var(--muted); margin: 6px 0 18px; }

/* Search */
.sbar { position: sticky; top: var(--head); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.sbar .wrap { display: flex; gap: 8px; align-items: center; padding-block: 10px; flex-wrap: wrap; max-width: none; }
.sbar .loc { flex: 1 1 240px; max-width: 360px; position: relative; }
.sbar .input, .sbar .select { min-height: 42px; }
.pop { position: relative; } .pop-b { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); font-weight: 600; background: var(--paper); white-space: nowrap; }
.pop-b:hover { border-color: var(--ink); } .pop-b.on { border-color: var(--pine); background: var(--pine-t); color: var(--pine-d); }
.pop-p { position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; min-width: 300px; max-width: min(92vw, 420px); background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 16px; box-shadow: 0 12px 28px rgba(20, 35, 29, 0.14); max-height: 70vh; overflow: auto; }
.ac { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 0 12px 28px rgba(20, 35, 29, 0.14); max-height: 340px; overflow: auto; }
.ac button { display: block; width: 100%; text-align: left; padding: 9px 12px; } .ac button small { display: block; color: var(--muted); font-size: 13px; }
.ac button:hover, .ac button[aria-selected='true'] { background: var(--pine-t); }
.shead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 14px; }
.split { display: grid; } .split .mapcol { height: 62vh; position: relative; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); } .split .mapcol { order: 2; position: sticky; top: calc(var(--head) + 63px); height: calc(100vh - var(--head) - 63px); } .split .listcol { padding: 0 20px 40px; } .split .cards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (max-width: 999px) { .split .listcol { padding: 0 20px 40px; } }
.map { width: 100%; height: 100%; background: #e9efec; }
.map-tools { position: absolute; top: 12px; left: 50%; translate: -50% 0; z-index: 5; display: flex; gap: 8px; }
.map-note { position: absolute; left: 12px; bottom: 12px; z-index: 5; max-width: 320px; background: rgba(255, 255, 255, 0.95); padding: 8px 10px; border-radius: var(--r); font-size: 12.5px; color: var(--ink-2); }
.mk { font: 700 13px/1 var(--cond); padding: 5px 7px; background: #fff; border: 1.5px solid var(--ink); border-radius: 12px; white-space: nowrap; cursor: pointer; font-variant-numeric: tabular-nums; }
.mk:hover, .mk.hl { background: var(--ink); color: #fff; z-index: 5; } .mk.top, .mk.premium { background: var(--sun); } .mk.vip { border-color: var(--pine); color: var(--pine); }
.mk-c { width: 40px; height: 40px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font: 700 14px var(--cond); border: 3px solid rgba(255, 255, 255, 0.85); cursor: pointer; }
.mk-pin { width: 22px; height: 22px; background: var(--sun); border: 3px solid var(--ink); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.mk-r { font: 700 13px var(--cond); background: rgba(255,255,255,0.9); padding: 2px 6px; border-radius: 10px; pointer-events: none; text-align: center; line-height: 1.15; } .mk-r b { display: block; font-size: 15px; }
.maplibregl-popup-content { padding: 0 !important; border-radius: var(--r) !important; overflow: hidden; font-family: var(--font); width: 240px; }
.popcard img { width: 100%; aspect-ratio: 16/10; object-fit: cover; } .popcard div { padding: 10px 12px 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 36px 0 0; }
.drawer-bg { position: fixed; inset: 0; background: rgba(20, 35, 29, 0.45); z-index: 70; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(100vw, 480px); background: var(--paper); z-index: 71; display: flex; flex-direction: column; }
.drawer-h, .drawer-f { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); } .drawer-f { border-top: 1px solid var(--line); border-bottom: 0; }
.drawer-c { flex: 1; overflow: auto; padding: 20px; } .fgroup + .fgroup { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.fgroup .pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* Listing */
.crumbs { font-size: 14px; color: var(--muted); padding: 16px 0 10px; display: flex; gap: 8px; flex-wrap: wrap; } .crumbs a:hover { color: var(--ink); text-decoration: underline; } .crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.gallery { display: grid; gap: 6px; border-radius: var(--r); overflow: hidden; grid-template-columns: 1fr; }
.gallery button { position: relative; background: var(--mist); aspect-ratio: 4/3; overflow: hidden; } .gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button:not(:first-child) { display: none; }
@media (min-width: 800px) { .gallery.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 2.1/1; } .gallery.n3 button { display: block; aspect-ratio: auto; } .gallery.n3 button:first-child { grid-row: 1 / 3; } .gallery.n3 button:nth-child(n + 4) { display: none; } }
.gallery .more { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,0.94); padding: 6px 10px; border-radius: var(--r); font-weight: 650; font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 20, 17, 0.96); display: grid; grid-template-rows: auto 1fr; color: #fff; }
.lightbox .top { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; } .lightbox .stage { display: grid; place-items: center; min-height: 0; position: relative; padding: 0 12px 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; } .lightbox .nav-b { position: absolute; top: 50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 22px; } .lightbox .nav-b.l { left: 12px; } .lightbox .nav-b.r { right: 12px; }
.detail { display: grid; gap: 36px; margin-top: 28px; } @media (min-width: 1000px) { .detail { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } .aside { position: sticky; top: calc(var(--head) + 20px); align-self: start; } }
.panel { border: 1.5px solid var(--ink); border-radius: var(--r); padding: 20px; } .panel + .panel { margin-top: 16px; } .panel.soft { border-color: var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1.5px solid var(--ink); } .facts div { padding: 12px 0; border-bottom: 1px solid var(--line); } .facts dt { font-size: 13.5px; color: var(--muted); } .facts dd { font-weight: 650; font-size: 17px; }
.feat { columns: 2 220px; column-gap: 32px; } .feat li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; } .feat li span { color: var(--muted); } .feat li b { font-weight: 600; text-align: right; }
.prose { white-space: pre-line; max-width: 68ch; line-height: 1.6; }
.block { padding-top: 36px; } .block > .h2 { margin-bottom: 16px; }
.minimap { height: 320px; position: relative; border-radius: var(--r); overflow: hidden; }
.hist { border-top: 1.5px solid var(--ink); } .hist li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mbar { position: fixed; inset: auto 0 62px 0; z-index: 44; background: var(--paper); border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 10px; align-items: center; } @media (min-width: 1000px) { .mbar { display: none; } }

/* Wizard / account / admin */
.page { padding-block: 32px 0; } .page-h { margin-bottom: 24px; }
.steps { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 28px; counter-reset: s; }
.steps button { counter-increment: s; flex: 1 0 auto; text-align: left; padding: 10px 12px 10px 0; border-top: 3px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.steps button::before { content: counter(s) '. '; } .steps button[aria-current='step'] { border-color: var(--sun); color: var(--ink); } .steps button.done { border-color: var(--pine); color: var(--pine); }
.wiz-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 36px 20px; text-align: center; cursor: pointer; background: var(--mist); display: block; } .drop:hover, .drop.over { border-color: var(--pine); background: var(--pine-t); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; } .thumbs li { position: relative; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; background: var(--mist); cursor: grab; } .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.94); font-size: 17px; } .thumbs .tag { position: absolute; left: 6px; top: 6px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; } .opt + .opt { margin-top: 8px; } .opt:has(input:checked) { border-color: var(--pine); background: var(--pine-t); } .opt input { width: 20px; height: 20px; accent-color: var(--pine); } .opt s { color: var(--muted); margin-right: 8px; font-size: 14px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1.5px solid var(--ink); margin-top: 20px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1.5px solid var(--ink); margin-bottom: 28px; } .tabs a { padding: 10px 14px; font-weight: 650; white-space: nowrap; border-radius: var(--r) var(--r) 0 0; color: var(--ink-2); } .tabs a:hover { background: var(--mist); } .tabs a[aria-current='page'] { background: var(--ink); color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); } .kpis div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); } .kpis dt { font-size: 14px; color: var(--muted); } .kpis dd { font: 800 34px/1.1 var(--cond); } .kpis small { color: var(--muted); font: 400 13px var(--font); }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 14.5px; } th { text-align: left; font-weight: 650; font-size: 13.5px; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap; } td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
td .input, td .select { min-height: 36px; padding: 5px 9px; }
.lrow { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); } .lrow img { width: 120px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); background: var(--mist); } .lrow .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .lrow .stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--ink-2); margin-top: 6px; } .lrow .stats b { color: var(--ink); }
@media (min-width: 700px) { .lrow { grid-template-columns: 160px 1fr; } .lrow img { width: 160px; } }
.auth { max-width: 440px; margin: 48px auto 0; }
.toast { position: fixed; left: 50%; bottom: 84px; translate: -50% 0; z-index: 99; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r); font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.25); animation: toast 0.18s ease-out; } @keyframes toast { from { opacity: 0; translate: -50% 8px; } }
.skel { background: linear-gradient(90deg, var(--mist) 25%, #e7ece9 37%, var(--mist) 63%); background-size: 400% 100%; animation: skel 1.2s infinite; border-radius: var(--r); } @keyframes skel { from { background-position: 100% 0; } to { background-position: 0 0; } }
.pricing { display: grid; gap: 40px; } @media (min-width: 900px) { .pricing { grid-template-columns: 1fr 1fr; } }

/* ── PHP версия: елементи без JavaScript рамка ── */
.seg > a { text-decoration: none; }
.loc-wrap { position: relative; }
details.pop > summary { list-style: none; cursor: pointer; } details.pop > summary::-webkit-details-marker { display: none; }
details.pop > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.chip a { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; } .chip a:hover { background: var(--pine); color: #fff; }
dialog.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100dvh; max-height: none; max-width: none; inset: 0 0 0 auto; position: fixed; } dialog.drawer:not([open]) { display: none; } dialog.drawer::backdrop { background: rgba(20, 35, 29, 0.45); }
.is-loading { opacity: 0.6; transition: opacity 0.1s; }
.cmp { overflow-x: auto; } .cmp table td, .cmp table th { vertical-align: top; min-width: 190px; white-space: normal; } .cmp th:first-child, .cmp td:first-child { min-width: 130px; color: var(--muted); font-weight: 600; } .cmp img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.legal { max-width: 72ch; } .legal h2 { margin: 28px 0 8px; } .legal p + p { margin-top: 10px; }
.step[hidden] { display: none; }
dialog.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; } dialog.lightbox:not([open]) { display: none; }
.toast[hidden] { display: none; }
[hidden] { display: none !important; }
