/* =========================================================
   Apartex Pro — оснащение отелей
   Дисциплина вёрстки та же, что на витрине мебели: нулевые
   скругления, мелкий разряжённый капслок, много воздуха.
   Палитра своя — глубокий сине-графитовый и латунь вместо
   тёплого чёрного, чтобы два наших сайта не читались
   как один и тот же.

   Шрифты: Geologica в логотипе и заголовках, Golos Text в
   тексте. Оба гротески, поэтому иерархию держат не засечки,
   а разница в рисунке: Geologica плотнее и техничнее.
   Из-за этого крупные заголовки идут с отрицательным
   трекингом — у гротеска на 40+ px дефолтные просветы
   рассыпают строку.
   ========================================================= */

:root {
	--ink: #141a22;
	--ink-70: rgba(20, 26, 34, 0.7);
	--ink-50: rgba(20, 26, 34, 0.5);
	--ink-15: rgba(20, 26, 34, 0.15);
	--ink-08: rgba(20, 26, 34, 0.08);
	--paper: #fff;
	--grey: #eceff3;
	--light: #f5f7f9;
	--sand: #f0ece5;
	--muted: #8b95a1;
	--brass: #a8834b;
	--brass-soft: #c9a874;

	--font-sans: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-display: "Geologica", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--container: 1720px;
	--gutter: 40px;
	--radius: 0px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Сброс ---------- */

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

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

body {
	margin: 0;
	/* Мобильное меню по умолчанию отъезжает за правый край и растягивает
	   документ. `clip` обрезает его, не ломая sticky-шапку — в отличие от
	   `hidden`, который отменил бы прилипание. */
	overflow-x: clip;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

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

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure {
	margin: 0;
}

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

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 200;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 20px;
	background: var(--ink);
	color: #fff;
}

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

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

/* ---------- Типографика ---------- */

.section {
	padding-block: 90px;
}

.section--muted {
	background: var(--light);
}

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

/* Правило по всей теме: заголовки разделов и страниц — Geologica,
   всё остальное — Golos. Иначе получается инверсия, когда h3 карточки
   выглядит нарядней, чем h2 над ней. */
.section__title {
	font-family: var(--font-display);
	font-size: clamp(26px, 2.4vw, 40px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-bottom: 40px;
}

.section__head .section__title {
	margin-bottom: 0;
}

.section__more,
.section__count {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-70);
	white-space: nowrap;
	transition: color 0.2s var(--ease);
}

.section__more:hover {
	color: var(--brass);
}

.section__lead {
	max-width: 820px;
	color: var(--ink-70);
	font-size: 17px;
	line-height: 1.65;
	margin-bottom: 40px;
}

/* ---------- Кнопки ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 32px;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border: 1px solid transparent;
	border-radius: var(--radius);
	transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
	background: var(--ink);
	color: #fff;
}

.btn--primary:hover {
	background: #232d3a;
}

.btn--outline {
	border-color: var(--ink-15);
	color: var(--ink);
}

.btn--outline:hover {
	border-color: var(--ink);
}

.btn--outline-light {
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
}

.btn--outline-light:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

.btn--light {
	background: #fff;
	color: var(--ink);
}

.btn--light:hover {
	background: var(--grey);
}

.btn--ghost {
	color: var(--ink-70);
	padding-inline: 16px;
}

.btn--ghost:hover {
	color: var(--ink);
}

.btn--wide {
	width: 100%;
}

.btn--sm {
	min-height: 42px;
	padding: 10px 20px;
	font-size: 11px;
}

.btn + .btn {
	margin-top: 0;
}

/* ---------- Шапка ---------- */

.header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
}

.topbar {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.65);
	font-size: 12px;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 38px;
}

.topbar__left,
.topbar__right {
	display: flex;
	align-items: center;
	gap: 24px;
}

.topbar__geo b {
	font-weight: 500;
	color: #fff;
}

.topbar__menu {
	display: flex;
	gap: 24px;
}

.topbar a:hover,
.topbar__callback:hover {
	color: var(--brass-soft);
}

.topbar__phone {
	font-weight: 500;
	color: #fff;
	white-space: nowrap;
}

.topbar__callback {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
	border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
	padding-bottom: 1px;
}

.navbar {
	border-bottom: 1px solid var(--ink-08);
}

.navbar__inner {
	display: flex;
	align-items: center;
	gap: 48px;
	min-height: 84px;
}

.logo {
	display: flex;
	flex-direction: column;
	line-height: 1;
	flex-shrink: 0;
}

.logo__mark {
	font-family: var(--font-display);
	font-size: 27px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.logo__dot {
	color: var(--brass);
}

.logo__sub {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--muted);
	margin-top: 6px;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
}

.nav__list a {
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink);
	padding-block: 8px;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-menu-parent > a {
	border-bottom-color: var(--brass);
	color: var(--ink);
}

