/* ==========================================================================
   Lumara Estate — main stylesheet
   1. Tokens
   2. Reset
   3. Base
   4. Layout
   5. Components
   6. Utilities
   ========================================================================== */

/* 1. Tokens ============================================================== */

/* Brand faces. The landing shipped with these files; the catalogue now uses
   the same two, so one typographic voice runs across the whole site. Paths
   are relative to this stylesheet, not to the theme root. */
@font-face {
	font-family: Unbounded;
	src: url(../landing/fonts/Unbounded/Unbounded-Regular.woff2) format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Unbounded;
	src: url(../landing/fonts/Unbounded/Unbounded-SemiBold.woff2) format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Unbounded;
	src: url(../landing/fonts/Unbounded/Unbounded-Bold.woff2) format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Unbounded;
	src: url(../landing/fonts/Unbounded/Unbounded-Black.woff2) format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Geologica;
	src: url(../landing/fonts/Geologica/geologica-variable.woff2) format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Palette. Shared with the landing — the catalogue used to carry its own
	   blue system, which read as a second website. Warm since 2026-10-21:
	   the teal scheme came with the ported design and tied the showcase to
	   the agency it was ported from. */
	--c-ink:          #1E1A17;
	--c-ink-soft:     #46403A;
	--c-ink-muted:    #7B726A;
	--c-line:         #E2D9CF;
	--c-bg:           #ffffff;
	--c-bg-soft:      #F7F3ED;
	--c-accent:       #6F5240;
	--c-accent-mid:   #7E6049;
	--c-accent-dark:  #3A2F27;
	--c-accent-soft:  #F0E7DD;
	--c-lime:         #CBA15C;
	--c-lime-hover:   #D9B06A;
	--c-gold:         #B5894E;
	--c-danger:       #c02626;

	/* Typography */
	--font-sans: Geologica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: Unbounded, var(--font-sans);

	--fs-xs:   0.8125rem;
	--fs-sm:   0.875rem;
	--fs-base: 1rem;
	--fs-md:   1.125rem;
	--fs-lg:   1.375rem;
	--fs-xl:   1.75rem;
	--fs-2xl:  2.25rem;
	--fs-3xl:  3rem;

	--lh-tight: 1.1;
	--lh-base:  1.6;

	/* The eyebrow above a section title: small, wide, uppercase, brand green. */
	--tracking-eyebrow: 0.18em;
	--tracking-button:  0.1em;

	/* Space scale */
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--s-8: 4rem;
	--s-9: 6rem;

	/* Shape. The brand is square-cornered: 4px is the only curve it uses. */
	--radius-sm: 2px;
	--radius:    4px;
	--radius-lg: 4px;

	--shadow-sm: 0 1px 2px rgb(58 47 39 / 0.06);
	--shadow:    0 4px 16px rgb(58 47 39 / 0.08);
	--shadow-lg: 0 12px 32px rgb(58 47 39 / 0.14);

	/* Layout */
	--container:      1120px;
	--container-wide: 1320px;
	--container-text: 760px;
	--gutter:         var(--s-4);

	--header-height: 84px;

	--transition: 180ms ease;
}

@media (min-width: 768px) {
	:root {
		--gutter: var(--s-6);
	}
}

/* 2. Reset =============================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	color: var(--c-ink);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--s-4);
	font-family: var(--font-head);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--c-accent-dark);
	text-wrap: balance;
}

/* The landing sets display titles in the heaviest weight. Caps are reserved
   for headings the site itself writes — an archive title, a section title —
   and never applied to content: a listing called "Будинок із ділянкою" has
   to read as its own name, not as a banner. */
h1, h2 {
	font-weight: 900;
}

/* Украинские названия районов длинные: «Амур-Нижньодніпровський» в
   display-начертании шире телефонного экрана. Заголовок уменьшается на узких
   экранах, а break-word остаётся страховкой для слов, которые не переносятся
   по дефису. */
h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
}

@media (max-width: 480px) {
	h1 { font-size: var(--fs-xl); }
	h2 { font-size: var(--fs-lg); }
}

