/* Dayberg Houses — single house page. Built from Figma «Будинок 1 - 1440». */

.dh-house {
	--dh-bg: #16273a;
	--dh-surface: #333e53;
	--dh-gold: #b9a476;
	--dh-text: #f5f1ee;
	--dh-muted: rgba(245, 241, 238, 0.75);
	--dh-ink: #171e2d;
	--dh-serif: "EB Garamond", Georgia, serif;
	--dh-sans: "Open Sans", Arial, sans-serif;
	--dh-script: "Great Vibes", "EB Garamond", cursive;
	/* Hover states copied from the live site (obx-theme / obx-blocks). */
	--dh-gold-hover: hsl(41.19deg 32.37% 64.41%);
	--dh-ease: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	--dh-section-gap: 100px;

	background: var(--dh-bg);
	color: var(--dh-text);
	font-family: var(--dh-sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	overflow-x: clip;
}

.dh-house *,
.dh-house *::before,
.dh-house *::after {
	box-sizing: border-box;
}

.dh-house h1,
.dh-house h2,
.dh-house h3,
.dh-house p,
.dh-house ul {
	margin: 0;
	padding: 0;
	color: inherit;
	letter-spacing: normal;
	/* Break lines like Figma does; WordPress/theme styles may set text-wrap: balance. */
	text-wrap: wrap;
}

.dh-house ul {
	list-style: none;
}

.dh-house img {
	display: block;
	max-width: 100%;
	height: auto;
}

.dh-section {
	margin-top: var(--dh-section-gap);
}

.dh-h2 {
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: 48px;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase;
}

.dh-h2--lined {
	height: 86px;
	line-height: 66px;
}

/* Buttons */

.dh-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 61px;
	padding: 0 24px;
	border: 0;
	border-radius: 60px;
	background: var(--dh-gold);
	color: var(--dh-ink);
	font-family: var(--dh-sans);
	font-weight: 600;
	font-size: 14px;
	line-height: 21px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--dh-ease);
}

.dh-btn:hover,
.dh-btn:focus-visible {
	background: var(--dh-gold-hover);
	color: var(--dh-ink);
	transform: translateY(-1px);
}

.dh-btn:active {
	transform: translateY(0);
}

.dh-btn:focus-visible {
	outline: 2px solid var(--dh-text);
	outline-offset: 3px;
}

.dh-btn--wide {
	min-height: 63px;
	border-radius: 35px;
	font-weight: 700;
	font-size: 15.2px;
	line-height: 22.8px;
	letter-spacing: normal;
}

/* Forms: the site's Forminator form. Inputs and the button are styled by the
   theme (obx-theme); here only the layout inside the page sections. */

.dh-form {
	text-align: left;
}

.dh-form .forminator-ui.forminator-custom-form {
	margin: 0 !important;
}

.dh-form .forminator-row:not(:last-child) {
	margin-bottom: 20px !important;
}

/* Fields always stack, even if the form puts two in one row. */
.dh-form .forminator-row {
	flex-direction: column;
	gap: 20px;
}

.dh-form .forminator-col {
	flex: 0 0 auto !important;
	width: 100% !important;
	max-width: 100% !important;
}

.dh-form .forminator-input {
	height: 63px;
	padding: 0 20px !important;
}

.dh-form .forminator-field-captcha .forminator-field,
.dh-form .forminator-turnstile {
	display: flex;
	justify-content: center;
}

.dh-form .forminator-button {
	min-height: 61px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dh-form-missing {
	padding: 16px 20px;
	border: 1px dashed var(--dh-gold);
	border-radius: 20px;
	color: var(--dh-text);
	font-size: 14px;
}

/* Stats: value + label, divided by thin lines. The negative margin hides the
   divider of the first item on every wrapped line. */

.dh-stats {
	--dh-stat-gap: 16px;
	--dh-stat-size: 40px;
	--dh-stat-line: 46px;
	overflow: hidden;
}

.dh-stats__list {
	display: flex;
	flex-wrap: wrap;
	row-gap: 20px;
	margin-left: calc(-2 * var(--dh-stat-gap) - 1px) !important;
}

.dh-stats__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-left: var(--dh-stat-gap);
	padding-left: var(--dh-stat-gap);
	border-left: 1px solid var(--dh-surface);
	white-space: nowrap;
}