/* Выпадающее подменю */
.nav__list li {
	position: relative;
}

.nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -20px;
	min-width: 280px;
	padding: 16px 0;
	background: var(--paper);
	border: 1px solid var(--ink-08);
	box-shadow: 0 20px 50px rgba(20, 26, 34, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav__list .sub-menu a {
	display: block;
	padding: 9px 20px;
	border: 0;
	letter-spacing: 0.04em;
	text-transform: none;
	font-size: 14px;
	font-weight: 400;
}

.nav__list .sub-menu a:hover {
	background: var(--light);
	color: var(--brass);
}

.navbar__tools {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 24px;
}

.search {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid var(--ink-15);
	padding-bottom: 6px;
	max-width: 190px;
	transition: border-color 0.2s var(--ease);
}

.search:focus-within {
	border-bottom-color: var(--ink);
}

.search__input {
	border: 0;
	background: none;
	outline: none;
	width: 100%;
	font-size: 13px;
	padding: 2px 0;
}

.search__input::placeholder {
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
}

.search__submit {
	color: var(--ink-70);
	display: flex;
	flex-shrink: 0;
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	padding: 8px;
	margin-left: auto;
}

.burger span:not(.sr-only) {
	display: block;
	width: 22px;
	height: 1.5px;
	background: var(--ink);
	transition: transform 0.25s var(--ease), opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-50);
	padding-block: 22px;
}

.crumbs a:hover {
	color: var(--brass);
}

.crumbs__sep {
	margin-inline: 10px;
}

/* ---------- Шапка страницы ---------- */

.page__head {
	padding-block: 12px 44px;
	max-width: 1000px;
}

.page__title {
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 46px);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.01em;
	margin-bottom: 20px;
}

.page__lead {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-70);
	max-width: 820px;
}

.page__meta {
	font-size: 13px;
	color: var(--muted);
}

.page__media {
	margin: 0 0 44px;
}

.single-apx_project .container {
	max-width: 1360px;
}

.single-apx_project .page__head {
	padding-bottom: 32px;
}

.single-apx_project .page__title {
	font-size: clamp(34px, 3.6vw, 52px);
	letter-spacing: -0.025em;
}

.single-apx_project .page__lead {
	font-size: clamp(17px, 1.4vw, 20px);
	max-width: 760px;
}

.project-cover {
	max-height: 560px;
	overflow: hidden;
}

.project-cover img {
	width: 100%;
	height: clamp(340px, 42vw, 560px);
	object-fit: cover;
}

.project-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 0;
}

.project-photos {
	margin-block: 58px;
}

.project-photos__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
	gap: 40px;
	align-items: end;
	margin-bottom: 24px;
}

.project-photos__eyebrow {
	display: inline-flex;
	margin-bottom: 14px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.project-photos__head h2 {
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 500;
	line-height: 1.08;
}

.project-photos__head p {
	margin: 0;
	color: var(--ink-70);
	font-size: 15px;
	line-height: 1.65;
}

.project-photos--hotel {
	margin-inline: calc(50% - 50vw);
	padding: 58px max(var(--gutter), calc((100vw - 1280px) / 2));
	background: #eef0ed;
}

.project-photos--hotel .project-photos__eyebrow {
	background: transparent;
	border: 1px solid var(--ink-15);
	color: var(--ink);
}

.project-gallery__item {
	margin: 0;
	overflow: hidden;
	background: var(--surface);
}

.project-gallery__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .45s var(--ease);
}

.project-gallery__item:hover img {
	transform: scale(1.015);
}

.project-gallery__item figcaption {
	padding: 10px 2px 4px;
	color: var(--ink-70);
	font-size: 13px;
	line-height: 1.45;
}

.project-photo-button {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: #e8ebee;
	text-align: left;
}

.project-photo-button__zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(20, 26, 34, .82);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.project-photo-button:hover .project-photo-button__zoom,
.project-photo-button:focus-visible .project-photo-button__zoom {
	opacity: 1;
	transform: none;
}

.single-apx_project .prose {
	max-width: 820px;
	font-size: 17px;
	line-height: 1.72;
}

.single-apx_project .prose h2 {
	font-size: clamp(24px, 2.2vw, 32px);
	line-height: 1.2;
}

.single-apx_project .prose ul {
	display: grid;
	gap: 10px;
	margin: 18px 0 34px;
	padding: 0;
}

.single-apx_project .prose li {
	position: relative;
	padding-left: 24px;
}

.single-apx_project .prose li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .7em;
	width: 8px;
	height: 1px;
	background: var(--brass);
}

.project-process {
	margin-block: 12px 72px;
	padding-top: 58px;
	border-top: 1px solid var(--ink-15);
}

.project-process__steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid var(--ink-15);
	border-bottom: 1px solid var(--ink-15);
}

