.contact-modal-wrapper {
	position: relative;
	width: 50%;
	margin: -20px auto 0 auto;
}

@media only screen and (max-width:1200px) {
	.contact-modal-wrapper {
		width: 90%;
	}
}

.contact-modal {
	position: fixed;
	width: -webkit-calc(100% - 20px);
	width: -moz-calc(100% - 20px);
	width: calc(100% - 20px);
	height: -webkit-calc(100% - 158px, 20px, 20px, 20px);
	height: -moz-calc(100% - 158px, 20px, 20px, 20px);
	height: calc(100% - 158px, 20px, 20px, 20px);
	top: 79px;
	right: 10px;
	bottom: 10px;
	left: 10px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	visibility: hidden;
	background: #fff;
	opacity: 0;
	-moz-opacity: 0;
	-webkit-opacity: 0;
	filter: alpha(opacity=0);
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	-webkit-transform: scale(0.75);
	-moz-transform: scale(0.75);
	-ms-transform: scale(0.75);
	-o-transform: scale(0.75);
	transform: scale(0.75);
	-webkit-transition: all 1s ease;
	-moz-transition: all 1s ease;
	-ms-transition: all 1s ease;
	-o-transition: all 1s ease;
	transition: all 1s ease;
	overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
	z-index: 1005;
}

.contact-modal.close {
	visibility: hidden;
	opacity: 0;
	-moz-opacity: 0;
	-webkit-opacity: 0;
	filter: alpha(opacity=0);
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}

.contact-modal.open {
	width: 100%;
	width: -webkit-calc(100% 0px);
	width: -moz-calc(100% 0px);
	width: calc(100% 0px);
	height: -webkit-calc(100% - 158px, 20px, 20px, 20px);
	height: -moz-calc(100% - 158px, 20px, 20px, 20px);
	height: calc(100% - 158px, 20px, 20px, 20px);
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	visibility: visible;
	background: #f6f7f8;
	opacity: 1;
	-moz-opacity: 1;
	-webkit-opacity: 1;
	filter: alpha(opacity=100);
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
}

@media only screen and (max-width:880px) {

	.contact-modal,
	.contact-modal.open {
		width: 100%;
		height: 100%;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	}
}

.contact-modal-closer {
    position: absolute;
    font-size: 21px;
    color: #2f2f2f;
    cursor: pointer;
    left: 40px;
    top: 35px;
    z-index: 9999;
}

.calc-step-title {
    position: relative;
    font-size: 16px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0.02em;
    text-align: left;
    color: #2e2e2e;
    margin-bottom: -7px;
}

.calc-help {
    display: block;
    text-align: left;
    color: #2e2e2e50;
    font-size: 14px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0.01em;
    margin: 5px;
}