.dh-stats__value {
	font-family: var(--dh-serif);
	font-size: var(--dh-stat-size);
	line-height: var(--dh-stat-line);
	color: var(--dh-gold);
}

.dh-stats__label {
	font-size: 13px;
	line-height: 18px;
	color: var(--dh-muted);
}

.dh-stats--summary {
	--dh-stat-gap: 24px;
	--dh-stat-size: 36px;
	--dh-stat-line: 41px;
	max-width: 300px;
}

.dh-stats--cost {
	--dh-stat-size: 30px;
	--dh-stat-line: 35px;
}

/* Top logo */

.dh-toplogo {
	display: flex;
	justify-content: center;
	padding: 100px 16px 20px;
}

.dh-toplogo img {
	width: 200px;
}

/* Hero */

.dh-hero {
	border-bottom: 1px solid var(--dh-gold);
}

.dh-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 660fr) minmax(0, 740fr);
	gap: 40px;
	max-width: 1440px;
	min-height: 400px;
	margin: 0 auto;
}

.dh-hero__media-col {
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding-top: 20px;
}

.dh-hero__media {
	position: relative;
	width: 590px;
	max-width: 100%;
	aspect-ratio: 590 / 748.64;
	border-radius: 1000px 1000px 0 0;
	overflow: hidden;
	background: var(--dh-surface);
}

.dh-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
}

.dh-slider__slide.is-active {
	opacity: 1;
}

.dh-house .dh-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dh-slider__controls {
	position: absolute;
	right: 24px;
	bottom: 24px;
	left: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.dh-slider__arrow,
.dh-slider__dot {
	pointer-events: auto;
}

.dh-slider__arrow {
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	cursor: pointer;
	transition: all var(--dh-ease);
}

.dh-slider__arrow:hover {
	background: rgba(185, 164, 118, 0.2);
	transform: translateY(-1px);
}

.dh-slider__arrow:active {
	transform: translateY(0);
}

.dh-slider__dot {
	transition: background-color var(--dh-ease);
}

.dh-slider__dot:hover {
	background: rgba(185, 164, 118, 0.8);
}

.dh-slider__arrow:focus-visible,
.dh-slider__dot:focus-visible {
	outline: 2px solid var(--dh-text);
	outline-offset: 2px;
}

.dh-slider__dots {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 26px;
	padding: 0 13px;
	border: 1px solid rgba(185, 164, 118, 0.6);
	border-radius: 13px;
	background: rgba(22, 39, 58, 0.55);
	pointer-events: auto;
}

.dh-slider__dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(245, 241, 238, 0.5);
	cursor: pointer;
}

.dh-slider__dot.is-active {
	width: 8px;
	height: 8px;
	background: var(--dh-gold);
}

.dh-hero__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	/* Figma: 40px padding, content box overflows the 768px column by 4px and is centered. */
	padding: 38px 40px 98px;
	text-align: center;
}

.dh-hero__title {
	max-width: 440px;
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: 35px;
	line-height: 42px;
	text-transform: uppercase;
}

.dh-hero__subtitle {
	margin-top: 8px !important;
	font-weight: 300;
	font-size: 20px;
	line-height: 30px;
}

.dh-tiles {
	display: flex;
	justify-content: center;
	margin-top: 32px !important;
}

.dh-tiles__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 120px;
	height: 130px;
	padding: 30px 8px 16px;
	border-radius: 60px 60px 0 0;
	background: var(--dh-surface);
}

.dh-tiles__value {
	font-family: var(--dh-serif);
	font-size: 24px;
	line-height: 30px;
	color: var(--dh-gold);
	white-space: nowrap;
}

.dh-tiles__label {
	width: min-content;
	font-weight: 600;
	font-size: 13px;
	line-height: 18px;
}

.dh-hero__price {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 28px;
}

.dh-hero__price-label {
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: rgba(245, 241, 238, 0.7);
}

.dh-hero__price-value {
	font-family: var(--dh-serif);
	font-size: 60px;
	line-height: 68px;
	color: var(--dh-gold);
}

.dh-form--hero {
	width: 340px;
	max-width: 100%;
	margin-top: 28px;
}

/* About */

.dh-about__row {
	display: grid;
	grid-template-columns: minmax(0, 703fr) minmax(0, 677fr);
	gap: 60px;
	align-items: center;
	margin-top: 20px;
}

