/* ================================================================
   «Время сделки» — фирменный стиль с визитки:
   чёрный + белый + серые полутона, косой срез, уголок-рамка,
   Montserrat заглавными, тонкие линейные иконки.
   ================================================================ */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-cyrillic-v2.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat-latin-v2.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2190-2193,U+2212,U+2215;
}

:root {
  --black: #0c0c0c;
  --ink: #161616;
  --g9: #262626;
  --g7: #4a4a4a;
  --g5: #7a7a7a;
  --g3: #b9b9b9;
  --g2: #dcdcdc;
  --g1: #efefef;
  --white: #fff;
  --radius: 0;
  --wrap: 1200px;
  --hdr: 72px;
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 16px; height: 16px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 2px solid transparent; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn .ico { width: 18px; height: 18px; }
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--g2); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--g9); }
.btn-line { border-color: var(--black); color: var(--black); background: transparent; }
.btn-line:hover { background: var(--black); color: var(--white); }
.btn-wide { width: 100%; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); border-bottom: 1px solid #222; }
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo-mark { width: 42px; height: 42px; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.15; text-transform: uppercase; }
.logo-txt b { font-size: 15px; letter-spacing: .06em; }
.logo-txt small { font-size: 9.5px; letter-spacing: .14em; color: var(--g3); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 13px; font-weight: 500; text-decoration: none; letter-spacing: .03em; color: var(--g2); }
.nav a:hover { color: var(--white); }
.nav-phones { display: none; }
.hdr-phones { display: flex; gap: 18px; }
.hdr-phone { display: flex; flex-direction: column; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.hdr-phone span { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--g5); }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white); transition: transform .25s, top .25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1180px) { .hdr-phones .hdr-phone:nth-child(n+2) { display: none; } }
@media (max-width: 980px) {
  .hdr-phones { display: none; }
  .burger { display: block; }
  .nav { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; gap: 0; padding: 8px 24px 24px; background: var(--black); border-bottom: 1px solid #222; transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s; max-height: calc(100dvh - var(--hdr)); overflow: auto; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid #222; }
  .nav-phones { display: flex; flex-direction: column; gap: 16px; padding-top: 18px; }
  .nav-phones .hdr-phone { font-size: 18px; border: 0; padding: 0; }
}

/* ---------- первый экран: чёрный с косым срезом, как визитка ---------- */
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 96px; padding-bottom: 72px; }
.hero-txt { max-width: 700px; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--g3); margin-bottom: 26px; }
.eyebrow::before { content: ''; width: 40px; height: 2px; background: var(--white); }
.hero h1 { font-size: clamp(32px, 5.2vw, 60px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.hero h1 span { display: block; color: var(--g3); }
.hero-lead { margin-top: 26px; max-width: 580px; font-size: 17px; color: #cfcfcf; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-stats { list-style: none; margin: 0; padding: 30px 0 0; display: flex; flex-wrap: wrap; gap: 20px 56px; border-top: 1px solid #2c2c2c; max-width: 700px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 38px; line-height: 1; font-weight: 700; }
.hero-stats span { margin-top: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--g5); max-width: 170px; line-height: 1.4; }
@media (max-width: 900px) {
  .hero-in { padding-top: 64px; padding-bottom: 56px; gap: 44px; }
}
@media (max-width: 520px) {
  .hero-btns .btn { width: 100%; }
  .hero-stats { gap: 22px 28px; }
  .hero-stats b { font-size: 30px; }
}

/* ---------- секции ---------- */
.sec { padding: 96px 0; }
.sec-grey { background: var(--g1); }
.sec-dark { background: var(--black); color: var(--white); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 44px; }
.h2 { position: relative; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding-bottom: 18px; }
.h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: currentColor; }
.sec-sub { max-width: 520px; color: var(--g7); }
.sec-dark .sec-sub { color: var(--g3); }
@media (max-width: 700px) { .sec { padding: 64px 0; } .sec-head { margin-bottom: 32px; } }

/* ---------- объекты ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { min-height: 42px; padding: 0 20px; background: var(--white); border: 1px solid var(--g2); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.filters button:hover { border-color: var(--black); }
.filters button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.objs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.obj { display: flex; flex-direction: column; border: 1px solid var(--g2); background: var(--white); transition: box-shadow .25s, transform .25s; }
.obj:hover { box-shadow: 0 18px 40px rgba(0,0,0,.1); transform: translateY(-3px); }
.obj[hidden] { display: none; }
.obj-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--g1); overflow: hidden; }
.obj-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.obj:hover .obj-photo img { transform: scale(1.04); }
.obj-noimg { display: grid; place-items: center; height: 100%; color: var(--g3); }
.obj-noimg .ico { width: 64px; height: 64px; stroke-width: 1; }
.obj-badge { position: absolute; left: 0; top: 16px; padding: 7px 14px 7px 16px; background: var(--black); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.obj-badge-static { position: static; display: inline-block; margin-bottom: 14px; }
.obj-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; background: rgba(12,12,12,.72); color: var(--white); font-size: 12px; font-weight: 600; }
.obj-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.obj-price { font-size: 24px; font-weight: 700; line-height: 1.2; }
.obj-price small, .full-price small { font-size: .6em; font-weight: 600; color: var(--g5); margin-left: 4px; }
.obj-title { margin-top: 8px; font-size: 16px; font-weight: 600; }
.obj-facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.obj-facts li { padding: 3px 10px; background: var(--g1); font-size: 13px; font-weight: 500; }
.obj-addr { display: flex; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--g7); line-height: 1.45; }
.obj-addr .ico { width: 18px; height: 18px; margin-top: 1px; }
.obj-addr b { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 500; color: var(--ink); }
.obj-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: auto; padding-top: 22px; }
.obj-actions .btn { min-height: 46px; padding: 0 16px; font-size: 12px; }
.objs-more { margin-top: 40px; text-align: center; color: var(--g7); }
.objs-more a { color: var(--black); font-weight: 700; }
@media (max-width: 380px) { .objs { grid-template-columns: 1fr; } }

/* ---------- услуги ---------- */
.dirs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #2a2a2a; border: 1px solid #2a2a2a; }
.dir { padding: 36px 28px 40px; background: var(--black); transition: background .25s; }
.dir:hover { background: #151515; }
.dir .ico { width: 44px; height: 44px; stroke-width: 1.3; }
.dir h3 { margin-top: 26px; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.dir p { margin-top: 12px; font-size: 14.5px; color: var(--g3); }
.pluses { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pluses li { display: flex; gap: 16px; }
.pluses .ico { width: 32px; height: 32px; }
.pluses span { font-size: 14px; color: var(--g3); }
.pluses b { display: block; margin-bottom: 4px; color: var(--white); font-size: 15px; }
@media (max-width: 1000px) { .dirs { grid-template-columns: repeat(2, 1fr); } .pluses { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 560px) { .dirs { grid-template-columns: 1fr; } .dir { padding: 28px 22px 30px; } }

/* ---------- почему мы ---------- */
.whys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why { position: relative; padding: 30px 26px 32px; background: var(--white); border-top: 3px solid var(--black); }
.why-n { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--g5); }
.why h3 { margin-top: 14px; font-size: 17px; }
.why p { margin-top: 10px; font-size: 14.5px; color: var(--g7); }
@media (max-width: 1000px) { .whys { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .whys { grid-template-columns: 1fr; } }

/* ---------- этапы ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 22px 0 0; }
.step-n { display: flex; align-items: center; gap: 14px; font-size: 34px; font-weight: 700; line-height: 1; }
.step-n::after { content: ''; flex: 1; height: 1px; background: var(--g3); }
.steps li:last-child .step-n::after { display: none; }
.steps h3 { margin-top: 22px; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; }
.steps p { margin-top: 10px; font-size: 14.5px; color: var(--g7); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; padding: 0; }
  .step-n { grid-row: span 2; font-size: 28px; }
  .step-n::after { display: none; }
  .steps h3 { margin-top: 2px; }
}

/* ---------- команда: карточка-визитка ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.55; color: #d6d6d6; }
.card-contacts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.card-contacts li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.card-contacts .ico { width: 20px; height: 20px; }
.card-contacts a { text-decoration: none; font-weight: 600; word-break: break-all; }
.card-contacts a:hover { text-decoration: underline; }
.card-contacts li:first-child a { font-size: 17px; }
.card-corner { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-top: 3px solid var(--black); border-right: 3px solid var(--black); z-index: 2; }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--g2); }
.faq details { border-bottom: 1px solid var(--g2); }
.faq summary { position: relative; list-style: none; padding: 22px 52px 22px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 18px; height: 2px; background: var(--black); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 52px 24px 0; color: var(--g7); max-width: 860px; }

/* ---------- заявка ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-txt > p { margin-top: 22px; color: var(--g3); max-width: 460px; }
.form-phones { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.form-phones li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 2px solid var(--white); }
.form-phones span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--g5); }
.form-phones a { text-decoration: none; }
.form-phones a:nth-of-type(1) { font-size: 22px; font-weight: 700; }
.form-phones a:nth-of-type(2) { font-size: 14px; color: var(--g3); }
.form-phones a:hover { text-decoration: underline; }
.form-geo { display: flex; align-items: center; gap: 10px; margin-top: 30px; color: var(--g3); font-size: 14px; }
.form { padding: 36px; background: #151515; border: 1px solid #262626; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid #444; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.chips input:checked + span { background: var(--white); color: var(--black); border-color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--g5); }
.field input, .field textarea { width: 100%; padding: 14px 16px; background: var(--black); border: 1px solid #3a3a3a; color: var(--white); font: 400 16px/1.4 var(--font); border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--white); }
.field input.err { border-color: #ff6b6b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; gap: 10px; margin: 6px 0 22px; font-size: 12.5px; color: var(--g5); line-height: 1.45; }
.agree input { margin-top: 2px; accent-color: var(--white); }
.agree a { color: var(--g3); }
.form-msg { margin-top: 14px; font-size: 14px; min-height: 1.4em; }
.form-msg.ok { color: #9be39b; }
.form-msg.bad { color: #ff9b9b; }
.form.sent .chips, .form.sent .field, .form.sent .agree, .form.sent button { opacity: .4; pointer-events: none; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; gap: 40px; } .form { padding: 24px 20px; } }

/* ---------- подвал ---------- */
.ftr { background: var(--black); color: var(--g3); border-top: 1px solid #222; padding: 44px 0 36px; font-size: 14px; }
.ftr-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; align-items: start; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--white); }
.logo-ftr { color: var(--white); }
.ftr-small { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #222; font-size: 12px; color: var(--g5); line-height: 1.6; }
.ftr-small a { text-decoration: underline; }
@media (max-width: 700px) { .ftr-in { grid-template-columns: 1fr; } }

/* ---------- окно объекта ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.78); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-width: 1120px; max-height: calc(100dvh - 48px); overflow: auto; background: var(--white); overscroll-behavior: contain; }
.modal-x { position: absolute; right: 10px; top: 10px; z-index: 5; width: 44px; height: 44px; display: grid; place-items: center; background: var(--black); color: var(--white); border: 0; }
body.lock { overflow: hidden; }
.full { display: grid; grid-template-columns: 1.35fr 1fr; }
.gal { position: relative; background: var(--black); min-height: 320px; }
.gal-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track img { flex: 0 0 100%; width: 100%; height: 100%; max-height: calc(100dvh - 48px); aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.gal-btn { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; display: grid; place-items: center; background: rgba(255,255,255,.92); border: 0; color: var(--black); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-num { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; background: rgba(12,12,12,.72); color: var(--white); font-size: 12px; font-weight: 600; }
.full-body { padding: 36px 32px 32px; }
.full-title { font-size: 24px; padding-right: 40px; }
.full-price { margin-top: 12px; font-size: 28px; font-weight: 700; }
.params { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--g2); }
.params dt { font-size: 12px; color: var(--g5); }
.params dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.full-text { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--g2); font-size: 14.5px; color: var(--g7); max-height: 280px; overflow: auto; }
.full-text p + p { margin-top: 10px; }
.full-contact { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--g2); }
.full-agent { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.full-agent img { width: 56px; height: 56px; object-fit: cover; object-position: 50% 15%; }
.full-agent b { display: block; }
.full-agent span { font-size: 13px; color: var(--g5); }
.full-btns { display: grid; gap: 10px; }
.full-cian { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; color: var(--g7); }
@media (max-width: 860px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-box { max-height: 100dvh; }
  .full { grid-template-columns: 1fr; }
  .gal { min-height: 0; }
  .full-body { padding: 24px 20px 32px; }
  .full-text { max-height: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- отзывы ---------- */
.sec-sub a { color: inherit; font-weight: 600; }
.revs { columns: 3 320px; column-gap: 24px; }
.rev { break-inside: avoid; margin: 0 0 24px; padding: 28px 26px; border: 1px solid var(--g2); background: var(--white); position: relative; }
.rev::before { content: ''; position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; border-top: 2px solid var(--black); border-right: 2px solid var(--black); }
.rev-stars { letter-spacing: 3px; font-size: 15px; }
.rev blockquote { margin: 14px 0 0; font-size: 14.5px; color: var(--g7); }
.rev blockquote p + p { margin-top: 8px; }
.rev figcaption { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--g2); }
.rev figcaption b { display: block; font-size: 15px; }
.rev figcaption span { font-size: 12.5px; color: var(--g5); }
.sec-grey .faq details, .sec-grey .faq { border-color: var(--g3); }
.full-text h4 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.full-text ul { margin: 6px 0 10px; padding-left: 18px; }
.full-text li { margin: 2px 0; }
@media (min-width: 861px) {
  .gal { position: sticky; top: 0; align-self: start; height: min(760px, calc(100dvh - 48px)); }
  .gal-track img { height: 100%; aspect-ratio: auto; max-height: none; }
}
.card-badges { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-badges li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid #3a3a3a; font-size: 11.5px; font-weight: 600; color: #e6e6e6; }
.card-cian { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 12.5px; color: var(--g3); }
.card-cian:hover { color: var(--white); }
.rev[hidden] { display: none; }
.revs-more { text-align: center; margin-top: 12px; }
.revs.all + .revs-more { display: none; }

/* ================================================================
   Устойчивость к любым текстам из админки: длинные названия, слова без пробелов,
   разное число пунктов в блоках. Вёрстка не должна ломаться ни на одной ширине.
   ================================================================ */
h1, h2, h3, h4, summary, .obj-title, .full-title, .card2-name, .obj-price, .full-price,
.hero-lead, .sec-sub, .dir p, .why p, .steps p, .faq p, .rev blockquote, .card2-about,
.obj-addr span, .params dd, .params dt, .card-list li, .pluses span, .form-txt p, .ftr p {
  overflow-wrap: break-word;
}
.btn { white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
/* в карточке название — не больше трёх строк, целиком — в окне объекта */
.obj-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.obj-addr span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.obj-badge { max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-status { position: absolute; left: 0; top: 50px; max-width: calc(100% - 24px); padding: 6px 12px 6px 16px; background: var(--white); color: var(--black); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obj-badge-status { background: var(--white); color: var(--black); border: 1px solid var(--black); margin-left: 6px; }
.obj-price { overflow-wrap: anywhere; }
.filters button { white-space: normal; text-align: center; max-width: 100%; }
.hero-stats b { overflow-wrap: anywhere; }
.logo-txt b, .logo-txt small { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-phone span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* блоки с любым числом пунктов */
.dirs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.whys { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pluses { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 1001px) {
  .steps { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); row-gap: 44px; }
  .dirs, .whys { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
}
.card-nophoto { position: absolute; inset: 22px 22px 0 12%; display: grid; place-items: center; background: var(--g5); color: var(--white); font-size: 72px; font-weight: 700; }
.card-badges li { max-width: 100%; overflow-wrap: anywhere; }
.full-agent div { min-width: 0; }
.card2 > *, .obj, .obj-body, .why, .dir, .rev, .steps li, .form-wrap > *, .ftr-in > * { min-width: 0; }
.nav a { white-space: nowrap; }
@media (max-width: 1300px) and (min-width: 981px) { .hdr-phones .hdr-phone:nth-child(n+2) { display: none; } .nav { gap: 18px; } }
/* сетка направлений: рамки у карточек, а не фон сетки — иначе неполный ряд заливается серым */
.dirs { background: none; border: 0; gap: 0; }
.dir { border: 1px solid #2a2a2a; margin: 0 -1px -1px 0; }
