/**
 * Страница «Дилерам» — liquid-glass в духе «Архитекторам».
 */

body.algorithm-dealers-page {
	background-color: #fff;
}

.dealers-page {
	padding-bottom: clamp(32px, 4vw, 48px);
}

.dealers-page-section {
	margin-top: clamp(40px, 5vw, 64px);
}

body.algorithm-dealers-page .site-footer {
	margin-top: clamp(32px, 4vw, 48px);
}

body.algorithm-dealers-page .home-section-title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--grafit-black);
}

/* Hero */
.dealers-hero .first-screen-slide {
	display: flex;
	border-radius: var(--island-radius);
	overflow: hidden;
}

.dealers-hero__panel {
	width: fit-content;
	max-width: min(520px, 100%);
}

.dealers-hero__title {
	margin: 0;
	padding: 0;
	font-family: var(--font-family);
	font-synthesis: none;
	font-weight: 600;
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--grafit-black);
}

.dealers-hero__lead {
	margin: clamp(10px, 1.2vw, 14px) 0 clamp(16px, 2vw, 22px);
	padding: 0;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: clamp(14px, 1.5vw, 16px);
	line-height: 1.45;
	color: var(--grafit-black);
}

.dealers-hero .first-screen-slide-bg {
	object-fit: cover;
	object-position: 58% center;
}

/* Partnership block — welcome + advantages grid */
.dealers-partnership__shell {
	display: grid;
	grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
	gap: clamp(12px, 1.5vw, 18px);
	align-items: stretch;
}

.dealers-partnership__welcome,
.dealers-partnership__advantages {
	padding: clamp(18px, 2.2vw, 28px);
	border-radius: var(--radius-lg);
	border: 1px solid var(--liquid-glass-border);
	background: var(--liquid-glass-bg);
	box-shadow: var(--liquid-glass-shadow);
	box-sizing: border-box;
}

.dealers-partnership__welcome {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: clamp(12px, 1.5vw, 18px);
	min-height: 0;
}

.dealers-partnership__welcome-intro {
	flex-shrink: 0;
}

.dealers-partnership__welcome-copy {
	flex: 0 1 auto;
	width: 100%;
	max-width: clamp(200px, 86%, 280px);
	margin-inline: auto;
	min-height: 0;
}

.dealers-partnership__eyebrow {
	margin: 0 0 clamp(6px, 0.8vw, 10px);
	font-family: var(--font-family);
	font-size: clamp(12px, 1.2vw, 14px);
	font-weight: 500;
	line-height: 1.35;
	color: var(--grafit-secon-text);
	text-align: center;
}

.dealers-partnership__title {
	margin: 0;
	font-size: clamp(18px, 2vw, 24px);
	text-align: center;
}

.dealers-partnership__lead {
	margin: 0;
	font-family: var(--font-family);
	font-size: clamp(13px, 1.35vw, 15px);
	font-weight: 500;
	line-height: 1.45;
	color: var(--grafit-black);
	text-align: left;
}

.dealers-partnership__cta {
	display: inline-flex;
	align-self: center;
	flex-shrink: 0;
	margin-top: clamp(4px, 0.6vw, 8px);
}

.dealers-partnership__advantages {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: linear-gradient(160deg, rgba(245, 246, 248, 0.88) 0%, rgba(255, 255, 255, 0.72) 100%);
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
	.dealers-partnership__welcome {
		background: rgba(255, 255, 255, 0.72);
		-webkit-backdrop-filter: blur(18px) saturate(165%);
		backdrop-filter: blur(18px) saturate(165%);
	}

	.dealers-partnership__advantages {
		background: linear-gradient(160deg, rgba(245, 246, 248, 0.72) 0%, rgba(255, 255, 255, 0.58) 100%);
		-webkit-backdrop-filter: blur(18px) saturate(165%);
		backdrop-filter: blur(18px) saturate(165%);
	}
}

.dealers-partnership__advantages-title {
	margin: 0 0 clamp(12px, 1.5vw, 18px);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(16px, 1.7vw, 20px);
	line-height: 1.2;
	color: var(--grafit-black);
	text-align: center;
	flex-shrink: 0;
}

.dealers-partnership__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: clamp(10px, 1.2vw, 12px);
	align-content: stretch;
	flex: 1;
	min-height: 0;
}