.dh-about__text {
	display: flex;
	flex-direction: column;
	/* 120px / 60px at 1440, shrinking with the viewport. */
	padding: 16px clamp(24px, 4.17vw, 60px) 16px clamp(40px, 8.33vw, 120px);
}

.dh-about__title {
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: 24px;
	line-height: 32px;
	text-transform: uppercase;
}

.dh-about__lead {
	margin-top: 28px !important;
	line-height: 27.2px;
}

.dh-about__title {
	position: relative;
	top: 2px;
	min-height: 64px;
}

.dh-features {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 40px !important;
}

.dh-features__item {
	position: relative;
	padding: 12.5px 0 2.5px 35px;
}

.dh-features__icon {
	position: absolute;
	top: 14.76px;
	left: 0;
	width: 50px;
	height: 50px;
}

.dh-house .dh-features__icon img {
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.dh-features__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 56px;
	padding: 8px 16px 8px 40px;
	border-radius: 37px;
	background: var(--dh-surface);
	line-height: 19.6px;
	transition: background-color var(--dh-ease);
}

.dh-features__item:hover .dh-features__body {
	background: #3d4a66;
}

.dh-features__title {
	/* The theme paints every <strong> light blue (#a4c7e2); Figma has them white. */
	color: var(--dh-text);
	font-weight: 600;
	text-transform: uppercase;
}

.dh-about__text .dh-btn {
	margin-top: 20px;
}

.dh-about__image img,
.dh-installment__image img {
	width: 100%;
	border-radius: 4px;
	object-fit: cover;
}

.dh-about__image img {
	aspect-ratio: 677.42 / 889.35;
}

.dh-installment {
	display: grid;
	grid-template-columns: minmax(0, 848fr) minmax(460px, 532fr);
	gap: 60px;
	align-items: center;
	margin-top: 50px;
}

.dh-installment__image img {
	aspect-ratio: 847.83 / 749.34;
}

.dh-installment__text {
	padding: 16px clamp(24px, 4.17vw, 60px) 40px clamp(40px, 8.33vw, 120px);
}

.dh-installment__title {
	font-weight: 300;
	font-size: 24px;
	line-height: 33.6px;
	text-transform: uppercase;
}

.dh-installment .dh-stats {
	margin-top: 32px;
	/* As in Figma, the row may run into the column's right padding instead of wrapping. */
	margin-right: calc(-1 * clamp(24px, 4.17vw, 60px));
}

/* Planning */

.dh-plan__cols {
	display: grid;
	/* The totals column keeps the 300px its two-row stats need. */
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 1fr);
	gap: 40px 28px;
	max-width: 1440px;
	margin: 100px auto 0;
	padding: 0 clamp(34px, 6.11vw, 88px);
}

.dh-house .dh-plan__title {
	font-weight: 300;
	font-size: 20px;
	line-height: 28px;
	text-transform: uppercase;
	color: var(--dh-gold);
}

.dh-plan__list {
	margin-top: 20px !important;
	padding-left: 15px !important;
}

.dh-plan__list li {
	position: relative;
	line-height: 21px;
}

.dh-plan__list li::before {
	content: "•";
	position: absolute;
	left: -20px;
	width: 14px;
	text-align: right;
}

.dh-plan .dh-stats {
	margin-top: 20px;
}

/* Cost + form */

.dh-cost {
	display: grid;
	grid-template-columns: minmax(420px, 480fr) minmax(0, 900fr);
	gap: 60px;
	align-items: start;
}

.dh-cost__text {
	display: flex;
	flex-direction: column;
	padding: 94px 0 0 clamp(40px, 8.33vw, 120px);
}

.dh-cost__text > * {
	width: 300px;
	max-width: 100%;
}

.dh-house .dh-cost__title {
	display: flex;
	flex-direction: column;
	/* Line heights tuned so the glyphs sit where Figma's 122px text box puts them. */
	margin: 0 0 6px;
	font-family: var(--dh-sans);
	font-weight: 300;
	font-size: 32px;
	line-height: 44px;
}

.dh-cost__title-top {
	text-transform: uppercase;
}

.dh-cost__price {
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: 60px;
	line-height: 84px;
	color: var(--dh-gold);
	white-space: nowrap;
}

.dh-cost .dh-stats {
	/* One row, as in Figma (361px, wider than the 300px column). */
	width: max-content;
	max-width: none;
	margin-top: 12px;
}