.page-header__title,
.front-section__title,
.catalogue__title {
	text-transform: uppercase;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p, ul, ol, dl, figure, pre, table {
	margin: 0 0 var(--s-4);
}

a {
	color: var(--c-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color var(--transition);
}

a:hover,
a:focus {
	color: var(--c-accent-dark);
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin-inline: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: var(--s-2) var(--s-3);
	text-align: left;
	border-bottom: 1px solid var(--c-line);
}

:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* 3. Base ================================================================ */

@media (min-width: 768px) {
	h1 { font-size: var(--fs-3xl); }
	h2 { font-size: var(--fs-2xl); }
}

/* 4. Layout ============================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Listing pages run wider than the brand's 1120: a filter rail plus three
   cards does not fit in the measure meant for reading. Header and footer
   keep the narrow container, so the site still lines up vertically. */
.catalogue-page .container,
.container--wide {
	max-width: var(--container-wide);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1 0 auto;
	padding-block: var(--s-7);
}

.site-main--front {
	padding-block: 0;
}

.entry__content {
	max-width: var(--container-text);
}

/* Header */

/* The header matches the landing's navigation bar: same translucent
   off-white, same hairline, same height. The landing keeps its own markup
   (it is a ported production page); what is shared here is the look. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(242, 244, 243, 0.92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgb(111 82 64 / 0.12);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
	min-height: var(--header-height);
}

.site-branding .custom-logo,
.site-branding__logo {
	width: auto;
	/* 51px — как на лендинге: переход с главной в каталог не должен менять
	   размер логотипа. Атрибуты width/height в разметке задают пропорцию,
	   высоту диктует эта строка. */
	height: 51px;
}

.site-title {
	margin: 0;
	font-family: var(--font-head);
	font-size: var(--fs-md);
	font-weight: 900;
	text-transform: uppercase;
}

.site-title a {
	color: var(--c-accent-dark);
	text-decoration: none;
}

.main-navigation .menu {
	display: flex;
	gap: var(--s-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Один вид у шапки и у навигации лендинга: 13px, вес 500, подчёркивание
   лаймом. Размеры взяты с лендинга — он перенесённый продакшн и живой
   бренд, а не наоборот. */
.main-navigation a {
	display: inline-block;
	padding-bottom: 2px;
	color: var(--c-ink-soft);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

/* Вес при наведении не меняется. Жирное начертание шире обычного, поэтому
   ссылка раздувалась и толкала соседей — замерено, до 3px. Подчёркивание
   рисуется по уже зарезервированной прозрачной рамке и не двигает ничего. */
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--c-accent);
	border-bottom-color: var(--c-lime);
}

/* Phone plus the one call to action, mirroring the landing's nav. Hidden on
   narrow screens, where the burger owns the space. */
.site-header__actions {
	display: none;
	align-items: center;
	gap: var(--s-5);
}

/* Кнопка в шапке меньше обычной: общий .button рассчитан на блок в тексте,
   а в навигационной полосе он занимал 331x54 против 266x38 на лендинге. */
.site-header__actions .button {
	padding: 12px 22px;
	font-size: 11px;
}

.site-header__phone {
	font-family: var(--font-head);
	font-size: var(--fs-xs);
	font-weight: 700;
	color: var(--c-accent-dark);
	text-decoration: none;
	white-space: nowrap;
}

.site-header__phone:hover {
	color: var(--c-accent);
}

@media (min-width: 1024px) {
	.site-header__actions {
		display: flex;
	}
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 18px;
	height: 2px;
	margin-inline: auto;
	background: var(--c-ink);
	content: "";
}

.nav-toggle__bar::before { transform: translateY(-6px); }
.nav-toggle__bar::after  { transform: translateY(4px); }

@media (max-width: 767px) {
	.nav-toggle {
		display: block;
	}

	.main-navigation {
		display: none;
		flex-basis: 100%;
		padding-block: var(--s-4);
	}

	.main-navigation.is-open {
		display: block;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.main-navigation .menu {
		flex-direction: column;
		gap: var(--s-3);
	}
}

/* Footer */

/* Dark green footer, same as the landing's. It used to be a pale strip,
   which is what made a listing page look like a different site. */
.site-footer {
	flex-shrink: 0;
	padding-block: var(--s-8) var(--s-6);
	background: var(--c-accent-dark);
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--fs-sm);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}

.site-footer__logo {
	/* align-self: без него логотип растягивается на всю ширину колонки —
	   это флекс-элемент, а не блок в потоке. */
	align-self: flex-start;
	width: auto;
	height: 44px;
}

.site-footer__tagline {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	line-height: var(--lh-base);
}

.site-footer__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--s-6);
	margin-bottom: var(--s-6);
}

.site-footer__heading {
	margin: 0 0 var(--s-3);
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--c-lime);
}

.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Те же 13px и вес 500, что в шапке: подвал — вторая навигация сайта,
   а не другой шрифт. */
.site-footer__list a {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}

.site-footer__list a:hover {
	border-bottom-color: var(--c-lime);
}

.site-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--s-6);
	margin-bottom: var(--s-6);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	padding-top: var(--s-5);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.5);
}

.site-footer__copyright {
	margin: 0;
}

.menu--legal {
	display: flex;
	gap: var(--s-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 5. Components ========================================================== */

.page-header {
	margin-bottom: var(--s-6);
}

.page-header__title {
	margin-bottom: var(--s-2);
}

.post-list {
	display: grid;
	gap: var(--s-6);
}

.listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--s-5);
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--c-bg-soft);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: var(--s-4);
}

/* A listing's name is content, not a heading the brand writes: body face,
   sentence case, so the grid stays scannable. */
.card__title {
	margin-bottom: var(--s-2);
	font-family: var(--font-sans);
	font-size: var(--fs-md);
	font-weight: 600;
	line-height: 1.35;
	text-transform: none;
}

.card__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.card__title a:hover {
	color: var(--c-accent);
}

.card__meta {
	margin-bottom: var(--s-2);
	font-size: var(--fs-xs);
	color: var(--c-ink-muted);
}

