/**
 * Страница «Погрузка, доставка» — liquid-glass в духе «Архитекторам».
 */

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

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

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

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

body.algorithm-load-delivery-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 */
.load-delivery-hero .first-screen-slide {
	display: flex;
	border-radius: var(--island-radius);
	overflow: hidden;
}

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

.load-delivery-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);
}

.load-delivery-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);
}

.load-delivery-hero .first-screen-slide-bg {
	object-fit: cover;
	object-position: center;
}

/* Conditions */
.load-delivery-conditions > .home-section-title {
	margin-bottom: clamp(16px, 2vw, 24px);
	text-align: center;
}

.load-delivery-conditions__shell {
	padding: clamp(16px, 2vw, 24px);
	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;
}

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

.load-delivery-conditions__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 28px);
}

.load-delivery-condition-card {
	display: flex;
	align-items: flex-start;
	gap: clamp(12px, 1.5vw, 16px);
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
}

.load-delivery-condition-card__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.load-delivery-condition-card__body {
	min-width: 0;
}

.load-delivery-condition-card__title {
	margin: 0 0 6px;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: clamp(14px, 1.4vw, 16px);
	line-height: 1.35;
	color: var(--grafit-black);
}

.load-delivery-condition-card__text {
	margin: 0;
	font-family: var(--font-family);
	font-size: clamp(13px, 1.3vw, 14px);
	line-height: 1.45;
	color: var(--grafit-secon-text);
}