.dh-form--cost {
	margin-top: 20px;
}

.dh-cost__image {
	margin-top: 50px;
}

.dh-cost__image img {
	width: 100%;
	aspect-ratio: 900 / 591.25;
	border-top-left-radius: 250px;
	object-fit: cover;
}

/* Gallery */

.dh-gallery__head {
	max-width: 830px;
	margin: 0 auto;
	padding: 14px 16px;
}

.dh-gallery__head .dh-h2 {
	font-size: 40px;
	line-height: 56px;
}

.dh-house .dh-gallery__subtitle {
	margin-top: 20px !important;
	font-family: var(--dh-script);
	font-size: 32px;
	line-height: 44px;
	text-align: center;
	color: var(--dh-gold);
}

.dh-gallery__main {
	margin-top: var(--dh-section-gap);
}

.dh-gallery {
	container-type: inline-size;
}

.dh-gallery__main img {
	width: 100%;
	height: clamp(600px, 52.08vw, 750px);
	object-fit: cover;
}

/* Repeats every 4 photos: two stacked in column 1, tall ones in columns 2 and 3. */
.dh-gallery__grid {
	display: grid;
	/* 386×217 cells at 1440, scaled down with the section width. */
	--gw: min(386px, (100cqi - 52px) / 3);
	grid-template-columns: repeat(3, var(--gw));
	grid-auto-rows: calc(var(--gw) * 0.5622);
	gap: 10px;
	justify-content: center;
	padding: 10px 16px 0;
}

.dh-gallery__item {
	display: block;
	overflow: hidden;
	cursor: zoom-in;
}

.dh-gallery__main {
	display: block;
	overflow: hidden;
}

a.dh-gallery__main {
	cursor: zoom-in;
}

.dh-gallery__item {
	grid-column: var(--dc);
	grid-row: var(--dr) / span var(--ds);
}

.dh-house .dh-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.dh-gallery__item:hover img {
	transform: scale(1.03);
}

/* Final booking form */

.dh-booking {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 750px;
	padding: 75px 16px;
	background: var(--dh-surface);
	scroll-margin-top: 80px;
}

.dh-booking__bg {
	position: absolute;
	inset: 0;
}

.dh-house .dh-booking__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.dh-booking__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Measured from the Figma exports: page blue at 35%. */
	background: rgba(22, 39, 58, 0.35);
}

.dh-booking__inner {
	position: relative;
	width: 705px;
	max-width: 100%;
}

.dh-house .dh-booking__title {
	max-width: 607px;
	margin: 0 auto;
	font-family: var(--dh-sans);
	font-weight: 800;
	font-size: 42px;
	line-height: 63px;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
}

.dh-form--booking {
	margin-top: 78px;
}

.dh-form--booking .forminator-row:not(:last-child) {
	margin-bottom: 30px !important;
}

/* Instagram */

.dh-instagram {
	padding: 100px 16px;
	text-align: center;
}

.dh-house .dh-instagram__text {
	font-size: 24px;
	line-height: 24px;
	text-transform: uppercase;
}

.dh-instagram__text a {
	color: var(--dh-gold);
	text-decoration: none;
}

.dh-instagram__text a:hover {
	text-decoration: underline;
}

/* Catalog (/houses/): same tokens as the house page. */

.dh-catalog {
	--dh-wrap: min(1200px, 100% - 2 * clamp(20px, 8.33vw, 120px));
}

.dh-catalog__head,
.dh-filter,
.dh-catalog__count,
.dh-catalog__grid,
.dh-pagination,
.dh-catalog__empty {
	width: var(--dh-wrap);
	margin-right: auto;
	margin-left: auto;
}

.dh-catalog__head {
	padding-top: 20px;
	text-align: center;
}

.dh-house .dh-catalog__subtitle {
	margin-top: 8px;
	font-family: var(--dh-script);
	font-size: 32px;
	line-height: 44px;
	color: var(--dh-gold);
}

/* Filter */

.dh-filter {
	margin-top: 48px;
}

.dh-filter__toggle {
	display: none;
}

.dh-filter__fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 28px 40px;
	padding: 32px 40px;
	border: 1px solid rgba(245, 241, 238, 0.12);
	border-radius: 37px;
	background: rgba(51, 62, 83, 0.35);
}

