/* okna 20261127f: компактные ползунки, CAD в меню, замер, color picker */

.okna-filter__range {
	display: grid !important;
	grid-template-columns: 1fr 10px 1fr;
	gap: 4px 6px;
	align-items: center;
	width: 100%;
}
.okna-filter__range input[type="number"] {
	width: 100%;
	height: 32px;
	padding: 0 8px;
	border: 1px solid #e0e0e2;
	border-radius: 8px;
	background: #fff;
	font: 600 13px/1 Manrope, sans-serif;
	color: var(--dark, #3e3e40);
	-moz-appearance: textfield;
	appearance: textfield;
}
.okna-filter__range input[type="number"]::-webkit-outer-spin-button,
.okna-filter__range input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.okna-filter__range input[type="number"]:focus {
	outline: none;
	border-color: var(--accent, #ff4545);
	box-shadow: 0 0 0 3px rgba(255, 69, 69, .16);
}
/* custom dual thumbs — native range thumbs are unreliable when stacked */
.okna-filter__sliders {
	grid-column: 1 / -1;
	position: relative;
	height: 24px;
	margin: 4px 0 2px;
	width: 100%;
	flex: 1 0 100%;
	order: 4;
	overflow: visible;
}
.okna-filter__track {
	position: absolute;
	left: 8px; right: 8px; top: 10px;
	height: 4px;
	border-radius: 999px;
	background: #e6e6e8;
	pointer-events: none;
}
.okna-filter__fill {
	position: absolute;
	top: 0; height: 100%;
	left: var(--p1, 0%);
	width: calc(var(--p2, 100%) - var(--p1, 0%));
	border-radius: 999px;
	background: var(--accent, #ff4545);
}
.okna-filter__thumb {
	position: absolute;
	top: 4px;
	width: 16px; height: 16px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--accent, #ff4545);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(62, 62, 64, .22);
	cursor: pointer;
	z-index: 2;
	transform: translateX(-50%);
	left: calc(8px + (100% - 16px) * var(--p, 0) / 100);
}
.okna-filter__thumb.is-max { z-index: 3; }
.okna-filter__thumb:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 69, 69, .2); }

.naves-cad { width: 100%; height: auto; display: block; background: #f7f7f8; }
.js-naves-svg { min-height: 240px; }
.okna-pd__visual .js-naves-svg { border: 1px solid #e6e6e8; border-radius: 12px; overflow: hidden; background: #f7f7f8; }

.naves-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.naves-sizes .chip.is-active,
.naves-sizes [data-oid].is-active {
	background: var(--dark, #3e3e40);
	color: #fff;
	border-color: var(--dark, #3e3e40);
}


.main-nav__sub.mega .mega__grid--purpose .mega__item--cad {
	align-items: center;
}
.main-nav__sub.mega.mega--catalog .mega__grid--purpose .mega__pic {
	width: 140px !important;
	height: 92px !important;
	flex: 0 0 140px !important;
	background: #f7f7f8 !important;
	border: 1px solid #e6e6e8 !important;
	border-radius: 8px !important;
	overflow: hidden;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}
.main-nav__sub.mega.mega--catalog .mega__grid--purpose .mega__pic svg,
.main-nav__sub.mega.mega--catalog .mega__grid--purpose .mega__cad,
.main-nav__sub.mega.mega--catalog .mega__grid--purpose .naves-cad {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	background: #f7f7f8;
}

.naves-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.naves-colors .naves-swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 12px 0 8px;
	border-radius: 999px;
	border: 1px solid #e0e0e2;
	background: #fff;
	color: var(--dark, #3e3e40);
	font: 600 13px/1 Manrope, sans-serif;
	cursor: pointer;
}
.naves-colors .naves-swatch i {
	width: 22px; height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(62,62,64,.25);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.naves-colors .naves-swatch small { color: #8a8a8c; font-weight: 600; }
.naves-colors .naves-swatch.is-active {
	border-color: var(--accent, #ff4545);
	box-shadow: 0 0 0 3px rgba(255, 69, 69, .16);
}

.naves-own {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.naves-own__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 14px 0 8px;
	border-radius: 999px;
	border: 1px dashed #c8c8ca;
	background: #fff;
	color: var(--dark, #3e3e40);
	cursor: pointer;
	font: inherit;
}
.naves-own.is-active .naves-own__open,
.naves-own.is-open .naves-own__open {
	border-color: var(--accent, #ff4545);
	border-style: solid;
	box-shadow: 0 0 0 3px rgba(255, 69, 69, .16);
}
.naves-own__swatch,
.naves-picker__live {
	width: 22px; height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(62,62,64,.25);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
	display: inline-block;
	flex: 0 0 auto;
}
.naves-own__lbl { font: 600 13px/1 Manrope, sans-serif; color: var(--dark, #3e3e40); white-space: nowrap; }

.naves-picker {
	position: absolute;
	z-index: 40;
	top: auto;
	bottom: calc(100% + 10px);
	left: 0;
	width: 260px;
	padding: 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e6e6e8;
	box-shadow: 0 16px 40px rgba(46, 46, 48, .18);
}
.naves-picker__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.naves-picker__live {
	width: 36px; height: 36px;
	border-radius: 10px;
	flex: 0 0 36px;
	border: 1px solid rgba(62,62,64,.2);
}
.naves-picker__head input {
	flex: 1;
	height: 36px;
	padding: 0 10px;
	border: 1px solid #e0e0e2;
	border-radius: 8px;
	font: 600 13px/1 "IBM Plex Mono", ui-monospace, Manrope, sans-serif;
	letter-spacing: .02em;
	color: var(--dark, #3e3e40);
	text-transform: uppercase;
}
.naves-picker__head input:focus {
	outline: none;
	border-color: var(--accent, #ff4545);
	box-shadow: 0 0 0 3px rgba(255, 69, 69, .16);
}
.naves-picker__sv {
	position: relative;
	height: 148px;
	border-radius: 10px;
	overflow: hidden;
	cursor: crosshair;
	border: 1px solid #e6e6e8;
}
.naves-picker__sv canvas { display: block; width: 100%; height: 100%; }
.naves-picker__dot {
	position: absolute;
	width: 14px; height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(62,62,64,.45), 0 2px 6px rgba(46,46,48,.3);
	pointer-events: none;
}
.naves-picker__hue {
	position: relative;
	height: 14px;
	margin-top: 10px;
	border-radius: 999px;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid #e6e6e8;
}
.naves-picker__hue canvas { display: block; width: 100%; height: 100%; }
.naves-picker__hue-thumb {
	position: absolute;
	top: 50%;
	width: 16px; height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--dark, #3e3e40);
	box-shadow: 0 1px 4px rgba(46,46,48,.3);
	pointer-events: none;
}
.naves-picker__rals {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}
.naves-picker__ral {
	width: 22px; height: 22px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(62,62,64,.25);
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.naves-picker__ral:hover,
.naves-picker__ral.is-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent, #ff4545);
}

.zamer-time { display: flex; flex-direction: column; gap: 12px; }
.zamer-time__row { display: flex; flex-direction: column; gap: 6px; }
.zamer-time__lbl {
	font: 600 12px/1 Manrope, sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a8a8c;
}
.zamer-time__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.zamer-time__pill {
	height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid #e0e0e2;
	background: #fff;
	color: var(--dark, #3e3e40);
	font: 600 13px/1 Manrope, sans-serif;
	cursor: pointer;
}
.zamer-time__pill:hover { border-color: #c8c8ca; }
.zamer-time__pill.is-active {
	background: var(--dark, #3e3e40);
	border-color: var(--dark, #3e3e40);
	color: #fff;
}
#modal-measure .lead-modal { max-width: 520px; }
#modal-measure .modal-dialog { max-width: 540px; }

@media (max-width: 767.98px) {
	.naves-own { width: 100%; }
	.naves-own__open { width: 100%; }
	.naves-picker { left: 0; right: 0; width: auto; min-width: 240px; }
	.main-nav__sub.mega.mega--catalog .mega__grid--purpose .mega__pic { width: 108px !important; height: 72px !important; flex: 0 0 108px !important; }
}