/* Градиентная индикация ошибок, валидности и подсказок калькулятора. */
.calc-help-gradient {
    opacity: 1;
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.calc-help-gradient-error {
    background-image: linear-gradient(to right, #5576d1 50%, #5576d150 50%);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.calc-step[data-step="3"] #w_err, #l_err,
#finalStage[data-step="6"] .calc-grid .calc-help-gradient-error {
    background-image: linear-gradient(to right, #ffffff 50%, #ffffff50 50%);
}

.calc-help-gradient-valid,
.calc-help-gradient-info {
    background-image: linear-gradient(to right, #5576d1 50%, #5576d150 50%);
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.calc-step[data-step="3"] #w_err, #l_err, 
#finalStage[data-step="6"] .calc-grid .calc-help-gradient-valid,
.calc-help-gradient-info {
    background-image: linear-gradient(to right, #ffffff 50%, #ffffff50 50%);
}

.calc-help-gradient-active {
    animation: calcHelpGradientFill 2s ease forwards;
}


.calc-header {
    color: #2e2e2e;
    font-size: 21px;
    padding: 15px 30px;
}

.calc-step[data-step="3"],
#finalStage[data-step="6"] .calc-final-contact-grid {
    background: #5576d1;
    padding: 3px 32px 33px;
    border: 1px solid transparent;
    border-radius: 25px;
    box-shadow: 1px 2px 5px #5573c625;
}

.calc-step[data-step="3"] .calc-help,
#finalStage[data-step="6"] .calc-grid .calc-help {
    color: #fff;
}


@keyframes calcHelpGradientFill {
    from {
        background-position: 100% 0;
    }
    to {
        background-position: 0 0;
    }
}

.calc-async-state {
	display: block;
	margin: 16px 0 18px;
}

.calc-async-state.calc-hidden {
	display: none;
}

.calc-async-state__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 16px;
	background: rgba(85, 118, 209, 0.08);
	border: 1px solid rgba(85, 118, 209, 0.16);
}

.calc-async-state.is-error .calc-async-state__inner {
	background: rgba(209, 85, 85, 0.08);
	border-color: rgba(209, 85, 85, 0.16);
}

.calc-async-state__spinner {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
}

.calc-async-state__spinner img {
	display: block;
	width: 100%;
	height: 100%;
}

.calc-async-state__text {
	flex: 1 1 auto;
	color: #2e2e2e;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.03em;
	text-align: left;
}

.calc-async-state__retry {
	flex: 0 0 auto;
	border: none;
	border-radius: 999px;
	padding: 9px 14px;
	background: #5576d1;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.calc-async-state__retry.calc-hidden {
	display: none;
}

.calc-radio.is-loading {
	pointer-events: none;
}

.calc-radio-skeleton {
	display: grid;
	gap: 12px;
}

.calc-radio-skeleton__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 18px;
	background: rgba(85, 118, 209, 0.08);
	border: 1px solid rgba(85, 118, 209, 0.12);
}

.calc-radio-skeleton__dot,
.calc-radio-skeleton__line {
	background: linear-gradient(90deg, rgb(189 189 189 / 21%) 0%, rgb(189 189 189 / 10%) 50%, rgba(85, 118, 209, 0.10) 100%);
	background-size: 220px 100%;
	animation: calcSkeletonShift 3s linear infinite;
}

.calc-radio-skeleton__dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.calc-radio-skeleton__line {
	height: 18px;
	border-radius: 999px;
	flex: 1 1 auto;
}

.calc-radio-skeleton__line--short {
	max-width: 38%;
}

@keyframes calcSkeletonShift {
	0% { background-position: -220px 0; }
	100% { background-position: 220px 0; }
}

@media (max-width: 640px) {
	.calc-async-state__inner {
		flex-wrap: wrap;
	}

	.calc-async-state__retry {
		width: 100%;
	}
}

.calc-progress .txt {
	font-size: 15px;
	white-space: nowrap;
	color: #2e2e2e50;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0.2em;
	transition: font-size 0.15s ease;
}

.calc-progress .txt.is-copyable {
	cursor: pointer;
}

.calc-progress .txt.calc-progress-txt-bump {
	font-size: 16px;
}

/* ------------------------------ */
/* ---------------------------------------------------------------------------
   ДЕМО: как измерять общий размер (шаг 4)
   По умолчанию обе размерные стрелки видны сразу (без анимации).
   Анимация включается только при фокусе на соответствующем инпуте
   (класс is-w / is-l на .calc-dims-demo).
--------------------------------------------------------------------------- */
.calc-dims-demo {
	--demo-rect-w: 300px;
	--demo-rect-h: 150px;
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: -15px;
	margin-bottom: 25px;
	min-height: calc(var(--demo-rect-h) + 64px);
}

.calc-dims-rect {
	width: 65%;
	height: 100%;
	display: block;
}

.calc-dims-rect path {
    fill: #eaecee;
    stroke: #2e2e2e;
    stroke-width: 3px;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* Стрелки видны сразу, без анимации */
.calc-dims-arrow {
	position: absolute;
	opacity: 1;
	pointer-events: none;
	transform-origin: center;
}

.calc-dims-arrow::before {
	content: '';
	position: absolute;
	background: #2e2e2e;
}

/* Подпись размера */
.calc-dims-label {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-size: 16px;
	color: #5576d1;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

#dimsLabelW {
	bottom: 4px;
}

#dimsLabelL {
	top: 50%;
	/* Тот же якорь, что и у стрелки длины (стрелка стоит в -15px от края
	   фигуры) — даём фиксированный отступ -30px, чтобы подпись была
	   стабильно на 15px левее линии стрелки на любой ширине окна. */
	left: calc(50% - (var(--demo-rect-w) / 2) - 30px);
	transform: translate(-50%, -50%) rotate(-90deg);
	transform-origin: center center;
}

/* Горизонтальная (ширина) — снизу */
.calc-dims-arrow-w {
	width: var(--demo-rect-w);
	left: 50%;
	top: calc(50% + (var(--demo-rect-h) / 2) + 5px);
	transform: translateX(-50%);
}

.calc-dims-arrow-w::before {
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	transform: translateY(-50%);
}

.calc-dims-arrow-w .calc-dims-label {
	left: 50%;
	top: -22px;
	transform: translateX(-50%);
}

.calc-dims-arrow-w .calc-dims-head {
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
	opacity: 1;
	transform: translateY(-50%);
}

.calc-dims-arrow-w .head-l {
	left: -2px;
	border-right: 10px solid #2e2e2e;

}

.calc-dims-arrow-w .head-r {
	right: -2px;
	border-left: 10px solid #2e2e2e;
}

.calc-dims-arrow-l {
	height: var(--demo-rect-h);
	top: 50%;
	left: calc(50% - (var(--demo-rect-w) / 2) - 15px);
	transform: translateY(-50%);
}

.calc-dims-arrow-l::before {
	left: 50%;
	top: 0;
	width: 1px;
	height: 100%;
	transform: translateX(-50%);
}

.calc-dims-arrow-l .calc-dims-label {
	top: 50%;
	left: 28px;
	transform: translateY(-50%);
}

.calc-dims-arrow-l .calc-dims-head {
	position: absolute;
	left: 50%;
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	opacity: 1;
	transform: translateX(-50%);
}

.calc-dims-arrow-l .head-t {
	top: -2px;
	border-bottom: 10px solid #2e2e2e;

}

.calc-dims-arrow-l .head-b {
	bottom: -2px;
	border-top: 10px solid #2e2e2e;
}

/* ---------------------------------------------------------------------------
   Мобильная версия: увеличиваем толщины линий/стрелок и размеры подписей,
   чтобы демо-блок размеров (dimsRect и окружение) не выглядел «тонким».
   Десктоп-вид оставляем без изменений.
--------------------------------------------------------------------------- */
@media (max-width: 600px) {
	.calc-dims-demo {
		/* Чуть крупнее схема и комфортнее отступы */
		--demo-rect-w: clamp(200px, 70vw, 400px);
		--demo-rect-h: clamp(130px, 42vw, 260px);
		/* Стрелки делаем чуть длиннее/шире самой фигуры */
		--demo-arrow-w: calc(var(--demo-rect-w) + 30px);
		--demo-arrow-h: calc(var(--demo-rect-h) + 20px);
		margin-top: -5px;
		margin-bottom: 30px;
		min-height: calc(var(--demo-rect-h) + 84px);
	}

	.calc-dims-rect {
		width: 100%;
	}

	.calc-dims-rect path {
		/* Толщина контура фигуры (в 2 раза толще, чем на десктопе: 3px -> 6px) */
		stroke-width: 6;
	}

	.calc-dims-label {
		font-size: 15px;
		letter-spacing: 0.04em;
	}

	/* Линии стрелок делаем толще */
	.calc-dims-arrow-w::before,
	.calc-dims-arrow-l::before {
		height: 2px;
	}

	.calc-dims-arrow-l::before {
		width: 2px;
		height: 100%;
	}

	/*
    На мобильных стрелки не должны "залезать" на фигуру.
    Поэтому уводим их чуть дальше от dimsRect.
  */
	.calc-dims-arrow-w {
		width: var(--demo-arrow-w);
		top: calc(50% + (var(--demo-rect-h) / 2) + 15px);
	}

	.calc-dims-arrow-l {
		height: var(--demo-arrow-h);
		left: calc(50% - (var(--demo-rect-w) / 2) - 35px);
	}

	/* Наконечники стрелок — крупнее */
	.calc-dims-arrow-w .calc-dims-head {
		border-top: 5px solid transparent;
		border-bottom: 5px solid transparent;
	}

	.calc-dims-arrow-w .head-l {
		border-right-width: 14px;
		left: -4px;
	}

	.calc-dims-arrow-w .head-r {
		border-left-width: 14px;
		right: -4px;
	}

	.calc-dims-arrow-l .calc-dims-head {
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
	}

	.calc-dims-arrow-l .head-t {
		border-bottom-width: 14px;
		top: -4px;
	}

	.calc-dims-arrow-l .head-b {
		border-top-width: 14px;
		bottom: -4px;
	}

	/*
    Подписи размеров (они отдельными div вне стрелок).
    Жёсткие bottom/left в мобильной версии дают "сползание" относительно стрелок,
    поэтому привязываем позиции к тем же CSS-переменным, что используются у стрелок.
  */
	#dimsLabelW {
		bottom: auto;
		top: calc(50% + (var(--demo-rect-h) / 2) + 20px);
	}

	#dimsLabelL {
		left: calc(50% - (var(--demo-rect-w) / 2) - 50px);
		top: 50%;
		/* Центруем повернутую подпись по собственной середине,
		   чтобы длина текста не сдвигала её на вертикальную стрелку. */
		transform: translate(-50%, -50%) rotate(-90deg);
		transform-origin: center center;
	}
}