.dh-filter__group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.dh-filter__label {
	margin-bottom: 12px;
	padding: 0;
	font-weight: 300;
	font-size: 16px;
	line-height: 22px;
	text-transform: uppercase;
	color: var(--dh-gold);
}

.dh-filter__range {
	display: flex;
	gap: 10px;
}

.dh-house .dh-filter__input {
	width: 150px;
	height: 52px;
	margin: 0;
	padding: 0 20px;
	border: 1px solid rgba(245, 241, 238, 0.2);
	border-radius: 60px;
	background: var(--dh-surface);
	color: var(--dh-text);
	font-family: var(--dh-sans);
	font-size: 14px;
	box-shadow: none;
	-moz-appearance: textfield;
	transition: all var(--dh-ease);
}

.dh-filter__input::-webkit-outer-spin-button,
.dh-filter__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.dh-filter__input::placeholder {
	color: #888;
	opacity: 1;
}

.dh-house .dh-filter__input:hover {
	border-color: rgba(245, 241, 238, 0.3);
}

.dh-house .dh-filter__input:focus {
	outline: none;
	border-color: var(--dh-gold);
	box-shadow: 0 0 0 3px rgba(185, 164, 118, 0.2);
	background: #404966;
}

.dh-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dh-chip {
	position: relative;
	cursor: pointer;
}

.dh-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.dh-chip span {
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 22px;
	border: 1px solid rgba(245, 241, 238, 0.2);
	border-radius: 60px;
	font-size: 14px;
	white-space: nowrap;
	transition: all var(--dh-ease);
}

.dh-chip:hover span {
	border-color: var(--dh-gold);
}

.dh-chip input:checked + span {
	border-color: var(--dh-gold);
	background: var(--dh-gold);
	color: var(--dh-ink);
	font-weight: 600;
}

.dh-chip input:focus-visible + span {
	outline: 2px solid var(--dh-text);
	outline-offset: 2px;
}

.dh-filter__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}

.dh-filter__submit {
	width: auto;
	min-height: 52px;
	padding: 0 48px;
}

.dh-filter__reset {
	color: var(--dh-muted);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--dh-ease);
}

.dh-filter__reset:hover {
	color: var(--dh-gold);
}

.dh-house .dh-catalog__count {
	margin: 40px auto 0;
	color: var(--dh-muted);
	font-size: 14px;
}

/* Cards */

.dh-catalog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 60px 40px;
	margin-top: 24px;
}

.dh-card__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.dh-card__link:hover {
	color: inherit;
}

.dh-card__link:focus-visible {
	outline: 2px solid var(--dh-text);
	outline-offset: 6px;
}

.dh-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 590 / 748.64;
	border-radius: 1000px 1000px 0 0;
	overflow: hidden;
	background: var(--dh-surface);
}

.dh-house .dh-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dh-card__link:hover .dh-card__media img {
	transform: scale(1.03);
}

.dh-card__status {
	position: absolute;
	bottom: 20px;
	left: 50%;
	padding: 6px 16px;
	border: 1px solid rgba(185, 164, 118, 0.6);
	border-radius: 13px;
	background: rgba(22, 39, 58, 0.75);
	color: var(--dh-gold);
	font-weight: 600;
	font-size: 12px;
	line-height: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
	transform: translateX(-50%);
}

.dh-card--reserved .dh-card__status {
	border-color: rgba(245, 241, 238, 0.4);
	color: var(--dh-text);
}

.dh-card--sold .dh-card__status {
	border-color: rgba(245, 241, 238, 0.2);
	background: var(--dh-ink);
	color: var(--dh-muted);
}

.dh-card--sold .dh-card__media img {
	filter: grayscale(0.7);
	opacity: 0.7;
}

