/**
 * Комплекты: конструктор, карточки, страница комплекта.
 */

/* Конструктор */
.ekl .ekl-kit-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
	gap: 28px;
	align-items: start;
}

.ekl .ekl-kit-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.ekl .ekl-kit-quick .chip {
	border: 1px solid var(--line, #DBE3EC);
	background: #fff;
	color: #3A4A5E;
	cursor: pointer;
}

.ekl .ekl-kit-quick .chip.active {
	background: var(--navy, #08222B);
	border-color: var(--navy, #08222B);
	color: #fff;
}

.ekl .ekl-kit-searchbox {
	position: relative;
	margin-bottom: 16px;
}

.ekl .ekl-kit-searchbox input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #D6DEE8;
	border-radius: 9px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: #1E3240;
}

.ekl .ekl-kit-searchbox input:focus {
	outline: none;
	border-color: var(--cyan, #0AA2C0);
	box-shadow: 0 0 0 3px rgba(10, 162, 192, .14);
}

.ekl .ekl-kit-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 30;
	max-height: 340px;
	overflow: auto;
	padding: 6px;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(8, 34, 43, .16);
}

.ekl .ekl-kit-result {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.ekl .ekl-kit-result:hover {
	background: #F2F5F9;
}

.ekl .ekl-kit-result img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border: 1px solid #E1E8F0;
	border-radius: 6px;
	background: #F7F9FC;
}

.ekl .ekl-kit-result-info {
	min-width: 0;
	display: grid;
	gap: 2px;
}

.ekl .ekl-kit-result-info b {
	font-size: 13px;
	line-height: 1.35;
	color: #08222B;
}

.ekl .ekl-kit-result-info small {
	font-size: 12px;
	color: #6B7C90;
}

.ekl .ekl-kit-empty-result {
	padding: 12px;
	font-size: 13px;
	color: #6B7C90;
}

.ekl .ekl-kit-items {
	display: grid;
	gap: 10px;
}

.ekl .ekl-kit-item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 84px 100px auto;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 10px;
	background: #fff;
}

.ekl .ekl-kit-item img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border: 1px solid #E1E8F0;
	border-radius: 8px;
	background: #F7F9FC;
}

.ekl .ekl-kit-item-info {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.ekl .ekl-kit-item-info a {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: #08222B;
	text-decoration: none;
}

.ekl .ekl-kit-item-info small {
	font-size: 12px;
	color: #6B7C90;
}

.ekl .ekl-kit-item-qty {
	display: grid;
	gap: 3px;
	font-size: 11px;
	color: #6B7C90;
}

.ekl .ekl-kit-item-qty input {
	width: 100%;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #D6DEE8;
	border-radius: 8px;
	font: inherit;
	font-size: 13px;
	text-align: center;
}

.ekl .ekl-kit-item-sum {
	font-size: 13.5px;
	font-weight: 600;
	color: #08222B;
	text-align: right;
	white-space: nowrap;
}

.ekl .ekl-kit-item-tools {
	display: grid;
	gap: 4px;
	justify-items: end;
}

.ekl .ekl-kit-compare {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cyan-d, #0C7C93);
	font: inherit;
	font-size: 11.5px;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ekl .ekl-kit-compare.is-active {
	color: #08222B;
}

.ekl .ekl-kit-remove {
	width: 26px;
	height: 26px;
	border: 1px solid #E1E8F0;
	border-radius: 50%;
	background: #fff;
	color: #6B7C90;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.ekl .ekl-kit-remove:hover {
	color: #A12626;
	border-color: #E7B4B4;
}

.ekl .ekl-kit-empty {
	margin: 6px 0 0;
	font-size: 13.5px;
	color: #6B7C90;
}

.ekl .ekl-kit-summary {
	position: sticky;
	top: 20px;
	padding: 20px;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 14px;
	background: #F7F9FC;
}

.ekl .ekl-kit-summary h2 {
	margin: 0 0 14px;
	font-size: 18px;
	color: #08222B;
}

.ekl .ekl-kit-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--line, #DBE3EC);
}

.ekl .ekl-kit-total span {
	font-size: 13px;
	color: #6B7C90;
}

.ekl .ekl-kit-total strong {
	font-size: 25px;
	color: #08222B;
	white-space: nowrap;
}

.ekl .ekl-kit-note {
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.45;
	color: #6B7C90;
}

.ekl .ekl-kit-summary .btn {
	width: 100%;
	justify-content: center;
	margin-bottom: 8px;
}

.ekl .ekl-kit-request.is-attention {
	border-color: #F2B01E;
	color: #7A5A10;
	background: #FFF9E8;
}

.ekl .ekl-kit-form {
	display: grid;
	gap: 8px;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line, #DBE3EC);
}

.ekl .ekl-kit-form label {
	font-size: 12.5px;
	font-weight: 600;
	color: #3A4A5E;
}

.ekl .ekl-kit-form label small {
	font-weight: 400;
	color: #6B7C90;
}

.ekl .ekl-kit-form input[type="text"],
.ekl .ekl-kit-form input[type="tel"],
.ekl .ekl-kit-form input[type="email"] {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #D6DEE8;
	border-radius: 9px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: #1E3240;
}

.ekl .ekl-kit-form input:focus {
	outline: none;
	border-color: var(--cyan, #0AA2C0);
	box-shadow: 0 0 0 3px rgba(10, 162, 192, .14);
}

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

.ekl .ekl-kit-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: #6B7C90;
}

.ekl .ekl-kit-consent a {
	color: var(--cyan-d, #0C7C93);
}

.ekl .ekl-kit .ekl-review-msg {
	padding: 10px 14px;
	border-radius: 9px;
	font-size: 13.5px;
	line-height: 1.45;
	margin-bottom: 16px;
}

.ekl .ekl-kit .ekl-review-msg.ok {
	background: #E8F7EF;
	color: #1B7A45;
}

.ekl .ekl-kit .ekl-review-msg.err {
	background: #FDECEC;
	color: #A12626;
}

/* Карточки комплектов */
.ekl .kit-featured {
	margin: 32px 0;
	padding: 22px;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 16px;
	background: #F7F9FC;
}

.ekl .kit-featured-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.ekl .kit-featured-head h2 {
	margin: 0;
	font-size: 20px;
	color: #08222B;
}

.ekl .kit-featured-head a {
	font-size: 13px;
	color: var(--cyan-d, #0C7C93);
	text-decoration: none;
}

.ekl .kit-featured .kits-grid {
	grid-template-columns: minmax(0, 420px);
}

.ekl .kits-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.ekl .kit-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: .15s;
}

.ekl .kit-card:hover {
	box-shadow: var(--shadow, 0 12px 30px rgba(8, 34, 43, .1));
	border-color: #C8D6E5;
	transform: translateY(-2px);
}

.ekl .kit-card-image {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #EDF2F7, #DCE7F1);
}

.ekl .kit-card-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.ekl .kit-card-placeholder {
	color: #93A8BD;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ekl .kit-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	flex: 1;
}

.ekl .kit-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 11px;
}

.ekl .kit-badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: #FFF1D6;
	color: #7A5A10;
	font-weight: 600;
}