.card__excerpt {
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.card__excerpt p:last-child {
	margin-bottom: 0;
}

.button,
.search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	padding: var(--s-4) var(--s-6);
	font-family: var(--font-head);
	font-size: var(--fs-xs);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: var(--tracking-button);
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	background: var(--c-accent);
	border: 2px solid transparent;
	border-radius: 0;
	text-decoration: none;
	transition: background var(--transition), transform 150ms ease;
}

.button:hover,
.button:focus,
.search-form__submit:hover {
	color: #fff;
	background: var(--c-accent-dark);
	transform: translateY(-2px);
}

.button--ghost {
	color: var(--c-accent);
	background: transparent;
	border-color: var(--c-accent);
}

.button--ghost:hover {
	color: #fff;
	background: var(--c-accent);
}

/* The one call to action that must win on a page — "замовити перегляд",
   "надіслати заявку". Lime on dark green is the brand's loudest pair. */
.button--accent {
	color: var(--c-accent-dark);
	background: var(--c-lime);
	font-weight: 900;
}

.button--accent:hover,
.button--accent:focus {
	color: var(--c-accent-dark);
	background: var(--c-lime-hover);
}

/* An eyebrow: the small wide caps line that sits above a section title. */
.eyebrow {
	display: block;
	font-family: var(--font-head);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: var(--tracking-eyebrow);
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--c-accent);
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	max-width: 480px;
}

.search-form__input {
	flex: 1 1 12rem;
	min-width: 0;
	padding: var(--s-3);
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
}