.dh-house .dh-card__title {
	margin-top: 28px;
	font-family: var(--dh-serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 34px;
	text-transform: uppercase;
}

.dh-house .dh-card__subtitle {
	margin-top: 6px;
	font-weight: 300;
	font-size: 16px;
	line-height: 24px;
}

.dh-house .dh-card__facts {
	width: 100%;
	margin-top: 24px !important;
}

.dh-card__facts .dh-tiles__item {
	flex: 1 1 0;
	max-width: 120px;
	height: 116px;
	padding-top: 26px;
}

.dh-card__facts .dh-tiles__value {
	font-size: 22px;
	line-height: 28px;
}

.dh-house .dh-card__price {
	margin-top: 20px;
	font-family: var(--dh-serif);
	font-size: 44px;
	line-height: 52px;
	color: var(--dh-gold);
}

.dh-card__btn {
	width: 100%;
	min-height: 52px;
	margin-top: 24px;
}

.dh-card__link:hover .dh-card__btn {
	background: var(--dh-gold-hover);
	transform: translateY(-1px);
}

/* Pagination and empty state */

.dh-pagination {
	margin-top: 60px;
}

.dh-house .dh-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.dh-pagination a,
.dh-pagination span.page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(245, 241, 238, 0.2);
	border-radius: 22px;
	color: var(--dh-text);
	font-size: 14px;
	text-decoration: none;
	transition: all var(--dh-ease);
}

.dh-pagination a:hover {
	border-color: var(--dh-gold);
	color: var(--dh-gold);
}

.dh-pagination .current {
	border-color: var(--dh-gold);
	background: var(--dh-gold);
	color: var(--dh-ink);
	font-weight: 600;
}

.dh-pagination .dots {
	border-color: transparent;
}

.dh-catalog__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	padding: 60px 0 20px;
	font-size: 16px;
	text-align: center;
}

.dh-catalog__empty .dh-btn {
	width: auto;
	padding: 0 48px;
}

.dh-catalog .dh-instagram {
	margin-top: 60px;
}

@media (max-width: 1023px) {
	.dh-catalog {
		--dh-wrap: calc(100% - 68px);
	}

	.dh-catalog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 28px;
	}

	.dh-filter__fields {
		padding: 28px 28px 32px;
	}

	.dh-filter__actions {
		width: 100%;
		margin-left: 0;
	}

	.dh-house .dh-card__title {
		font-size: 24px;
		line-height: 30px;
	}

	.dh-house .dh-card__price {
		font-size: 38px;
		line-height: 46px;
	}
}

@media (max-width: 767px) {
	.dh-catalog {
		--dh-wrap: calc(100% - 40px);
	}

	.dh-catalog__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 56px;
	}

	.dh-house .dh-catalog__subtitle {
		font-size: 26px;
		line-height: 36px;
	}

	.dh-filter {
		margin-top: 32px;
	}

	/* On phones the filter folds into a pill that opens it. */
	.dh-filter__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		height: 52px;
		border: 1px solid var(--dh-gold);
		border-radius: 60px;
		color: var(--dh-gold);
		font-weight: 600;
		font-size: 14px;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		list-style: none;
		cursor: pointer;
	}

	.dh-filter__toggle::-webkit-details-marker {
		display: none;
	}

	.dh-filter__toggle::after {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform var(--dh-ease);
	}

	.dh-filter__box[open] .dh-filter__toggle::after {
		transform: translateY(2px) rotate(-135deg);
	}

	.dh-filter__fields {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		margin-top: 12px;
		padding: 24px 20px;
		border-radius: 28px;
	}

	/* A fieldset sizes to its content in a flex column; make it take the row. */
	.dh-filter__group {
		width: 100%;
	}

	.dh-filter__range .dh-filter__input {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
	}

	.dh-filter__chips {
		gap: 6px;
	}

	.dh-chip span {
		justify-content: center;
		min-width: 44px;
		height: 44px;
		padding: 0 14px;
	}

	.dh-filter__actions {
		flex-direction: column;
		gap: 16px;
	}

	.dh-filter__submit {
		width: 100%;
	}

	.dh-house .dh-catalog__count {
		margin: 28px auto 0;
	}
}

/* Gallery popup slider (appended to <body>, so no .dh-house tokens here). */

.dh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 100px;
	background: rgba(22, 39, 58, 0.96);
	animation: dh-lightbox-in 0.3s ease;
}

.dh-lightbox[hidden] {
	display: none;
}

@keyframes dh-lightbox-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

html.dh-lightbox-open {
	overflow: hidden;
}

.dh-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

.dh-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	border-radius: 4px;
	object-fit: contain;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dh-lightbox__arrow,