.project-process__steps li {
	min-height: 138px;
	padding: 22px 18px;
	border-right: 1px solid var(--ink-15);
}

.project-process__steps li:last-child {
	border-right: 0;
}

.project-process__steps span {
	display: block;
	margin-bottom: 30px;
	color: var(--brass);
	font-size: 12px;
	letter-spacing: .08em;
}

.project-process__steps strong {
	display: block;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.project-conversion {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
	margin-block: 72px;
	padding: 48px;
	background: var(--ink);
	color: #fff;
}

.project-conversion h2 {
	max-width: 680px;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 500;
	line-height: 1.1;
}

.project-conversion p {
	max-width: 700px;
	margin-top: 16px;
	color: rgba(255,255,255,.68);
	font-size: 16px;
}

.project-conversion .project-photos__eyebrow {
	background: #fff;
	color: var(--ink);
}

.project-conversion .btn {
	flex: 0 0 auto;
	background: #fff;
	color: var(--ink);
}

/* ---------- Просмотр фотографий проекта ---------- */

.project-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) 88px;
	grid-template-rows: 70px minmax(0, 1fr) 56px;
	background: rgba(8, 11, 15, .96);
	color: #fff;
}

.project-lightbox[hidden] {
	display: none;
}

.project-lightbox__stage {
	grid-column: 2;
	grid-row: 2;
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: 0;
}

.project-lightbox__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.project-lightbox__close,
.project-lightbox__prev,
.project-lightbox__next {
	display: grid;
	place-items: center;
	color: #fff;
	font-family: var(--font-sans);
	transition: background .2s var(--ease);
}

.project-lightbox__close:hover,
.project-lightbox__prev:hover,
.project-lightbox__next:hover {
	background: rgba(255,255,255,.1);
}

.project-lightbox__close {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
	width: 70px;
	height: 70px;
	font-size: 34px;
}

.project-lightbox__prev,
.project-lightbox__next {
	grid-row: 2;
	font-size: 42px;
}

.project-lightbox__prev { grid-column: 1; }
.project-lightbox__next { grid-column: 3; }

.project-lightbox__counter {
	grid-column: 2;
	grid-row: 3;
	align-self: center;
	justify-self: center;
	font-size: 13px;
	letter-spacing: .08em;
	color: rgba(255,255,255,.7);
}

/* ---------- Заголовок каталога ---------- */

.catalog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	padding-block: 12px 40px;
}

.catalog__title {
	display: flex;
	align-items: center;
	gap: 20px;
	font-family: var(--font-display);
	font-size: clamp(28px, 3vw, 44px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.pill {
	display: inline-flex;
	align-items: center;
	height: 30px;
	padding-inline: 16px;
	border-radius: 999px;
	background: var(--grey);
	color: var(--ink-70);
	font-size: 12px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.catalog__tools {
	display: flex;
	align-items: center;
	gap: 36px;
	padding-top: 12px;
}

.catalog__tool {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink-70);
	transition: color 0.2s var(--ease);
}

.catalog__tool:hover,
.catalog__tool[aria-expanded="true"] {
	color: var(--ink);
}

.catalog__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding-inline: 5px;
	border-radius: 999px;
	background: var(--brass);
	color: #fff;
	font-size: 10px;
	letter-spacing: 0;
}

.sorter {
	position: relative;
}

.sorter__list {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 40;
	min-width: 220px;
	padding: 10px 0;
	background: var(--paper);
	border: 1px solid var(--ink-08);
	box-shadow: 0 18px 50px rgba(20, 26, 34, 0.1);
}

.sorter__item {
	display: block;
	padding: 9px 20px;
	font-size: 13px;
	color: var(--ink-70);
}

.sorter__item:hover {
	background: var(--light);
	color: var(--ink);
}

.sorter__item.is-active {
	color: var(--ink);
	font-weight: 500;
}

/* ---------- Подразделы ---------- */

.subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 44px;
}

.subcats__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	background: var(--light);
	font-size: 13px;
	color: var(--ink-70);
	transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.subcats__item:hover {
	background: var(--ink);
	color: #fff;
}

.subcats__count {
	font-size: 11px;
	color: var(--muted);
}

.subcats__item:hover .subcats__count {
	color: rgba(255, 255, 255, 0.6);
}

/* ---------- Фильтры ---------- */

.filters {
	background: var(--light);
	padding: 40px;
	margin-bottom: 56px;
}

.filters[hidden] {
	display: none;
}

.filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.filters__title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.filters__close {
	font-size: 26px;
	line-height: 1;
	color: var(--ink-50);
}

.filters__close:hover {
	color: var(--ink);
}

.filters__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 36px 40px;
}