.search-form__input:focus {
	border-color: var(--c-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.hero {
	padding-block: var(--s-9);
	background: var(--c-bg-soft);
	border-bottom: 1px solid var(--c-line);
}

.hero__title {
	margin-bottom: var(--s-3);
}

.hero__subtitle {
	max-width: var(--container-text);
	margin: 0;
	font-size: var(--fs-md);
	color: var(--c-ink-muted);
}

.front-section {
	padding-block: var(--s-8);
}

.entry__thumbnail {
	margin-bottom: var(--s-6);
	overflow: hidden;
	border-radius: var(--radius-lg);
}

.entry__meta {
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.no-results,
.error-404 {
	max-width: var(--container-text);
	padding-block: var(--s-7);
}

.pagination {
	margin-top: var(--s-7);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: var(--s-2);
	color: var(--c-ink);
	text-decoration: none;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
}

.pagination .page-numbers:hover {
	border-color: var(--c-accent);
}

.pagination .page-numbers.current {
	color: #fff;
	background: var(--c-accent);
	border-color: var(--c-accent);
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: var(--s-5);
	margin-top: var(--s-7);
	padding-top: var(--s-5);
	border-top: 1px solid var(--c-line);
	font-size: var(--fs-sm);
}

.nav-subtitle {
	display: block;
	color: var(--c-ink-muted);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.widget__title {
	font-size: var(--fs-sm);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--c-ink-muted);
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li + li {
	margin-top: var(--s-2);
}

/* 6. Utilities =========================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--s-4);
	z-index: 1000;
	padding: var(--s-3) var(--s-4);
	background: var(--c-bg);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
}

.skip-link:focus {
	top: var(--s-3);
	width: auto;
	height: auto;
	clip-path: none;
}

.alignwide {
	max-width: var(--container);
}

.aligncenter {
	margin-inline: auto;
}

.alignleft {
	float: left;
	margin: 0 var(--s-5) var(--s-4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--s-4) var(--s-5);
}

.wp-caption-text,
.gallery-caption {
	font-size: var(--fs-xs);
	color: var(--c-ink-muted);
}

.entry__content--wide { max-width: none; }
.site-main--wide { padding-block: var(--s-7); }

.page-header__intro {
	max-width: var(--container-text);
	color: var(--c-ink-muted);
}

/* Catalogue =============================================================== */

.catalogue {
	display: grid;
	grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
	gap: var(--s-6);
	align-items: start;
}

@media (max-width: 900px) {
	.catalogue {
		grid-template-columns: minmax(0, 1fr);
	}
}

.catalogue__filters {
	position: sticky;
	top: calc(var(--header-height) + var(--s-4));
	padding: var(--s-5);
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

@media (max-width: 900px) {
	.catalogue__filters {
		position: static;
	}
}

.catalogue__summary {
	margin-bottom: var(--s-4);
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

[data-lum-results][aria-busy="true"] {
	opacity: 0.55;
	transition: opacity var(--transition);
}

.catalogue-empty {
	padding: var(--s-7) var(--s-5);
	text-align: center;
	background: var(--c-bg-soft);
	border-radius: var(--radius);
}

.catalogue-empty__title {
	font-size: var(--fs-lg);
}

.catalogue-empty__text {
	color: var(--c-ink-muted);
}

/* Filters */

.filters__grid {
	display: grid;
	gap: var(--s-4);
}

.filters__field {
	margin: 0;
}

.filters__label {
	display: block;
	margin-bottom: var(--s-1);
	font-size: var(--fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--c-ink-muted);
}

.filters__control {
	width: 100%;
	padding: var(--s-2) var(--s-3);
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
}

.filters__control:focus {
	border-color: var(--c-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.filters__range {
	display: flex;
	gap: var(--s-2);
}

.filters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin-top: var(--s-5);
}

.filters__actions .button {
	flex: 1 1 auto;
	justify-content: center;
}

/* Listing card */

.card--property .card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--c-bg-soft);
}

.card--property .card__media a {
	display: block;
	width: 100%;
	height: 100%;
}

.card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		repeating-linear-gradient(
			45deg,
			var(--c-bg-soft),
			var(--c-bg-soft) 10px,
			var(--c-line) 10px,
			var(--c-line) 11px
		);
}

.card__badge {
	position: absolute;
	top: var(--s-3);
	left: var(--s-3);
	padding: var(--s-1) var(--s-3);
	font-size: var(--fs-xs);
	font-weight: 600;
	color: #fff;
	background: var(--c-ink);
	border-radius: 100px;
}

.card__price {
	margin-bottom: var(--s-1);
	font-size: var(--fs-lg);
	font-weight: 700;
	line-height: 1.2;
}

.card--property .card__title {
	margin-bottom: var(--s-2);
	font-size: var(--fs-base);
	font-weight: 600;
}

.card__district {
	display: flex;
	align-items: baseline;
	gap: var(--s-2);
	margin-bottom: var(--s-3);
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.card__district-icon {
	color: var(--c-accent);
}

/* A fixed two-column grid, not flex-wrap: with flex the number of spec rows
   depends on content width, so cards in the same row ended up different
   heights and their CTAs stopped lining up. */
.card__specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--s-3) var(--s-4);
	margin: 0 0 var(--s-4);
	padding-top: var(--s-3);
	border-top: 1px solid var(--c-line);
}

.card__spec {
	min-width: 0;
}

.card__spec-value {
	overflow-wrap: anywhere;
}

.card__spec-label {
	font-size: var(--fs-xs);
	color: var(--c-ink-muted);
}

.card__spec-value {
	margin: 0;
	font-size: var(--fs-sm);
	font-weight: 600;
}

.card__cta {
	margin: auto 0 0;
}

.button--block {
	display: flex;
	width: 100%;
}

/* Single listing ========================================================== */

.property-section__title {
	margin-bottom: var(--s-5);
	font-size: var(--fs-lg);
}

.property > section {
	padding-block: var(--s-6);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	padding-top: var(--s-5);
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.breadcrumbs a {
	color: var(--c-ink-muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--c-accent);
}

/* Gallery */

.property-gallery__main {
	margin: 0 0 var(--s-3);
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-bg-soft);
}

.property-gallery__main {
	position: relative;
}

/* Say the photo opens, rather than leaving it to be discovered by tapping. */
.property-gallery__main a {
	display: block;
	cursor: zoom-in;
}

/* Capped, not full-bleed: at 1440px a 4:3 image is over 1000px tall and
   pushes the price and specs below the fold on every listing. */
.property-gallery__main img {
	width: 100%;
	aspect-ratio: 16 / 9;
	/* The price is the single most important element on a listing; anything
	   taller than this pushes it below the fold on a laptop screen. */
	max-height: 52vh;
	object-fit: cover;
}

.property-gallery__badge {
	position: absolute;
	top: var(--s-4);
	left: var(--s-4);
	padding: var(--s-2) var(--s-4);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: #fff;
	background: var(--c-ink);
	border-radius: 100px;
}

.property-gallery__thumbs {
	display: flex;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
}

.property-gallery__thumb {
	display: block;
	width: 96px;
	height: 72px;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
}

.property-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.property-gallery__thumb.is-active {
	border-color: var(--c-accent);
}

/* Full-screen viewer.

   Before this, the main photo was a bare link to the file: tapping it left
   the listing for a raw .jpg with no close control and nothing to press but
   the system back gesture. The viewer keeps the visitor on the page. */

.lum-viewer {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	/* Near-opaque: the listing behind must not compete with the photo. */
	background: rgba(17, 20, 18, 0.97);
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.lum-viewer[hidden] {
	display: none;
}

.lum-viewer__bar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	padding: var(--s-3) var(--s-4);
	padding-top: calc(var(--s-3) + env(safe-area-inset-top, 0px));
	color: #fff;
}

.lum-viewer__counter {
	margin: 0;
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-variant-numeric: tabular-nums;
	letter-spacing: var(--tracking-button);
}

.lum-viewer__counter[hidden] {
	display: none;
}

/* 44px is the smallest target a thumb hits reliably; the close control is
   the one thing that must never be fiddly. */
.lum-viewer__close {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--s-4);
	font-family: var(--font-head);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--tracking-button);
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--radius);
	cursor: pointer;
}

.lum-viewer__close span[aria-hidden] {
	font-size: 1.5rem;
	line-height: 1;
}

.lum-viewer__close:hover,
.lum-viewer__close:focus-visible {
	background: rgba(255, 255, 255, 0.22);
}

.lum-viewer__stage {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: var(--s-3);
	padding-bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
}

.lum-viewer__image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.lum-viewer__nav {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	font-size: 2rem;
	line-height: 1;
	color: #fff;
	background: rgba(17, 20, 18, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--radius);
	transform: translateY(-50%);
	cursor: pointer;
}

.lum-viewer__nav[hidden] {
	display: none;
}