.dealers-advantage-card {
	position: relative;
	height: 100%;
	min-height: clamp(120px, 11vw, 136px);
	padding: clamp(10px, 1.2vw, 14px);
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.42);
	box-shadow:
		0 4px 18px rgba(0, 0, 0, 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		inset 0 -1px 0 rgba(0, 0, 0, 0.03);
	box-sizing: border-box;
	overflow: hidden;
	cursor: default;
	outline: none;
	transition:
		box-shadow 0.35s var(--ease-out),
		border-color 0.35s var(--ease-out),
		background 0.35s var(--ease-out),
		transform 0.35s var(--ease-out);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
	.dealers-advantage-card {
		background: rgba(255, 255, 255, 0.38);
		-webkit-backdrop-filter: blur(14px) saturate(155%);
		backdrop-filter: blur(14px) saturate(155%);
	}
}

.dealers-advantage-card__icon {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.35s var(--ease-out);
}

.dealers-advantage-card__info {
	position: absolute;
	left: clamp(10px, 1.2vw, 14px);
	right: clamp(10px, 1.2vw, 14px);
	bottom: clamp(10px, 1.2vw, 14px);
	top: clamp(10px, 1.2vw, 14px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	text-align: center;
	transform: translateY(5px);
	transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
	pointer-events: none;
}

.dealers-advantage-card__info p {
	margin: 0;
	padding: 0;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: clamp(11px, 1vw, 13px);
	line-height: 1.35;
	color: var(--grafit-grey);
}

.dealers-advantage-card:hover,
.dealers-advantage-card:focus-within,
.dealers-advantage-card.is-expanded {
	background: rgba(255, 255, 255, 0.62);
	border-color: rgba(255, 255, 255, 0.95);
	box-shadow:
		var(--glass-shadow-hover),
		inset 0 1px 0 rgba(255, 255, 255, 1);
	transform: translateY(-2px);
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
	.dealers-advantage-card:hover,
	.dealers-advantage-card:focus-within,
	.dealers-advantage-card.is-expanded {
		background: rgba(255, 255, 255, 0.55);
		-webkit-backdrop-filter: blur(18px) saturate(170%);
		backdrop-filter: blur(18px) saturate(170%);
	}
}

.dealers-advantage-card:hover .dealers-advantage-card__icon,
.dealers-advantage-card:focus-within .dealers-advantage-card__icon,
.dealers-advantage-card.is-expanded .dealers-advantage-card__icon {
	transform: translate(-50%, calc(-50% - 28px));
}

.dealers-advantage-card:hover .dealers-advantage-card__info,
.dealers-advantage-card:focus-within .dealers-advantage-card__info,
.dealers-advantage-card.is-expanded .dealers-advantage-card__info {
	opacity: 1;
	transform: translateY(0);
}

.dealers-advantage-card:focus-visible {
	box-shadow:
		var(--glass-shadow-hover),
		inset 0 1px 0 rgba(255, 255, 255, 1),
		0 0 0 2px var(--orange);
}

body.algorithm-dealers-page .dealers-advantage-card__icon--prices {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Crect x='12' y='18' width='40' height='28' rx='4' stroke='%23373838' stroke-width='1.8'/%3E%3Cpath d='M12 26H52' stroke='%23373838' stroke-width='1.8'/%3E%3Ccircle cx='22' cy='38' r='6' stroke='%23FFBB10' stroke-width='1.8'/%3E%3Cpath d='M20 38H24M22 36V40' stroke='%23FFBB10' stroke-width='1.4'/%3E%3Cpath d='M34 35H44M34 40H40' stroke='%23373838' stroke-width='1.8'/%3E%3C/svg%3E");
}

body.algorithm-dealers-page .dealers-advantage-card__icon--status {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M32 10V42' stroke='%23373838' stroke-width='1.8'/%3E%3Cpath d='M22 42H42L38 54H26L22 42Z' stroke='%23373838' stroke-width='1.8'/%3E%3Cpath d='M26 22C26 16 29 12 32 12C35 12 38 16 38 22C38 28 32 34 32 34C32 34 26 28 26 22Z' stroke='%23FFBB10' stroke-width='1.8'/%3E%3C/svg%3E");
}

body.algorithm-dealers-page .dealers-advantage-card__icon--priority {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Ccircle cx='32' cy='34' r='18' stroke='%23373838' stroke-width='1.8'/%3E%3Cpath d='M32 20V34L40 38' stroke='%23373838' stroke-width='1.8'/%3E%3Cpath d='M32 10V14' stroke='%23373838' stroke-width='1.8'/%3E%3Cpath d='M46 18L43 21' stroke='%23373838' stroke-width='1.8'/%3E%3Ccircle cx='46' cy='14' r='8' stroke='%23FFBB10' stroke-width='1.8'/%3E%3Cpath d='M43 14L45 16L49 12' stroke='%23FFBB10' stroke-width='1.6'/%3E%3C/svg%3E");
}

body.algorithm-dealers-page .dealers-advantage-card__icon--regions {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Ccircle cx='32' cy='32' r='20' stroke='%23373838' stroke-width='1.8'/%3E%3Ccircle cx='32' cy='32' r='12' stroke='%23373838' stroke-width='1.8'/%3E%3Ccircle cx='32' cy='32' r='4' fill='%23FFBB10'/%3E%3Cpath d='M32 12V52M12 32H52' stroke='%23373838' stroke-width='1.8'/%3E%3C/svg%3E");
}

body.algorithm-dealers-page .dealers-advantage-card__icon--crm {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Crect x='14' y='14' width='16' height='16' rx='2' stroke='%23373838' stroke-width='1.8'/%3E%3Crect x='34' y='14' width='16' height='16' rx='2' stroke='%23373838' stroke-width='1.8'/%3E%3Crect x='14' y='34' width='16' height='16' rx='2' stroke='%23FFBB10' stroke-width='1.8'/%3E%3Cpath d='M18 42L22 38L26 42' stroke='%23FFBB10' stroke-width='1.6'/%3E%3Crect x='34' y='34' width='16' height='16' rx='2' stroke='%23373838' stroke-width='1.8'/%3E%3C/svg%3E");
}

body.algorithm-dealers-page .dealers-advantage-card__icon--marketing {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M32 10C24 18 20 28 20 38V48L26 44L32 54L38 44L44 48V38C44 28 40 18 32 10Z' stroke='%23373838' stroke-width='1.8'/%3E%3Ccircle cx='32' cy='30' r='5' stroke='%23FFBB10' stroke-width='1.8'/%3E%3Cpath d='M24 48L18 54M40 48L46 54' stroke='%23373838' stroke-width='1.8'/%3E%3Cpath d='M28 54H36' stroke='%23FFBB10' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* Questionnaire */
.dealers-questionnaire__shell {
	border-radius: var(--radius-lg);
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: #fff;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
	padding: clamp(20px, 2.5vw, 32px);
	box-sizing: border-box;
}

.dealers-questionnaire__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
	gap: clamp(20px, 2.5vw, 32px);
	align-items: stretch;
}

.dealers-questionnaire__main {
	min-width: 0;
}

.dealers-questionnaire__stages {
	overflow: hidden;
}

.dealers-questionnaire__track {
	display: flex;
	width: 200%;
	transform: translateX(0);
	transition: transform 0.48s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
	will-change: transform;
}

.dealers-questionnaire__stages.is-success .dealers-questionnaire__track {
	transform: translateX(-50%);
}

.dealers-questionnaire__stage {
	flex: 0 0 50%;
	width: 50%;
	min-width: 0;
}

.dealers-questionnaire__stage--form {
	display: flex;
	flex-direction: column;
}

.dealers-questionnaire__stage--form .dealers-order-form {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.dealers-questionnaire__stage--form .dealers-order-form form {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.dealers-questionnaire .cart-island-form__title {
	text-align: center;
}

.dealers-questionnaire .dealers-order-form.cart-order-form {
	width: 100%;
	max-width: none;
	min-height: 0;
}

.dealers-questionnaire .dealers-order-form form {
	width: 100%;
}

.dealers-questionnaire__stage--form .cart-island-form__consent {
	margin-top: auto;
}

.dealers-order-form__section-label {
	margin: 20px 0 12px;
	padding: 0;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.35;
	text-align: center;
	color: var(--grafit-secon-text);
	text-transform: none;
}

.dealers-order-form__section-label:first-of-type {
	margin-top: 0;
}

.dealers-order-form-row {
	display: flex;
	gap: 12px;
}

.dealers-order-form-row--legal {
	margin-top: 12px;
}

.dealers-order-form-row .cart-field-wrap {
	flex: 1 1 0;
	min-width: 0;
}

.dealers-order-form-row input[type="text"],
.dealers-order-form-row input[type="tel"],
.dealers-order-form-row input[type="email"] {
	width: 100% !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 999px !important;
	background: #fff !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	box-sizing: border-box !important;
	font-family: var(--font-family) !important;
	font-weight: 500 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	color: var(--grafit-black) !important;
	outline: none;
	transition:
		box-shadow 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.dealers-order-form-row input::placeholder {
	color: var(--grafit-secon-text) !important;
}

.dealers-order-form-row input:hover {
	box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
}

.dealers-order-form-row input:focus {
	border-color: #d2d5da !important;
	box-shadow: 0 2px 10px rgba(32, 33, 36, 0.14);
	background: #fff !important;
}

.dealers-questionnaire__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(20px, 2.5vw, 28px);
	min-height: clamp(320px, 34vw, 420px);
	padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 20px);
	text-align: center;
	box-sizing: border-box;
}

.dealers-questionnaire__success-title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(22px, 2.8vw, 32px);
	line-height: 1.25;
	color: var(--grafit-black);
}

.dealers-questionnaire__success-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(100%, 280px);
	text-decoration: none;
}