/* Анимация: вся стрелка (линия + наконечники + подпись) "растёт" из центра за 2с,
   затем держится 2с и повторяется. */
@keyframes calcDimsPulseX {
	0% {
		transform: translateX(-50%) scaleX(0);
		opacity: 0;
	}

	50% {
		transform: translateX(-50%) scaleX(1);
		opacity: 1;
	}

	100% {
		transform: translateX(-50%) scaleX(1);
		opacity: 1;
	}
}

@keyframes calcDimsPulseY {
	0% {
		transform: translateY(-50%) scaleY(0);
		opacity: 0;
	}

	50% {
		transform: translateY(-50%) scaleY(1);
		opacity: 1;
	}

	100% {
		transform: translateY(-50%) scaleY(1);
		opacity: 1;
	}
}

/* Включаем анимацию только по фокусу на соответствующем инпуте */
.calc-dims-demo.is-w .calc-dims-arrow-w {
	animation: calcDimsPulseX 7s ease-in-out 1 forwards;
}

.calc-dims-demo.is-l .calc-dims-arrow-l {
	animation: calcDimsPulseY 7s ease-in-out 1 forwards;
}

.calc-input {
	width: 100%;
	border: 1px solid rgb(150 150 150);
	box-shadow: 0 0 0 1px rgba(46, 46, 46, 0.18);
	transition: color .18s ease, border-color .18s ease, box-shadow .18s ease;
	padding: 15px 45px 15px 15px;
	outline: none;
	text-align: center;
	color: #2e2e2e;
	font-size: 16px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0.05em;
	height: 3.33em;
	border-radius: 15px;
}

.calc-input option {
	text-align: left;
}

.calc-input:focus {
	border-color: #2e2e2e;
}

#finalStage .calc-input {
	text-align: left;
}

.calc-unit-box {
	position: relative;
}

.calc-unit-native {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #606060 50%), linear-gradient(135deg, #606060 50%, transparent 50%);
	background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 38px;
}

.calc-unit-custom {
	display: none;
	position: relative;
}

.calc-unit-trigger {
    width: 100%;
    height: 3.33em;
    border: 1px solid rgb(150 150 150);
    border-radius: 15px;
    background: #fff;
    padding: 0 16px;
    font-size: 16px;
    color: #2e2e2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.calc-unit-trigger:hover {
	border-color: #7f7f7f;
}

.calc-unit-trigger:focus-visible {
	outline: none;
	border-color: #2e2e2e;
	box-shadow: 0 0 0 3px rgba(46, 46, 46, 0.10);
}

.calc-unit-trigger-text {
	flex: 1 1 auto;
	text-align: center;
	letter-spacing: 0.05em;
}

.calc-unit-trigger-icon {
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-right: 2px solid #5f5f5f;
	border-bottom: 2px solid #5f5f5f;
	transform: rotate(45deg) translateY(-1px);
	transition: transform .2s ease;
}

.calc-unit-box.is-open .calc-unit-trigger {
	border-color: #2e2e2e;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.calc-unit-box.is-open .calc-unit-trigger-icon {
	transform: rotate(-135deg) translate(-1px, -1px);
}

.calc-unit-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    padding: 8px;
    border: 1px solid rgba(46, 46, 46, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
    z-index: 15;
    top: 100%;
}

.calc-unit-box.is-open .calc-unit-menu {
	display: grid;
	gap: 6px;
}

