/* Семейная Тверь — доска объявлений.
   Система: кремовый фон, лесной зелёный как несущий цвет крупных полей,
   оранжевый только для главного действия и снижения цены.
   Радиусы: 12px — кнопки и поля, 18px — карточки и панели, pill — чипы фильтров. */

@font-face { font-family: Onest; src: url('/fonts/onest.woff') format('woff'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/manrope.woff') format('woff'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #FFF9F2;
  --surface: #FFFFFF;
  --tint: #FBF3E9;
  --line: #EADFCF;
  --line-2: #E0D2BF;
  --ink: #18211B;
  --ink-2: #33433A;
  --muted: #56655B;
  --green: #14472F;
  --green-deep: #0F3624;
  --green-2: #1F6B45;
  --mint: #E8F5ED;
  --plan-bg: #F6EFE6;
  --mint-line: #BFE0CC;
  --on-green: #F4EFE6;
  --on-green-2: #B9D3C3;
  --accent: #F97316;
  --accent-hover: #FB8A3C;
  --accent-ink: #1A1206;
  --accent-text: #B93C0B;
  --accent-deep: #EA580C;
  --accent-soft: #FFEDD5;
  --accent-soft-ink: #9A3412;
  --peach: #FFF3E6;
  --peach-line: #F6DCC0;
  --sand: #F4EBDF;
  --danger: #B42318;
  --plan-ink: #3D5A48;
  --r-ctl: 12px;
  --r-card: 18px;
  --shadow: 0 1px 2px rgba(60, 50, 30, .06), 0 8px 24px -8px rgba(60, 50, 30, .14);
  --shadow-lift: 0 2px 4px rgba(60, 50, 30, .06), 0 18px 40px -12px rgba(60, 50, 30, .22);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.645, .045, .355, 1);
  --display: Onest, system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-soft-ink); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #FFD7B5; color: var(--ink); }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); font-weight: 400; }
html { scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); }