/* Conditions sidebar */
.dealers-conditions {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(16px, 2vw, 24px);
	padding: clamp(20px, 2.5vw, 28px);
	border-radius: clamp(16px, 2vw, 24px);
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: #f8f8f8;
	box-sizing: border-box;
	min-height: 100%;
	height: 100%;
}

.dealers-conditions__header {
	flex-shrink: 0;
	text-align: center;
}

.dealers-conditions__title {
	margin: 0;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: clamp(15px, 1.6vw, 18px);
	line-height: 1.35;
	color: var(--grafit-black);
}

.dealers-conditions__list {
	margin: 0;
	padding: 0;
	list-style: none;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	gap: clamp(12px, 1.5vw, 18px);
	min-height: 0;
}

.dealers-conditions__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dealers-conditions__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.dealers-conditions__text {
	font-family: var(--font-family);
	font-size: clamp(13px, 1.3vw, 15px);
	line-height: 1.4;
	color: var(--grafit-secon-text);
}

body.algorithm-dealers-page .dealers-conditions__icon--experience {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36' fill='none'%3E%3Cpath d='M6 28V14L18 8L30 14V28H6Z' stroke='%23373838' stroke-width='1.4'/%3E%3Cpath d='M12 28V20H24V28' stroke='%23FFBB10' stroke-width='1.4'/%3E%3Ccircle cx='18' cy='16' r='3' stroke='%23373838' stroke-width='1.4'/%3E%3C/svg%3E");
}