.dh-lightbox__close {
	position: absolute;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dh-lightbox__arrow svg,
.dh-lightbox__close svg {
	display: block;
}

.dh-lightbox__arrow:hover,
.dh-lightbox__close:hover {
	background: rgba(185, 164, 118, 0.2);
	transform: translateY(-1px);
}

.dh-lightbox__arrow:focus-visible,
.dh-lightbox__close:focus-visible {
	outline: 2px solid #f5f1ee;
	outline-offset: 2px;
}

.dh-lightbox__arrow {
	top: 50%;
	margin-top: -26px;
}

.dh-lightbox__arrow:hover {
	transform: translateY(-1px);
}

.dh-lightbox__arrow--prev {
	left: 24px;
}

.dh-lightbox__arrow--next {
	right: 24px;
}

.dh-lightbox__close {
	top: 24px;
	right: 24px;
}

.dh-lightbox__counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	margin: 0;
	transform: translateX(-50%);
	font-family: "EB Garamond", Georgia, serif;
	font-size: 24px;
	line-height: 30px;
	color: #b9a476;
}

.dh-lightbox.is-single .dh-lightbox__arrow,
.dh-lightbox.is-single .dh-lightbox__counter {
	display: none;
}

@media (max-width: 767px) {
	.dh-lightbox {
		padding: 80px 0;
	}

	.dh-lightbox__img {
		border-radius: 0;
	}

	.dh-lightbox__arrow {
		top: auto;
		bottom: 14px;
		margin-top: 0;
	}

	.dh-lightbox__arrow--prev {
		left: 14px;
	}

	.dh-lightbox__arrow--next {
		right: 14px;
	}

	.dh-lightbox__close {
		top: 14px;
		right: 14px;
	}

	.dh-lightbox__counter {
		bottom: 25px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dh-lightbox {
		animation: none;
	}
}

/* Responsive: Figma frames «Будинок 1 - 768» (tablet) and «Будинок 1 - 375» (mobile). */

@media (max-width: 1023px) {
	.dh-h2 {
		font-size: 38px;
		line-height: 54px;
	}

	/* Hero: photo on top, info below. */
	.dh-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		min-height: 0;
	}

	.dh-hero__media-col {
		justify-content: center;
		padding: 20px 20px 0;
	}

	.dh-hero__media {
		width: 628px;
		aspect-ratio: 628 / 800;
	}

	.dh-slider__controls {
		right: 20px;
		bottom: 20px;
		left: 20px;
	}

	.dh-slider__arrow,
	.dh-slider__arrow img {
		width: 48px;
		height: 48px;
	}

	.dh-hero__info {
		padding: 59px 20px 80px;
	}

	/* About: photo first, text full width. */
	.dh-about__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.dh-about__image {
		order: -1;
		padding: 0 34px;
	}

	.dh-about__text {
		padding: 56px 20px 0;
	}

	.dh-about__title {
		top: 0;
		min-height: 0;
		font-size: 16px;
		line-height: 24px;
	}

	.dh-house .dh-about__lead {
		margin-top: 31px !important;
	}

	.dh-installment {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		margin-top: 80px;
	}

	.dh-installment__image img {
		border-radius: 0;
	}

	.dh-installment__text {
		width: 360px;
		max-width: 100%;
		margin: 0 auto;
		padding: 49px 0 79px;
	}

	.dh-installment .dh-stats {
		--dh-stat-size: 30px;
		--dh-stat-line: 35px;
		margin-top: 44px;
		margin-right: 0;
	}

	/* Planning: two floors side by side, totals below. */
	.dh-plan__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 39px 40px;
		margin-top: 116px;
		padding: 0 34px;
	}

	.dh-plan__col:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	/* Cost: photo on top, text below. */
	.dh-cost {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		margin-top: 140px;
	}

	.dh-cost__image {
		order: -1;
		margin-top: 0;
	}

	.dh-cost__image img {
		border-top-left-radius: 213px;
	}

	.dh-cost__text {
		/* 204px / 72px at 768 (a 492px column), less on narrower tablets. */
		padding: 50px clamp(20px, 9.4vw, 72px) 0 clamp(20px, calc((100vw - 360px) / 2), 204px);
	}

	.dh-cost__text > * {
		width: auto;
	}

	.dh-cost .dh-stats {
		width: auto;
		margin-top: 19px;
	}

	.dh-form--cost {
		margin-top: 12px;
	}

	.dh-form--cost .forminator-input {
		height: 65px;
	}

	.dh-form--cost .forminator-button {
		max-width: 362px;
	}

	/* Gallery: two columns, small + tall in each. --c is one column's width. */
	.dh-gallery {
		margin-top: 106px;
	}

	.dh-gallery__main {
		margin-top: 86px;
	}

	.dh-gallery__main img {
		height: 600px;
	}

	.dh-gallery__grid {
		--c: calc((100cqi - 78px) / 2);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: calc(var(--c) * 0.5623) calc(var(--c) * 0.5333) calc(var(--c) * 0.5623);
		padding: 10px 34px 0;
	}

	.dh-gallery__item {
		grid-column: var(--tc);
		grid-row: var(--tr) / span var(--ts);
	}

	.dh-booking {
		min-height: 600px;
		padding: 48px 20px;
	}

	.dh-house .dh-booking__title {
		font-size: 25px;
		line-height: 38px;
	}

	.dh-booking__inner {
		width: 418px;
	}

	.dh-form--booking {
		margin-top: 63px;
	}

	.dh-form--booking .forminator-row:not(:last-child) {
		margin-bottom: 23px !important;
	}

	.dh-form--booking .forminator-field-captcha {
		min-height: 65px;
	}
}