.filters__group {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.filters__legend {
	padding: 0;
	margin-bottom: 16px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.filters__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 190px;
	overflow-y: auto;
	padding-right: 6px;
}

.filters__group--swatch .filters__list {
	max-height: 220px;
}

.check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	cursor: pointer;
	color: var(--ink-70);
	transition: color 0.15s var(--ease);
}

.check:hover {
	color: var(--ink);
}

.check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.check__box {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 1px solid var(--ink-15);
	background: #fff;
	position: relative;
	transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.check input:checked + .check__box {
	background: var(--ink);
	border-color: var(--ink);
}

.check input:checked + .check__box::after {
	content: "";
	position: absolute;
	inset: 0;
	background: no-repeat center / 9px 7px
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7'%3E%3Cpath d='M1 3.4 3.3 5.7 8 1' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.check__swatch {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid var(--ink-15);
	transition: box-shadow 0.15s var(--ease);
}

.check input:checked + .check__swatch {
	box-shadow: 0 0 0 2px var(--light), 0 0 0 3.5px var(--ink);
}

.check input:focus-visible + .check__box,
.check input:focus-visible + .check__swatch {
	outline: 2px solid var(--brass);
	outline-offset: 2px;
}

.check__label {
	flex: 1;
	min-width: 0;
}

.check input:checked ~ .check__label {
	color: var(--ink);
	font-weight: 500;
}

.check__count {
	font-size: 12px;
	color: var(--muted);
}

.filters__price {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--muted);
}

.filters__price input {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--ink-15);
	background: #fff;
	font-size: 14px;
	outline: none;
}

.filters__price input:focus {
	border-color: var(--ink);
}

.filters__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--ink-08);
}

/* ---------- Сетки ---------- */

.grid {
	display: grid;
	gap: 40px 12px;
}

.grid--products {
	grid-template-columns: repeat(4, 1fr);
}

.grid--sections {
	grid-template-columns: repeat(4, 1fr);
	gap: 44px 32px;
}

.grid--groups {
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 32px;
}

.grid--services {
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.grid--projects {
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 24px;
}

.grid--advantages {
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 32px;
}

.grid--posts {
	grid-template-columns: repeat(3, 1fr);
	gap: 44px 24px;
}

/* ---------- Карточка товара ---------- */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 22px 20px 20px;
	outline: 1px solid transparent;
	outline-offset: -1px;
	transition: outline-color 0.25s var(--ease);
}

.card:hover {
	outline-color: var(--ink-15);
}

.card__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.card__media {
	position: relative;
	margin-bottom: 22px;
}

.slider {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--light);
}

.slider__track {
	display: flex;
	height: 100%;
	transition: transform 0.4s var(--ease);
}

.slider__slide {
	flex: 0 0 100%;
	height: 100%;
}

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

.card__img--empty {
	aspect-ratio: 1;
	background: var(--light);
}

.slider__dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 7px;
	opacity: 0;
	transition: opacity 0.25s var(--ease);
}

.card:hover .slider__dots,
.slider:focus-within .slider__dots {
	opacity: 1;
}

.slider__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ink-15);
	padding: 0;
	transition: background 0.2s var(--ease);
}

.slider__dot.is-active {
	background: var(--ink);
}

.card__title {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 14px;
}

.card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 16px;
}

.card__meta:empty {
	display: none;
}

.badge {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding-inline: 9px;
	background: var(--grey);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink);
}

.card__material {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-50);
}

.swatches {
	display: inline-flex;
	align-items: center;
}

.swatches__dot {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 1.5px solid var(--paper);
	margin-right: -4px;
	box-shadow: 0 0 0 0.5px var(--ink-15);
}

.swatches__more {
	margin-left: 12px;
	font-size: 11px;
	color: var(--ink-50);
}

.card__price,
.price {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin-top: auto;
}

.price__from {
	font-size: 13px;
	font-weight: 400;
	color: var(--muted);
	text-transform: lowercase;
	letter-spacing: 0.02em;
}

.price--request {
	font-size: 15px;
	font-weight: 400;
	color: var(--ink-70);
}

.card__request {
	margin-top: 18px;
	min-height: 46px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover .card__request,
.card:focus-within .card__request {
	opacity: 1;
	transform: none;
}

/* ---------- Пагинация ---------- */

.pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding-block: 72px;
}

/* Когда страница одна, paginate_links() отдаёт пустоту — но контейнер
   продолжает занимать 144 px и рвёт вертикальный ритм. */