.ekl .kit-object {
	padding: 2px 8px;
	border-radius: 999px;
	background: #EEF2F6;
	color: #3A4A5E;
}

.ekl .kit-card h3 {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
}

.ekl .kit-card h3 a {
	color: #08222B;
	text-decoration: none;
}

.ekl .kit-card-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
	font-size: 12.5px;
	color: #3A4A5E;
}

.ekl .kit-card-items li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.ekl .kit-card-items b {
	color: #6B7C90;
	font-weight: 500;
	white-space: nowrap;
}

.ekl .kit-card-items .kit-more {
	color: #6B7C90;
}

.ekl .kit-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--line, #DBE3EC);
}

.ekl .kit-card-price {
	font-size: 15px;
	font-weight: 700;
	color: #08222B;
}

.ekl .kit-card-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ekl .kit-card-actions .btn {
	padding: 8px 12px;
	font-size: 13px;
}

.ekl .kit-customize {
	font-size: 12.5px;
	color: var(--cyan-d, #0C7C93);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Страница комплекта */
.ekl .kit-single-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 28px;
	align-items: start;
	margin-bottom: 28px;
}

.ekl .kit-single-image {
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 12px;
	background: linear-gradient(135deg, #EDF2F7, #DCE7F1);
	display: grid;
	place-items: center;
	min-height: 260px;
	overflow: hidden;
}

.ekl .kit-single-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.ekl .kit-single h1 {
	margin: 6px 0 10px;
	font-size: 26px;
}

.ekl .kit-single-price {
	font-size: 24px;
	font-weight: 700;
	color: #08222B;
	margin: 10px 0;
}

.ekl .kit-single-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.ekl .kit-single-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--line, #DBE3EC);
	border-radius: 12px;
	overflow: hidden;
	margin-top: 10px;
}

.ekl .kit-single-table th,
.ekl .kit-single-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line, #DBE3EC);
	font-size: 13.5px;
	text-align: left;
}

.ekl .kit-single-table th {
	background: #F7F9FC;
	color: #6B7C90;
	font-weight: 500;
}

.ekl .kit-single-table td:last-child,
.ekl .kit-single-table th:last-child {
	text-align: right;
}

.ekl .kit-single-table tfoot td {
	font-weight: 700;
	color: #08222B;
}

.ekl .ekl-kit .ekl-toast,
.ekl .kit-card .ekl-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	padding: 14px 16px;
	background: #08222B;
	color: #fff;
	border-radius: 12px;
	font-size: 13.5px;
	box-shadow: 0 18px 44px rgba(8, 34, 43, .3);
	opacity: 0;
	transform: translateY(14px);
	transition: .2s;
	z-index: 200;
}

.ekl .ekl-kit .ekl-toast.is-visible,
.ekl .kit-card .ekl-toast.is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 1024px) {
	.ekl .ekl-kit-grid,
	.ekl .kit-single-hero {
		grid-template-columns: 1fr;
	}

	.ekl .ekl-kit-summary {
		position: static;
	}

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

@media (max-width: 640px) {
	.ekl .kits-grid {
		grid-template-columns: 1fr;
	}

	.ekl .ekl-kit-item {
		grid-template-columns: 48px minmax(0, 1fr) auto;
	}

	.ekl .ekl-kit-item img {
		width: 48px;
		height: 48px;
	}

	.ekl .ekl-kit-item-qty {
		grid-column: 2;
	}

	.ekl .ekl-kit-item-sum {
		text-align: left;
	}
}

@media print {
	.ekl .topbar,
	.ekl header.site,
	.ekl footer.site,
	.ekl .breadcrumbs,
	.ekl .kit-single-actions,
	.ekl .ekl-kit-summary,
	.ekl .ekl-mobile,
	.ekl .to-top {
		display: none !important;
	}

	.ekl .kit-single-hero {
		grid-template-columns: 220px 1fr;
	}

	.ekl .kit-single-table {
		font-size: 12px;
	}
}