.calc-unit-option {
	width: 100%;
	border: 0;
	border-radius: 12px;
	background: transparent;
	padding: 11px 12px;
	font-size: 15px;
	font-weight: 600;
	color: #2e2e2e;
	text-align: center;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.calc-unit-option:hover,
.calc-unit-option:focus-visible {
	outline: none;
	background: rgba(46, 46, 46, 0.06);
}

.calc-unit-option.is-selected {
	background: #5576d1;
	color: #fff;
}

@media (min-width:654px) {
	.calc-unit-box label[for="unit_in"] {
		visibility: hidden;
	}

	.calc-unit-box .calc-unit-native {
		position: absolute;
		opacity: 0;
		pointer-events: none;
		inset: 0;
	}

	.calc-unit-custom {
		display: block;
	}
}

.calc-step {
	display: none;
}

.calc-step.is-active {
	display: block;
}

.calc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 15px;
}

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

.calc-radio {
	display: flex;
	flex-direction: column;
	gap: 3px;
	text-align: left;
	margin-bottom: -5px;
}

.calc-radio label {
    position: relative;
    background: #fff;
    padding: 21px 25px;
    outline: none;
    color: #2e2e2e;
    font-size: clamp(16px, 1.9vw, 18px);
    font-weight: 300;
    text-transform: none;
    margin: 0px 0px 5px 0px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    box-shadow: 0 3px 10px #2e2e2e10;
    border-radius: 15px;
    gap: 8px;
    border: 1px solid #2e2e2e10;
}

.calc-radio label:hover {
	box-shadow: 0 3px 10px #2e2e2e20;
	border: 1px solid #2e2e2e20;
}

.calc-step[data-step="1"] .calc-radio label {
    padding: 21px 45px 21px 10px;
}

.calc-step[data-step="4"] .calc-radio label:hover {
	box-shadow: 0 3px 10px #2e2e2e10;
    border: 1px solid #2e2e2e10;
}

.calc-radio label:has(input[type="radio"]:checked) {
    background: #5576d1;
    color: #fff;
}

.calc-radio input {
	margin-top: 4px;
}

.calc-steps {
	max-width: 900px;
	margin: 0 auto;
}

.calc-scenario-stage {
	display: none;
}

.calc-scenario-stage__head {
	margin: 0 0 18px 0;
	text-align: left;
}

.calc-scenario-stage__subtitle {
	color: rgba(46, 46, 46, 0.7);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	max-width: 640px;
}

.calc-scenario-grid {
	display: grid;
	grid-template-columns: repeat(2, 444px);
	gap: 16px;
	justify-content: center;
}



.calc-scenario-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 40px;
	background: #fff;
	min-height: 250px;
	text-align: left;
	box-shadow: 0 3px 10px #2e2e2e10;
    border-radius: 15px;
    border: 1px solid #2e2e2e10;
}

.calc-scenario-card-bottom {
  grid-column: 1 / -1;
}

.calc-scenario-card__title {
	color: #2e2e2e;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
}

.calc-scenario-card__text {
    color: rgba(46, 46, 46, 0.72);
    font-weight: 300;
    line-height: 1.6;
    font-size: clamp(16px, 1.9vw, 20px);
}

.calc-scenario-card__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: auto;
	justify-content: center;
}

.calc-scenario-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	border: 1px solid rgba(46, 46, 46, 0.12);
	background: #fff;
	box-shadow: 0 4px 18px rgba(46, 46, 46, 0.08);
	transition: transform .1s ease, box-shadow .1s ease, border-color .1s ease;
}

.calc-scenario-social-link:hover, .calc-scenario-social-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 1px 1px 3px rgb(85 118 209 / 40%);
    border-color: rgb(85 118 209 / 20%);
    outline: none;
}

.calc-scenario-social-link img {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.calc-scenario-card .link-underline {
	display: inline-block;
	width: fit-content;
}

.calc-scenario-card__button {
    align-self: flex-start;
    margin-top: auto;
    height: auto;
}

#calcStartSelf,
#chatOpenModalButton {
    min-width: 100%;
    height: auto;
}

@media (max-width: 820px) {
	.calc-scenario-grid {
		grid-template-columns: 1fr;
	}

	.calc-scenario-card {
		min-height: 0;
	}
}

@media (max-width: 640px) {
	.calc-scenario-card {
		padding: 20px;
		border-radius: 18px;
		min-height: 0;
	}
}

.calc-progress {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0 0 5px 0;
}

.calc-progress .bar {
	flex: 1;
	height: 5px;
	background: #2e2e2e50;
	border-radius: 999px;
	overflow: hidden;
}

.calc-progress .bar>i {
	display: block;
	height: 100%;
	width: 0%;
	background: #2e2e2e;
	transition: width .25s ease;
}

/* Панель серверной корзины калькулятора: не показывается на сценарном экране. */
.calc-cart-toolbar {
	position: fixed;
	top: 28px;
	right: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	margin: 0;
	z-index: 1100;
}

.calc-cart-toolbar__menu-button {
	display: none;
}

.calc-cart-toolbar__menu-panel {
	display: contents;
}

.calc-cart-toolbar.calc-hidden {
	display: none;
}

.calc-cart-toolbar__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-direction: row-reverse;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid #2e2e2e20;
	background: #fff;
	color: #2e2e2e;
	border-radius: 14px;
	cursor: pointer;
	box-shadow: 0 4px 14px #2e2e2e12;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.calc-cart-toolbar__button:hover,
.calc-cart-toolbar__button:focus-visible {
	border-color: #5576d140;
	box-shadow: 0 5px 16px #5576d126;
	transform: translateY(-1px);
	outline: none;
}

.calc-cart-toolbar__button:disabled {
	opacity: .45;
	cursor: default;
	transform: none;
}

