/* Дополнения рабочего сайта к стилям варианта A: новостройки, подборки клиентам, формы, печать. */
.noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 160px; background: var(--bg2); color: var(--mut); font-size: 14px; }
.toast.bad { background: #8A2D17; }
.muted-l { opacity: .7; font-size: 13px; }

/* шапка: восемь разделов в одну строку */
@media (min-width: 1181px) { .main-nav { gap: 18px; } }
.main-nav a { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1400px) { .main-nav { gap: 14px; } .main-nav a { font-size: 14px; } .btn-add span { display: none; } .btn-add { padding: 10px 12px; } }
/* переключатель языков виден всегда, на телефоне тоже */
@media (max-width: 1180px) { .langs { display: flex; } .btn-add span { display: none; } .btn-add { padding: 10px 12px; } }
@media (max-width: 600px) { .btn-wa span { display: none; } .btn-wa { padding: 10px 12px; } .head-in { gap: 10px; } .logo img { width: 120px; } }

/* новостройка */
.facts.pfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.payplan { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; counter-reset: st; }
.payplan li { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--acc); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.payplan li b { font: 600 34px/1 var(--font-d); color: var(--ink); }
.payplan li span { color: var(--mut); font-size: 14px; }
.planph img { max-height: 180px; width: auto; object-fit: contain; }
.planimg { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.ticks.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.art-body { max-width: 760px; }
.art-body p { margin: 0 0 14px; }

/* мастер размещения: экран после отправки */
.wz-done { max-width: 640px; padding: 28px; }
.wz-done h2 { margin-bottom: 12px; }
.wz-done:focus { outline: none; }

/* подборка клиенту */
.sel-page { padding-top: 28px; padding-bottom: 48px; }
.sel-head { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.sel-head h1 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 8px; }
.sel-note { background: var(--surface); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 12px 12px 0; max-width: 62ch; }
.sel-broker { display: flex; flex-direction: column; gap: 12px; }
.sel-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 8px; }
.sel-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.sel-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-1); }
.sel-item.is-off { opacity: .6; }
.sel-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 260px; }
.sel-photos a { display: block; min-height: 0; }
.sel-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.sel-photos a:first-child { grid-row: span 2; }
.sel-photos a:only-child { grid-column: span 2; }
/* режим сборки PDF: как печать, но в браузере */
.pdf-mode .no-print { display: none !important; }
.pdf-mode .print-only { display: block; }
.pdf-mode .sel-item { box-shadow: none; }
.sel-body { display: flex; flex-direction: column; gap: 8px; }
.sel-body h2 { font-size: 26px; }
.sel-body .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sel-state { color: #8A2D17; }
.sel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.print-only { display: none; }

@media (max-width: 900px) {
  .facts.pfacts { grid-template-columns: 1fr 1fr; }
  .payplan { grid-auto-flow: row; }
  .sel-head, .sel-item { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ticks.cols { grid-template-columns: 1fr; }
  .sel-body .facts { grid-template-columns: 1fr 1fr; }
  .sel-photos { min-height: 200px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 12px; }
  .site-head, .site-foot, .crumbs, .no-print, .toast { display: none !important; }
  .print-only { display: block; }
  .sel-page { padding: 0; }
  .sel-head { grid-template-columns: 1fr 260px; }
  .sel-item { break-inside: avoid; box-shadow: none; grid-template-columns: 1fr 1fr; }
  .sel-item + .sel-item { margin-top: 0; }
  .sel-photos { min-height: 200px; }
  a { color: inherit; }
}

/* карты */
.map { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--bg2); margin: 12px 0 0; z-index: 0; }
.map .leaflet-popup-content a { font-weight: 700; }

/* кабинет собственника */
.acc { padding-top: 28px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 22px; }
.acc-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.acc-login { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.acc .facts.stats { margin-top: 0; }
.acc .facts dt { display: flex; gap: 6px; align-items: center; }
.acc-broker { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ocard > img { width: 100%; height: 100%; object-fit: cover; }

/* подборка клиенту: своя шапка */
.sel-brand { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 6px; }
.bare .sel-page { padding-top: 12px; }

/* арабская версия */
html[dir=rtl] body { font-family: 'Noto Kufi Arabic', var(--font-b); }
html[dir=rtl] h1, html[dir=rtl] h2 { font-family: 'Noto Kufi Arabic', var(--font-d); letter-spacing: 0; }
html[dir=rtl] .eyebrow { letter-spacing: 0; }
html[dir=rtl] .main-nav { margin-left: 0; margin-right: auto; }
html[dir=rtl] .badge { left: auto; right: 12px; }
html[dir=rtl] .badge.b-new { right: auto; left: 12px; }
html[dir=rtl] .sec-h a .ic, html[dir=rtl] .btn .ic[data-flip] { transform: scaleX(-1); }
html[dir=rtl] .sel-note { border-left: 0; border-right: 4px solid var(--gold); border-radius: 12px 0 0 12px; }
html[dir=rtl] .add-side .track li { border-left: 0; border-right: 4px solid var(--line); padding: 2px 12px 2px 0; }
html[dir=rtl] .add-side .track li.cur { border-color: var(--gold); }

@media (max-width: 900px) {
  .acc-login { grid-template-columns: 1fr; }
}

/* картинки внутри статей: не выше экрана */
.art-body img, .art-body picture img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius); margin: 20px 0 8px; }
.art-body h2 { margin: 36px 0 12px; }
.art-body h3 { margin: 24px 0 8px; font-size: 20px; }
.art-body ul, .art-body ol { padding-inline-start: 22px; margin: 0 0 16px; }
.art-body li { margin-bottom: 6px; }
.legal .art-body { max-width: 820px; }

/* ---- карточка: карусель фото и плашки (19.10) */
.lc-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lc-track::-webkit-scrollbar { display: none; }
.lc-track > a { flex: 0 0 100%; scroll-snap-align: start; display: block; height: 100%; }
.lcard:hover .lc-track img { transform: none; }
.lc-badges { position: absolute; inset: 12px 12px auto 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.lc-badges .badge, .lc-badges .badge.b-new, .lc-badges .badge.b-owner { position: static; inset: auto; }
.badge.b-gold { background: #14262A; color: var(--gold-soft); }
.lc-nav { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; box-shadow: var(--shadow-1); }
.lc-nav.prev { left: 10px; } .lc-nav.next { right: 10px; }
.lc-nav.prev .ic { transform: scaleX(-1); }
.lcard:hover .lc-nav, .lc-nav:focus-visible { opacity: 1; }
.lc-nav:hover { background: #fff; } .lc-nav:active { transform: scale(.94); }
.lc-nav:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lc-count { position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(20,38,42,.72); color: #fff; }
@media (hover: none) { .lc-nav { opacity: 1; width: 30px; height: 30px; margin-top: -15px; } }
html[dir=rtl] .lc-nav.prev { left: auto; right: 10px; } html[dir=rtl] .lc-nav.next { right: auto; left: 10px; }
html[dir=rtl] .lc-nav.prev .ic { transform: none; } html[dir=rtl] .lc-nav.next .ic { transform: scaleX(-1); }
html[dir=rtl] .lc-count { right: auto; left: 12px; }
html[dir=rtl] .lc-badges .badge { right: auto; left: auto; }

/* ---- страница юнита: сквозные блоки проекта и района */
.xblock { background: var(--bg2); border-radius: var(--radius); padding: 22px 24px; }
.xb-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.xb-h h2 { margin: 0; }
.xb-h a { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.xblock .facts { margin: 14px 0 0; }
.xb-tags { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.xb-tags li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.xb-area { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.xb-area > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.xb-area:not(:has(> img)) { grid-template-columns: 1fr; }
@media (max-width: 720px) { .xb-area { grid-template-columns: 1fr; } .xblock { padding: 18px 16px; } }
html[dir=rtl] .xb-h a .ic { transform: scaleX(-1); }

/* ---- фильтр: дополнительные параметры, карта выдачи, форма внутри выдачи */
.fmore { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.fmore summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--acc); width: max-content; }
.fmore summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.fmore-in { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; margin-top: 12px; }
.fmore-in label:not(.fcheck) { min-width: 180px; }
.fcheck { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; accent-color: var(--acc); }
.fcheck span { font-size: 14px; color: var(--ink); font-weight: 600; }
.maptoggle { flex: 1 1 auto; }
.maptoggle .map { margin-top: 12px; border-radius: var(--radius); }
.lbar:has(.maptoggle [aria-expanded=true]) .maptoggle { flex-basis: 100%; order: 2; }
.lcta { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1.2fr; gap: 8px 24px; align-items: center; background: #14262A; color: #fff; border-radius: var(--radius); padding: 24px 28px; }
.lcta h3 { color: #fff; margin: 0; font-size: 20px; align-self: end; }
.lcta p { color: rgba(255,255,255,.75); margin: 0; font-size: 14px; align-self: start; }
.lcta > .ic { color: var(--gold-soft); grid-row: span 2; }
.lcta form { grid-column: 3; grid-row: 1 / span 2; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.lcta form label span { color: rgba(255,255,255,.75); }
.lcta .consent { grid-column: 1 / -1; order: 3; color: rgba(255,255,255,.6); font-size: 12px; margin: 0; }
.lcta .consent a { color: var(--gold-soft); }
@media (max-width: 900px) { .lcta { grid-template-columns: 1fr; } .lcta > .ic { grid-row: auto; } .lcta form { grid-column: auto; grid-row: auto; } }
@media (max-width: 520px) { .lcta form { grid-template-columns: 1fr; } }

/* ---- сквозное многоуровневое меню */
.mn-top { display: inline-flex; align-items: center; gap: 2px; }
.mn-tog { background: none; border: 0; padding: 4px; margin: 0; color: var(--head-ink); cursor: pointer; border-radius: 6px; display: inline-grid; place-items: center; }
.mn-tog .ic { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.mn-tog:hover { background: rgba(127,127,127,.12); }
.mn-tog:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.mn-item.open .mn-tog .ic { transform: rotate(180deg); }
.mn-drop { display: none; }
.mn-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px 28px; }
.mn-h { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.main-nav .mn-drop a { display: block; border: 0; padding: 5px 0; font-weight: 500; font-size: 14px; color: var(--ink); white-space: normal; }
.main-nav .mn-drop a:hover { color: var(--acc); text-decoration: none; }
@media (min-width: 1181px) {
  .main-nav { align-self: stretch; align-items: center; }
  .mn-item { align-self: stretch; display: flex; align-items: center; }
  .mn-drop { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px 0 28px; z-index: 35; }
  .mn-item:hover .mn-drop, .mn-item:focus-within .mn-drop, .mn-item.open .mn-drop { display: block; }
  .mn-item:hover .mn-tog .ic { transform: rotate(180deg); }
}
@media (max-width: 1180px) {
  .main-nav { overflow-y: auto; }
  .mn-item { border-bottom: 1px solid var(--line); }
  .mn-top { display: flex; justify-content: space-between; }
  .mn-top > a { border-bottom: 0 !important; flex: 1; }
  .mn-tog { width: 40px; height: 40px; color: var(--ink); }
  .mn-item.open .mn-drop { display: block; padding: 0 0 12px; }
  .mn-cols { grid-template-columns: 1fr; gap: 12px; padding: 0; }
  .main-nav .mn-drop a { padding: 6px 0 6px 10px; }
}

/* ---- страницы агентства: проверка брокера, основатель, карьера, услуги */
.lhead.stack { flex-direction: column; align-items: flex-start; gap: 12px; }
.lhead.stack .intro { max-width: 760px; margin: 0; }
.verify { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; background: var(--bg2); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; }
.verify h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 22px; }
.verify h2 .ic { color: var(--acc); }
.verify p { margin: 0; color: var(--mut); }
.verify-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.verify-res { grid-column: 1 / -1; border-radius: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); }
.verify-res.ok { border-color: var(--acc); }
.verify-res.ok b { color: var(--acc); }
.verify-res.bad { border-color: #B42318; }
.verify-res.bad b { color: #B42318; }
.verify-res p { margin: 4px 0; color: var(--ink); }
.verified { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--acc); background: var(--bg2); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.fd-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fd-hero { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 40px; align-items: center; padding: 28px 0 8px; }
.fd-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-lg); }
.fd-photo .avatar.big { width: 100%; aspect-ratio: 4/5; height: auto; font-size: 64px; border-radius: var(--radius-lg); }
.fd-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 14px; }
.fd-lead { font-size: 19px; color: var(--ink); }
.fd-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.fd-points li { display: flex; gap: 10px; align-items: flex-start; }
.fd-points .ic { color: var(--acc); flex: none; margin-top: 3px; }
.vac-list { display: grid; gap: 12px; }
.vac { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.vac summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 18px; }
.vac summary span { color: var(--mut); font-size: 14px; }
.vac summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 6px; }
.vac[open] summary { margin-bottom: 8px; }
.career-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.career-form .full, .career-form .consent, .career-form button { grid-column: 1 / -1; }
.career-form textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); color: var(--ink); }
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 24px; }
.svc { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc-n { font-family: var(--font-d); font-size: 34px; color: var(--gold); line-height: 1; }
.svc h2 { margin: 0 0 6px; font-size: 22px; }
.svc p { margin: 0; color: var(--mut); max-width: 760px; }
@media (max-width: 900px) { .verify, .fd-hero { grid-template-columns: 1fr; } .fd-photo { max-width: 360px; } .fd-points { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .verify-form, .career-form { grid-template-columns: 1fr; } .svc { grid-template-columns: 48px 1fr; } .svc-n { font-size: 26px; } }

/* ---- блог: вкладки рубрик, атрибуты статьи, оглавление, автор */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 24px; scrollbar-width: thin; }
.tabs a { flex: none; padding: 10px 16px; font-weight: 700; font-size: 15px; color: var(--mut); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current=page] { color: var(--acc); border-color: var(--acc); }
.tabs a:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 6px; }
.p-rub a { color: inherit; }
.art-attrs { list-style: none; padding: 0; margin: -6px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--mut); font-size: 14px; }
.art-attrs li { display: inline-flex; align-items: center; gap: 6px; }
.art-author img, .art-author .avatar { width: 32px; height: 32px; font-size: 12px; }
.art-author a { font-weight: 700; color: var(--ink); }
.toc { background: var(--bg2); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0 28px; max-width: 760px; }
.toc ol { margin: 8px 0 0; padding-inline-start: 22px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--acc); }
.art-body h2[id] { scroll-margin-top: 90px; }
.art-body table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 15px; }
.art-body .lexical-table-container { overflow-x: auto; margin: 16px 0 20px; }
.art-body .lexical-table-container table { margin: 0; min-width: 560px; }
.art-body th, .art-body td { border: 1px solid var(--line) !important; padding: 8px 12px !important; text-align: start; vertical-align: top; }
.art-body td p, .art-body th p { margin: 0; }
.art-body th, .art-body tr:first-child td { background: var(--bg2); font-weight: 700; }
.author-card { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 32px 0 8px; max-width: 760px; background: var(--surface); }
.author-card > img, .author-card > .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; aspect-ratio: 1; }
.author-card b { display: block; font-size: 20px; }
.author-card b a { color: var(--ink); }
.author-card small { color: var(--mut); }
.author-card p:not(.eyebrow) { margin: 8px 0 12px; color: var(--mut); }
.author-card .eyebrow { margin-bottom: 4px; }
@media (max-width: 560px) { .author-card { grid-template-columns: 1fr; } }
/* backdrop-filter у шапки делает её контейнером для fixed-меню: на телефоне при открытом меню снимаем его */
@media (max-width: 1180px) { .menu-open .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); } .main-nav { height: 100dvh; } }