.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.h1 { font-weight: 800; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; }
.h2 { font-weight: 700; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.12; }
.h3 { font-weight: 700; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.25; }
.h4 { font-weight: 700; font-size: 16px; line-height: 1.3; }
.lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--ink-2); max-width: 62ch; }
.fine { font-size: 13px; color: var(--muted); max-width: 60ch; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: var(--r-ctl);
  font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.2; padding: 13px 20px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease-out, box-shadow .2s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .ico { width: 18px; height: 18px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px rgba(249, 115, 22, .55); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-deep); color: #fff; }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-soft-ink); }
.btn-soft { background: var(--accent-soft); color: var(--accent-soft-ink); }
.btn-soft:hover { background: #FED7AA; color: var(--accent-soft-ink); }
.btn-ghost-light { background: transparent; border-color: rgba(244, 239, 230, .45); color: var(--on-green); }
.btn-ghost-light:hover { border-color: var(--on-green); color: #fff; }
.btn-sm { font-size: 14px; padding: 9px 14px; }
.btn-lg { font-size: 18px; padding: 16px 22px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-family: var(--display); text-decoration: none; color: var(--accent-text); }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255, 249, 242, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-head { background: rgba(255, 249, 242, .82); backdrop-filter: saturate(1.4) blur(12px); } }
.head-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center;
  font: 800 14px/1 var(--display); letter-spacing: .02em; flex: none; }
.brand-name { font: 800 16px/1.1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand-name small { display: block; font: 500 12px/1.3 var(--body); color: var(--muted); letter-spacing: 0; }
.nav { display: flex; gap: 4px; margin-left: auto; min-width: 0; white-space: nowrap; }
.nav a { padding: 8px 11px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; place-items: center; }
.mnav { border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; display: grid; gap: 2px; background: var(--bg); }
.mnav a { padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
@media (max-width: 1180px) { .nav a { padding: 8px 8px; font-size: 14px; } .head-row { gap: 12px; } }
@media (max-width: 1060px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .head-row .btn { display: none; }
}
@media (max-width: 420px) { .brand-name small { display: none; } }

/* ---------- Первый экран: поисковый стол ---------- */
.hero { padding: clamp(24px, 4vw, 52px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-h { font-weight: 800; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -0.035em; max-width: 13ch; }
.hero-h .hl { color: var(--accent-deep); }
.hero-sub { margin-top: 16px; font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-2); max-width: 44ch; }

.desk { margin-top: 28px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: clamp(16px, 2.4vw, 24px);
  box-shadow: 0 2px 4px rgba(60, 50, 30, .04), 0 24px 56px -24px rgba(120, 80, 30, .22); display: grid; gap: 18px; }
.desk-tabs { display: flex; gap: 4px; background: var(--tint); border-radius: 14px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.desk-tab { flex: 1 0 auto; border: 0; background: transparent; color: var(--muted); font: 700 15px/1 var(--display); padding: 12px 14px; border-radius: 10px; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.desk-tab:hover { color: var(--ink); }
.desk-tab[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(60, 50, 30, .08), 0 2px 8px -2px rgba(60, 50, 30, .12); }
.desk fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.desk legend, .desk label:not(.chip) { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; display: block; padding: 0; }
.desk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.desk select { width: 100%; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2333433A' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--line-2); color: var(--ink); border-radius: var(--r-ctl); padding: 13px 38px 13px 14px; cursor: pointer; }
.desk select option { color: var(--ink); }
.desk select:hover { border-color: #C9B79F; }
.desk select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.desk-go { width: 100%; }
.desk-go .ico { margin-left: 4px; }
.js-desk-count { display: inline-block; min-width: 1ch; }
.js-desk-count.tick { animation: tick .32s var(--ease-out); }
@keyframes tick { from { transform: translateY(-45%); opacity: 0; filter: blur(2px); } to { transform: none; opacity: 1; filter: none; } }

.hero-stack { position: relative; min-height: 640px; }
.stack-card { position: absolute; width: min(80%, 340px); background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-lift); overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.stack-0 { top: 0; left: 0; z-index: 2; }
.stack-1 { bottom: 0; right: 0; z-index: 1; }
.stack-card:hover { transform: translateY(-6px); z-index: 3; }
.stack-media { aspect-ratio: 16 / 10; background: var(--plan-bg); overflow: hidden; }
.stack-img { width: 100%; height: 100%; object-fit: cover; }
.stack-body { padding: 14px 18px 18px; }
.stack-price { font: 700 22px/1.1 var(--display); letter-spacing: -0.02em; }
.stack-title { margin-top: 4px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.stack-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stack { min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .stack-card { position: static; width: auto; scroll-snap-align: start; box-shadow: var(--shadow); }
}
@media (max-width: 520px) {
  .desk-row { grid-template-columns: 1fr; }
  .desk-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .desk-tab { padding: 11px 8px; }
}

/* ---------- Чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--ink-2); transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.chip:hover span { border-color: #E9A46A; }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-soft-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip-input { display: inline-flex; align-items: center; gap: 0; }
.chip-input input[type="number"] { width: 78px; margin-left: -6px; border: 1.5px solid var(--line-2); border-left: 0; border-radius: 0 999px 999px 0; min-height: 40px; padding: 6px 12px; background: var(--surface); font-weight: 700; }
.chip-input span { border-radius: 999px 0 0 999px; }

/* ---------- Секции ---------- */
.sec { padding: clamp(48px, 7vw, 96px) 0; }
.sec-tint { background: var(--tint); border-block: 1px solid var(--line); }
.sec-warm { background: var(--peach); border-top: 1px solid var(--peach-line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-inner { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }

/* ---------- Карточки объявлений ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card-link { text-decoration: none; color: inherit; }
.card-link::after { content: ''; position: absolute; inset: 0; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 0 0 var(--r-card) var(--r-card); }
.card-media { position: relative; }
.cs-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-track > .card-img, .cs-track > .card-img.is-plan { flex: 0 0 100%; scroll-snap-align: start; }
.cs-btn { position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 30, 10, .18); opacity: 0; transition: opacity .15s ease, scale .1s ease-out; z-index: 2; }
.cs-btn .ico { width: 18px; height: 18px; }
.cs-prev { left: 10px; } .cs-next { right: 10px; }
.cs-btn:active { scale: .94; }
.cs-btn:disabled { opacity: 0 !important; pointer-events: none; }
.card:hover .cs-btn, .cs-btn:focus-visible { opacity: 1; }
@media (hover: none) { .cs-btn { display: none; } }
.cs-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.cs-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); transition: background-color .2s ease; }
.cs-dots i.on { width: 16px; border-radius: 3px; background: #fff; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(40, 30, 10, .16); transition: scale .1s ease-out; }
.fav .ico { width: 20px; height: 20px; grid-area: 1 / 1; }
.fav .fav-on { color: var(--accent-deep); opacity: 0; scale: .4; transition: opacity .18s ease, scale .25s var(--ease-out); }
.fav[aria-pressed="true"] .fav-on { opacity: 1; scale: 1; }
.fav[aria-pressed="true"] .fav-off { opacity: 0; }
.fav:hover { color: var(--accent-deep); }
.fav:active { scale: .9; }
.fav.pop .fav-on { animation: favpop .35s var(--ease-out); }
@keyframes favpop { 0% { scale: .6; } 60% { scale: 1.2; } 100% { scale: 1; } }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--plan-bg); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.card:hover .card-img:not(.is-plan) { transform: scale(1.03); }
.card-img.is-plan, .stack-img.is-plan { display: grid; place-items: center; padding: 6% 8%; background: var(--plan-bg); }
.card-body { position: relative; flex: 1; padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.card-ppm { font-size: 13px; color: var(--muted); margin-top: -4px; }
.card-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 700 21px/1.15 var(--display); letter-spacing: -0.02em; }
.card-old { font: 600 14px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.card-title { font: 600 16px/1.35 var(--body); letter-spacing: 0; color: var(--ink); }
.card-kind { display: flex; gap: 6px; flex-wrap: wrap; }
.card-kind span { font-size: 12px; font-weight: 700; color: var(--green-2); background: var(--mint); border-radius: 6px; padding: 3px 8px; }
.card-kind span.is-hold { color: var(--accent-text); background: #FFEDD5; }
.card-kind span.is-new { color: var(--ink); background: var(--sand); box-shadow: inset 0 0 0 1px var(--line-2); }
.card-kind span.is-drop { color: var(--accent-soft-ink); background: var(--accent-soft); }
.card-kind span.is-tour { color: #3A3F8F; background: #ECEBFB; }
.card-facts { font-size: 14px; color: var(--ink-2); }
.card-facts span { color: var(--line-2); }
.card-addr { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.card-addr .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--green-2); }
.card-ago { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card.is-reserved .card-media { filter: saturate(.6); }

/* Схема планировки */
.plan { width: 100%; height: auto; }
.plan-wall { fill: #fff; stroke: var(--plan-ink); stroke-width: 5; }
.plan-in { stroke: var(--plan-ink); stroke-width: 2.5; }
.plan-door { stroke: #fff; stroke-width: 7; }
.plan-t { font: 700 12px var(--body); fill: var(--plan-ink); }
.plan-s { font: 500 11px var(--body); fill: #6B7A70; }
.plan-cap { font: 600 10px var(--body); fill: #A08D74; letter-spacing: .08em; }
.plan-plot { fill: #FFFCF7; stroke: var(--plan-ink); stroke-width: 2.5; stroke-dasharray: 8 6; }
.plan-spot { fill: #fff; stroke: var(--plan-ink); stroke-width: 2; }
.plan-tree { fill: none; stroke: #8FA596; stroke-width: 1.5; }

/* Появление карточек при прокрутке — только если есть JS и не выключена анимация */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); }
html.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--d, 0ms); }

/* ---------- Индекс типов ---------- */
.types { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.type-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.type-index a { display: grid; grid-template-columns: 1fr auto 24px; grid-template-rows: auto auto; column-gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.ti-name { font: 700 19px/1.2 var(--display); letter-spacing: -0.01em; }
.ti-count { font: 800 19px/1 var(--display); color: var(--accent-deep); grid-row: 1; grid-column: 2; }
.ti-from { grid-column: 1 / 3; font-size: 14px; color: var(--muted); }
.ti-arrow { grid-row: 1 / 3; grid-column: 3; align-self: center; color: var(--muted); transition: transform .2s var(--ease-out), color .2s ease; }
.type-index a:hover .ti-name { color: var(--accent-text); }
.type-index a:hover .ti-arrow { transform: translate(2px, -2px); color: var(--accent-text); }
@media (max-width: 860px) { .types { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 560px) { .type-index { grid-template-columns: 1fr; } }

/* ---------- Почему мы ---------- */
.why { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.why-main { background: var(--peach); border: 1px solid var(--peach-line); color: var(--ink); border-radius: 22px; padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.why-big { font: 800 clamp(64px, 9vw, 112px)/.9 var(--display); letter-spacing: -0.04em; color: var(--accent-deep); }
.why-lead { font: 700 22px/1.2 var(--display); color: var(--ink); }
.why-text { color: var(--ink-2); max-width: 40ch; margin-bottom: 8px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; }
.why-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why-list li:first-child { padding-top: 4px; }
.why-list .ico { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--mint); color: var(--green-2); }
.why-list p { color: var(--muted); margin-top: 6px; max-width: 58ch; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.calc-copy { display: grid; gap: 14px; }
.calc-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 30px); display: grid; gap: 20px; box-shadow: var(--shadow); }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-row label, .calc-rates legend { font-size: 14px; font-weight: 600; color: var(--muted); }
.calc-row output { font: 700 18px/1.2 var(--display); }
.calc-rates { border: 0; margin: 0; padding: 0; }
.calc-rates legend { margin-bottom: 8px; padding: 0; }
input[type="range"] { width: 100%; margin: 10px 0 0; accent-color: var(--accent); height: 28px; cursor: pointer; }
.calc-result { background: var(--mint); border-radius: 16px; padding: 18px 20px; }
.calc-result > p:first-child { font-size: 14px; font-weight: 600; color: var(--green-2); }
.calc-pay { font: 800 clamp(34px, 5vw, 46px)/1.05 var(--display); letter-spacing: -0.03em; color: var(--green); margin-top: 2px; }
.calc-loan { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font: 700 clamp(16px, 1.8vw, 18px)/1.35 var(--display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { color: var(--green-2); transition: transform .25s var(--ease-out); }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-item p { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Формы ---------- */
.podbor { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.podbor-copy { display: grid; gap: 16px; }
.podbor-form { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; padding: clamp(20px, 3vw, 30px); }
@media (max-width: 860px) { .podbor { grid-template-columns: 1fr; } }
.lead-form { display: grid; gap: 14px; }
.js-lead-fields { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .filters input[type="text"], .filters select, .pb-calc select { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); padding: 13px 14px; font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea.js-wish { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.45; resize: vertical; min-height: 84px; transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea.js-wish:hover { border-color: #C9B79F; }
.field textarea.js-wish:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.field input::placeholder, .filters input::placeholder, .field textarea::placeholder { color: #6B756E; }
.field input:hover, .filters input:hover, .filters select:hover { border-color: #C9B79F; }
.field input:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.field-err, .form-err { font-size: 13px; color: var(--danger); font-weight: 600; min-height: 0; }
.field-err:empty, .form-err:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-deep); cursor: pointer; }
.check.is-optional { color: var(--muted); }
.form-note { font-size: 12px; color: var(--muted); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.lead-done { text-align: center; padding: 18px 4px; display: grid; gap: 10px; justify-items: center; }
.lead-done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--green-2); display: grid; place-items: center; animation: pop .45s var(--ease-out); }
.lead-done-mark .ico { width: 28px; height: 28px; }
.lead-done-title { font: 800 21px/1.2 var(--display); }
.lead-done-text { color: var(--muted); max-width: 36ch; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(12, 24, 17, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fade .2s ease-out; }
.modal-box { position: relative; width: 100%; max-width: 440px; background: var(--bg); border-radius: 22px; padding: clamp(22px, 4vw, 32px); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .4); animation: rise .28s var(--ease-out); }
.modal-title { font: 800 24px/1.15 var(--display); padding-right: 36px; }
.modal-text { color: var(--muted); margin: 8px 0 18px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); display: grid; place-items: center; cursor: pointer; }
.modal-x:hover { background: var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- Каталог ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0; margin: 20px 0 12px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.cat-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cat-count { color: var(--muted); font-weight: 600; }
.cat-links { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; scrollbar-width: none; }
.cat-links a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.cat-links a:hover { border-color: var(--accent); color: var(--accent-soft-ink); }
.cat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: 24px; align-items: start; }
.cat-side { position: sticky; top: 88px; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: grid; gap: 18px; }
.f-group { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.f-group legend, .f-group > label { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.f-group > label { margin-bottom: 0; }
.f-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .chip span { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.filters select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2333433A' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; cursor: pointer; }
.f-actions { display: grid; gap: 10px; justify-items: center; }
.link-reset { font-size: 14px; color: var(--muted); }
.filters-toggle { display: none; }
.cat-main .grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cat-bar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.sort select { border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); padding: 9px 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.empty { background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-card); padding: clamp(20px, 4vw, 36px); display: grid; gap: 12px; max-width: 560px; }
.empty > p { color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 32px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-ctl); text-decoration: none; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--surface); padding: 0 10px; }
.pager a:hover { border-color: var(--accent); color: var(--accent-soft-ink); }
.pager [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .gap { border: 0; background: none; }
.cat-seo { margin: clamp(40px, 6vw, 72px) 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); max-width: 80ch; font-size: 15px; }
@media (max-width: 900px) {
  .cat { grid-template-columns: 1fr; }
  .cat-side { position: static; }
  .filters-toggle { display: inline-flex; }
  .filters { display: none; margin-top: 10px; }
  .cat-side.is-open .filters { display: grid; }
  .cat-bar { justify-content: flex-start; }
}

/* ---------- Страница объекта ---------- */
.demo-note { background: #FFF4E5; border: 1px solid #F7D9B5; color: #7A3E0A; border-radius: var(--r-ctl); padding: 10px 14px; font-size: 14px; margin-bottom: 12px; }
.obj { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.obj-h { font-size: clamp(26px, 3.6vw, 40px); }
.obj-addr { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 10px 0 20px; }
.obj-addr .ico { color: var(--green-2); width: 18px; height: 18px; }
.gallery-main { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--plan-bg); aspect-ratio: 3 / 2; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery.is-plan .gallery-main { display: grid; place-items: center; padding: 5% 10%; }
.gallery-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 10px; }
.gallery-note .ico { width: 18px; height: 18px; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.g-nav:hover { background: #fff; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(16, 26, 20, .7); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.g-thumb { flex: none; width: 96px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--plan-bg); opacity: .7; transition: opacity .15s ease, border-color .15s ease; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb[aria-current="true"], .g-thumb:hover { opacity: 1; border-color: var(--accent); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 22px 0 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile-v { font: 700 22px/1.1 var(--display); letter-spacing: -0.02em; }
.tile-k { font-size: 13px; color: var(--muted); margin-top: 4px; }
.obj-sec { padding: 28px 0 4px; display: grid; gap: 12px; }
.prose { display: grid; gap: 12px; color: var(--ink-2); max-width: 70ch; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 20px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; }
.feat .ico { color: var(--green-2); margin-top: 2px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }
.spec-group dl { margin: 10px 0 0; display: grid; gap: 0; }
.spec-group dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.spec-group dt { color: var(--muted); }
.spec-group dd { margin: 0; font-weight: 600; text-align: right; }
.obj-side { position: sticky; top: 88px; }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.pb-price { font: 800 clamp(30px, 3.4vw, 36px)/1.05 var(--display); letter-spacing: -0.03em; }
.pb-old { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.pb-drop { color: var(--accent-text); font-weight: 700; }
.pb-ppm { color: var(--muted); font-size: 14px; }
.pb-calc { background: var(--mint); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; margin: 6px 0; }
.pb-calc input[type="range"] { margin: 0; }
.pb-rate { display: grid; gap: 6px; }
.pb-calc select { padding: 9px 10px; font-size: 14px; width: 100%; }
.pb-pay { font-size: 14px; color: var(--ink-2); }
.pb-pay b { font: 800 20px var(--display); color: var(--green); }
.pb-cta-h { font: 700 17px/1.2 var(--display); margin-top: 8px; }
.pb-meta { font-size: 12px; color: var(--muted); }
.status-sold { background: var(--ink); color: #fff; font-weight: 700; padding: 8px 12px; border-radius: 10px; justify-self: start; }
.status-hold { background: #FFEDD5; color: var(--accent-text); font-weight: 600; padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.sticky-cta { display: none; }
@media (max-width: 980px) {
  .obj { grid-template-columns: 1fr; }
  .obj-side { position: static; }
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 10px var(--gutter); gap: 12px; align-items: center; justify-content: space-between;
    box-shadow: 0 -8px 24px -12px rgba(60, 50, 30, .25); }
  .sticky-cta p { font: 800 20px var(--display); }
  .page-object .site-foot { padding-bottom: 96px; }
}

/* ---------- 404 ---------- */
.nf { display: grid; gap: 16px; justify-items: start; }
.nf-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.site-foot { background: var(--sand); border-top: 1px solid var(--line); color: var(--ink-2); padding: 48px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 32px; }
.brand-light { color: var(--ink); }
.foot-text { margin-top: 14px; max-width: 40ch; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: start; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { color: var(--accent-text); text-decoration: underline; }
.foot-legal { display: grid; gap: 6px; align-content: start; }
.foot-legal .muted { color: var(--muted); font-size: 12px; margin-top: 6px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: flex; gap: 14px; align-items: center; box-shadow: 0 20px 40px -16px rgba(60, 50, 30, .3); font-size: 13px; animation: rise .3s var(--ease-out); }
.cookie a { color: var(--accent-text); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) { .cookie { flex-direction: column; align-items: stretch; } .cookie-actions > * { flex: 1; } .page-object .cookie { bottom: 84px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Блог ---------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); }
.art-grid-main { margin-top: 0; }
.art-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.art-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.art-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--plan-bg); }
.art-img-empty { display: grid; place-items: center; color: #C9A77F; }
.art-img-empty .ico { width: 56px; height: 56px; opacity: .5; }
.art-body { padding: 18px; display: grid; gap: 8px; align-content: start; }
.art-title { font: 700 19px/1.3 var(--display); letter-spacing: -0.01em; }
.art-card a:hover .art-title { color: var(--accent-text); }
.art-excerpt { color: var(--muted); font-size: 15px; }
.art-meta { font-size: 13px; color: var(--muted); }
.blog-head { display: grid; gap: 12px; margin-top: 8px; margin-bottom: clamp(24px, 4vw, 36px); }
.blog-cta { margin: clamp(40px, 6vw, 72px) 0; background: var(--peach); border: 1px solid var(--peach-line); color: var(--ink); border-radius: 26px; padding: clamp(22px, 4vw, 44px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.blog-cta .lead { margin-top: 12px; }
@media (max-width: 860px) { .blog-cta { grid-template-columns: 1fr; } }
.post { max-width: 760px; }
.post-head { display: grid; gap: 14px; margin-bottom: 24px; }
.post-meta { font-size: 14px; color: var(--muted); }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-tags span { font-size: 13px; font-weight: 600; color: var(--green-2); background: var(--mint); border-radius: 8px; padding: 4px 10px; }
.post-cover { width: 100%; border-radius: var(--r-card); margin-bottom: 28px; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-body { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.post-body > * + * { margin-top: 18px; }
.post-body h2 { font: 800 clamp(22px, 2.8vw, 28px)/1.2 var(--display); color: var(--ink); margin-top: 40px; }
.post-body h3 { font: 700 clamp(19px, 2.2vw, 22px)/1.3 var(--display); color: var(--ink); margin-top: 32px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 8px; }
.post-body a { color: var(--accent-text); text-decoration: underline; }
.post-body blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; background: var(--tint); border-radius: 14px; font-size: 17px; }
.post-body img { border-radius: 14px; height: auto; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.post-body th, .post-body td { border-bottom: 1px solid var(--line-2); padding: 10px 12px; text-align: left; }
.art-listings { margin-top: clamp(40px, 6vw, 64px); }


/* ================= v2.2 ================= */
/* Шапка: избранное */
.fav-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-ctl); color: var(--ink-2); margin-left: 4px; }
.fav-link:hover { background: var(--tint); color: var(--accent-deep); }
.fav-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--body); text-align: center; }
@media (max-width: 1060px) { .fav-link { margin-left: auto; } .nav-toggle { margin-left: 4px; } }

/* Фильтры */
.chip-check span { gap: 6px; }
.chip-check .ico { width: 16px; height: 16px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 16px; }
.af { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px 6px 14px; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.af .ico { width: 14px; height: 14px; color: var(--muted); }
.af:hover { background: #EDE0CF; color: var(--ink); }
.af:hover .ico { color: var(--accent-text); }
.af-reset { font-size: 14px; margin-left: 4px; }
.cat-bar { justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.view-toggle { display: inline-flex; background: var(--tint); border-radius: 12px; padding: 4px; gap: 4px; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 12px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.view-toggle button .ico { width: 18px; height: 18px; }
.view-toggle button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(60, 50, 30, .08), 0 2px 8px -2px rgba(60, 50, 30, .12); }
.cat-map { margin-bottom: 20px; }
.map-box { height: min(62vh, 560px); border-radius: var(--r-card); overflow: hidden; background: var(--plan-bg); border: 1px solid var(--line); }
.map-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Подписка на поиск */
.subscribe { margin-top: clamp(28px, 4vw, 44px); background: var(--peach); border: 1px solid var(--peach-line); border-radius: 22px; padding: clamp(18px, 3vw, 28px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(16px, 3vw, 32px); align-items: center; }
.sub-copy { display: grid; gap: 8px; }
.sub-copy p { color: var(--ink-2); max-width: 52ch; }
.sub-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--accent-deep); display: grid; place-items: center; }
.sub-form { background: var(--surface); border-radius: 18px; padding: 18px; border: 1px solid var(--line); }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; } }

/* Страница объекта */
.obj-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 12px; }
.obj-meta-row .obj-addr { margin: 0; }
.obj-actions { display: flex; gap: 8px; flex: none; }
.fav.fav-inline { position: static; box-shadow: none; border: 1px solid var(--line-2); width: 44px; height: 44px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: scale .1s ease-out; }
.icon-btn:hover { color: var(--accent-deep); border-color: var(--accent); }
.icon-btn:active { scale: .92; }
.obj-badges { margin-bottom: 14px; }
.mt-list { display: flex; gap: 4px; background: var(--tint); border-radius: 14px; padding: 4px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.mt-list [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.mt-list [role="tab"] .ico { width: 18px; height: 18px; }
.mt-list [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(60, 50, 30, .08), 0 2px 8px -2px rgba(60, 50, 30, .12); }
.embed { aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; background: var(--plan-bg); display: grid; place-items: center; }
.embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed-ph { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.obj-map { height: 320px; border-radius: var(--r-card); overflow: hidden; background: var(--plan-bg); border: 1px solid var(--line); margin: 4px 0 8px; }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-ctl); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.cbtn .ico { width: 20px; height: 20px; }
.cbtn-tg .ico { color: #229ED9; } .cbtn-wa .ico { color: #1FA855; } .cbtn-max .ico { color: #6B4CE6; } .cbtn-ph .ico { color: var(--accent-deep); }
.cbtn:hover { border-color: var(--accent); color: var(--ink); }
.pb-contacts { margin-top: 4px; }

/* Главная: персональные блоки */
.personal { padding-bottom: 0; }
.js-rec-wrap { margin-top: 40px; }
.js-seen-wrap[hidden] + .js-rec-wrap { margin-top: 0; }
.sec-note { color: var(--muted); font-size: 14px; }

/* Избранное: путь к ключам */
.keys-path { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 26px); margin: 20px 0 28px; }
.kp-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: kp; }
.kp-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.kp-steps p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.kp-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.kp-dot .ico { width: 16px; height: 16px; }
.kp-steps li.done .kp-dot { background: var(--green-2); border-color: var(--green-2); color: #fff; }
@media (max-width: 860px) { .kp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kp-steps { grid-template-columns: 1fr; } }

/* Уведомление */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 95; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); animation: rise .22s var(--ease-out); transition: opacity .18s ease-in, translate .18s ease-in; }
.toast.out { opacity: 0; translate: -50% 8px; }

/* Доступность: зоны нажатия на телефоне */
@media (max-width: 640px) {
  .crumbs a, .foot-nav a, .site-foot .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .chip span { min-height: 44px; }
  .link-arrow { min-height: 44px; }
  input[type="range"] { height: 44px; }
}

/* ================= v2.3: кабинет продавца ================= */
.cab-link { margin-left: 4px; }
@media (max-width: 1060px) { .cab-link { margin-left: auto; } .cab-link + .fav-link { margin-left: 0; } }
.field-hint { font-size: 13px; color: var(--muted); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }

.sell-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3.4vw, 40px); }
.sell-band .lead { margin-top: 12px; }
.sell-actions { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 760px) { .sell-band { grid-template-columns: 1fr; } }

.cab { padding-bottom: clamp(48px, 7vw, 96px); }
.cab-auth { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 8px; }
.cab-intro { display: grid; gap: 16px; }
@media (max-width: 900px) { .cab-auth { grid-template-columns: 1fr; } }
.how { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 16px; }
.how li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.how .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--peach); color: var(--accent-deep); }
.how p { color: var(--muted); margin-top: 2px; }
.cab-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--tint); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg a { text-align: center; padding: 10px; border-radius: 9px; font-weight: 700; color: var(--muted); text-decoration: none; }
.seg a[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(60, 50, 30, .08), 0 2px 8px -2px rgba(60, 50, 30, .12); }
.cab-form { display: grid; gap: 14px; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.pw-eye[aria-pressed="true"] { color: var(--accent-deep); }
.cab-form .field input, .cab-listing .field input, .cab-listing .field select, .cab-listing .field textarea { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); padding: 12px 14px; font-size: 16px; }
.cab-listing .field select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2333433A' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.cab-listing .field textarea { resize: vertical; line-height: 1.5; }
.cab-form .field input:focus, .cab-listing .field :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.cab-listing .field [aria-invalid="true"], .cab-form .field [aria-invalid="true"] { border-color: var(--danger); }

.cab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cab-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cab-list { display: grid; gap: 14px; }
.cab-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.cab-thumb img, .cab-thumb .is-plan { width: 160px; height: 107px; object-fit: cover; border-radius: 12px; background: var(--plan-bg); display: grid; place-items: center; padding: 0; }
.cab-thumb .is-plan svg { width: 90%; }
.cab-info { display: grid; gap: 6px; }
.cab-title { font: 700 18px/1.3 var(--display); }
.cab-meta, .cab-stats, .cab-hint { font-size: 14px; color: var(--muted); }
.cab-stats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cab-stats .ico { width: 16px; height: 16px; }
.cab-status { display: flex; gap: 6px; flex-wrap: wrap; }
.mod { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; background: var(--sand); color: var(--ink); }
.mod.is-ok { background: var(--mint); color: var(--green-2); }
.mod.is-wait { background: var(--accent-soft); color: var(--accent-soft-ink); }
.mod.is-bad { background: #FDE8E6; color: var(--danger); }
.mod.is-off { background: #ECEAE6; color: var(--muted); }
.cab-note, .cab-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.cab-note { background: #FDE8E6; color: #7A1F16; }
.cab-warn { background: var(--peach); color: var(--ink-2); border: 1px solid var(--peach-line); margin: 12px 0; }
.cab-note .ico, .cab-warn .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.cab-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 190px; }
.cab-actions .btn { justify-content: flex-start; }
@media (max-width: 860px) {
  .cab-row { grid-template-columns: 110px minmax(0, 1fr); }
  .cab-thumb img, .cab-thumb .is-plan { width: 110px; height: 74px; }
  .cab-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
}
.cab-empty { max-width: 640px; }
.cab-profile { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cab-profile summary { cursor: pointer; padding: 16px 20px; font: 700 16px var(--display); display: flex; gap: 8px; align-items: center; list-style: none; }
.cab-profile summary::-webkit-details-marker { display: none; }
.cab-profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding: 0 20px 20px; }

.cab-listing { display: grid; gap: 16px; margin-top: 16px; max-width: 980px; }
.cab-fs { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 16px 18px 18px; margin: 0; min-width: 0; display: grid; gap: 14px; }
.cab-fs legend { font: 700 16px var(--display); padding: 0 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.cab-save { display: flex; gap: 10px; flex-wrap: wrap; }
.cab-photos { margin-top: 20px; max-width: 980px; }
.cab-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cab-photo { position: relative; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--plan-bg); }
.cab-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.cab-photo .cover { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; background: var(--ink); color: #fff; border-radius: 6px; padding: 3px 7px; }
.cab-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 6px 8px; background: var(--surface); }
.plan-flag { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; cursor: pointer; }
.cab-photo-tools { display: flex; gap: 2px; }
.cab-photo-tools .icon-btn { width: 34px; height: 34px; border: 0; }
.cab-photo-tools .icon-btn:disabled { opacity: .3; cursor: default; }
.cab-upload { justify-self: start; cursor: pointer; }
.cab-submit { display: grid; gap: 6px; justify-items: start; border-top: 1px solid var(--line); padding-top: 14px; }

/* v2.4: реклама консультации по ипотеке в выдаче (недорогие объекты) */
.mort-promo { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 22px; align-items: center; background: var(--peach); border: 1px solid var(--peach-line); border-radius: var(--r-card); padding: clamp(18px, 3vw, 26px); }
.mort-promo-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--surface); display: grid; place-items: center; color: var(--accent-deep); }
.mort-promo-ic svg { width: 26px; height: 26px; }
.mort-promo h2 { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.25; }
.mort-promo p { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.mort-promo .btn { white-space: nowrap; }
@media (max-width: 720px) { .mort-promo { grid-template-columns: 1fr; } .mort-promo-ic { display: none; } .mort-promo .btn { width: 100%; } }

/* v2.5: страница «Продать с нами» */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.sell-hero { padding: clamp(8px, 2vw, 16px) 0 clamp(40px, 6vw, 72px); }
.sell-hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sell-hero .lead { margin-top: 16px; }
.sell-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.platforms { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li { font-size: 14px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.fee-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 18px 40px -28px rgba(80, 40, 0, .35); display: grid; gap: 10px; }
.fee-card-h { font: 700 16px/1.3 var(--display); color: var(--muted); }
.fee-big { font: 800 clamp(32px, 4vw, 44px)/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.fee-sub { color: var(--ink-2); }
.fee-calc { display: grid; gap: 8px; margin-top: 8px; padding: 16px; border-radius: 16px; background: var(--peach); border: 1px solid var(--peach-line); }
.fee-calc label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.fee-calc input { width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-ctl); background: var(--surface); padding: 12px 14px; font-size: 18px; font-weight: 700; }
.fee-calc input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .18); }
.fee-out { color: var(--ink-2); }
.fee-out b { color: var(--ink); font-size: 18px; }
.fee-note { font-size: 14px; color: var(--muted); }
.inc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.inc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 28px); display: grid; gap: 12px; align-content: start; }
.inc-top { display: flex; align-items: center; gap: 14px; }
.inc-top .inc-ic { flex: none; }
.inc-card p { max-width: 62ch; }
.inc-main { background: var(--peach); border-color: transparent; }
.inc-main .inc-ic { background: var(--surface); }
.inc-main h3 { font-size: clamp(19px, 1.8vw, 22px); }
.inc-platforms { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.inc-platforms li { padding: 6px 12px; border-radius: 999px; background: var(--surface); font-weight: 600; font-size: 14px; }
@media (min-width: 640px) {
  .inc-grid { grid-template-columns: 1fr 1fr; }
  .inc-main { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .inc-grid { grid-template-columns: repeat(6, 1fr); }
  .inc-card { grid-column: span 2; }
  .inc-main, .inc-wide { grid-column: span 3; }
}
.inc-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--peach); color: var(--accent-deep); display: grid; place-items: center; }
.inc-ic .ico { width: 22px; height: 22px; }
.inc-grid h3 { font: 700 18px/1.3 var(--display); }
.inc-grid p { color: var(--ink-2); }
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr); gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: start; }
.cmp-row:first-child { border-top: 0; }
.cmp-headrow { background: var(--sand, #F4EBDF); font-weight: 800; font-size: 14px; }
.cmp-row [role="rowheader"] { font-weight: 700; }
.cmp-row [role="cell"] { color: var(--muted); }
.cmp-us { color: var(--ink) !important; font-weight: 600; display: flex; gap: 8px; align-items: flex-start; }
.cmp-us .ico { color: var(--accent-deep); margin-top: 2px; }
.steps5 { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps5 li { counter-increment: s; display: grid; gap: 6px; align-content: start; padding-top: 52px; position: relative; }
.steps5 li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #1B1B1B; font: 800 17px/38px var(--display); text-align: center; }
.steps5 b { font: 700 17px/1.3 var(--display); }
.steps5 p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .sell-hero-in { grid-template-columns: 1fr; } .steps5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .steps5 { grid-template-columns: 1fr; } .steps5 li { padding: 0 0 0 52px; min-height: 38px; }
  .cmp-row { grid-template-columns: 1fr; gap: 4px; } .cmp-headrow { display: none; }
  .cmp-row [role="cell"]:not(.cmp-us)::before { content: 'Сами: '; font-weight: 700; }
}
/* комиссия на странице объекта и бейдж эксклюзива */
.pb-fee { margin: 10px 0 4px; font-size: 14px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); }
.pb-fee summary, p.pb-fee { display: flex; gap: 8px; align-items: flex-start; list-style: none; cursor: pointer; }
p.pb-fee { cursor: default; }
.pb-fee summary::-webkit-details-marker { display: none; }
.pb-fee .ico { color: var(--accent-deep); margin-top: 1px; }
.pb-fee.is-free { background: var(--mint); border-color: transparent; }
.pb-fee.is-free .ico { color: var(--green-2); }
.pb-fee > p { margin-top: 8px; color: var(--muted); }
.card-kind .is-excl { background: #1B1B1B; color: #FFF3E6; }
/* кабинет: эксклюзив */
.excl-box { border: 1.5px solid var(--peach-line); background: var(--peach); border-radius: 18px; padding: 18px; display: grid; gap: 10px; }
.excl-box h3 { font: 700 18px/1.3 var(--display); }
.excl-box p { color: var(--ink-2); font-size: 15px; }
.excl-state { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #1B1B1B; color: #FFF3E6; }
.excl-state.is-requested { background: var(--surface); color: var(--accent-deep); border: 1px solid var(--peach-line); }

/* v2.6: кабинет агентства */
.acc-type { border: 0; margin: 0 0 4px; padding: 0; display: grid; gap: 8px; }
.acc-type legend { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.acc-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface); }
.acc-opt:has(input:checked) { border-color: var(--accent); background: var(--peach); }
.acc-opt input { margin-top: 3px; accent-color: var(--accent-deep); }
.acc-opt b { display: block; }
.acc-opt small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cab-sub { margin: 28px 0 12px; }
.ag-panel { margin-top: 20px; display: grid; gap: 12px; }
.ag-plan { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--peach); border: 1px solid var(--peach-line); }
.ag-plan .ico { width: 24px; height: 24px; color: var(--accent-deep); margin-top: 2px; }
.ag-plan b { display: block; font-size: 16px; }
.ag-plan span { color: var(--ink-2); font-size: 14px; }
.ag-leads { display: grid; gap: 10px; }
.ag-lead { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ag-when { font-size: 13px; color: var(--muted); }
.ag-obj { font-weight: 700; color: var(--ink); text-decoration: none; }
.ag-obj:hover { text-decoration: underline; }
.ag-who { margin-top: 4px; }
.ag-tel { font-weight: 700; color: var(--ink); }
.ag-tel.is-masked { color: var(--muted); letter-spacing: .03em; }
.ag-comment { margin-top: 6px; font-size: 14px; color: var(--ink-2); white-space: pre-line; }
.ag-act { display: grid; gap: 4px; justify-items: end; }
.ag-act select { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 8px 10px; background: var(--surface); font: inherit; }
.pb-partner { background: var(--tint, #F7F2EA); }
@media (max-width: 640px) { .ag-lead { grid-template-columns: 1fr; } .ag-act { justify-items: start; } }

/* v2.7: компактные превью статей */
.art-compact { margin-top: clamp(32px, 5vw, 56px); }
.art-compact .sec-head { margin-bottom: 14px; }
.art-mini-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px 16px; }
.art-mini a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease; }
.art-mini a:hover { border-color: var(--peach-line); background: var(--peach); }
.art-mini img, .art-mini-ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.art-mini-ph { display: grid; place-items: center; background: var(--peach); color: var(--accent-deep); }
.art-mini-ph .ico { width: 24px; height: 24px; }
.art-mini b { display: block; font: 700 15px/1.35 var(--display); }
.art-mini a:hover b { color: var(--accent-text); }
.art-mini small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.sell-arts { padding-bottom: clamp(32px, 5vw, 56px); }
/* объекты внутри статьи */
.art-inline { margin: 32px 0; padding: 18px; border-radius: 20px; background: var(--peach); border: 1px solid var(--peach-line); display: grid; gap: 12px; }
.art-inline-h { display: flex; gap: 8px; align-items: center; font: 800 17px/1.3 var(--display); color: var(--ink); margin: 0 !important; }
.art-inline-h .ico { color: var(--accent-deep); }
.lst-mini-list { display: grid; gap: 8px; }
.lst-mini { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface); text-decoration: none !important; color: var(--ink) !important; border: 1px solid transparent; transition: border-color .15s ease, transform .15s ease; }
.lst-mini:hover { border-color: var(--accent); transform: translateY(-1px); }
.lst-mini img, .lst-mini-ph { width: 112px; height: 84px; border-radius: 10px; object-fit: cover; }
.lst-mini-ph { display: grid; place-items: center; background: var(--sand, #F4EBDF); color: #B8966B; }
.lst-mini-body { display: grid; gap: 2px; min-width: 0; }
.lst-mini-body b { font: 800 17px/1.2 var(--display); }
.lst-mini-body span { font-size: 15px; font-weight: 600; line-height: 1.3; }
.lst-mini-body small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-inline-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
@media (max-width: 480px) { .lst-mini { grid-template-columns: 88px 1fr; } .lst-mini img, .lst-mini-ph { width: 88px; height: 70px; } .art-inline-foot .btn { width: 100%; } }
/* оглавление статьи */
.post-toc { margin: 24px 0 8px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 14px 14px 0; }
.post-toc p { font: 800 14px/1.3 var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.post-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.post-toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.post-toc a:hover { color: var(--accent-text); text-decoration: underline; }
.post-body h2 { scroll-margin-top: 90px; }

/* ================= v2.10: загрузка из файла ================= */
.cab-head-actions { flex-wrap: wrap; }
.cab-import .h1 { margin-top: 8px; }
.imp-lead { max-width: 68ch; color: var(--ink-2); margin: 10px 0 24px; }
.imp-form { max-width: 720px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card, 16px); background: var(--surface); }
.imp-form input[type="file"] { width: 100%; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r-ctl); background: var(--bg); }
.imp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.imp-report:empty { display: none; }
.imp-report { margin-top: 18px; display: grid; gap: 10px; }
.imp-sum, .imp-ok { margin: 0; }
.imp-ok { padding: 12px 14px; border-radius: 12px; background: #e9f6ee; color: #14472f; }
.imp-warn { padding: 10px 12px; border-radius: 12px; background: #fff4e0; color: #7a4b00; font-size: 14px; }
.imp-errs, .imp-prev { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.imp-errs li { color: #b33b2c; }
.imp-errs b { color: var(--ink); }
.imp-help { max-width: 980px; margin-top: 28px; }
.imp-help summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 6px 0; }
.imp-steps { padding-left: 20px; display: grid; gap: 6px; }
.imp-table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.imp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.imp-table th, .imp-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.imp-table th { background: var(--sand); font-weight: 700; }
.imp-table td:first-child { white-space: nowrap; }
.imp-table tr:last-child td { border-bottom: 0; }