.pagination:empty {
	display: none;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	font-size: 14px;
	color: var(--ink-70);
	border: 1px solid transparent;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.pagination .page-numbers:hover {
	color: var(--ink);
	border-color: var(--ink-15);
}

.pagination .page-numbers.current {
	color: var(--ink);
	border-color: var(--ink);
}

.pagination .screen-reader-text {
	display: none;
}

/* ---------- Карточка товара: страница ---------- */

.pdp {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 72px;
	padding-block: 16px 90px;
}

.pdp__gallery {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	grid-template-areas: "thumbs stage";
	gap: 20px;
	align-items: start;
}

.gallery__stage {
	grid-area: stage;
	margin: 0;
	background: var(--light);
	aspect-ratio: 1;
	overflow: hidden;
}

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

.gallery__thumbs {
	grid-area: thumbs;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gallery__thumb {
	padding: 0;
	background: var(--light);
	border: 1px solid transparent;
	aspect-ratio: 1;
	overflow: hidden;
	transition: border-color 0.2s var(--ease);
}

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

.gallery__thumb.is-active,
.gallery__thumb:hover {
	border-color: var(--brass);
}

.pdp__summary {
	padding-top: 8px;
}

.pdp__badges:not(:empty) {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}

.pdp__title {
	font-size: clamp(24px, 2.2vw, 36px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}

.pdp__lead {
	color: var(--ink-70);
	line-height: 1.6;
	margin-bottom: 24px;
}

.pdp__price {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.02em;
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--ink-08);
}

.pdp__price .price {
	font-size: inherit;
	font-weight: inherit;
}

.pdp__price .price__from {
	font-size: 15px;
}

.pdp__price-note {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--muted);
}

.option {
	margin-bottom: 26px;
}

.option__label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 12px;
}

.option__swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 10px;
}

.option__swatch {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	padding: 0;
	border: 1px solid var(--ink-15);
	transition: box-shadow 0.18s var(--ease);
}

.option__swatch.is-active {
	box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink);
}

.option__value {
	font-size: 13px;
	color: var(--ink-70);
}

.pdp__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-block: 34px 40px;
}

.usp {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding-top: 32px;
	border-top: 1px solid var(--ink-08);
}

.usp__item {
	font-size: 13px;
	color: var(--ink-70);
	line-height: 1.5;
	padding-left: 18px;
	position: relative;
}

.usp__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--brass);
}

.usp__item b {
	display: block;
	color: var(--ink);
	font-weight: 500;
	margin-bottom: 2px;
}

/* ---------- Табы ---------- */

.tabs {
	padding-bottom: 90px;
}

.tabs__nav {
	display: flex;
	gap: 40px;
	border-bottom: 1px solid var(--ink-08);
	margin-bottom: 40px;
}

.tabs__btn {
	padding: 0 0 18px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink-50);
	border-bottom: 1px solid transparent;
	margin-bottom: -1px;
	transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.tabs__btn:hover {
	color: var(--ink);
}

.tabs__btn.is-active {
	color: var(--ink);
	border-bottom-color: var(--brass);
}

.tabs__panel {
	display: none;
	max-width: 900px;
}

.tabs__panel.is-active {
	display: block;
}

/* ---------- Характеристики ---------- */

.specs__row {
	border-bottom: 1px solid var(--ink-08);
}

.specs__key,
.specs__val {
	padding: 15px 0;
	font-size: 14px;
	font-weight: 400;
	text-align: left;
	vertical-align: top;
}

.specs__key {
	width: 320px;
	color: var(--ink-50);
}

.specs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1px;
	background: var(--ink-08);
	border: 1px solid var(--ink-08);
	margin-bottom: 44px;
}

.specs-grid__item {
	background: var(--paper);
	padding: 24px 26px;
}

.specs-grid__key {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 8px;
}

.specs-grid__val {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
}

/* ---------- Текстовые блоки ---------- */

.prose {
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink-70);
	max-width: 820px;
}

/* Описание раздела внизу страницы каталога. Колонки здесь были бы уместны
   только при большом объёме текста, а у коротких описаний рвут строку
   посреди фразы — поэтому просто ограничиваем ширину. */
.prose--seo {
	max-width: 900px;
	font-size: 15px;
	padding-top: 40px;
	border-top: 1px solid var(--ink-08);
}

.prose > * + * {
	margin-top: 18px;
}

.prose h2,
.prose h3 {
	color: var(--ink);
	font-weight: 500;
	line-height: 1.3;
	margin-top: 36px;
}

.prose h2 {
	font-size: 24px;
}

.prose h3 {
	font-size: 19px;
}

.prose ul {
	list-style: disc;
	padding-left: 22px;
}

.prose ol {
	list-style: decimal;
	padding-left: 22px;
}

.prose li + li {
	margin-top: 8px;
}

.prose a {
	border-bottom: 1px solid var(--ink-15);
}

.prose a:hover {
	border-bottom-color: var(--brass);
	color: var(--brass);
}

.prose table {
	font-size: 15px;
}

.prose th,
.prose td {
	border-bottom: 1px solid var(--ink-08);
	padding: 12px 16px 12px 0;
	text-align: left;
	vertical-align: top;
}

.prose th {
	color: var(--ink);
	font-weight: 500;
}

/* ---------- Список «что входит» ---------- */

.checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 48px;
	max-width: 1100px;
}

.checklist__item {
	position: relative;
	padding-left: 32px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-70);
}

.checklist__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 14px;
	height: 11px;
	background: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.4 5 9.4 13 1.4' stroke='%23a8834b' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Главная: герой ---------- */

.hero {
	position: relative;
	min-height: 660px;
	display: flex;
	align-items: center;
	background: var(--sand);
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.84) 44%, rgba(255, 255, 255, 0) 74%);
}

.hero__inner {
	position: relative;
	z-index: 2;
	padding-block: 96px;
	max-width: 820px;
	margin-inline: 0;
	padding-left: var(--gutter);
}

.hero__eyebrow {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--brass);
	margin-bottom: 22px;
}

.hero__title {
	font-family: var(--font-display);
	font-size: clamp(36px, 4.2vw, 62px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin-bottom: 24px;
}

.hero__text {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-70);
	max-width: 560px;
	margin-bottom: 36px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 56px;
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--ink-15);
	max-width: 620px;
}

.fact__value {
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1.1;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.fact__label {
	margin: 6px 0 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-50);
}

/* ---------- Главная: разделы каталога ---------- */

.sect__title {
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--ink-15);
}

.sect__title a:hover {
	color: var(--brass);
}

.sect__list {
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.sect__list a {
	font-size: 14px;
	color: var(--ink-70);
	transition: color 0.15s var(--ease);
}

.sect__list a:hover {
	color: var(--brass);
}

/* ---------- Главная: направления услуг ---------- */

.sgroup__title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 500;
	margin-bottom: 12px;
}

.sgroup__title a:hover {
	color: var(--brass);
}

.sgroup__desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-50);
	margin-bottom: 20px;
}

.sgroup__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sgroup__list a {
	font-size: 14px;
	color: var(--ink-70);
	border-bottom: 1px solid transparent;
	transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.sgroup__list a:hover {
	color: var(--ink);
	border-bottom-color: var(--brass);
}

/* ---------- Карточка услуги ---------- */

.scard {
	background: var(--paper);
	border: 1px solid var(--ink-08);
	transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.scard:hover {
	border-color: var(--brass);
}

.scard__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 30px 30px 26px;
}

.scard__group {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--brass);
	margin-bottom: 14px;
}

.scard__title {
	font-size: 19px;
	font-weight: 500;
	line-height: 1.32;
	margin-bottom: 12px;
}

.scard__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-50);
	margin-bottom: 24px;
}

.scard__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--ink-08);
}

.scard__price {
	font-size: 14px;
	font-weight: 500;
}

.scard__arrow {
	color: var(--brass);
	transition: transform 0.25s var(--ease);
}

.scard:hover .scard__arrow {
	transform: translateX(4px);
}

/* ---------- Страница услуги ---------- */

.service__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 72px;
	align-items: start;
	padding-block: 12px 56px;
}

.service__group {
	display: inline-block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--brass);
	margin-bottom: 18px;
}

.service__offer {
	position: sticky;
	top: 140px;
	background: var(--light);
	padding: 34px 32px 30px;
}

.service__price {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 6px;
}

.service__term {
	font-size: 13px;
	color: var(--ink-50);
	margin-bottom: 26px;
}

.service__offer .btn + .btn {
	margin-top: 10px;
}

.service__note {
	margin-top: 18px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--muted);
}

.service__media {
	margin-bottom: 12px;
}

/* ---------- Шаги ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 32px;
	counter-reset: step;
}

.step {
	padding-top: 22px;
	border-top: 1px solid var(--ink-15);
}

.step__num {
	display: block;
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1;
	color: var(--brass);
	margin-bottom: 16px;
}

.step__title {
	font-size: 17px;
	font-weight: 500;
	margin-bottom: 10px;
}

.step__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-70);
}

/* ---------- Форматы объектов ---------- */

.tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--ink-08);
	border: 1px solid var(--ink-08);
}

.tile {
	position: relative;
	background: var(--paper);
	padding: 34px 36px 40px;
	transition: background 0.25s var(--ease);
}

.tile:hover {
	background: var(--light);
}

.tile__title {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 10px;
}

.tile__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-50);
	max-width: 380px;
}

.tile__arrow {
	position: absolute;
	right: 30px;
	bottom: 28px;
	color: var(--brass);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.tile:hover .tile__arrow {
	opacity: 1;
	transform: none;
}

/* ---------- Преимущества ---------- */

.adv__num {
	display: block;
	font-family: var(--font-display);
	font-size: 34px;
	color: var(--ink-15);
	line-height: 1;
	margin-bottom: 16px;
}

.adv__title {
	font-size: 17px;
	font-weight: 500;
	margin-bottom: 10px;
}

.adv__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-70);
}

/* ---------- Карточка проекта ---------- */

