/*
 * eDetal home page (front-page.php, templates/home/*.php): design-v3 Home / MobileHome / RuHome.
 * Loaded on the front page only, after components.css; classes are .hp-* (page parts) on top of the .ed-* components.
 * Motion is limited to transform on the FAQ chevron; reduced motion is handled in components.css.
 */

/* Page frame: the parent wraps content in .site-content > .container, the sections here are full-bleed. */
.ed-home,
.ed-home .site-content {
	background-color: var(--ed-canvas);
}

.ed-home .site-content {
	margin: 0;
	padding: 0;
}

.ed-home .site-content > .container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.hp-home :is(h1, h2, h3, p, ul, ol) {
	margin: 0;
}

.hp-home :is(ul, ol) {
	padding: 0;
}

.hp-lime {
	color: var(--ed-lime);
}

.hp-home :is(.ed-price-s, .ed-price) {
	white-space: nowrap;
}

/* Hero ----------------------------------------------------------------------------------------- */
.hp-hero {
	overflow: hidden;
	background: radial-gradient(1200px 500px at 85% 0%, #1f5541 0%, rgba(20, 53, 43, 0) 60%), var(--ed-petrol);
}

.hp-hero__in {
	display: grid;
	grid-template-columns: minmax(0, 13fr) minmax(0, 11fr);
	gap: 48px;
	align-items: center;
	max-width: var(--ed-container);
	margin: 0 auto;
	padding: 56px 32px 64px;
}

.hp-hero__l {
	min-width: 0;
}

.hp-home .hp-hero__lead,
.hp-home .hp-float--phone .ed-small {
	hyphens: manual;
}

.hp-hero__lead {
	max-width: 520px;
	color: #d3e3d9;
}

.hp-ask {
	padding: 20px;
	border: 0;
	color: var(--ed-ink);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.hp-ask__label {
	font-size: var(--t-16);
}

.hp-ask__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hp-ask__row .ed-inp {
	flex: 1 1 220px;
	width: auto;
	min-width: 0;
}

.hp-perks {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	color: #d3e3d9;
	font-size: 14.5px;
}

.hp-perks .ed-ic {
	color: var(--ed-lime);
}

.hp-hero__r {
	position: relative;
	min-width: 0;
	height: 480px;
}

.hp-hero__r picture {
	display: contents;
}

.hp-hero__img {
	position: absolute;
	inset: -24px -32px -24px 0;
	width: calc(100% + 32px);
	height: calc(100% + 48px);
	max-width: none;
	object-fit: cover;
	object-position: right center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 88%, transparent 100%), linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.hp-float {
	position: absolute;
	border-radius: var(--r-lg);
	background: #fff;
	color: var(--ed-ink);
	box-shadow: var(--sh-3);
}

.hp-float--offers {
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 290px;
	padding: 16px;
}

.hp-float--phone {
	bottom: 0;
	left: 8%;
	width: 270px;
	padding: 14px;
	background: var(--ed-lime);
	color: var(--ed-petrol);
}

.hp-float .ed-muted {
	color: var(--ed-muted);
}

.hp-float__offer {
	padding: 10px 12px;
}

.hp-tag-ok {
	background: var(--ed-ok-bg);
	color: var(--ed-ok);
}

/* Makes ---------------------------------------------------------------------------------------- */
.hp-brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 16px;
}

.hp-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 120px;
	padding: 16px 8px;
	border: 1px solid var(--ed-border);
	border-radius: var(--r-md);
	background: var(--ed-surface);
	color: var(--ed-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.hp-brand img {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.hp-brand:hover,
.hp-chip:hover {
	border-color: var(--ed-action);
	color: var(--ed-ink);
	box-shadow: var(--sh-2);
}

.hp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hp-chip {
	display: inline-flex;
	align-items: center;
	min-height: var(--ed-touch);
	padding: 0 16px;
	border: 1px solid var(--ed-border);
	border-radius: var(--r-pill);
	background: var(--ed-surface);
	color: var(--ed-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

/* How it works --------------------------------------------------------------------------------- */
.hp-how {
	border-top: 1px solid var(--ed-border);
	border-bottom: 1px solid var(--ed-border);
	background: var(--ed-surface);
}

.hp-steps {
	gap: 20px;
}

.hp-step {
	overflow: hidden;
	background: var(--ed-canvas);
}

.hp-step__n {
	width: 36px;
	height: 36px;
	font-size: 15px;
}

.hp-mini {
	position: relative;
	gap: 8px;
	margin: 0 20px 20px;
	padding: 12px;
	border: 1px solid var(--ed-border);
	border-radius: var(--r-md);
	background: var(--ed-surface);
	overflow-wrap: anywhere;
}

.hp-mini__tag {
	align-self: flex-start;
}

.hp-mini__row {
	padding: 8px;
	border-radius: 10px;
}

.hp-mini__row + .hp-mini__row {
	border-top: 1px solid var(--ed-border);
	border-radius: 0 0 10px 10px;
}

.hp-mini__row.ed-selected-ring,
.hp-mini__row.ed-selected-ring + .hp-mini__row {
	border-radius: 10px;
}

.hp-mini__cat {
	width: 34px;
	height: 34px;
	border-radius: var(--r-sm);
}

.hp-mini__cat img {
	width: 20px;
	height: 20px;
}

.hp-mini__end {
	margin-left: auto;
}

/* Part groups ---------------------------------------------------------------------------------- */
.hp-groups {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}

.hp-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	height: 100%;
	padding: 20px;
	border: 1px solid var(--ed-border);
	border-radius: var(--r-md);
	background: var(--ed-surface);
	color: var(--ed-ink);
	font-weight: 650;
	text-decoration: none;
}

.hp-group .ed-cat {
	width: 52px;
	height: 52px;
}

.hp-group:hover {
	border-color: var(--ed-action);
	color: var(--ed-ink);
	box-shadow: var(--sh-2);
}

/* Sellers -------------------------------------------------------------------------------------- */
.hp-sell {
	padding: 0 0 16px;
}

.hp-sell__band {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 220px;
	padding: 56px 48px;
	overflow: hidden;
	border-radius: 24px;
}

.hp-sell__band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, #14352b 30%, rgba(20, 53, 43, 0.82) 55%, rgba(20, 53, 43, 0.35) 100%);
}

.hp-sell__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
}

.hp-sell__bg img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 70% 55%;
}

.hp-sell__in {
	flex: 1 1 480px;
	min-width: 0;
}

.hp-sell__ic {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: rgba(216, 242, 124, 0.12);
	color: var(--ed-lime);
}

.hp-sell__text {
	color: #d3e3d9;
}

.hp-sell__label {
	position: absolute;
	right: 12px;
	bottom: 10px;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ed-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

/* FAQ ------------------------------------------------------------------------------------------ */
.ed-wrap.hp-faq__in {
	max-width: 984px;
}

.hp-faq__in > h2 {
	margin-bottom: 16px;
}

.hp-faq__item {
	border-top: 1px solid var(--ed-border);
}

.hp-faq__item:last-of-type {
	border-bottom: 1px solid var(--ed-border);
}

.hp-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 60px;
	padding: 16px 0;
	font-size: 17px;
	font-weight: 650;
	list-style: none;
	cursor: pointer;
}

.hp-faq__item summary::-webkit-details-marker {
	display: none;
}

.hp-faq__item summary:focus-visible {
	outline: 2px solid var(--ed-action);
	outline-offset: 2px;
}

.hp-faq__item summary .ed-ic {
	transition: transform var(--dur) var(--ease);
}

.hp-faq__item[open] summary .ed-ic {
	transform: rotate(180deg);
}

.hp-faq__item p {
	max-width: 760px;
	padding: 0 0 20px;
	color: var(--ed-muted);
}

.hp-faq__more {
	margin-top: 20px;
	font-weight: 650;
}

.hp-faq__more a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--ed-action);
}