.calc-cart-toolbar__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: inherit;
}

.calc-cart-toolbar__icon {
	display: block;
	width: 28px;
	height: 28px;
}

.calc-cart-toolbar__label {
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 300;
	color: #2f2f2f;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-50%) translateX(6px);
	transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.calc-cart-toolbar__label {
	isolation: isolate;
}

.calc-cart-toolbar__label-text {
	position: relative;
	z-index: 1;
}

.calc-cart-toolbar__button:hover .calc-cart-toolbar__label,
.calc-cart-toolbar__button:focus-visible .calc-cart-toolbar__label {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

.calc-cart-toolbar__button:hover .calc-cart-toolbar__label::before,
.calc-cart-toolbar__button:focus-visible .calc-cart-toolbar__label::before {
	transform: scaleX(1);
}

.calc-cart-price-notice {
	margin-bottom: 8px;
	color: #5576d1;
}

.calc-cart-price-notice.calc-hidden {
	display: none;
}

.calc-step.is-leaving,
#finalStage.is-leaving {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 200ms ease, transform 200ms ease;
}

.calc-step.is-entering,
#finalStage.is-entering {
	animation: calcStepEnter 200ms ease both;
}

@keyframes calcStepEnter {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1180px), (hover: none), (pointer: coarse) {
	#sectionHeading {
		width: 75%;
		max-width: 75%;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.calc-cart-toolbar {
		position: fixed;
		top: 43px;
		right: 5vw;
		display: block;
		z-index: 1100;
	}

	.calc-cart-toolbar.calc-hidden {
		display: none;
	}

	.calc-cart-toolbar__menu-button {
		display: inline-flex;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 50%;
		background: transparent;
		box-shadow: none;
		color: #000;
	}

	.calc-cart-toolbar__menu-button:hover,
	.calc-cart-toolbar__menu-button:focus-visible {
		border-color: transparent;
		box-shadow: none;
		transform: none;
	}

	.calc-cart-toolbar__menu-button .calc-cart-toolbar__icon-wrap,
	.calc-cart-toolbar__menu-button .calc-cart-toolbar__icon {
		width: 30px;
		height: 30px;
		margin: 0;
	}

	.calc-cart-toolbar__menu-button svg {
		display: block;
		width: 30px;
		height: 30px;
		fill: currentColor;
	}

	.calc-cart-toolbar__menu-panel {
		position: absolute;
		top: calc(100% - 5px);
		right: 0;
		display: flex;
		flex-direction: column;
		width: min(70vw, 360px);
		min-width: 270px;
		background: #fff;
		border: 1px solid #2e2e2e20;
		border-radius: 15px;
		box-shadow: 0 4px 12px #2e2e2e20;
		overflow: hidden;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(-8px) scaleY(.92);
		transform-origin: top center;
		transition: transform .28s ease, opacity .22s ease, visibility 0s linear .28s;
	}

	.calc-cart-toolbar.is-open .calc-cart-toolbar__menu-panel {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0) scaleY(1);
		transition-delay: 0s;
	}

	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__button {
		width: 100%;
		height: auto;
		min-height: 60px;
		padding: 16px 24px;
		justify-content: flex-end;
		gap: 8px;
		border: 0;
		border-radius: 0;
		background: #fff;
		box-shadow: none;
		transform: none;
	}

	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__button + .calc-cart-toolbar__button {
		border-top: 1px solid #2e2e2e20;
	}

	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__button:hover,
	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__button:focus-visible {
		border-color: transparent;
		box-shadow: none;
		transform: none;
		filter: brightness(1);
	}

	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__icon-wrap {
		width: calc(clamp(16px, 1.9vw, 18px) * 2);
		height: calc(clamp(16px, 1.9vw, 18px) * 2);
		flex: 0 0 calc(clamp(16px, 1.9vw, 18px) * 2);
		margin: 0;
	}

	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__icon {
		width: calc(clamp(16px, 1.9vw, 18px) * 2);
		height: calc(clamp(16px, 1.9vw, 18px) * 2);
	}

	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__icon svg {
		display: block;
		width: 100%;
		height: 100%;
	}

	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__label {
		position: static;
		display: inline-flex;
		align-items: center;
		justify-content: flex-start;
		font-size: clamp(16px, 1.9vw, 18px);
		font-weight: 300;
		line-height: 1.15;
		color: #2e2e2e;
		white-space: nowrap;
		opacity: 1;
		visibility: visible;
		pointer-events: none;
		transform: none;
		transition: none;
	}

	.calc-cart-toolbar__menu-panel .calc-cart-toolbar__label-text {
		position: static;
		z-index: auto;
	}
}

@media (max-width: 430px) {
	.calc-cart-toolbar__menu-panel {
		width: calc(90vw - 10px);
		min-width: 0;
	}
	
	.contact-modal-closer {
        left: 37px;
        top: 51px;
    }
}


/* === ДЕСКТОП:высота строки = по ЛЕВОМУ блоку,правый подгоняется под неё === */
.calc-step[data-step="2"] .calc-grid {
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: min-content;
	align-items: start !important;
}

/* Левая ячейка задаёт высоту */
.calc-step[data-step="2"] .calc-grid>div:first-child {
	align-self: stretch;
	min-width: 0;
}

/* Правая ячейка принудительно тянется до высоты левой строки */
.calc-step[data-step="2"] .calc-grid>div:last-child {
	align-self: stretch;
	min-height: 0;
}

/* Превью ровно высота правой ячейки (т.е. высота левой) */
.calc-preview--gallery {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	cursor: pointer;
}

.calc-preview-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-align: left;
	border: 0;
	border-radius: 16px;
	padding: 0;
	background: transparent;
	transition: opacity .2s ease, transform .2s ease;
}