@media (max-width: 599px) {
	.dh-hero__media-col {
		padding: 20px 20px 0;
	}

	.dh-hero__media {
		aspect-ratio: 335 / 430;
	}

	.dh-slider__controls {
		right: 14px;
		bottom: 15px;
		left: 14px;
	}

	.dh-slider__arrow,
	.dh-slider__arrow img {
		width: 40px;
		height: 40px;
	}

	.dh-hero__info {
		padding: 60px 20px 80px;
	}

	.dh-hero__title {
		font-size: 30px;
		line-height: 36px;
	}

	.dh-house .dh-hero__subtitle {
		margin-top: 6px;
		font-size: 16px;
		line-height: 24px;
	}

	.dh-tiles {
		width: 100%;
	}

	.dh-tiles__item {
		flex: 1 1 0;
		width: auto;
	}

	.dh-form--hero {
		width: 100%;
	}

	.dh-about__image {
		padding: 0;
	}

	.dh-about__text {
		padding: 50px 20px 0;
	}

	.dh-features__body {
		min-height: 0;
	}

	.dh-about__title {
		font-size: 20px;
		line-height: 32px;
	}

	.dh-installment__text {
		width: 100%;
		margin: 0;
		padding: 49px 30px 65px;
	}

	.dh-installment .dh-stats {
		--dh-stat-gap: 11px;
		margin-right: -20px;
	}

	.dh-house .dh-about__lead {
		margin-top: 28px !important;
	}

	.dh-features {
		margin-top: 38px !important;
	}

	.dh-cost .dh-stats {
		--dh-stat-gap: 13px;
	}

	.dh-stats__label {
		font-size: 12px;
	}

	.dh-stats--summary {
		--dh-stat-gap: 24px;
		--dh-stat-size: 32px;
	}

	.dh-stats--summary .dh-stats__label {
		font-size: 13px;
	}

	.dh-plan__cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 33px;
		margin-top: 115px;
		padding: 0 20px;
	}

	.dh-plan__col:last-child:nth-child(odd) {
		margin-top: -2px;
	}

	.dh-cost__image img {
		border-top-left-radius: 104px;
	}

	.dh-cost__text {
		padding: 51px 20px 0;
	}

	.dh-cost .dh-stats {
		margin-top: 10px;
	}

	.dh-form--cost {
		margin-top: 19px;
	}

	.dh-cost__price {
		line-height: 74px;
	}

	.dh-house .dh-cost__title {
		margin-bottom: 6px;
	}

	.dh-form--cost .forminator-button {
		max-width: none;
	}

	.dh-gallery__grid {
		display: flex;
		flex-direction: column;
		padding: 10px 20px 0;
	}

	.dh-gallery__item {
		order: var(--mo);
	}

	.dh-house .dh-gallery__item img {
		height: auto;
	}

	.dh-gallery__head .dh-h2 {
		font-size: 30px;
		line-height: 42px;
	}

	.dh-gallery__subtitle {
		margin-top: 17px !important;
		font-size: 26px;
		line-height: 36px;
	}

	.dh-booking {
		padding-top: 30px;
	}

	.dh-house .dh-booking__title {
		max-width: 250px;
	}

	.dh-booking__inner {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dh-slider__slide,
	.dh-house .dh-gallery__item img {
		transition: none;
	}
}