body.algorithm-dealers-page .dealers-conditions__icon--warehouse {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36' fill='none'%3E%3Cpath d='M4 16L18 8L32 16V30H4V16Z' stroke='%23373838' stroke-width='1.4'/%3E%3Crect x='12' y='20' width='12' height='10' stroke='%23FFBB10' stroke-width='1.4'/%3E%3C/svg%3E");
}

body.algorithm-dealers-page .dealers-conditions__icon--website {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36' fill='none'%3E%3Ccircle cx='18' cy='18' r='14' stroke='%23373838' stroke-width='1.4'/%3E%3Cpath d='M4 18H32M18 4C12 12 12 24 18 32C24 24 24 12 18 4Z' stroke='%23FFBB10' stroke-width='1.4'/%3E%3C/svg%3E");
}

body.algorithm-dealers-page .dealers-conditions__icon--office {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36' fill='none'%3E%3Crect x='8' y='10' width='20' height='22' stroke='%23373838' stroke-width='1.4'/%3E%3Cpath d='M14 16H22M14 22H22M14 28H18' stroke='%23FFBB10' stroke-width='1.4'/%3E%3Ccircle cx='26' cy='12' r='4' stroke='%23373838' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 1100px) {
	.dealers-partnership__shell {
		grid-template-columns: 1fr;
	}

	.dealers-partnership__advantages {
		min-height: 0;
	}

	.dealers-partnership__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(3, minmax(clamp(120px, 11vw, 136px), auto));
		flex: 0 1 auto;
	}
}

@media (max-width: 900px) {
	.dealers-questionnaire__grid {
		grid-template-columns: 1fr;
	}

	.dealers-order-form-row {
		flex-direction: column;
	}
}

@media (max-width: 600px) {
	.dealers-partnership__grid {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-rows: minmax(128px, auto);
	}

	.dealers-advantage-card {
		min-height: 128px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dealers-questionnaire__track,
	.dealers-advantage-card,
	.dealers-advantage-card__icon,
	.dealers-advantage-card__info {
		transition: none;
	}

	.dealers-advantage-card:hover .dealers-advantage-card__icon,
	.dealers-advantage-card:focus-within .dealers-advantage-card__icon,
	.dealers-advantage-card.is-expanded .dealers-advantage-card__icon,
	.dealers-advantage-card:hover .dealers-advantage-card__info,
	.dealers-advantage-card:focus-within .dealers-advantage-card__info,
	.dealers-advantage-card.is-expanded .dealers-advantage-card__info {
		transform: none;
		opacity: 1;
	}
}