.pcard__media {
	aspect-ratio: 4 / 3;
	background: var(--light);
	overflow: hidden;
	margin-bottom: 18px;
}

.pcard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.pcard:hover .pcard__img {
	transform: scale(1.04);
}

.pcard__title {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.35;
	margin-bottom: 6px;
}

.pcard__meta {
	font-size: 13px;
	color: var(--muted);
}

/* ---------- Карточка записи блога ---------- */

.post-card__media {
	aspect-ratio: 3 / 2;
	background: var(--light);
	overflow: hidden;
	margin-bottom: 18px;
}

.post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__date {
	display: block;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 8px;
}

.post-card__title {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.35;
	margin-bottom: 10px;
}

.post-card__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-70);
}

/* ---------- CTA перед подвалом ---------- */

.cta {
	background: var(--ink);
	color: #fff;
	margin-top: 40px;
}

.cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding-block: 56px;
}

.cta__text {
	font-size: clamp(20px, 2vw, 30px);
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
	max-width: 760px;
}

.cta__note {
	margin-top: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.55);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	flex-shrink: 0;
}

/* ---------- Подвал ---------- */

.footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.65);
	padding-block: 72px 32px;
	font-size: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
	gap: 48px;
	padding-bottom: 56px;
}

.footer .logo__mark {
	color: #fff;
	display: block;
	margin-bottom: 18px;
}

.footer__tagline,
.footer__note {
	line-height: 1.6;
	max-width: 340px;
	margin-bottom: 16px;
}

.footer__note {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.4);
}

.footer__title {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #fff;
	margin-bottom: 20px;
}

.footer__menu {
	display: flex;
	flex-direction: column;
	gap: 11px;
	margin-bottom: 20px;
}

.footer__menu a:hover {
	color: var(--brass-soft);
}

.footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.45);
}

.footer__bottom a:hover {
	color: var(--brass-soft);
}

/* ---------- Пустое состояние ---------- */

.empty {
	text-align: center;
	padding-block: 100px;
	max-width: 560px;
	margin-inline: auto;
}

.empty__code {
	font-family: var(--font-display);
	font-size: 84px;
	line-height: 1;
	color: var(--ink-15);
	margin-bottom: 16px;
}

.empty__title {
	font-size: 24px;
	font-weight: 400;
	margin-bottom: 12px;
}

.empty__text {
	color: var(--ink-70);
	margin-bottom: 32px;
}

.empty__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

/* ---------- Модальное окно ---------- */

.modal[hidden] {
	display: none;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 26, 34, 0.6);
	animation: fade 0.25s var(--ease);
}

.modal__box {
	position: relative;
	width: min(520px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	background: var(--paper);
	padding: 44px 44px 36px;
	animation: rise 0.3s var(--ease);
}

@keyframes fade {
	from {
		opacity: 0;
	}
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

.modal__close {
	position: absolute;
	top: 14px;
	right: 18px;
	font-size: 28px;
	line-height: 1;
	color: var(--ink-50);
}

.modal__close:hover {
	color: var(--ink);
}

.modal__title {
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
	margin-bottom: 8px;
}

.modal__sub:not(:empty) {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--brass);
	margin-bottom: 12px;
}

.modal__note {
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-70);
	margin-bottom: 26px;
}

/* ---------- Формы ---------- */

.form__row {
	margin-bottom: 18px;
}

.form__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 14px;
}

.form__label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 7px;
}

.form__input {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--ink-15);
	background: #fff;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s var(--ease);
	resize: vertical;
}

.form__input:focus {
	border-color: var(--ink);
}

.form__honey {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__legal {
	font-size: 11px;
	line-height: 1.5;
	color: var(--muted);
	margin-top: 14px;
}

.form__legal a {
	border-bottom: 1px solid var(--ink-15);
}

.form__result {
	margin-top: 16px;
	font-size: 14px;
	line-height: 1.5;
}

.form__result.is-ok {
	color: #2f5347;
}

.form__result.is-error {
	color: #a33;
}

.form.is-sent .form__row,
.form.is-sent .form__grid,
.form.is-sent .btn,
.form.is-sent .form__legal {
	display: none;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1400px) {
	:root {
		--gutter: 28px;
	}

	.grid {
		gap: 44px 24px;
	}

	.navbar__inner {
		gap: 28px;
	}

	.nav__list {
		gap: 22px;
	}

	.steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 32px 28px;
	}
}