.lum-viewer__nav:hover,
.lum-viewer__nav:focus-visible {
	background: rgba(17, 20, 18, 0.8);
}

.lum-viewer__nav--prev {
	left: var(--s-3);
}

.lum-viewer__nav--next {
	right: var(--s-3);
}

@media (max-width: 480px) {
	/* The word would push the control past the counter on a narrow bar. */
	.lum-viewer__close-text {
		display: none;
	}

	.lum-viewer__close {
		justify-content: center;
		padding: 0;
	}
}

/* Hold the page still behind the viewer. Only position: fixed stops iOS
   Safari from scrolling the listing under the overlay; the offset keeps the
   reading position, which window.scrollTo() restores on close. */
.lum-viewer-open,
.lum-viewer-open body,
.lum-assist-open,
.lum-assist-open body {
	overflow: hidden;
}

.lum-viewer-open body,
.lum-assist-open body {
	position: fixed;
	width: 100%;
}

/* Price */

.property-price__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--s-5);
}

.property-price__title {
	margin-bottom: var(--s-2);
	font-size: var(--fs-xl);
}

.property-price__district {
	margin: 0;
	color: var(--c-ink-muted);
}

.property-price__figure {
	flex: 0 0 auto;
	text-align: right;
}

@media (max-width: 640px) {
	.property-price__figure {
		text-align: left;
	}
}

.property-price__value {
	margin: 0;
	font-size: var(--fs-2xl);
	font-weight: 700;
	line-height: 1.1;
}

.property-price__value--ask {
	font-size: var(--fs-lg);
	color: var(--c-ink-muted);
}

.property-price__per-meter {
	margin: var(--s-1) 0 0;
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.property-price__cta {
	margin: var(--s-4) 0 0;
}

/* Key specs */

.property-key__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: var(--s-4);
	margin: 0;
	padding: var(--s-5);
	background: var(--c-bg-soft);
	border-radius: var(--radius);
}

.property-key__label {
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--c-ink-muted);
}

.property-key__value {
	margin: var(--s-1) 0 0;
	font-size: var(--fs-md);
	font-weight: 600;
}

/* Specs table */

.property-specs__list {
	margin: 0;
	max-width: var(--container-text);
}

.property-specs__row {
	display: flex;
	justify-content: space-between;
	gap: var(--s-4);
	padding: var(--s-3) 0;
	border-bottom: 1px solid var(--c-line);
}

.property-specs__label {
	color: var(--c-ink-muted);
}

.property-specs__value {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

.property-specs__subtitle {
	margin-top: var(--s-6);
	font-size: var(--fs-md);
}

.property-features {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.property-features__item {
	padding: var(--s-2) var(--s-4);
	font-size: var(--fs-sm);
	background: var(--c-accent-soft);
	border-radius: 100px;
}

/* Location */

.property-location__list {
	margin: 0;
	max-width: var(--container-text);
}

.property-location__row {
	display: flex;
	justify-content: space-between;
	gap: var(--s-4);
	padding: var(--s-3) 0;
	border-bottom: 1px solid var(--c-line);
}

.property-location__row dt {
	color: var(--c-ink-muted);
}

.property-location__row dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

/* Map */

.property-map__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	/* At full container width a 16:9 box is over 800px tall, which is a lot
	   of empty grey for a placeholder nobody has clicked yet. */
	max-height: 480px;
	overflow: hidden;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.property-map__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* The canvas MapLibre draws into. It measures its container, so the
   container must have a size before the map is created — the frame's
   aspect-ratio above provides it. */
.property-map__canvas {
	width: 100%;
	height: 100%;
}

/* MapLibre paints its own controls; only the two things that would clash
   with the brand are pulled into line. */
.property-map__canvas .maplibregl-ctrl-group {
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.property-map__canvas .maplibregl-ctrl-attrib {
	font-size: var(--fs-xs);
}

.property-map__frame.is-loading .property-map__placeholder::after {
	content: 'Завантаження…';
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.property-map__frame.is-loading [data-lum-map-load] {
	opacity: 0.6;
}

.property-map__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--s-3);
	height: 100%;
	padding: var(--s-5);
	text-align: center;
}

.property-map__hint {
	max-width: 42ch;
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.property-map__fallback {
	margin: 0;
	font-size: var(--fs-sm);
}

/* Agent */

/* Инициалы вместо фото: та же геометрия, что и у снимка, чтобы карточка
   не прыгала, когда риелтору поставят фотографию. */
.agent-card__photo,
.agent-card .avatar-initials {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: var(--radius);
}

.agent-card {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-5);
	padding: var(--s-5);
	background: var(--c-bg-soft);
	border-radius: var(--radius);
}

.agent-card__photo {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 50%;
}

.agent-card__body {
	flex: 1 1 260px;
}

.agent-card__name {
	margin: 0;
	font-size: var(--fs-md);
	font-weight: 700;
}

.agent-card__position {
	margin: var(--s-1) 0 0;
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.agent-card__bio {
	margin: var(--s-3) 0 0;
	font-size: var(--fs-sm);
}

.agent-card__contacts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-4);
	margin: var(--s-4) 0 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
}

/* Closing CTA */

.property-cta {
	margin-top: var(--s-6);
	background: var(--c-accent-soft);
}

.property-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
	padding-block: var(--s-6);
}