/* ---- страница юнита по таблице Карины (20.10): шапка, цена в карточке, формы, «что рядом» */
.prop-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: 13px; color: var(--mut); }
.prop-meta span { display: inline-flex; align-items: center; gap: 5px; }
.prop-meta .ic { width: 15px; height: 15px; }
.prop-act { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-act .btn { padding: 9px 14px; font-size: 14px; }
.side-price { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-price b { font-size: 30px; line-height: 1.15; color: var(--ink); font-family: var(--font-b); letter-spacing: -.01em; }
.side-price b small { font-size: 15px; font-weight: 600; color: var(--mut); }
.side-price > small { color: var(--mut); font-size: 14px; }
.prefs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--bg2); }
.seg button { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--mut); padding: 5px 10px; border-radius: 999px; cursor: pointer; min-height: 28px; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--acc); box-shadow: var(--shadow-1); }
.seg button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.broker small + small { margin-top: 1px; }
.broker .more { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; }
.side-act { display: flex; flex-direction: column; gap: 8px; }
.side-form summary { list-style: none; cursor: pointer; }
.side-form summary::-webkit-details-marker { display: none; }
.side-form[open] summary { border-color: var(--acc); color: var(--acc); }
.side-form form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.permit.ok { color: var(--ink); }
.permit p { margin: 0; }
.permit small { display: block; margin-top: 4px; color: var(--mut); line-height: 1.4; }
.dld-badge { display: inline-flex; align-items: center; gap: 5px; background: #E7F3EE; color: #1E6B4E; font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; margin-bottom: 6px; }
.dld-badge .ic { width: 14px; height: 14px; }
.permit .qr { width: 88px; height: 88px; }
.ilead { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px 24px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; margin: 28px 0; }
.ilead h3 { margin: 0 0 4px; font-size: 19px; }
.ilead-t p { margin: 0; color: var(--mut); font-size: 14px; }
.ilead-f { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; }
.ilead-f .consent { grid-column: 1 / -1; font-size: 12px; margin: 0; }
.calc .ilead { margin: 18px 0 0; background: var(--surface); }
.feats-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.feats h3 { font-size: 15px; margin: 0 0 8px; color: var(--mut); font-family: var(--font-b); }
.feats ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.feats li { display: flex; gap: 8px; align-items: center; }
.feats li .ic { color: var(--acc); width: 16px; height: 16px; flex: none; }
.nearby ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nearby li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.nb-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--bg2); color: var(--acc); display: grid; place-items: center; }
.nb-t small { display: block; color: var(--mut); font-size: 12px; }
.nb-t b { font-size: 14px; }
.nb-m { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mut); white-space: nowrap; }
.nb-m .ic { width: 13px; height: 13px; }
.xb-dev { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.xb-dev > img { width: 96px; height: 96px; object-fit: contain; background: var(--surface); border-radius: 12px; padding: 8px; }
.xb-dev:not(:has(> img)) { grid-template-columns: 1fr; }
.disclaimer { font-size: 12px; color: var(--mut); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 28px; }
.pdf-brand { display: none; }
.pdf-mode .pdf-brand { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 12px; border-bottom: 2px solid var(--acc); font-size: 13px; color: var(--mut); }
.pdf-mode .no-pdf { display: none !important; }
.lbar .prefs { margin: 0; }
@media (max-width: 900px) { .ilead { grid-template-columns: 1fr; } .prop-act { width: 100%; } }
@media (max-width: 640px) { .feats-g, .nearby ul { grid-template-columns: 1fr; } .ilead-f { grid-template-columns: 1fr; } .xb-dev { grid-template-columns: 1fr; } }
html[dir=rtl] .ilead { border-left: 1px solid var(--line); border-right: 4px solid var(--gold); }
.side-box.sticky { top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }

/* ---- избранное и сравнение */
.lc-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; }
.tool { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .15s, color .15s; }
.tool .ic { width: 17px; height: 17px; }
.tool:hover { color: var(--acc); } .tool:active { transform: scale(.92); }
.tool:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.tool[aria-pressed=true] { color: #B42318; }
.tool[data-cmp][aria-pressed=true] { color: var(--acc); background: #E7F3EE; }
[data-fav][aria-pressed=true] .ic { fill: currentColor; }
.prop-act [data-fav][aria-pressed=true] { color: #B42318; border-color: #B42318; }
.prop-act [data-cmp][aria-pressed=true] { color: var(--acc); border-color: var(--acc); }
html[dir=rtl] .lc-tools { right: auto; left: 10px; }
.lc-badges { right: 90px; }
html[dir=rtl] .lc-badges { left: 90px; right: 12px; }
.favlink { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--head-ink); }
.favlink:hover { background: rgba(127,127,127,.1); text-decoration: none; }
.favcount { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #B42318; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.cmpbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; display: inline-flex; align-items: center; gap: 10px; background: #14262A; color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-3); font-weight: 700; }
.cmpbar:hover { text-decoration: none; background: var(--acc); }
.cmpbar b { background: var(--gold-soft); color: #14262A; border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 13px; }
.cmpbar[hidden], .favcount[hidden] { display: none; }
.cmp-wrap { overflow-x: auto; margin-bottom: 48px; }
.cmp { border-collapse: collapse; min-width: 720px; width: 100%; font-size: 15px; }
.cmp th, .cmp td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.cmp tbody th { color: var(--mut); font-weight: 600; width: 180px; }
.cmp thead th { vertical-align: bottom; }
.cmp-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.cmp-card img, .cmp-card .noimg { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; min-height: 0; }
.cmp thead small { display: block; color: var(--mut); font-weight: 500; margin: 2px 0 6px; }
.cmp-del { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--mut); cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.cmp-del .ic { width: 13px; height: 13px; }
.cmp-del:hover { color: #B42318; border-color: #B42318; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .favlink { width: 36px; height: 36px; } }
.proj-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 0; } .proj-tools .prefs { margin: 0; }

/* PDF объекта: отдельный макет шириной A4 (794px), вне экрана; JS выводит его на время съёмки и собирает страницы */
.updf { position: fixed; left: -10000px; top: 0; width: 794px; padding: 0 40px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.45; z-index: -1; }
.updf-p { padding: 18px 0 10px; }
.updf-brand { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--acc); font-size: 12px; color: var(--mut); }
.updf h1 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; }
.updf h2 { font-size: 20px; margin: 0 0 12px; }
.updf h3 { font-size: 14px; margin: 0 0 6px; }
.updf-loc { color: var(--mut); margin: 0 0 14px; }
.updf-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.updf-price b { display: block; font: 600 32px/1.4 var(--font-d); color: var(--ink); }
.updf-price b small { font: 400 15px var(--font-b); color: var(--mut); }
.updf-price span { display: block; margin-top: 4px; color: var(--mut); font-size: 13px; }
.updf-ref { text-align: end; font-size: 12px; color: var(--mut); }
.updf-ph { display: grid; gap: 8px; }
.updf-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; background: var(--bg2); }
.updf-ph.n1 { grid-template-columns: 1fr; height: 420px; }
.updf-ph.n2 { grid-template-columns: 1fr 1fr; height: 300px; }
.updf-ph.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 400px; }
.updf-ph.n3 img:first-child { grid-row: 1 / 3; }
.updf-ph.grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
.updf-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.updf-facts div { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.updf-facts dt { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.updf-facts dd { margin: 2px 0 0; font-weight: 600; }
.updf-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.updf-feats ul { margin: 0; padding-inline-start: 18px; }
.updf-feats li { margin: 2px 0; }
.updf-p > p { margin: 0 0 8px; }
.updf-contact { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start; border-top: 2px solid var(--acc); margin-top: 8px; }
.updf-contact p { margin: 0 0 6px; }
.updf-link { font-size: 12px; color: var(--mut); word-break: break-all; }
.updf-permit { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--mut); }
.updf-permit img { width: 84px; height: 84px; }
.updf-note { grid-column: 1 / -1; font-size: 11px; color: var(--mut); }
[dir="rtl"] .updf-facts dt { letter-spacing: 0; }
[dir="rtl"] .updf-brand > :last-child { direction: ltr; }
[dir="rtl"] .updf-contact p { direction: ltr; text-align: end; }
[dir="rtl"] .updf-feats ul { list-style: none; padding-inline-start: 0; }
@media print { .updf { display: none !important; } }

/* страница ЖК: структура Карины 29.10 (первый экран с формой, о проекте, галерея, планировки, что внутри, застройщик) */
.phero { background: var(--bg2); padding: 20px 0 28px; }
.phero-in { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 20px; align-items: stretch; }
.phero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: var(--ink); }
.phero-media > img, .phero-media > .noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,20,22,.85), rgba(10,20,22,0) 60%); }
.phero-cap { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 28px; color: #fff; }
.phero-cap h1 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); margin: 4px 0 8px; }
.phero-cap .eyebrow { color: var(--gold-soft); }
.phero-cap p { margin: 0; opacity: .92; }
.phero-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; font-size: 15px; color: var(--text); align-content: start; box-shadow: var(--shadow-1); }
.phero-form h2 { font-size: 24px; line-height: 1.15; }
.phero-form .muted { margin: -4px 0 0; font-size: 14px; }
.checks { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phero-form .checks label { flex-direction: row; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; }
.checks label:hover { border-color: var(--acc); }
.checks label:has(input:checked) { border-color: var(--acc); background: #EEF5F4; }
.checks label:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.phero-form .checks input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; accent-color: var(--acc); margin: 0; }
.phero-form .checks label span { display: inline; font-size: 14px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 600; }

.pabout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pabout-side > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.pabout-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pabout-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.pabout .permit { margin-top: 12px; }

.pgal { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; }
.pgal-i { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg2); }
.pgal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.pgal-i:hover img { transform: scale(1.03); }
.pgal-i:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.pgal-i:first-child { grid-row: 1 / 3; }
.pgal.n1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.pgal.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 440px; }
.pgal.n2 .pgal-i:first-child, .pgal.n1 .pgal-i:first-child { grid-row: auto; }
.pgal.n3 { grid-template-columns: 2fr 1fr; }
.pgal.n4 { grid-template-columns: 2fr 1fr 1fr; }
.pgal.n4 .pgal-i:nth-child(4) { grid-column: 2 / 4; }
.pgal-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,20,22,.55); color: #fff; font: 600 30px var(--font-d); }
.pgal-all { margin-top: 12px; }

.playouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.playout { display: grid; grid-template-rows: 180px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.playout-img { display: grid; place-items: center; background: #fff; color: var(--mut); }
.playout-img img { max-height: 170px; width: auto; object-fit: contain; }
.playout-b { padding: 14px 16px 16px; }
.playout-b h3 { font-size: 18px; margin: 0 0 2px; }
.playout-b .muted { margin: 0 0 6px; font-size: 14px; }
.playout-price { font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.playout-price small { display: block; font-weight: 400; color: var(--mut); font-size: 12px; }
.playout-f summary { list-style: none; cursor: pointer; }
.playout-f summary::-webkit-details-marker { display: none; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }

.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; margin-top: 8px; }
.map-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 4px; vertical-align: -1px; }
.map-legend .dot.main { background: var(--gold); }
.map-legend .dot.proj { background: var(--acc); }
.map-legend .dot.infra { background: #5B6B6E; }

.amen { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.amen li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); font-size: 15px; }
.amen .ic { color: var(--acc); width: 22px; height: 22px; flex: none; }
.hl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hl img, .hl .noimg { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); margin-bottom: 10px; }
.hl h3 { margin: 0 0 4px; }
.hl p { margin: 0; color: var(--mut); font-size: 15px; }

.pdev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.pdev-h { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.pdev-logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 12px; border: 1px solid var(--line); padding: 8px; }
.pdev .stats { margin: 16px 0; }
.pdev h3 { margin: 24px 0 12px; }