/* Tablet and down ------------------------------------------------------------------------------ */
@media (max-width: 1023px) {
	.hp-hero__in {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.hp-hero__r {
		height: 360px;
	}
}

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

/* Mobile --------------------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.hp-hero__in {
		gap: 28px;
		padding: 32px 16px 0;
	}

	.hp-hero__lead {
		font-size: var(--t-16);
	}

	.hp-ask {
		padding: 16px;
	}

	.hp-ask__row .ed-btn {
		width: 100%;
	}

	.hp-hero__r {
		height: 230px;
		margin: 0 -16px;
	}

	.hp-hero__img {
		inset: 0;
		width: 100%;
		height: 100%;
		object-position: 72% 50%;
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
		mask-image: linear-gradient(180deg, transparent 0, #000 22%);
	}

	.hp-float,
	.hp-mini {
		display: none;
	}

	.hp-brands {
		grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
		gap: 8px;
	}

	.hp-brand {
		min-height: 96px;
		font-size: 13px;
	}

	.hp-brand img {
		width: 36px;
		height: 36px;
	}

	.hp-steps {
		gap: 12px;
	}

	.hp-groups {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.hp-group {
		align-items: center;
		gap: 8px;
		padding: 16px 2px;
		font-size: 13px;
		text-align: center;
	}

	.hp-group .ed-cat {
		width: 42px;
		height: 42px;
	}

	.hp-faq__item summary {
		min-height: 56px;
		font-size: var(--t-16);
	}
}

@media (max-width: 640px) {
	.hp-sell__band {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 150px 24px 44px;
		border-radius: 20px;
	}

	.hp-sell__band::before {
		background: linear-gradient(180deg, rgba(20, 53, 43, 0.35) 0, #14352b 62%);
	}

	.hp-sell__bg {
		inset: 0 0 auto;
		height: 220px;
	}

	.hp-sell__bg img {
		object-position: 55% 0;
	}

	.hp-sell__ic {
		display: none;
	}

	.hp-sell__in {
		flex-basis: auto;
	}

	.hp-sell__cta {
		width: 100%;
	}
}