@media (max-width: 1200px) {
	.grid--sections,
	.grid--groups {
		grid-template-columns: repeat(3, 1fr);
	}

	.service__top {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 44px;
	}

	.tiles {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 1100px) {
	.grid--products,
	.grid--advantages,
	.grid--services,
	.grid--projects {
		grid-template-columns: repeat(3, 1fr);
	}

	.pdp {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.footer__inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.topbar__menu,
	.topbar__hours {
		display: none;
	}

	.service__top {
		grid-template-columns: 1fr;
	}

	.service__offer {
		position: static;
	}
}

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

	.project-photos__head {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.project-process__steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.project-process__steps li {
		border-bottom: 1px solid var(--ink-15);
	}

	.project-conversion {
		align-items: flex-start;
		flex-direction: column;
	}

	.burger {
		display: flex;
	}

	.nav {
		position: fixed;
		inset: 122px 0 0;
		background: var(--paper);
		padding: 32px var(--gutter);
		transform: translateX(100%);
		transition: transform 0.3s var(--ease);
		overflow-y: auto;
		z-index: 50;
	}

	.nav.is-open {
		transform: none;
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.nav__list a {
		font-size: 15px;
		padding-block: 12px;
	}

	.nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 8px 16px;
		min-width: 0;
	}

	.navbar__tools {
		display: none;
	}

	.grid--products,
	.grid--sections,
	.grid--groups,
	.grid--advantages,
	.grid--services,
	.grid--projects,
	.grid--posts {
		grid-template-columns: repeat(2, 1fr);
	}

	.steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.section {
		padding-block: 60px;
	}

	.catalog__head {
		flex-direction: column;
		gap: 20px;
		padding-bottom: 32px;
	}

	.catalog__tools {
		padding-top: 0;
		width: 100%;
		justify-content: space-between;
	}

	.pdp__gallery {
		grid-template-columns: 1fr;
		grid-template-areas: "stage" "thumbs";
	}

	.gallery__thumbs {
		flex-direction: row;
		overflow-x: auto;
	}

	.gallery__thumb {
		flex: 0 0 84px;
	}

	.card__request {
		opacity: 1;
		transform: none;
	}

	.cta__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
	}

	.hero {
		min-height: 520px;
	}

	.hero::after {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 30%, rgba(255, 255, 255, 0.74) 100%);
	}

	.hero__facts {
		gap: 28px;
	}

	.filters {
		padding: 28px 20px;
	}

	.filters__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 24px;
	}

	.checklist {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	:root {
		--gutter: 18px;
	}

	.project-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.project-cover img {
		height: 260px;
	}

	.project-photos {
		margin-block: 52px;
	}

	.project-photos__head {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.project-photos--hotel {
		padding-block: 52px;
	}

	.project-process {
		margin-bottom: 52px;
		padding-top: 44px;
	}

	.project-process__steps {
		grid-template-columns: 1fr;
	}

	.project-process__steps li {
		min-height: 0;
		padding: 18px 4px;
		border-right: 0;
	}

	.project-process__steps span {
		display: inline-block;
		width: 44px;
		margin: 0;
	}

	.project-process__steps strong {
		display: inline-block;
	}

	.project-conversion {
		margin-block: 52px;
		padding: 34px 24px;
		gap: 28px;
	}

	.project-conversion .btn {
		width: 100%;
	}

	.project-photo-button__zoom {
		right: 8px;
		bottom: 8px;
		width: 32px;
		height: 32px;
		opacity: 1;
		transform: none;
		font-size: 18px;
	}

	.project-lightbox {
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		grid-template-rows: 58px minmax(0, 1fr) 48px;
	}

	.project-lightbox__close {
		width: 58px;
		height: 58px;
		font-size: 30px;
	}

	.project-lightbox__prev,
	.project-lightbox__next {
		font-size: 32px;
	}

	.topbar__inner {
		font-size: 11px;
		justify-content: flex-end;
	}

	/* На телефоне в служебной строке помещается только телефон — география
	   и кнопка обратного звонка ужимали бы номер до переноса строки. */
	.topbar__callback,
	.topbar__geo {
		display: none;
	}

	.grid {
		gap: 36px 16px;
	}

	.grid--advantages,
	.grid--sections,
	.grid--groups,
	.grid--services,
	.grid--projects,
	.grid--posts,
	.steps,
	.tiles {
		grid-template-columns: 1fr;
	}

	.grid--products {
		grid-template-columns: repeat(2, 1fr);
	}

	.card {
		padding: 14px 10px 12px;
	}

	.card__title {
		font-size: 12px;
	}

	.card__price {
		font-size: 16px;
	}

	.pdp__actions {
		grid-template-columns: 1fr;
	}

	.tabs__nav {
		gap: 22px;
		overflow-x: auto;
	}

	.specs__key {
		width: 45%;
	}

	.footer__inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.footer__bottom {
		flex-direction: column;
		gap: 8px;
	}

	.modal__box {
		padding: 36px 22px 28px;
	}

	.form__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.filters__grid {
		grid-template-columns: 1fr;
	}

	.section__head {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}

	.hero__facts {
		flex-direction: column;
		gap: 20px;
	}
}

@media (max-width: 420px) {
	.project-gallery {
		grid-template-columns: 1fr;
	}
}

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