/* Homepage — все-двери.рф */

/* Hello Elementor caps .site-main at 500–1140px; vitrina uses full width + inner --home-max. */
body:not([class*="elementor-page-"]) .site-main.home-page-main {
	margin-right: auto;
	margin-left: auto;
	width: 100%;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

.home-page-main {
	overflow: visible;
}

/* Hello Elementor style.min.css: a:active, a:hover { color: #336 } */
.home-page a:hover,
.home-page a:active,
.dv-header a:hover,
.dv-header a:active,
.dv-drawer a:hover,
.dv-drawer a:active,
.dv-footer a:hover,
.dv-footer a:active,
.dv-float a:hover,
.dv-float a:active {
	color: inherit;
}

.dv-footer a:hover,
.dv-footer a:active {
	color: #fff;
}

a.dv-drawer__messenger--telegram:hover,
a.dv-drawer__messenger--telegram:active,
a.dv-drawer__messenger--whatsapp:hover,
a.dv-drawer__messenger--whatsapp:active {
	color: #fff;
}

.home-page {
	--home-ink: #1a1c1b;
	--home-muted: #5c635f;
	--home-line: #d8ddd9;
	--home-soft: #f3f5f2;
	--home-accent: #1a9e90;
	--home-accent-dark: #147f74;
	--home-max: 1280px;
	color: var(--home-ink);
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	background:
		radial-gradient(1200px 500px at 10% -10%, rgba(26, 158, 144, 0.08), transparent 60%),
		radial-gradient(900px 420px at 100% 0%, rgba(61, 48, 36, 0.06), transparent 55%),
		#f7f8f6;
}

.home-page a {
	text-decoration: none;
}

.home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: min(78vh, 720px);
	display: flex;
	align-items: flex-end;
	color: #f4f1ea;
	background: #1a1c1b;
}

.home-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(115deg, rgba(12, 14, 13, 0.92) 18%, rgba(12, 14, 13, 0.55) 52%, rgba(12, 14, 13, 0.78) 100%),
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.035) 0 1px,
			transparent 1px 72px
		),
		radial-gradient(ellipse at 70% 40%, #3d3024 0%, #1a1c1b 55%, #0d0f0e 100%);
}

.home-hero__bg::after {
	content: "";
	position: absolute;
	right: max(4%, calc(50% - 520px));
	top: 8%;
	width: min(42vw, 420px);
	height: 84%;
	border: 1px solid rgba(244, 241, 234, 0.18);
	border-radius: 4px 4px 0 0;
	background:
		linear-gradient(180deg, rgba(244, 241, 234, 0.08), transparent 30%),
		linear-gradient(90deg, transparent 46%, rgba(244, 241, 234, 0.2) 46%, rgba(244, 241, 234, 0.2) 54%, transparent 54%),
		rgba(244, 241, 234, 0.03);
	box-shadow: inset 0 0 0 12px rgba(26, 28, 27, 0.35);
	transform: perspective(900px) rotateY(-12deg);
	pointer-events: none;
}

.home-hero__inner {
	width: min(100% - 32px, var(--home-max));
	margin: 0 auto;
	padding: 72px 0 56px;
}