.property-cta__title {
	margin-bottom: var(--s-2);
	font-size: var(--fs-xl);
}

.property-cta__lead {
	max-width: 52ch;
	margin: 0;
	color: var(--c-ink-muted);
}

.property-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
}

.button--lg {
	padding: var(--s-4) var(--s-6);
	font-size: var(--fs-base);
}

/* SEO landing page ======================================================== */

.seo-landing > section {
	padding-block: var(--s-6);
}

.seo-section__title {
	margin-bottom: var(--s-5);
	font-size: var(--fs-lg);
}

.seo-landing__header {
	padding-top: var(--s-4);
}

.seo-landing__title {
	max-width: 22ch;
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.seo-landing__title {
		max-width: none;
	}
}

.seo-intro {
	padding-top: var(--s-5) !important;
}

.seo-intro__text {
	max-width: var(--container-text);
	margin: 0;
	font-size: var(--fs-md);
	color: var(--c-ink-muted);
}

.seo-text__body {
	max-width: var(--container-text);
}

/* Properties */

.seo-properties__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s-3);
}

.seo-properties__count {
	margin: 0 0 var(--s-5);
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.seo-properties__more {
	margin: var(--s-6) 0 0;
	text-align: center;
}

/* Useful information */

.seo-useful {
	background: var(--c-bg-soft);
}

.seo-useful__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--s-5);
}

.seo-useful__item {
	padding: var(--s-5);
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.seo-useful__title {
	margin-bottom: var(--s-2);
	font-size: var(--fs-md);
}

.seo-useful__text {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

/* FAQ */

.seo-faq__list {
	max-width: var(--container-text);
}

.seo-faq__item {
	border-bottom: 1px solid var(--c-line);
}

.seo-faq__question {
	padding: var(--s-4) var(--s-6) var(--s-4) 0;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.seo-faq__question::-webkit-details-marker {
	display: none;
}

.seo-faq__question::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	font-size: var(--fs-lg);
	color: var(--c-accent);
}

.seo-faq__item[open] .seo-faq__question::after {
	content: "–";
}

.seo-faq__answer {
	padding-bottom: var(--s-4);
	color: var(--c-ink-muted);
}

/* Related pages */

.seo-related__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.seo-related__link {
	display: inline-block;
	padding: var(--s-2) var(--s-4);
	font-size: var(--fs-sm);
	color: var(--c-ink);
	text-decoration: none;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
	border-radius: 100px;
}

.seo-related__link:hover {
	color: var(--c-accent);
	border-color: var(--c-accent);
}

/* CTA */

.seo-cta {
	margin-top: var(--s-6);
	background: var(--c-accent-soft);
}

.seo-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-5);
	padding-block: var(--s-6);
}

.seo-cta__title {
	margin-bottom: var(--s-2);
	font-size: var(--fs-xl);
}

.seo-cta__lead {
	max-width: 52ch;
	margin: 0;
	color: var(--c-ink-muted);
}

.seo-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
}

/* District page =========================================================== */

.district > section {
	padding-block: var(--s-6);
}

.district-section__title {
	margin-bottom: var(--s-5);
	font-size: var(--fs-lg);
}

.district__header {
	padding-top: var(--s-4);
}

.district-intro {
	padding-top: var(--s-5) !important;
}

.district-intro__text {
	max-width: var(--container-text);
	margin: 0;
	font-size: var(--fs-md);
	color: var(--c-ink-muted);
}

.district-text__body {
	max-width: var(--container-text);
}

.district-infra {
	background: var(--c-bg-soft);
}

.district-infra__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--s-5);
}

.district-infra__item {
	padding: var(--s-5);
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.district-infra__title {
	margin-bottom: var(--s-2);
	font-size: var(--fs-md);
}

.district-infra__text {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

/* Prices */

.district-prices__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: var(--s-4);
	margin: 0;
	padding: var(--s-5);
	background: var(--c-accent-soft);
	border-radius: var(--radius);
}

.district-prices__item dt {
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--c-ink-muted);
}

.district-prices__item dd {
	margin: var(--s-1) 0 0;
	font-size: var(--fs-md);
	font-weight: 700;
}

.district-prices__source {
	margin: var(--s-3) 0 0;
	font-size: var(--fs-xs);
	color: var(--c-ink-muted);
}

.district-prices__note {
	max-width: var(--container-text);
	margin: var(--s-4) 0 0;
	color: var(--c-ink-muted);
}

.district-properties__more {
	margin: var(--s-6) 0 0;
	text-align: center;
}

/* Complexes */

.district-complexes__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--s-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.district-complexes__link {
	display: block;
	overflow: hidden;
	color: var(--c-ink);
	text-decoration: none;
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.district-complexes__link img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.district-complexes__name {
	display: block;
	padding: var(--s-4);
	font-weight: 600;
}

.district-complexes__link:hover .district-complexes__name {
	color: var(--c-accent);
}

/* Articles */

.district-articles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--s-5);
}

.district-articles__media {
	display: block;
	margin-bottom: var(--s-3);
	overflow: hidden;
	border-radius: var(--radius);
}