body.algorithm-load-delivery-page .load-delivery-condition-card__icon--schedule {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 15H17' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M7 18H17' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M7 21H17' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M17 21V12H7V21' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M10 9H14' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M21 8L12 3L3 8V21H21V8Z' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.algorithm-load-delivery-page .load-delivery-condition-card__icon--placement {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M16.5 13H19.5C20.8807 13 22 11.8807 22 10.5V5.5C22 4.11929 20.8807 3 19.5 3H13.5C12.1193 3 11 4.11929 11 5.5V8' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3Crect x='2' y='11' width='11' height='10' rx='2.5' stroke='%23373838' stroke-width='1.5'/%3E%3Cpath d='M21.5 18.5H16.5M19.5 20.5L21.5 18.5L19.5 16.5' stroke='%23FFBB10' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.algorithm-load-delivery-page .load-delivery-condition-card__icon--time {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8.55691 3.68696C13.1479 1.78496 18.4109 3.96596 20.3129 8.55696C22.2149 13.148 20.0339 18.411 15.4429 20.313C10.8519 22.215 5.58891 20.034 3.68691 15.443C1.78591 10.852 3.96591 5.58896 8.55691 3.68696' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M11.7188 7.98499V12.636L15.3747 14.865' stroke='%23FFBB10' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.algorithm-load-delivery-page .load-delivery-condition-card__icon--agreement {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7.5 3V6M16.5 3V6' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3' stroke='%23373838' stroke-width='1.5'/%3E%3Cpath d='M8.5 11.5H7.5M12.5 11.5H11.5M16.5 11.5H15.5' stroke='%23FFBB10' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

body.algorithm-load-delivery-page .load-delivery-condition-card__icon--kit {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M19 21H14C12.895 21 12 20.105 12 19V14C12 12.895 12.895 12 14 12H19C20.105 12 21 12.895 21 14V19C21 20.105 20.105 21 19 21Z' stroke='%23373838' stroke-width='1.5'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10 21H5C3.895 21 3 20.105 3 19V14C3 12.895 3.895 12 5 12H10C11.105 12 12 12.895 12 14V19C12 20.105 11.105 21 10 21Z' stroke='%23373838' stroke-width='1.5'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M14.5 12H9.5C8.395 12 7.5 11.105 7.5 10V5C7.5 3.895 8.395 3 9.5 3H14.5C15.605 3 16.5 3.895 16.5 5V10C16.5 11.105 15.605 12 14.5 12Z' stroke='%23FFBB10' stroke-width='1.5'/%3E%3C/svg%3E");
}

body.algorithm-load-delivery-page .load-delivery-condition-card__icon--method {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M19.5961 12.411L13.9081 13.935C12.8981 14.206 11.8601 13.606 11.5891 12.596L10.0651 6.90797C9.79409 5.89797 10.3941 4.85997 11.4041 4.58897L17.0921 3.06497C18.1021 2.79397 19.1401 3.39397 19.4111 4.40397L20.9351 10.092C21.2061 11.102 20.6061 12.14 19.5961 12.411V12.411Z' stroke='%23373838' stroke-width='1.5'/%3E%3Ccircle cx='9.75' cy='18.25' r='2.75' stroke='%23FFBB10' stroke-width='1.5'/%3E%3Cpath d='M21.5502 15.11L12.4102 17.55' stroke='%23373838' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Map */
.load-delivery-map__shell {
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

body.algorithm-load-delivery-page .load-delivery-map .algorithm-contact-map {
	display: block;
	width: 100%;
	min-height: clamp(280px, 40vw, 500px);
	height: clamp(280px, 40vw, 500px);
	border: 0;
	border-radius: 0;
}

/* Questionnaire */
.load-delivery-questionnaire__head {
	margin-bottom: clamp(16px, 2vw, 24px);
	text-align: center;
}

.load-delivery-questionnaire__lead {
	margin: clamp(8px, 1vw, 12px) 0 0;
	font-family: var(--font-family);
	font-size: clamp(14px, 1.5vw, 16px);
	line-height: 1.45;
	color: var(--grafit-secon-text);
}

.load-delivery-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;
}

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

.load-delivery-questionnaire__main {
	min-width: 0;
}

.load-delivery-questionnaire__visual {
	display: flex;
	align-items: stretch;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.load-delivery-questionnaire__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.load-delivery-questionnaire__stages {
	overflow: hidden;
}

.load-delivery-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;
}

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

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

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

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

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

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

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

.load-delivery-questionnaire .load-delivery-form__field--message {
	margin-top: 12px;
}

.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea {
	width: 100%;
	min-height: 88px;
	max-height: none;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 20px;
	background: #fff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	box-sizing: border-box;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.4;
	color: var(--grafit-black);
	resize: none;
	outline: none;
	transition:
		box-shadow 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea.cart-field--required,
.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea.cart-field--required.cart-field--filled {
	border-color: rgba(0, 0, 0, 0.08) !important;
}

.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea::placeholder {
	color: var(--grafit-secon-text);
}

.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea:hover {
	box-shadow: 0 1px 6px rgba(32, 33, 36, 0.1);
}

.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea:focus,
.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea.cart-field--required:focus {
	border-color: #d2d5da !important;
	box-shadow: 0 2px 10px rgba(32, 33, 36, 0.14) !important;
	background: #fff;
}

.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea.cart-field--filled,
.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea.cart-field--required.cart-field--filled {
	border-color: rgba(0, 0, 0, 0.08) !important;
}

.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea.cart-field--filled:focus,
.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea.cart-field--required.cart-field--filled:focus {
	border-color: #d2d5da !important;
	box-shadow: 0 2px 10px rgba(32, 33, 36, 0.14) !important;
}

.load-delivery-questionnaire .load-delivery-order-form .cart-field-wrap textarea.cart-field--invalid {
	border-color: var(--form-error-border);
	box-shadow: 0 0 0 2px var(--form-error-ring);
}

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

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

.load-delivery-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);
}

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

/* Responsive */
@media (max-width: 1100px) {
	.load-delivery-conditions__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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

	.load-delivery-questionnaire__visual {
		max-height: 220px;
	}
}

@media (max-width: 767px) {
	.load-delivery-conditions__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.load-delivery-conditions__shell {
		padding: 12px;
	}

	.load-delivery-conditions__grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		gap: 12px;
		padding-bottom: 4px;
	}

	.load-delivery-conditions__grid::-webkit-scrollbar {
		display: none;
	}

	.load-delivery-condition-card {
		flex: 0 0 min(85vw, 300px);
		scroll-snap-align: start;
	}
}