.home-hero__brand {
	margin: 0 0 18px;
	font-size: clamp(2.4rem, 6vw, 4.4rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 0.95;
	color: #fff;
}

.home-hero__title {
	max-width: 32ch;
	margin: 0 0 16px;
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.home-hero__lead {
	max-width: 38ch;
	margin: 0 0 28px;
	color: rgba(244, 241, 234, 0.78);
	font-size: 1.05rem;
	line-height: 1.5;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
}

.home-hero__cta,
.home-hero__ghost,
.home-section__all,
.home-cta__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.2;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.home-hero__cta {
	background: var(--home-accent);
	color: #fff;
}

a.home-hero__cta:hover,
a.home-hero__cta:active {
	background: var(--home-accent-dark);
	color: #fff;
}

.home-hero__ghost {
	border: 1px solid rgba(244, 241, 234, 0.35);
	color: #f4f1ea;
	background: transparent;
}

a.home-hero__ghost:hover,
a.home-hero__ghost:active {
	border-color: #fff;
	color: #fff;
}

.home-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 28px 40px;
}

.home-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.home-hero__stat-value {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.home-hero__stat-label {
	color: rgba(244, 241, 234, 0.62);
	font-size: 0.9rem;
}

.home-quick {
	width: min(100% - 32px, var(--home-max));
	margin: -28px auto 8px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	position: relative;
	z-index: 2;
}

.home-quick__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 12px 10px;
	border: 1px solid var(--home-line);
	border-radius: 10px;
	background: #fff;
	color: var(--home-ink);
	font-size: 15px;
	font-weight: 650;
	box-shadow: 0 10px 30px rgba(26, 28, 27, 0.06);
}

.home-quick__item:hover {
	border-color: var(--home-ink);
}

.home-section {
	width: min(100% - 32px, var(--home-max));
	margin: 0 auto;
	padding: 48px 0 8px;
}

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

.home-section__title {
	margin: 0 0 6px;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.home-section__subtitle {
	margin: 0;
	color: var(--home-muted);
	font-size: 1rem;
	line-height: 1.4;
}

.home-section__all {
	flex-shrink: 0;
	border: 1px solid var(--home-ink);
	color: var(--home-ink);
	background: transparent;
}

a.home-section__all:hover,
a.home-section__all:active {
	background: var(--home-ink);
	color: #fff;
}

.home-section__all--lg {
	width: 100%;
}

.home-section__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-section__foot {
	margin-top: 28px;
}

.home-card {
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-card__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px;
	border: 1px solid var(--home-line);
	border-radius: 10px;
	background: #fff;
}

.home-card__image {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
}

.home-card__image .js-hover-gallery,
.home-card__image img,
.home-card__image .js-hover-gallery > img:not(.hover-gallery-layer) {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center;
}

.home-card__image .js-hover-gallery,
.home-card__image > img,
.home-card__image .js-hover-gallery img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.home-card__quick {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #8a8a8a;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
	.home-card__inner:hover .home-card__quick {
		opacity: 1;
		pointer-events: auto;
	}
}

.home-card__price-row {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0 0 8px;
}

.home-card__price {
	display: block;
	margin: 0;
	padding-right: 56px;
	color: var(--home-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
}

.home-card__cart,
.home-card .armadillo-catalog__cart {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 4;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px;
	background: var(--home-accent) !important;
	color: #fff !important;
	box-shadow: none !important;
	transform: translateY(-50%);
	text-decoration: none !important;
}

.home-card__cart svg,
.home-card .armadillo-catalog__cart svg {
	display: block;
}

.home-card .added_to_cart {
	display: none !important;
}

.home-card__name {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #6b716d;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.home-card__name a {
	color: inherit;
}

.home-card__name a:hover {
	color: var(--home-ink);
}

.home-cta {
	padding: 64px 0 32px;
}

.home-cta__inner,
.home-yandex-reviews__inner {
	width: min(100% - 32px, var(--home-max));
	margin: 0 auto;
}

.home-yandex-reviews__title {
	margin: 0 0 6px;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.15;
	text-align: center;
	margin: 40px 0;
}

.home-cta__title {
	margin: 0 0 10px;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
}

.home-cta__text {
	max-width: 48ch;
	margin: 0 0 28px;
	color: var(--home-muted);
	font-size: 1.05rem;
	line-height: 1.5;
}

.home-yandex-reviews {
	padding: 0 0 80px;
}

.home-yandex-reviews__widget {
	position: relative;
	width: 100%;
	height: 800px;
	overflow: hidden;
}

.home-yandex-reviews__widget iframe {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
}

.home-yandex-reviews__credit {
	position: absolute;
	bottom: 8px;
	left: 0;
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-height: 14px;
	padding: 0 16px;
	overflow: hidden;
	color: #b3b3b3;
	font-family: "YS Text", sans-serif;
	font-size: 10px;
	text-align: center;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-cta__inner {
	padding: 36px;
	border-radius: 16px;
	background:
		linear-gradient(135deg, rgba(26, 158, 144, 0.12), transparent 45%),
		linear-gradient(180deg, #1a1c1b, #242826);
	color: #f4f1ea;
}

.home-cta .home-cta__text {
	color: rgba(244, 241, 234, 0.72);
}

.home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
	align-items: center;
}

.home-cta__btn {
	background: var(--home-accent);
	color: #fff;
}

a.home-cta__btn:hover,
a.home-cta__btn:active {
	background: var(--home-accent-dark);
	color: #fff;
}

.home-cta__messengers {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.home-cta__messenger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.home-cta__messenger:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

a.home-cta__messenger--telegram,
a.home-cta__messenger--telegram:hover,
a.home-cta__messenger--telegram:active {
	background: #2aabee;
	color: #fff;
}

.home-cta__messenger--telegram svg {
	display: block;
}

a.home-cta__messenger--whatsapp,
a.home-cta__messenger--whatsapp:hover,
a.home-cta__messenger--whatsapp:active {
	background: #25d366;
	color: #fff;
}

.home-cta__messenger--whatsapp svg {
	display: block;
}

.home-cta__messenger--max {
	background: transparent;
	padding: 0;
}

.home-cta__messenger--max img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-cta__link {
	color: #f4f1ea;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1100px) {
	.home-section__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.home-hero__bg::after {
		opacity: 0.35;
		right: -8%;
		width: 58vw;
	}

	.home-quick {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: -20px;
	}

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

	.home-section__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.home-yandex-reviews__widget {
		height: 640px;
	}
}

@media (max-width: 560px) {
	.home-hero__inner {
		padding-top: 56px;
		padding-bottom: 40px;
	}

	.home-hero__bg::after {
		display: none;
	}

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

	.home-card__inner {
		padding: 8px;
	}

	.home-card__price {
		font-size: 15px;
		padding-right: 48px;
	}

	.home-card__cart,
	.home-card .armadillo-catalog__cart {
		width: 40px;
		height: 40px;
	}

	.home-cta__inner {
		padding: 28px 20px;
	}

	.home-yandex-reviews__widget {
		height: 560px;
	}
}