.calc-preview-card__label {
	display: block;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	color: #fff;
}

.calc-preview-card__image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 16px;
	overflow: hidden;
}

.calc-preview-card__image {
	display: block;
	max-width: 100%;
	height: auto;
	transition: opacity .2s ease;
}

.calc-preview-card__loading {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px 20px;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: blur(1px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .5s ease, visibility .5s ease;
}

.calc-preview-card__loading-watermark {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(62%, 210px);
	height: min(62%, 210px);
	transform: translate(-50%, -42%);
	background: center / contain no-repeat url('/assets/img/preloader.svg');
	opacity: .12;
	filter: saturate(.8);
}

.calc-preview-card__loading-spinner {
	position: relative;
	z-index: 1;
	width: 74px;
	height: 74px;
	display: flex;
	align-items: center;
	justify-content: center;
	--p: 0;
}

.calc-preview-card__loading-spinner-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	transform: rotate(-90deg);
}

.calc-preview-card__loading-spinner-bg {
	fill: none;
	stroke: rgba(85, 118, 209, .18);
	stroke-width: 3;
}

.calc-preview-card__loading-spinner-fg {
	fill: none;
	stroke: #5576d1;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 0 9999;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset .18s ease;
}

.calc-preview-card__loading-pct {
	position: relative;
	z-index: 1;
	font-size: 14px;
	line-height: 1;
	font-weight: 500;
	color: #2e2e2e;
}

.calc-preview-card__loading-title {
	position: relative;
	z-index: 1;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 500;
	color: #2e2e2e;
	text-align: center;
	max-width: 220px;
}

.calc-preview-card__loading-phrase {
	position: relative;
	z-index: 1;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
	color: rgba(46, 46, 46, .64);
	text-align: center;
	max-width: 220px;
}

.calc-preview-card.is-preview-loading .calc-preview-card__loading {
	opacity: 1;
	visibility: visible;
}

.calc-preview-card.is-preview-loading .calc-preview-card__image {
	opacity: 0;
	filter: saturate(.88);
}

.calc-preview-card.is-disabled {
	cursor: default;
	opacity: 1;
}

.calc-preview-card.is-empty .calc-preview-card__label,
.calc-preview-card.is-disabled .calc-preview-card__label {
	color: rgba(255,255,255,.72);
}

.calc-preview-card.is-disabled:focus {
	outline: none;
}

.calc-preview-card__image-wrap {
	flex: 1 1 auto;
	min-height: 0;
}
/* Пустая заглушка превью должна выглядеть как полноценный блок предпросмотра,
   а не как маленький логотип. Поэтому задаём ей отдельный фон и увеличиваем
   сам watermark. */
.calc-preview-card.is-empty .calc-preview-card__image-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #d8dff0 100%);
    border-radius: 15px;
    border: 0;
}

.calc-preview-card.is-empty .calc-preview-card__image {
	width: min(76%, 440px);
	height: auto;
	max-width: 100%;
	max-height: none;
	opacity: 1;
	filter: saturate(.78);
}

.calc-step[data-step="2"] .calc-preview-card .calc-preview-card__image,
.calc-step[data-step="4"] .calc-preview-card .calc-preview-card__image {
	height: auto !important;
	max-height: 100%;
	object-fit: contain;
}

.calc-step[data-step="4"] .calc-preview-card .calc-preview-card__image {
	width: 58%;
}

.calc-step[data-step="4"]  .calc-radio label {
    cursor: default;
}

@media (max-width:653px) {
	.calc-preview-card__label {
		font-size: 14px;
	}

	.calc-preview-card__loading-spinner {
		width: 68px;
		height: 68px;
	}

	.calc-preview-card__loading-title {
		font-size: 16px;
		max-width: 200px;
	}

	.calc-preview-card__loading-phrase {
		font-size: 13px;
		max-width: 200px;
	}
}

.calc-step[data-step="2"] .calc-preview {
	height: 100%;
	min-height: 0 !important;
	width: 75%;
	padding: 0 !important;
	border: 0 !important;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin: 0 auto;
}

/* Картинка вписывается в доступную высоту */
.calc-step[data-step="2"] .calc-preview img {
	display: block;
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

/* === МОБИЛКА:превью вниз,ширина 100% === */
@media (max-width:653px) {
	.calc-step[data-step="2"] .calc-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		align-items: stretch;
	}

	/* На мобильной версии резервируем для превью такую же высоту,
	   как у карточки с загруженным фото выбранного цвета. */
	.calc-step[data-step="2"] .calc-preview {
		min-height: auto;
		overflow: visible;
	}

	.calc-step[data-step="2"] .calc-preview-card__image-wrap {
		aspect-ratio: 3 / 4;
		min-height: 340px;
	}

	.calc-step[data-step="2"] .calc-preview img {
		width: 100%;
		height: auto;
		max-height: none;
	}
}

.calc-step[data-step="3"] .calc-grid {
	grid-template-columns: 1fr 1fr 85px;
}

@media (max-width:653px) {
	.calc-step[data-step="3"] .calc-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		align-items: stretch;
	}

	.calc-step[data-step="3"] .calc-preview {
		min-height: 255px;
		overflow: visible;
	}

	.calc-step[data-step="3"] .calc-preview img {
		width: 100%;
		height: auto;
		max-height: none;
	}
}

.calc-step[data-step="4"] .calc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	grid-auto-rows: min-content;
	align-items: start !important;
}

/* Левая ячейка задаёт высоту */
.calc-step[data-step="4"] .calc-grid>div:first-child {
	align-self: stretch;
	min-width: 0;
}