/* полноэкранный просмотр фото */
.lb { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,14,16,.94); color: #fff; }
.lb::backdrop { background: rgba(8,14,16,.94); }
.lb[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; }
.lb-img { min-height: 0; display: grid; place-items: center; padding: 0 72px 24px; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; font-size: 22px; }
.lb button:hover { background: rgba(255,255,255,.26); }
.lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

@media (max-width: 980px) {
  .phero-in, .pabout { grid-template-columns: 1fr; }
  .phero-media { min-height: 320px; }
  .hl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .phero { padding: 12px 0 20px; }
  .phero-media { min-height: 260px; border-radius: var(--radius); }
  .phero-cap { padding: 18px; }
  .phero-form { padding: 18px; }
  .pgal, .pgal.n2, .pgal.n3, .pgal.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; }
  .pgal-i:first-child { grid-row: auto; grid-column: 1 / 3; }
  .pgal-i:nth-child(n+4) { display: none; }
  .pgal.n4 .pgal-i:nth-child(4) { grid-column: auto; }
  .hl-grid, .pabout-facts { grid-template-columns: 1fr; }
  .lb-img { padding: 0 8px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* встроенная форма с дополнительным полем: поле, телефон, кнопка в одну строку */
.ilead-f.ilead-f2 { grid-template-columns: 1fr 1fr auto; }
.ilead-wa { margin-top: 10px; }
@media (max-width: 900px) { .ilead-f.ilead-f2 { grid-template-columns: 1fr; } }

/* самые узкие телефоны (320 px): шапка не шире экрана, «Разместить объект» остаётся в меню */
@media (max-width: 360px) { .head-act { gap: 6px; } .btn-add { display: none; } .langs a { padding: 4px 4px; } }
.phero-in > * { min-width: 0; }
@media (max-width: 320px) { .phero-cap h1 { font-size: 30px; } .checks { grid-template-columns: 1fr; } }
.foot-grid > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 320px) { .foot-grid { gap: 20px 14px; } }
/* узкие экраны: колонки сетки не распирают страницу длинным содержимым */
.prop-grid > *, .sel-item > *, .facts > div { min-width: 0; }
.facts dd { overflow-wrap: anywhere; }
@media (max-width: 320px) { .facts.big { grid-template-columns: 1fr 1fr; } }
.nearby li > * { min-width: 0; }
@media (max-width: 360px) { .nearby li { grid-template-columns: 32px 1fr; } .nearby li .nb-m { grid-column: 2; white-space: normal; } }