.district-articles__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.district-articles__title {
	margin-bottom: var(--s-2);
	font-size: var(--fs-md);
}

.district-articles__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.district-articles__title a:hover {
	color: var(--c-accent);
}

.district-articles__excerpt {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

/* Residential complex ===================================================== */

.complex > section {
	padding-block: var(--s-6);
}

.complex__header {
	padding-top: var(--s-4);
	padding-bottom: var(--s-5);
}

.complex__title {
	margin-bottom: var(--s-3);
}

.complex__intro {
	max-width: var(--container-text);
	margin: 0;
	font-size: var(--fs-md);
	color: var(--c-ink-muted);
}

.complex__summary {
	margin: var(--s-3) 0 0;
	font-size: var(--fs-md);
	font-weight: 700;
	color: var(--c-accent);
}

.complex-facts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--s-4);
	margin: 0;
	padding: var(--s-5);
	background: var(--c-bg-soft);
	border-radius: var(--radius);
}

.complex-facts__label {
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--c-ink-muted);
}

.complex-facts__value {
	margin: var(--s-1) 0 0;
	font-size: var(--fs-md);
	font-weight: 600;
}

.complex-features__title {
	margin: var(--s-5) 0 var(--s-3);
	font-size: var(--fs-base);
	color: var(--c-ink-muted);
}

.complex-features__title:first-of-type {
	margin-top: 0;
}

/* Державна програма. Нижній кут, щоб не зіштовхуватись зі статусом
   обʼєкта у верхньому: на картці можуть бути обидві позначки. */
.card__badge--program {
	top: auto;
	bottom: var(--s-3);
	color: var(--c-accent-dark);
	background: var(--c-lime);
}

.card__badge--class {
	background: var(--c-accent);
}

.card__year {
	color: var(--c-ink-muted);
}

.card--complex .card__price {
	margin-top: var(--s-2);
	font-size: var(--fs-md);
}

/* Enquiry form ============================================================ */

.enquiry {
	max-width: 460px;
	padding: var(--s-5);
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.enquiry__title {
	margin-bottom: var(--s-4);
	font-size: var(--fs-md);
}

.enquiry__field {
	margin-bottom: var(--s-3);
}

.enquiry__field label {
	display: block;
	margin-bottom: var(--s-1);
	font-size: var(--fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--c-ink-muted);
}

.enquiry__field input,
.enquiry__field select,
.enquiry__field textarea {
	width: 100%;
	padding: var(--s-3);
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
}

.enquiry__field input:focus,
.enquiry__field select:focus,
.enquiry__field textarea:focus {
	border-color: var(--c-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--c-accent-soft);
}

/* Off-screen rather than display:none — some bots skip hidden fields. */
.enquiry__honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.enquiry__consent {
	margin: var(--s-4) 0;
	font-size: var(--fs-xs);
	color: var(--c-ink-muted);
}

.enquiry__consent label {
	display: flex;
	gap: var(--s-2);
	align-items: flex-start;
}

.enquiry__actions {
	margin: 0;
}

.enquiry__result,
.enquiry__status {
	margin: var(--s-3) 0 0;
	padding: var(--s-3);
	font-size: var(--fs-sm);
	border-radius: var(--radius-sm);
}

.enquiry__result--ok,
.enquiry__status--ok {
	color: #14532d;
	background: #dcfce7;
}

.enquiry__result--error,
.enquiry__status--error {
	color: #7f1d1d;
	background: #fee2e2;
}

.property-cta__form,
.seo-cta__form {
	flex: 1 1 320px;
}

.property-cta__inner,
.seo-cta__inner {
	align-items: flex-start;
}

/* Sell-side CTA =========================================================== */

.sell-cta {
	background: var(--c-bg-soft);
}

.sell-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--s-6);
	padding-block: var(--s-6);
}

.sell-cta__text {
	flex: 1 1 340px;
}

.sell-cta__title {
	margin-bottom: var(--s-3);
	font-size: var(--fs-xl);
}

.sell-cta__lead {
	max-width: 52ch;
	color: var(--c-ink-muted);
}

.sell-cta__list {
	margin: var(--s-4) 0 0;
	padding-left: var(--s-5);
	color: var(--c-ink-muted);
	font-size: var(--fs-sm);
}

.sell-cta__list li + li {
	margin-top: var(--s-2);
}

.sell-cta__form {
	flex: 0 1 380px;
}

.catalogue-empty__form {
	display: flex;
	justify-content: center;
	margin-top: var(--s-5);
}