/* Правая колонка с превью и промокодом */
.calc-step[data-step="4"] .calc-step4-side {
	align-self: stretch;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/*
	Промоблок не должен уезжать вниз, когда слева в summary появляется
	дополнительная строка про промокод. Поэтому на 4 шаге превью не растягиваем
	по остаточной высоте flex-колонки — свободное место остаётся снизу,
	а блок promoCollapse сохраняет своё положение под превью.
*/
.calc-step[data-step="4"] .calc-preview {
	flex: 0 0 auto;
	min-height: 0 !important;
	width: 100%;
	padding: 0 !important;
	border: 0 !important;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Картинка на 4 шаге сохраняет адаптивную ширину и больше не тянет промоблок вниз */
.calc-step[data-step="4"] .calc-preview img {
	display: block;
	max-width: 100%;
	width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	border-radius: 4px;
}

.calc-promo-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	background: transparent;
	border: 0!important;
	cursor: pointer;
	transition: color .2s ease, border-color .2s ease;
	position: relative;
	z-index: 1;
	min-height: 40px;
}

.calc-promo-toggle-icon {
	width: 8px;
	height: 8px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform .25s ease;
	transform-origin: center;
}

/* Анимация перелива только по буквам надписи промокода. */
@keyframes calcPromoTextShine {
	0% {
		background-position: 140% 50%;
	}
	100% {
		background-position: -40% 50%;
	}
}

.calc-promo-box {
	position: relative;
	margin: 0px 10px 20px 15px;
	min-height: 50px;
}

.calc-promo-toggle > span:first-child {
	display: inline-block;
	background-image: radial-gradient(58.46% 135.71% at 100% 0%, rgba(85, 255, 194, 0) 0%, rgba(85, 255, 194, 0.85) 18%, rgba(50, 187, 232, 0.75) 50%, rgba(122, 85, 255, 0.55) 100%);
	background-size: 220% 100%;
	background-position: 140% 50%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: calcPromoTextShine 3.2s linear infinite;
}

.calc-promo-box.is-open .calc-promo-toggle-icon {
	transform: rotate(225deg) translateY(-1px);
}

.calc-promo-collapse {
	position: absolute;
	top: 0;
	left: 0;
	right: 20px;
	z-index: 3;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
}

.calc-promo-box.is-open .calc-promo-collapse {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}

.calc-promo-collapse-inner {
	overflow: visible;
}

.calc-input-wrap-promo {
	position: relative;
}

.calc-input-wrap-promo .calc-input {
	padding-right: 75px;
	text-align: left;
	margin-left: 5px;
}

.calc-input-wrap-promo.is-success .calc-input {
	color: rgb(169 255 166);
}

.calc-input-wrap-promo.is-error .calc-input {
	color: #ff6666;
}

.calc-input-action {
	position: absolute;
	right: 12px;
	top: 50%;
	width: 28px;
	height: 28px;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background: #5576d1;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.calc-input-action::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
    transform: translate(-65%, -50%) rotate(45deg);
}

.calc-input-wrap-promo.is-can-apply .calc-input-action {
	opacity: 1;
	pointer-events: auto;
}

.calc-input-wrap-promo.is-can-apply .calc-input-action:hover {
	transform: translateY(-50%) scale(1.05);
}

.calc-input-wrap-promo.is-loading .calc-input-action {
	opacity: .8;
	pointer-events: none;
}

/* === МОБИЛКА: превью и промокод в одну колонку === */
@media (max-width:653px) {
	.calc-step[data-step="4"] .calc-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		align-items: stretch;
	}

	.calc-step[data-step="4"] .calc-preview {
		min-height: 255px;
		overflow: visible;
	}

	.calc-step[data-step="4"] .calc-preview img {
		width: 100%;
		height: auto;
		max-height: none;
	}
}


.calc-step[data-step="5"] .calc-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 15px;
	grid-auto-rows: min-content;
	align-items: start !important;
}

/* Левая ячейка задаёт высоту */
.calc-step[data-step="5"] .calc-grid>div:first-child {
	align-self: stretch;
	min-width: 0;
}

/* Правая ячейка принудительно тянется до высоты левой строки */
.calc-step[data-step="5"] .calc-grid>div:last-child {
	align-self: stretch;
	min-height: 0;
}

/* Превью ровно высота правой ячейки (т.е. высота левой) */
.calc-step[data-step="5"] .calc-preview {
	height: 100%;
	min-height: 0 !important;
	width: 100%;
	padding: 0 !important;
	/* на случай общих стилей */
	border: 0 !important;
	/* на случай общих стилей */
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Картинка вписывается в доступную высоту */
.calc-step[data-step="5"] .calc-preview img {
	display: block;
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
}

/* === МОБИЛКА:превью вниз,ширина 100% === */
@media (max-width:653px) {
	.calc-step[data-step="5"] .calc-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		align-items: stretch;
	}

	.calc-step[data-step="5"] .calc-preview {
		min-height: 255px;
		overflow: visible;
	}

	.calc-step[data-step="5"] .calc-preview img {
		width: 100%;
		height: auto;
		max-height: none;
	}
}

.calc-step[data-step="5"] s {
	opacity: 0.5;
}

.calc-step[data-step="5"] .calc-radio label {
	cursor: default;
}

#finalStage[data-step="6"] .calc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	grid-auto-rows: min-content;
	align-items: start !important;
}

@media (max-width:640px) {
	#finalStage[data-step="6"] .calc-grid {
		grid-template-columns: 1fr;
	}
}

input[type="radio"],
input[type="checkbox"] {
	accent-color: #5576d1;
}

.calc-step[data-step="1"] input[type="radio"] {
	visibility: hidden;
}

.calc-step[data-step="2"] input[type="radio"] {
	display:none;
}