/* согласие на обработку данных и ловушка для ботов */
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.lead .consent-check { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.4; color: var(--mut); cursor: pointer; margin: 0; }
.lead .consent-check input { flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--acc); }
.lead .consent-check span { font-size: inherit; color: inherit; font-weight: 400; }
.lead .consent-check a { text-decoration: underline; }
.lcta .lead .consent-check { color: rgba(255,255,255,.72); }
.lcta .lead .consent-check input { accent-color: var(--gold-soft); }
.ilead-f .consent-check, .career-form .consent-check { grid-column: 1 / -1; }

/* шапка в два уровня: сверху логотип, телефон и действия, снизу разделы каталога (11.11) */
.logo { flex: none; }
.site-head .head-act { margin-inline-start: auto; }
.head-phone { display: none; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--head-ink); white-space: nowrap; margin-inline-end: 4px; }
.head-phone:hover { color: var(--acc); text-decoration: none; }
@media (min-width: 1181px) {
  .head-in { min-height: 64px; }
  .head-phone { display: inline-flex; }
  .head-nav { border-top: 1px solid var(--line); }
  .head-nav .main-nav { margin: 0; min-height: 48px; gap: 30px; }
  .head-nav .main-nav a { font-size: 15px; }
  .site-head .btn-add span { display: inline; }
}
@media (min-width: 1181px) and (max-width: 1400px) { .head-nav .main-nav { gap: 22px; } }
/* пагинация каталога */
.pager { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 28px 0 8px; }
.pager-more { min-width: 220px; justify-content: center; }
.pager-nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager-nums a, .pager-nums span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pager-nums a:hover { border-color: var(--acc); color: var(--acc); text-decoration: none; }
.pager-nums .on { background: var(--acc); border-color: var(--acc); color: #fff; }
.pager-nums .pager-gap { border: 0; min-width: 20px; }
/* статья: вопрос автору формой или в WhatsApp */
.author-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 8px; }
.author-act details[open] { flex-basis: 100%; }
.author-ask summary { list-style: none; cursor: pointer; }
.author-ask summary::-webkit-details-marker { display: none; }
.author-ask form { margin-top: 12px; max-width: 520px; }
.side-act .btn span[dir=ltr] { font-weight: 700; }