.enquiry__optional {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

/* Позначка державної програми на сторінці обʼєкта. Поряд із нею завжди
   стоїть застереження: це відбір за обʼєктом, а не рішення банку. */
.property-price__program {
	display: flex;
	flex-direction: column;
	gap: var(--s-2);
	margin: var(--s-4) 0 0;
}

.property-price__program-mark {
	align-self: flex-start;
	padding: var(--s-2) var(--s-4);
	font-family: var(--font-head);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: var(--tracking-button);
	text-transform: uppercase;
	color: var(--c-accent-dark);
	background: var(--c-lime);
}

.property-price__program-note {
	max-width: 42ch;
	font-size: var(--fs-xs);
	line-height: var(--lh-base);
	color: var(--c-ink-muted);
}

/* Архів районів ============================================================
   Довідник, а не стрічка: ієрархія замість дати, усе на одній сторінці,
   звуження — пошуком.
   ====================================================================== */

.page-header__lead {
	max-width: 62ch;
	margin: var(--s-3) 0 0;
	color: var(--c-ink-soft);
	line-height: var(--lh-base);
}

.district-filter {
	margin: var(--s-6) 0 var(--s-5);
	max-width: 520px;
}

.district-filter__input {
	width: 100%;
	padding: var(--s-4);
	font-size: var(--fs-base);
	color: var(--c-ink);
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-radius: 0;
}

.district-filter__input:focus {
	border-color: var(--c-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.district-filter__status {
	margin: var(--s-2) 0 0;
	min-height: 1.4em;
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

.district-list {
	display: grid;
	/* min() тут обовʼязковий: на 360 px колонка в 340 px не влазить у
	   контейнер із полями і виштовхує сторінку вбік. */
	grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
	gap: var(--s-5);
}

.district-item {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	padding: var(--s-5);
	background: var(--c-bg);
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-accent);
}

.district-item__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s-2) var(--s-4);
}

.district-item__title {
	/* «Амур-Нижньодніпровський» — 324 px у цьому кеглі: на телефоні лічильник
	   поруч уже не вміщується, тому рядок переноситься, а не витискає його. */
	min-width: 0;
	margin: 0;
	font-size: var(--fs-lg);
	font-weight: 900;
	text-transform: none;
}

.district-item__title a {
	color: var(--c-accent-dark);
	text-decoration: none;
}

.district-item__title a:hover {
	color: var(--c-accent);
}

@media (max-width: 480px) {
	/* На телефоні «Амур-Нижньодніпровський» у 22 px не вміщується в рядок
	   і рветься посеред слова. У 18 px він стає цілим словом. */
	.district-item__title {
		font-size: var(--fs-md);
	}
}

.district-item__count {
	flex: none;
	margin: 0;
	font-family: var(--font-head);
	font-size: var(--fs-xs);
	font-weight: 700;
	white-space: nowrap;
	color: var(--c-accent);
}

.district-item__count--empty {
	font-weight: 400;
	color: var(--c-ink-muted);
}

.district-item__intro {
	margin: 0;
	font-size: var(--fs-sm);
	line-height: var(--lh-base);
	color: var(--c-ink-soft);
}

.district-item__children {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	margin: auto 0 0;
	padding: var(--s-3) 0 0;
	border-top: 1px solid var(--c-line);
	list-style: none;
}

.district-chip {
	display: inline-block;
	padding: var(--s-1) var(--s-3);
	font-size: var(--fs-xs);
	color: var(--c-accent);
	background: var(--c-accent-soft);
	text-decoration: none;
}

.district-chip:hover {
	color: #fff;
	background: var(--c-accent);
}

.district-empty {
	margin: var(--s-6) 0;
	color: var(--c-ink-muted);
}


/* Пропозиція допомоги — модалка каталогу.

   Открывается редко и закрывается легко: крестик, фон, Esc. На узком экране
   это не окно посреди страницы, а лист снизу — там, где до кнопки достаёт
   большой палец. */

.lum-assist {
	position: fixed;
	inset: 0;
	z-index: 190;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--s-4);
	background: rgba(17, 20, 18, 0.55);
	overscroll-behavior: contain;
}

.lum-assist[hidden] {
	display: none;
}

.lum-assist__box {
	position: relative;
	width: 100%;
	max-width: 30rem;
	max-height: calc(100vh - 2 * var(--s-4));
	padding: var(--s-6);
	overflow-y: auto;
	background: var(--c-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.lum-assist__close {
	position: absolute;
	top: var(--s-2);
	right: var(--s-2);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--c-ink-muted);
	background: none;
	border: 0;
	cursor: pointer;
}

.lum-assist__close:hover,
.lum-assist__close:focus-visible {
	color: var(--c-ink);
}

.lum-assist__title {
	margin: var(--s-2) 0 var(--s-3);
	font-size: var(--fs-lg);
	font-weight: 900;
	/* Заголовок модалки — не баннер: без капса, как и названия объектов. */
	text-transform: none;
}

.lum-assist__text {
	margin: 0 0 var(--s-5);
	font-size: var(--fs-sm);
	color: var(--c-ink-soft);
}

.lum-assist__alt {
	margin: var(--s-4) 0 0;
	font-size: var(--fs-sm);
	color: var(--c-ink-muted);
}

@media (max-width: 560px) {
	.lum-assist {
		align-items: flex-end;
		padding: 0;
	}

	.lum-assist__box {
		max-width: none;
		max-height: 88vh;
		padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom, 0px));
		border-radius: var(--radius) var(--radius) 0 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.lum-assist:not([hidden]) .lum-assist__box {
		animation: lum-assist-in 0.22s ease-out;
	}

	@keyframes lum-assist-in {
		from { opacity: 0; transform: translateY(12px); }
		to   { opacity: 1; transform: translateY(0); }
	}
}