.file {
	display: flex;
	align-items: center;
	gap: 15px;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.file__input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	padding: 0;
}

.file__btn {
    outline: none;
    color: #fff;
    user-select: none;
    font-size: 16px;
    font-weight: 300;
    text-transform: none;
    text-decoration: none;
    letter-spacing: 0.05em;
    background: #5576d1;
    padding: 10px 20px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    white-space: nowrap;
}

.file__btn:hover {
	filter: brightness(1.1);
}

.file__btn:active {
	transform: translateY(1px);
}

.file__input:focus-visible+.file__btn {
	outline: 2px solid rgb(116 143 217);
	outline-offset: 2px;
}

.file__name {
	color: #2e2e2e;
	font-size: 16px;
	font-weight: 300;
	letter-spacing: 0.05em;
	text-transform: none;
	flex: 1 1 0%;
	width: 0;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	display: block;
}

#layoutInName,
#layoutInName a,
#layoutInName span {
    text-align: left;
    color: #2e2e2e50;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0.01em;
	display: inline-block;
	max-width: 100%;
	vertical-align: top;
	overflow: hidden;
}

@media only screen and (max-width: 575px) {
	/* На узких экранах переносим имя файла под кнопку, чтобы не ломать ширину блока. */
	.file {
		flex-wrap: wrap;
		align-items: stretch;
		gap: 12px;
	}

	.file__btn {
		width: 100%;
	}

	.file__name {
		flex: 1 1 100%;
	}
}

.calc-summary {
	font-size: 18px;
	font-weight: 300;
	text-transform: none;
	/* uppercase */
	letter-spacing: 0.05em;
	text-align: left;
	color: #fff;
}

.orderStage .calc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
	grid-auto-rows: min-content;
	align-items: start !important;
}

/* Левая ячейка задаёт высоту */
.orderStage .calc-grid>div:first-child {
	align-self: stretch;
	min-width: 0;
}

/* Правая ячейка принудительно тянется до высоты левой строки */
.orderStage .calc-grid>div:last-child {
	align-self: stretch;
	min-height: 0;
}

/* Превью ровно высота правой ячейки (т.е. высота левой) */
.orderStage .calc-preview {
	height: 100%;
	min-height: 0 !important;
	width: 100%;
	padding: 0 !important;
	/* на случай общих стилей */
	border: 0 !important;
	/* на случай общих стилей */
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Картинка вписывается в доступную высоту */
.orderStage .calc-preview img {
	display: block;
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: 100%;
	object-fit: contain;
	border-radius: 5px;
}

/* === МОБИЛКА:превью вниз,ширина 100% === */
@media (max-width:653px) {
	.orderStage .calc-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		align-items: stretch;
	}

	.orderStage .calc-preview {
		min-height: 255px;
		overflow: visible;
	}

	.orderStage .calc-preview img {
		width: 100%;
		height: auto;
		max-height: none;
	}
}

.orderStage s {
	opacity: 0.5;
}

.orderStage .calc-radio label {
	cursor: default;
}

.calc-good {
	color: #fff;
	margin-bottom: 10px;
}

.heading-bold {
	font-weight: 500 !important;
	letter-spacing: 0 !important;
}

.calc-grid-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 180px;
	gap: 14px;
}

@media (max-width:991px) {
	.calc-grid-3 {
		grid-template-columns: 1fr;
	}
}

.calc-radio-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width:767px) {
	.calc-radio-grid {
		grid-template-columns: 1fr;
	}
}

.calc-card {
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	padding: 14px;
	cursor: pointer;
	transition: transform .12s ease, border-color .12s ease, background .12s ease;
	background: rgba(0, 0, 0, 0.15);
}

.calc-card:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.35);
}

.calc-card.is-selected {
	border-color: rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.06);
}

.calc-card .t {
	font-weight: 500;
	margin-bottom: 6px;
}

.calc-card .p {
	font-size: 13px;
	opacity: .92;
	line-height: 1.35;
}

.calc-card .price {
	margin-top: 10px;
	font-weight: 500;
}

.calc-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.calc-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 30px;
    align-items: stretch;
}

.calc-actions .the-button {
	user-select: none;
}

.calc-actions .the-button[disabled] {
	opacity: .35;
	pointer-events: none;
}

.calc-color-preview {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(0, 0, 0, 0.1);
}

.calc-color-preview img {
	display: block;
	width: 100%;
	height: 240px;
	object-fit: cover;
}
@media (max-width:991px) {
	.calc-color-preview img {
		height: 200px;
	}
}

.calc-summary {
	text-align: left;
	font-size: 15px;
	line-height: 1.55;
}

.calc-summary .h {
	font-weight: 800;
	font-size: 18px;
	margin-bottom: 10px;
}

.calc-summary .line {
	margin: 6px 0;
}

.calc-note {
	font-size: 13px;
	opacity: .9;
}

.calc-hidden {
	display: none !important;
}

/*
 * Иконки материалов в первом шаге калькулятора всегда резервируют одинаковое
 * место слева. Благодаря этому текст в каждой карточке стартует по одной
 * вертикали, даже если у конкретного материала иконки нет.
 */
.calc-step[data-step="1"] .mat-icons {
    position: absolute;
    width: 28px;
    height: 28px;
    right: 10px;
    top: 8px;
    flex-shrink: 0;
    color: #2e2e2e;
    pointer-events: none;
}

.calc-radio label:has(input[type="radio"]:checked) .mat-icons path {
    fill: #fff;
}

.calc-split-row {
    position: absolute;
    right: calc(50% - 100px);
    top: 8px;
    cursor: pointer;
}

.calc-split-text {
    letter-spacing: 0.01em;
    margin-top: -7px;
    font-size: 13px;
}