/* страница «Сертификаты и лицензии» */
.lic-facts { margin: 8px 0 8px; }
.lic-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.lic-doc { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.lic-doc img { width: 100%; height: 340px; object-fit: contain; background: #fff; border-radius: 8px; display: block; }
.lic-doc figcaption { margin-top: 10px; font-weight: 600; font-size: 14px; }
.lic-check { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 28px 0 8px; color: var(--mut); }
@media (max-width: 600px) { .site-head [data-cmplink], .site-head .btn-add { display: none; } .site-head .logo img { width: 112px; } .site-head .head-in { gap: 8px; } .site-head .head-act { gap: 4px; } .site-head .langs a { padding-inline: 6px; } }
@media (max-width: 360px) { .site-head .favlink { display: none; } .site-head .logo img { width: 96px; } }
.author-ask summary.btn-primary, .author-ask summary.btn-primary:hover { color: #fff; }
/* маркеры списка в PDF: html2canvas ставит стандартные выше строки, рисуем свои */
.updf-feats ul { list-style: none; padding-inline-start: 0; }
.updf-feats li::before { content: "·"; display: inline-block; width: 12px; font-weight: 700; }
/* «Об агентстве»: блок со свидетельством */
.about-lic { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 28px; align-items: center; }
.about-lic-img img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: block; }
@media (max-width: 760px) { .about-lic { grid-template-columns: 1fr; } }
/* страница Эржены: вертикальные ролики */
.fd-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.fd-videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #111; display: block; }
@media (max-width: 600px) { .fd-videos { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---- табы разделов ЖК и района на телефоне: одна строка с прокруткой, иначе три ряда закрывают пол-экрана */
@media (max-width: 900px) {
  .tabsnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 6px; padding: 8px 0; margin-top: 12px; scroll-padding-inline: 16px; }
  .tabsnav::-webkit-scrollbar { display: none; }
  .tabsnav a { flex: none; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
}

/* ---- заглушка планировки: размытая условная схема, пока у юнита нет своей */
.planlock { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #FBF8F2; aspect-ratio: 16 / 9; margin-bottom: 12px; }
.planlock img { width: 100%; height: 100%; object-fit: cover; filter: blur(5px); transform: scale(1.06); opacity: .65; }
.planlock-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; text-align: center; font-weight: 600; font-size: 15px; color: var(--ink); }
.planlock-t .ic { color: var(--acc); flex: none; }
