/* «Обрій» — агентство нерухомості (демонстраційний проєкт). Redesign.
   Система: білий та холодний сірий фон, чорнильно-синій для дій і тексту, один сталевий акцент для станів і посилань.
   Шрифт: Onest. Архітектурна фотографія подається спокійними сітками без накладених написів.
   Навігація: на ПК — верхня панель; на телефоні — нижня панель вкладок. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../assets/fonts/onest-300-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../assets/fonts/onest-300-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0f1a2b;
  --ink-2: #1c2c47;
  --steel: #2d5b86;
  --steel-d: #234a6e;
  --bg: #ffffff;
  --soft: #f2f4f6;
  --soft-2: #e6eaee;
  --muted: #566274;
  --line: #dde2e8;
  --heart: #d2453a;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --m: clamp(1.25rem, 4vw, 3rem);
  --gut: max(var(--m), calc((100vw - 78rem) / 2));
  --head: 4.5rem;
  --tab: 4.25rem;
  --sec: clamp(3.5rem, 7vw, 6rem);
  --r: 6px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; padding-top: var(--head); }
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.on-ink :focus-visible, .foot :focus-visible, .lightbox :focus-visible { outline-color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 400; padding: 0.7rem 1rem; background: var(--ink); color: #fff; border-radius: var(--r); }
.skip:focus { top: 0.75rem; }
.wrap { width: 100%; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.3vw, 3.9rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.eyebrow { font-size: 0.875rem; font-weight: 500; color: var(--steel); letter-spacing: 0.01em; }
.on-ink .eyebrow { color: #9db9d6; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem); color: var(--muted); max-width: 36rem; }
.on-ink { background: var(--ink); color: #fff; }
.on-ink p { color: #c5d0de; }
.soft { background: var(--soft); }

/* Кнопки й посилання */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0 1.5rem; border: 1px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; font-weight: 500; font-size: 0.9375rem; line-height: 1; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--soft); border-color: var(--soft); }
.btn--sm { min-height: 2.5rem; padding-inline: 1.15rem; }
.go, .link-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0; border: 0; background: none; color: var(--steel); font-weight: 500; text-decoration: none; cursor: pointer; width: fit-content; }
.go::after { content: "→"; transition: transform 0.25s var(--ease); }
.go:hover { color: var(--steel-d); text-decoration: underline; text-underline-offset: 0.25em; }
.go:hover::after { transform: translateX(3px); }
.on-ink .go { color: #cfe0f2; }
.link-btn { text-decoration: underline; text-underline-offset: 0.25em; }

/* Шапка (ПК) */
.head { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--head); background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.head__in { height: 100%; display: flex; align-items: center; gap: 2rem; padding-inline: var(--gut); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 1.4rem; letter-spacing: -0.03em; }
.brand__mark { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand__sub { font-weight: 400; font-size: 0.8125rem; letter-spacing: 0; color: var(--muted); }
.nav { display: none; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 450; font-size: 0.9375rem; border-bottom: 2px solid transparent; padding-top: 2px; transition: border-color 0.2s, color 0.2s; }
.nav a:hover { color: var(--steel); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.head__right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.favlink { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; min-width: 44px; justify-content: center; text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.favlink svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.count { min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 600; line-height: 1.35rem; text-align: center; font-variant-numeric: tabular-nums; }
.count[data-zero="true"] { background: var(--soft-2); color: var(--muted); }
.head__cta { display: none; }
@media (min-width: 1000px) { .nav { display: flex; } .head__right { margin-left: 0; } .head__cta { display: inline-flex; } .brand__sub { display: inline; } }
@media (max-width: 999px) { .brand__sub { display: none; } }

/* Нижня панель вкладок (телефон) */
.tabbar { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; text-decoration: none; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.tabbar svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: var(--ink); }
.tabbar .count { position: absolute; top: 0.55rem; left: calc(50% + 0.35rem); min-width: 1.2rem; height: 1.2rem; font-size: 0.6875rem; line-height: 1.2rem; padding: 0 0.3rem; }
@media (min-width: 1000px) { .tabbar { display: none; } }
@media (max-width: 999px) { body { padding-bottom: calc(var(--tab) + env(safe-area-inset-bottom)); } }

/* Підвал */
.foot { background: var(--ink); color: #fff; padding-top: clamp(3rem, 6vw, 4.5rem); }
.foot__grid { display: grid; gap: 2.25rem; padding-bottom: 2.5rem; }
.foot .brand { color: #fff; font-size: 1.5rem; }
.foot .brand__sub { color: #9db0c8; }
.foot__demo { margin-top: 1rem; max-width: 26rem; font-size: 0.9375rem; color: #b9c6d6; }
.foot h2 { margin-bottom: 0.6rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: #9db0c8; }
.foot ul { display: grid; }
.foot a { text-decoration: none; }
.foot li a, .foot li > span { display: inline-flex; align-items: center; min-height: 44px; }
.foot li a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.foot .empty-v { color: #9db0c8; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.875rem; color: #9db0c8; }
.foot__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; } }
@media (max-width: 999px) { .foot { padding-bottom: 0.5rem; } }

/* ---------- Головна: перший екран ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__t { display: grid; gap: 1.1rem; align-content: start; }
.hero h1 { max-width: 14ch; }
.search { display: grid; gap: 1rem; margin-top: 0.5rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 44px -26px rgba(15, 26, 43, 0.45); }
.search .seg { display: inline-grid; grid-template-columns: 1fr 1fr; width: 100%; border-bottom: 1px solid var(--line); }
.search .seg button { min-height: 2.9rem; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; cursor: pointer; font-weight: 500; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.search .seg button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.search__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.fld { display: grid; gap: 0.35rem; min-width: 0; }
.fld > label, .lab { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.fld select, .fld input, .fld textarea { width: 100%; min-height: 3rem; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 1rem; min-width: 0; }
.fld textarea { min-height: 6.5rem; resize: vertical; }
.fld select { -webkit-appearance: none; appearance: none; padding-right: 2.2rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1a2b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 0.85rem center / 0.7rem; }
.fld select:focus-visible, .fld input:focus-visible, .fld textarea:focus-visible { outline: 2px solid var(--steel); outline-offset: 1px; border-color: var(--steel); }
.fld__err { color: #a3321f; font-size: 0.9375rem; }
.fld__err[hidden] { display: none; }
.search .btn { width: 100%; min-height: 3.25rem; }

.hm { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.5rem; height: clamp(22rem, 52vw, 34rem); }
.hm a { position: relative; display: block; overflow: hidden; background: var(--soft-2); border-radius: var(--r); }
.hm a:first-child { grid-row: 1 / 3; }
.hm img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hm a:hover img { transform: scale(1.03); }
.hm__tag { position: absolute; left: 0.6rem; bottom: 0.6rem; right: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; padding: 0.5rem 0.7rem; background: rgba(255, 255, 255, 0.96); border-radius: 4px; font-size: 0.875rem; line-height: 1.3; width: fit-content; max-width: calc(100% - 1.2rem); }
.hm__tag b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hm__tag span { color: var(--muted); }
.hero__note { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 4rem); }
}
@media (max-width: 640px) { .hm { grid-template-columns: 1fr 1fr; grid-template-rows: 15rem 9rem; height: auto; } .hm a:first-child { grid-row: auto; grid-column: 1 / -1; } .search__fields { grid-template-columns: 1fr 1fr; } }

/* Цифри */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; padding-block: 2rem; border-block: 1px solid var(--line); }
.stats dt { order: 2; font-size: 0.9375rem; color: var(--muted); }
.stats div { display: flex; flex-direction: column; gap: 0.15rem; }
.stats dd { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Типи: список-рядки з мініатюрами */
.types-sec__grid { display: grid; gap: 1.75rem; }
.types-list { border-top: 1px solid var(--line); }
.type { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem 1.25rem; padding-block: 1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.type__name { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.type__count { grid-column: 1; color: var(--muted); font-size: 0.9375rem; }
.type__img { grid-column: 2; grid-row: 1 / 3; width: 7.5rem; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--soft-2); }
.type__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.type:hover .type__img img { transform: scale(1.06); }
.type:hover .type__name { color: var(--steel); }
@media (min-width: 900px) { .types-sec__grid { grid-template-columns: 4fr 7fr; gap: 4rem; } .type__img { width: 10rem; } }

/* Вибрані об’єкти */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.feat { display: grid; gap: 1.5rem; }
.feat__lead { display: grid; gap: 0.9rem; text-decoration: none; }
.feat__lead .ph { overflow: hidden; border-radius: var(--r); background: var(--soft-2); position: relative; }
.feat__lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat__lead:hover img { transform: scale(1.03); }
.feat__info { display: grid; gap: 0.35rem; }
.feat__info p { color: var(--muted); max-width: 38rem; }
.feat__price { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.feat__price small { font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.rows { display: grid; align-content: start; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; background: var(--soft-2); }
.row__where { font-size: 0.875rem; color: var(--muted); }
.row__title { font-weight: 500; line-height: 1.25; margin-block: 0.1rem; }
.row__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.row:hover .row__title { color: var(--steel); }
@media (min-width: 1000px) { .feat { grid-template-columns: 7fr 5fr; gap: 3.5rem; align-items: start; } }

/* Про агентство (тизер) */
.abt { display: grid; gap: 2rem; align-items: center; }
.abt__t { display: grid; gap: 1.1rem; align-content: center; }
.abt__t p { color: var(--muted); max-width: 34rem; }
.abt ol { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 0.5rem; }
.abt li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.abt li b { font-weight: 600; color: var(--steel); font-variant-numeric: tabular-nums; }
.abt li span { font-weight: 500; }
.abt__ph { overflow: hidden; border-radius: var(--r); background: var(--soft-2); }
.abt__ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cap { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 900px) { .abt { grid-template-columns: 6fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); } }

/* Заклик */
.band { padding-block: var(--sec); }
.band__in { display: grid; gap: 1.75rem; align-items: center; }
.band h2 { max-width: 20ch; }
.band p { max-width: 32rem; }
.band__act { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 900px) { .band__in { grid-template-columns: 7fr 5fr; } .band__act { justify-content: flex-end; } }

/* ---------- Внутрішні сторінки ---------- */
.pagehead { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem); }
.pagehead h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); margin-top: 0.25rem; }
.pagehead > p { margin-top: 0.75rem; color: var(--muted); max-width: 40rem; }
.demo-note { margin-top: 1rem; padding: 0.8rem 1rem; max-width: 40rem; background: var(--soft); border-left: 3px solid var(--steel); font-size: 0.9375rem; color: var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; font-size: 0.9375rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin-inline: 0.5rem; }

/* Каталог */
.cat { display: grid; gap: 1.25rem; padding-bottom: var(--sec); }
.fbar { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem; position: sticky; top: var(--head); z-index: 30; padding-block: 0.6rem; background: #fff; }
.fbar__btn { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3rem; padding: 0 1.2rem; border: 1px solid var(--ink); border-radius: var(--r); background: #fff; cursor: pointer; font-weight: 500; }
.fbar__btn b { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: 0.75rem; }
.fbar__btn b[hidden] { display: none; }
.found { font-size: 0.9375rem; color: var(--muted); }
.found b { color: var(--ink); font-weight: 600; }
.found--m { display: block; }
.cat__bar { display: none; }
.filters { background: #fff; }
.filters[hidden] { display: none; }
.filters__head { display: flex; align-items: center; justify-content: space-between; height: var(--head); padding-inline: var(--m); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.125rem; }
.filters__close { min-height: 44px; padding: 0 0.25rem; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--steel); }
.filters__body { display: grid; gap: 1.5rem; padding: 1.25rem var(--m) 1rem; }
.fgroup { display: grid; gap: 0.6rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.fgroup legend { padding: 0; margin-bottom: 0.1rem; font-size: 0.875rem; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { min-height: 2.9rem; border: 0; background: #fff; cursor: pointer; font-weight: 500; transition: background-color 0.2s, color 0.2s; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.opt { display: flex; align-items: center; gap: 0.7rem; min-height: 2.6rem; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt i { flex: none; width: 1.25rem; height: 1.25rem; border: 1.5px solid #9aa6b6; border-radius: 4px; background: #fff; display: grid; place-items: center; transition: background-color 0.15s, border-color 0.15s; }
.opt input:checked + i { background: var(--ink); border-color: var(--ink); }
.opt input:checked + i::after { content: ""; width: 0.35rem; height: 0.65rem; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.opt input:focus-visible + i { outline: 2px solid var(--steel); outline-offset: 2px; }
.opt em { margin-left: auto; font-style: normal; font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.nums button { min-height: 2.75rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-weight: 500; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.nums button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.filters__actions { position: sticky; bottom: 0; display: grid; gap: 0.5rem; padding: 0.9rem var(--m) calc(0.9rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); justify-items: center; }
.filters__apply { width: 100%; }
.cat__res { min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); gap: 1.75rem 1.25rem; }
@media (max-width: 999px) {
  .filters { position: fixed; z-index: 300; inset: 0; overflow-y: auto; display: flex; flex-direction: column; }
  .filters__body { flex: 1; align-content: start; }
}
@media (min-width: 1000px) {
  .cat { grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .fbar, .found--m, .filters__head, .filters__close { display: none; }
  .filters, .filters[hidden] { display: block; position: sticky; top: calc(var(--head) + 1.25rem); border: 1px solid var(--line); border-radius: 10px; max-height: calc(100vh - var(--head) - 2.5rem); overflow-y: auto; }
  .filters__body { padding: 1.25rem; }
  .filters__actions { position: static; padding: 0 1.25rem 1.25rem; border: 0; }
  .filters__apply { display: none; }
  .cat__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
  .sortbox { display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .sortbox button { min-height: 2.5rem; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; font-size: 0.9375rem; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
  .sortbox button:hover { border-color: var(--ink); }
  .sortbox button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
}
.empty { padding: clamp(2rem, 6vw, 4rem) 1rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.empty p { color: var(--muted); max-width: 30rem; }

/* Картка об’єкта */
.prop { position: relative; animation: rise 0.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.prop__link { display: grid; gap: 0.85rem; text-decoration: none; }
.prop__ph { position: relative; overflow: hidden; border-radius: var(--r); background: var(--soft-2); }
.prop__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.prop__link:hover .prop__ph img { transform: scale(1.04); }
.prop__deal { position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.25rem 0.6rem; border-radius: 4px; background: var(--ink); color: #fff; font-size: 0.8125rem; font-weight: 500; }
.prop__deal[data-deal="rent"] { background: #fff; color: var(--ink); }
.prop__body { display: grid; gap: 0.2rem; }
.prop__price { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.prop__price small { font-size: 0.875rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.prop__title { font-size: 1.0625rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prop__link:hover .prop__title { color: var(--steel); }
.prop__where { font-size: 0.9375rem; color: var(--muted); }
.prop__spec { display: flex; flex-wrap: wrap; gap: 0.25rem 0; margin-top: 0.35rem; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.prop__spec li { display: inline-flex; align-items: baseline; gap: 0.25rem; }
.prop__spec li + li::before { content: ""; width: 1px; height: 0.85em; margin-inline: 0.7rem; background: var(--line); align-self: center; }
.prop__spec b { font-weight: 600; }
.prop__spec span { color: var(--muted); }
.fav { position: absolute; z-index: 2; top: 0.55rem; right: 0.55rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.96); cursor: pointer; color: var(--ink); box-shadow: 0 2px 8px rgba(15, 26, 43, 0.18); transition: transform 0.2s var(--ease); }
.fav:hover { transform: scale(1.06); }
.fav svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav[aria-pressed="true"] svg { fill: var(--heart); stroke: var(--heart); }
.fav.is-pop { animation: pop 0.35s var(--ease); }
@keyframes pop { 50% { transform: scale(1.18); } }
.fav-wide { position: static; width: 100%; height: 3rem; border-radius: var(--r); background: #fff; border: 1px solid var(--ink); box-shadow: none; display: inline-flex; gap: 0.6rem; align-items: center; justify-content: center; font-weight: 500; }
.fav-wide:hover { transform: none; background: var(--soft); }

/* Сторінка об’єкта */
.pp-head { display: grid; gap: 0.75rem; padding-block: 0.25rem 1.25rem; }
.pp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; color: var(--muted); font-size: 0.9375rem; margin-bottom: 0.6rem; }
.dealtag { padding: 0.2rem 0.6rem; border-radius: 4px; background: var(--ink); color: #fff; font-size: 0.8125rem; font-weight: 500; }
.dealtag[data-deal="rent"] { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.pp-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 22ch; }
.pp-price { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pp-price small { display: block; margin-top: 0.2rem; font-size: 0.875rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
@media (min-width: 900px) { .pp-head { grid-template-columns: 1fr auto; align-items: end; gap: 2rem; } .pp-head .pp-price { text-align: right; } }
.mosaic { display: none; }
.carousel { position: relative; margin-inline: calc(var(--m) * -1); }
.carousel__track { display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--m); scroll-padding-inline: var(--m); }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: none; width: 88%; padding: 0; border: 0; background: var(--soft-2); border-radius: var(--r); overflow: hidden; scroll-snap-align: start; cursor: zoom-in; }
.carousel__slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carousel__count { position: absolute; right: calc(var(--m) + 0.5rem); bottom: 0.6rem; padding: 0.25rem 0.65rem; border-radius: 99px; background: rgba(255, 255, 255, 0.95); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .carousel { display: none; }
  .mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.5rem; height: clamp(24rem, 40vw, 36rem); }
  .mosaic.n2 { grid-template-rows: 1fr; }
  .mosaic button { position: relative; padding: 0; border: 0; background: var(--soft-2); overflow: hidden; cursor: zoom-in; border-radius: var(--r); }
  .mosaic button:first-child { grid-row: 1 / -1; }
  .mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
  .mosaic button:hover img { transform: scale(1.03); }
  .mosaic__more { position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.5rem 0.9rem; border-radius: 99px; background: #fff; font-size: 0.9375rem; font-weight: 500; }
}
.gal-note { margin-top: 0.6rem; font-size: 0.875rem; color: var(--muted); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-block: 1.5rem; border: 1px solid var(--line); border-radius: 10px; }
.figures div { display: grid; gap: 0.1rem; padding: 1rem 1.1rem; }
.figures div:nth-child(odd) { border-right: 1px solid var(--line); }
.figures div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.figures b { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.figures span { font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } .figures div:nth-child(n) { border-top: 0; border-right: 1px solid var(--line); } .figures div:last-child { border-right: 0; } }
.pp-body { display: grid; gap: 2.5rem; padding-block: 1rem var(--sec); }
.pp-main { display: grid; gap: 2.25rem; min-width: 0; max-width: 46rem; }
.pp-main h2 { font-size: 1.5rem; margin-bottom: 0.9rem; }
.pp-lead { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.4; letter-spacing: -0.01em; font-weight: 450; }
.pp-text { display: grid; gap: 0.9rem; color: var(--muted); }
.specs { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 1.25rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 500; text-align: right; }
@media (min-width: 640px) { .specs { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 99px; font-size: 0.9375rem; background: #fff; }
.aside { display: grid; gap: 0.9rem; align-content: start; padding: 1.4rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 44px -30px rgba(15, 26, 43, 0.4); }
.aside .pp-price { text-align: left; }
.aside .btn { width: 100%; min-height: 3.25rem; }
.contacts { display: grid; border-top: 1px solid var(--line); }
.contacts a { display: flex; justify-content: space-between; gap: 1rem; min-height: 3rem; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 0.9375rem; }
.contacts a span:first-child { color: var(--muted); }
.note { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 1000px) { .pp-body { grid-template-columns: minmax(0, 1fr) 22.5rem; gap: 4rem; } .aside { position: sticky; top: calc(var(--head) + 1.5rem); } }
.similar { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.pp-error { padding-block: clamp(3rem, 8vw, 6rem); display: grid; gap: 1rem; justify-items: start; }
.pp-error p { color: var(--muted); max-width: 34rem; }

/* Обране */
.favs__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.void { display: grid; gap: 1rem; justify-items: start; padding-block: 2.5rem var(--sec); }
.void .big { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; }
.void .big em { font-style: normal; color: var(--steel); }
.void .sub { color: var(--muted); max-width: 34rem; }
.void ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.warn { padding: 0.8rem 1rem; background: #fdf1d9; border-left: 3px solid #c98b1a; font-size: 0.9375rem; }
.warn[hidden] { display: none; }
.favs { padding-bottom: var(--sec); }

/* Про агентство */
.about-hero { padding-block: clamp(3rem, 7vw, 5.5rem); }
.about-hero h1 { max-width: 16ch; }
.about-hero .lead { margin-top: 1.25rem; color: #c5d0de; }
.split { display: grid; gap: 2rem; align-items: center; }
.split__text { display: grid; gap: 1rem; color: var(--muted); max-width: 34rem; }
.split__text h2 { color: var(--ink); }
.ph { margin: 0; }
.ph img { width: 100%; border-radius: var(--r); object-fit: cover; background: var(--soft-2); }
.ph figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.rules { display: grid; border-top: 1px solid var(--line); counter-reset: r; }
.rules li { display: grid; gap: 0.35rem; padding: 1.1rem 0 1.1rem 3rem; border-bottom: 1px solid var(--line); position: relative; counter-increment: r; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 1.2rem; color: var(--steel); font-weight: 600; font-variant-numeric: tabular-nums; }
.rules p { color: var(--muted); }
@media (min-width: 900px) { .split--ph { grid-template-columns: 6fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); } .split--ph .ph { max-width: 28rem; } .split--rev .ph { order: -1; } }

/* Контакти й форма */
.contacts-layout { display: grid; gap: 2.5rem; padding-bottom: var(--sec); }
.eyebrow-h { font-size: 1.5rem; font-weight: 500; margin-bottom: 1rem; }
.reach { display: grid; border-top: 1px solid var(--line); }
.reach li { border-bottom: 1px solid var(--line); }
.reach__link { display: flex; align-items: center; gap: 0.9rem; min-height: 3.75rem; padding: 0.7rem 0; text-decoration: none; }
.reach__ic { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #eef2f6; color: var(--steel); transition: background-color 0.2s, color 0.2s; }
.reach__ic .ci { width: 1.15rem; height: 1.15rem; }
a.reach__link:hover .reach__ic, a.reach__link:focus-visible .reach__ic { background: var(--steel); color: #fff; }
.reach__ic--n { font-weight: 600; font-size: 0.9375rem; }
span.reach__link { color: var(--ink); }
.reach__name { font-weight: 500; }
.reach__name { flex: 1; }
.reach__val { color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.reach__link[aria-disabled="true"] .reach__val { font-size: 0.9375rem; }
a.reach__link:hover .reach__name { color: var(--steel); }
.reach__note { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.form { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 18px 44px -30px rgba(15, 26, 43, 0.4); align-content: start; }
.form h2 { font-size: 1.5rem; }
.row2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.result { display: grid; gap: 0.9rem; padding: 1.1rem; background: var(--ink); color: #fff; border-radius: var(--r); }
.result[hidden] { display: none; }
.result p { color: #c5d0de; }
.result strong { color: #fff; }
.result pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 0.9375rem; padding: 0.9rem; background: rgba(255, 255, 255, 0.08); border-radius: 4px; }
.result__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.result .go { color: #cfe0f2; }
.copy { min-height: 2.75rem; padding: 0 1.2rem; border: 0; border-radius: var(--r); background: #fff; color: var(--ink); font-weight: 500; cursor: pointer; }
@media (min-width: 900px) { .contacts-layout { grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; } }

/* Лайтбокс */

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; } }
.on-ink .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.on-ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.search .seg { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.search .seg button, .search .seg button + button { border-left: 0; background: none; }
.search .seg button[aria-pressed="true"] { background: none; color: var(--ink); }
.mosaic img { position: absolute; inset: 0; }
.aside { align-self: start; }
@media (min-width: 900px) { .similar .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Перегляд фото: рамка точно по фото, стрілки по краях фото, «Закрити» у верхньому куті фото, підпис нижче */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: #0a1220; color: #ffffff; }
.lightbox::backdrop { background: #0a1220; }
.lightbox .lightbox__stage { position: static; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.75rem; touch-action: pan-y; }
.lightbox .lb-frame { position: relative; margin: 0; max-width: 100%; min-width: min(17rem, calc(100vw - 1rem)); display: flex; justify-content: center; line-height: 0; background: #000; }
.lightbox .lb-frame img { display: block; width: auto; height: auto; max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 5.25rem); object-fit: contain; }
.lightbox .lb-bar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem; line-height: 1.2; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); }
.lightbox .lb-count { padding: 0.25rem 0.6rem; background: rgba(0, 0, 0, 0.6); color: #ffffff; font-size: 0.875rem; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lightbox .lb-close { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem; border: 1px solid #ffffff; border-radius: 6px; background: #ffffff; color: #0a1220; cursor: pointer; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; transition: transform 0.15s, background-color 0.2s; }
.lightbox .lb-close:hover { background: #8fb2d6; border-color: #8fb2d6; }
.lightbox .lb-arrow { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; min-width: 0; min-height: 0; padding: 0; border: 1px solid #ffffff; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #ffffff; cursor: pointer; font-size: 1.35rem; line-height: 1; transition: transform 0.15s, background-color 0.2s, color 0.2s; }
.lightbox .lb-arrow:hover { background: #ffffff; color: #0a1220; }
.lightbox .lb-arrow:active { transform: scale(0.9); }
.lightbox .lb-close:active { transform: scale(0.95); }
.lightbox .lb-arrow--prev { left: 0.6rem; }
.lightbox .lb-arrow--next { right: 0.6rem; }
.lightbox .lb-arrow[hidden] { display: none; }
.lightbox .lightbox__cap { position: static; margin: 0; max-width: 60rem; text-align: center; font-size: 0.875rem; line-height: 1.35; color: #b9c6d6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .lightbox .lb-close__t { display: none; } .lightbox .lb-arrow { width: 2.9rem; height: 2.9rem; } .lightbox .lightbox__stage { padding: 0.5rem; } .lightbox .lb-frame img { max-width: calc(100vw - 1rem); } }
@media (max-height: 560px) { .lightbox .lb-close__t { display: none; } .lightbox .lb-frame img { max-height: calc(100dvh - 4rem); } .lightbox .lightbox__cap { -webkit-line-clamp: 1; } }

/* Скруглення */
.lightbox .lb-frame { border-radius: 16px; overflow: hidden; }
.lightbox .lb-frame img { border-radius: 0; }
.lightbox .lb-count { border-radius: 10px; }
.lightbox .lb-close { border-radius: 12px; }
.lightbox .lightbox__stage .lightbox__cap { border-radius: 0; }

/* Скруглення */
.fbar__btn, .link-btn, .copy, .lb-btn { border-radius: 10px; }
.abt__ph, .ph img, .type__img, .tags li, .figures, .aside, .form, .mosaic button, .carousel__slide, .prop__ph { border-radius: 14px; overflow: hidden; }
.figures, .aside, .form { overflow: visible; }

/* Перемикач мови в підвалі — праворуч */
a[data-lang-link] { margin-left: auto; }
