/*
 * Виджет hero_callback — макет Figma Rscable Copy
 * https://www.figma.com/design/ppetrMmqqarO0fdLbTV84U/Rscable--Copy-?node-id=283-263
 * Мобильный экран: https://www.figma.com/design/ppetrMmqqarO0fdLbTV84U/Rscable--Copy-?node-id=1-4737
 */

/* Только «осиротевшие» ошибки (без SID поля формы), например капча */
.rscable-hero-form__errors--global {
	margin: 0 0 10px;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.rscable-hero-form__success {
	color: #fff;
	font-size: 15px;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	max-width: 736px;
	box-sizing: border-box;
}

.rscable-hero-form__success--card {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 156px;
	padding: 16px 20px;
}

.rscable-hero-form__success-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.rscable-hero-form__success-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rscable-hero-form__success-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9);
}

.rscable-hero-form__success-msg {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
	overflow-wrap: anywhere;
}

.rscable-hero-form__stack {
	max-width: 736px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rscable-hero-form__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: #fff;
	margin: 0 0 10px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.rscable-hero-form__title--in-card {
	margin: 0 0 10px;
	/* как у .banners-big__text-block на герое — только тень, размер шрифта не трогаем */
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.rscable-hero-form__descr {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
	margin: -4px 0 12px;
	line-height: 1.45;
}

.rscable-hero-form__descr--in-card {
	margin: 0 0 14px;
}

/* Панель формы: светлое стекло (!important — защита от перебития Aspro form.css в Chromium) */
.rscable-hero-form__card {
	max-width: 736px;
	width: 100%;
	min-width: 0;
	min-height: 156px;
	box-sizing: border-box !important;
	padding: 14px 20px 16px !important;
	background: rgba(255, 255, 255, 0.16) !important;
	border-radius: 12px !important;
	backdrop-filter: blur(14px) !important;
	-webkit-backdrop-filter: blur(14px) !important;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12) !important;
	border: 1px solid rgba(255, 255, 255, 0.32) !important;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 12px;
}

/* Десктоп: в .row--main — текстовые поля + кнопка отправки (в герое — одна строка с полями; см. .rscable-banners-big__wrapper--hero-form). Файл — в .row--footer. */
.rscable-hero-form__row--main {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: 10px 12px;
	width: 100%;
	min-width: 0;
	align-content: flex-start;
}

.rscable-hero-form__row--main .rscable-hero-form__field--text {
	flex: 1 1 0;
	min-width: 0;
	max-width: 250px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

/* Кнопка отправки — в .row--main (четвёртая колонка рядом с ИНН на десктопе героя) */
.rscable-hero-form__row--main .rscable-hero-form__actions {
	flex: 1 1 0;
	min-width: 0;
	max-width: 250px;
	align-self: flex-start;
	display: flex;
	align-items: stretch;
}

.rscable-hero-form__field-text-inner {
	position: relative;
	width: 100%;
	max-width: 250px;
	min-height: 52px;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
}

.rscable-hero-form__field--text .rscable-hero-form__field-text-inner--required input[type="text"],
.rscable-hero-form__field--text .rscable-hero-form__field-text-inner--required input[type="tel"],
.rscable-hero-form__field--text .rscable-hero-form__field-text-inner--required input[type="email"],
.rscable-hero-form__field--text .rscable-hero-form__field-text-inner--required textarea {
	padding-right: 22px;
}

.rscable-hero-form__ph-star {
	position: absolute !important;
	right: 12px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #e31e24 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	pointer-events: none !important;
	user-select: none;
	display: inline !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Нижний ряд: файл + кнопка (одна линия), согласие — на всю ширину ниже */
.rscable-hero-form__row--footer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 14px 18px;
	width: 100%;
	min-width: 0;
	margin-top: 2px;
}

.rscable-hero-form__row--footer .rscable-hero-form__field--file {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

/* Согласие только если вынесено в footer без блока файла */
.rscable-hero-form__row--footer > .rscable-hero-form__field--consent-inline-row {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/* Кнопка «Прикрепить» + согласие в одной строке (согласие справа от кнопки) */
.rscable-hero-form__file-head {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rscable-hero-form__file-head > .rscable-hero-form__file-btn {
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.rscable-hero-form__file-head > .rscable-hero-form__field--consent-in-file-head {
		flex: 1 1 160px;
		min-width: 0;
		max-width: 100%;
		box-sizing: border-box;
	}
}

.rscable-hero-form__field-msg {
	margin: 0;
	font-size: 12px;
	line-height: 1.35;
}

.rscable-hero-form__field-msg--error {
	color: #ffb4b4;
	max-width: 250px;
}

.rscable-hero-form__field-msg--consent {
	max-width: 100%;
	padding-left: 54px;
	box-sizing: border-box;
}

.rscable-hero-form__row--footer .rscable-hero-form__field-msg--consent {
	padding-left: 54px;
}

.rscable-hero-form__field-msg--file {
	flex: 0 0 100%;
	max-width: 100%;
	margin-top: 4px;
}

.rscable-hero-form__card .rscable-hero-form__field--text input[type="text"],
.rscable-hero-form__card .rscable-hero-form__field--text input[type="tel"],
.rscable-hero-form__card .rscable-hero-form__field--text input[type="email"],
.rscable-hero-form__card .rscable-hero-form__field--text textarea {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	min-height: 52px !important;
	height: auto !important;
	padding: 13px 14px !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 8px !important;
	background: rgba(248, 248, 248, 0.96) !important;
	color: #222 !important;
	font-size: 14px !important;
	line-height: 1.25 !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	outline: none;
}

.rscable-hero-form__field--text textarea {
	height: auto;
	min-height: 52px;
	padding-top: 12px;
}

.rscable-hero-form__field--text input::placeholder,
.rscable-hero-form__field--text textarea::placeholder {
	color: rgba(0, 0, 0, 0.5);
}

.rscable-hero-form__submit {
	-moz-appearance: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 176px !important;
	min-width: 176px !important;
	height: 52px !important;
	min-height: 52px !important;
	padding: 0 12px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 52px !important;
	color: #fff !important;
	white-space: nowrap;
	box-sizing: border-box !important;
	cursor: pointer;
}

.rscable-hero-form__submit:hover,
.rscable-hero-form__submit:focus {
	color: #fff !important;
	opacity: 0.95;
}

.rscable-hero-form__submit:active,
.rscable-hero-form__submit.rscable-hero-form__submit--pending {
	background-color: #156bb8 !important;
	background-image: none !important;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18) !important;
	transition: background-color 0.12s ease, box-shadow 0.12s ease;
}

.rscable-hero-form__submit.rscable-hero-form__submit--pending {
	opacity: 1;
	cursor: wait;
	pointer-events: none;
}

.rscable-hero-form__field--file {
	position: relative;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 4px;
	min-height: 28px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
	color: #fff;
}

.rscable-hero-form__field--file .rscable-hero-form__file-btn,
.rscable-hero-form__field--file > .rscable-hero-form__file-name {
	align-self: flex-start;
}

.rscable-hero-form__field--file > .rscable-hero-form__file-head,
.rscable-hero-form__field--file > .rscable-hero-form__file-formats,
.rscable-hero-form__field--file > .rscable-hero-form__file-list,
.rscable-hero-form__field--file > .rscable-hero-form__file-type-error,
.rscable-hero-form__field--file > .rscable-hero-form__field-msg--file {
	align-self: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.rscable-hero-form__field--file,
.rscable-hero-form__field--file .rscable-hero-form__file-btn,
.rscable-hero-form__field--file .rscable-hero-form__file-text,
.rscable-hero-form__field--file .rscable-hero-form__file-name {
	color: #fff !important;
}

.rscable-hero-form__file-native {
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.rscable-hero-form__file-btn {
	-moz-appearance: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	cursor: pointer;
	font: inherit;
	color: #fff !important;
	white-space: nowrap;
}

.rscable-hero-form__file-icon {
	display: flex;
	color: #e31e24 !important;
}

.rscable-hero-form__file-text {
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rscable-hero-form__file-name {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rscable-hero-form__file-name:not(:empty) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: min(220px, 100%);
	min-width: 0;
}

.rscable-hero-form__file-name:not(:empty)::before {
	content: '';
	width: 14px;
	height: 16px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' fill='none' stroke='rgba%28255%2C255%2C255%2C0.9%29' stroke-width='1.2'%3E%3Cpath d='M2.5 1.5h5L11 4.5v10a1.5 1.5 0 0 1-1.5 1.5h-7A1.5 1.5 0 0 1 1 14.5v-11A1.5 1.5 0 0 1 2.5 1.5Z'/%3E%3Cpath d='M7.5 1.5V5h3.5'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

.rscable-hero-form__field--consent > label:not(.rscable-hero-form__toggle-label) {
	display: none !important;
}

.rscable-hero-form__field--consent {
	position: relative;
	min-height: 28px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.rscable-hero-form__field--consent-inline-row {
	align-self: center;
}

.rscable-hero-form__field--consent .rscable-hero-form__toggle-input {
	position: absolute !important;
	left: 0 !important;
	top: 50% !important;
	width: 44px !important;
	height: 26px !important;
	margin: -13px 0 0 !important;
	opacity: 0 !important;
	cursor: pointer;
	z-index: 4;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
}

.rscable-hero-form__toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.35;
	color: #fff !important;
	position: relative;
	padding-left: 54px;
	min-height: 28px;
}

.rscable-hero-form__row--footer .rscable-hero-form__toggle-caption {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-word;
}

.rscable-hero-form__toggle-caption {
	color: #fff !important;
}

.rscable-hero-form__toggle-track {
	position: absolute !important;
	left: 0 !important;
	top: 50% !important;
	margin-top: -13px !important;
	flex-shrink: 0;
	width: 44px !important;
	height: 26px !important;
	border-radius: 13px !important;
	background: rgba(255, 255, 255, 0.35) !important;
	transition: background 0.2s ease;
	pointer-events: none;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.rscable-hero-form__toggle-knob {
	position: absolute !important;
	top: 3px !important;
	left: 3px !important;
	width: 20px !important;
	height: 20px !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
	display: block !important;
	visibility: visible !important;
}

/* Состояние переключателя без :has() — совместимость со старыми браузерами (input сразу перед label) */
.rscable-hero-form__field--consent .rscable-hero-form__toggle-input:checked + .rscable-hero-form__toggle-label .rscable-hero-form__toggle-track {
	background: var(--theme-base-color, #257de3) !important;
}

.rscable-hero-form__field--consent .rscable-hero-form__toggle-input:checked + .rscable-hero-form__toggle-label .rscable-hero-form__toggle-knob {
	transform: translateX(18px);
}

/* Подпись согласия — только тень как у подзаголовка слайда (размер шрифта не задаём) */
.rscable-banners-big__wrapper--hero-form .rscable-hero-form__toggle-caption {
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9);
}

.rscable-banners-big__wrapper--hero-form .rscable-hero-form__submit:active,
.rscable-banners-big__wrapper--hero-form .rscable-hero-form__submit.rscable-hero-form__submit--pending {
	background-color: #156bb8 !important;
	background-image: none !important;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18) !important;
}

.rscable-hero-form__field--consent .rscable-hero-form__toggle-input:focus + .rscable-hero-form__toggle-label .rscable-hero-form__toggle-track {
	outline: 2px solid rgba(255, 255, 255, 0.85);
	outline-offset: 2px;
}

.rscable-hero-form__toggle-caption a,
.rscable-hero-form__consent-link {
	color: rgba(186, 220, 255, 0.92);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rscable-hero-form__field--captcha {
	margin-top: 8px;
}

.rscable-hero-form__field--captcha .rscable-hero-form__caption {
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
}

.rscable-hero-form__js-error {
	color: #ffb4b4;
	font-size: 13px;
	margin-bottom: 8px;
}

/* Мобилка: поля → файл → кнопка → согласие (макет Figma 1-4737); display:contents + order на карточке */
@media (max-width: 767px) {
	.rscable-hero-form__title--in-card {
		text-align: center;
		width: 100%;
		align-self: center;
		font-size: clamp(13px, 3.5vw, 16px) !important;
		font-weight: 600 !important;
		line-height: 1.3 !important;
		margin-bottom: 6px !important;
		text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9) !important;
	}

	/*
	 * Chromium/WebKit: grid gap + display:contents на детях карточки даёт сбои отступов.
	 * Firefox: flex gap + display:contents — то же. Промежутки через margin соседей — везде одинаково.
	 */
	.rscable-hero-form__card {
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0;
		min-width: 0;
		padding: 8px 10px 10px !important;
		min-height: auto;
	}

	.rscable-hero-form__card > * {
		min-width: 0;
	}

	.rscable-hero-form__card > * + * {
		margin-top: 6px;
	}

	.rscable-hero-form__row--main,
	.rscable-hero-form__row--footer {
		display: contents !important;
	}

	.rscable-hero-form__card input[type="hidden"] {
		order: 1;
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0);
		opacity: 0;
		pointer-events: none;
	}

	.rscable-hero-form__card .rscable-hero-form__errors--global {
		order: 6;
		width: 100%;
	}

	.rscable-hero-form__card .rscable-hero-form__title--in-card {
		order: 10;
	}

	.rscable-hero-form__card .rscable-hero-form__descr--in-card {
		order: 12;
	}

	.rscable-hero-form__row--main .rscable-hero-form__field--text {
		order: 20;
		flex: none;
		width: 100%;
		max-width: none;
	}

	/* Доп. зазор между «Имя» и «Телефон» (display:contents — поля соседи карточки) */
	.rscable-hero-form__row--main .rscable-hero-form__field--text + .rscable-hero-form__field--text {
		margin-top: 10px;
	}

	/* Вынести детей .field--file и .file-head на карточку: кнопка 22, форматы 24, отправка 32, согласие 42, список 44 */
	.rscable-hero-form__row--footer .rscable-hero-form__field--file {
		display: contents;
	}

	.rscable-hero-form__file-head {
		display: contents;
	}

	.rscable-hero-form__card .rscable-hero-form__file-native {
		order: 99;
		width: 0 !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		align-self: center;
		opacity: 0;
		pointer-events: none;
	}

	.rscable-hero-form__card .rscable-hero-form__file-btn {
		order: 22;
		align-self: flex-start;
	}

	.rscable-hero-form__card .rscable-hero-form__file-formats {
		order: 24;
	}

	.rscable-hero-form__row--footer .rscable-hero-form__actions,
	.rscable-hero-form__row--main .rscable-hero-form__actions,
	.rscable-hero-form__card .rscable-hero-form__actions {
		order: 32;
		margin-left: 0;
		width: 100%;
	}

	.rscable-hero-form__card .rscable-hero-form__field--consent-inline-row {
		order: 42;
		align-self: stretch;
	}

	.rscable-hero-form__card .rscable-hero-form__field--consent-in-file-head {
		flex: 0 0 auto !important;
		align-self: flex-start;
		width: 100%;
		max-width: 100%;
		min-height: 0 !important;
	}

	.rscable-hero-form__card .rscable-hero-form__file-list {
		order: 44;
	}

	.rscable-hero-form__card .rscable-hero-form__field-msg--file {
		order: 46;
	}

	.rscable-hero-form__card .rscable-hero-form__file-type-error {
		order: 46;
	}

	.rscable-hero-form__field-text-inner {
		width: 100%;
		max-width: none;
		min-height: 38px;
	}

	.rscable-hero-form__field-msg--error {
		max-width: 100%;
	}

	.rscable-hero-form__card .rscable-hero-form__field--text input[type="text"],
	.rscable-hero-form__card .rscable-hero-form__field--text input[type="tel"],
	.rscable-hero-form__card .rscable-hero-form__field--text input[type="email"],
	.rscable-hero-form__card .rscable-hero-form__field--text textarea {
		min-height: 38px !important;
		padding: 8px 10px !important;
		font-size: 13px !important;
	}

	.rscable-hero-form__submit {
		width: 100% !important;
		min-width: 0 !important;
		height: 40px !important;
		min-height: 40px !important;
		line-height: 40px !important;
		font-size: 13px !important;
	}

	.rscable-hero-form__file-text {
		font-size: 12px !important;
	}

	.rscable-hero-form__file-name {
		font-size: 11px !important;
		max-width: 100%;
	}

	.rscable-hero-form__toggle-label {
		font-size: 11px !important;
		line-height: 1.32 !important;
		padding-left: 44px !important;
		min-height: 24px;
		gap: 8px;
	}

	.rscable-hero-form__toggle-track {
		width: 36px !important;
		height: 20px !important;
		margin-top: -10px !important;
		border-radius: 10px !important;
	}

	.rscable-hero-form__toggle-knob {
		width: 16px !important;
		height: 16px !important;
		top: 2px !important;
		left: 2px !important;
	}

	.rscable-hero-form__field--consent .rscable-hero-form__toggle-input:checked + .rscable-hero-form__toggle-label .rscable-hero-form__toggle-knob {
		transform: translateX(16px);
	}

	.rscable-hero-form__ph-star {
		right: 10px !important;
		font-size: 13px !important;
	}

	.rscable-hero-form__field-msg--consent {
		padding-left: 44px;
	}

	.rscable-hero-form__field--consent-inline-row .rscable-hero-form__toggle-caption {
		-webkit-line-clamp: 4;
		line-clamp: 4;
	}

	.rscable-hero-form__field--consent-inline-row .rscable-hero-form__field-msg--consent {
		padding-left: 44px;
	}

	.rscable-hero-form__field--captcha {
		order: 80;
	}

	.rscable-hero-form__success--card {
		min-height: auto;
		padding: 12px 14px;
		gap: 10px;
	}

	.rscable-hero-form__success-icon svg {
		width: 32px;
		height: 32px;
	}

	.rscable-hero-form__success-title {
		font-size: clamp(15px, 4vw, 18px);
	}

	.banners-big--adaptive-3 .rscable-banners-big__wrapper--hero-form .rscable-hero-form__file-list {
		--rsc-file-line: calc(2 * 4px + 1.35 * 12px);
		display: flex;
		flex-direction: column;
		flex: 0 1 auto;
		flex-grow: 0;
		min-height: 0;
		gap: 4px;
		margin-top: 8px;
		width: 100%;
		max-width: 100% !important;
		min-width: 0;
		align-self: stretch;
		box-sizing: border-box;
		max-height: calc(3 * var(--rsc-file-line) + 2 * 4px) !important;
		overflow-y: auto !important;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-gutter: stable;
	}

	.banners-big--adaptive-3 .rscable-banners-big__wrapper--hero-form .rscable-hero-form__title--in-card {
		max-width: 100%;
		min-width: 0;
		overflow-wrap: anywhere;
		word-break: break-word;
		hyphens: auto;
		box-sizing: border-box;
		padding-left: 2px;
		padding-right: 2px;
	}

	.banners-big--adaptive-3 .rscable-banners-big__wrapper--hero-form .rscable-hero-form__actions {
		min-width: 0;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	.banners-big--adaptive-3 .rscable-banners-big__wrapper--hero-form .rscable-hero-form__submit {
		box-sizing: border-box !important;
		max-width: 100% !important;
	}

	.banners-big--adaptive-3 .rscable-banners-big__wrapper--hero-form .rscable-hero-form__file-btn {
		max-width: 100%;
		min-width: 0;
		align-self: stretch;
	}

	.banners-big--adaptive-3 .rscable-banners-big__wrapper--hero-form .rscable-hero-form__file-text {
		display: block;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__file-list {
		max-width: 100%;
	}
}

/* ── Мультифайловая загрузка ─────────────────────────────────────────────── */

.rscable-hero-form__file-formats {
	display: block;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.55);
	margin: 2px 0 0 0;
	line-height: 1.3;
}

.rscable-hero-form__file-list {
	--rsc-file-line: calc(2 * 4px + 1.35 * 11px);
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 6px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
	max-height: calc(3 * var(--rsc-file-line) + 2 * 4px);
}

.rscable-hero-form__file-item {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	padding: 4px 6px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.rscable-hero-form__file-item-name {
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.9);
	display: block;
	overflow-wrap: normal;
	word-break: normal;
}

.rscable-hero-form__file-item-remove {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.15s;
}

.rscable-hero-form__file-item-remove:hover {
	background: rgba(220, 53, 69, 0.7);
}

.rscable-hero-form__file-type-error {
	font-size: 11px;
	color: #ff6b6b;
	margin: 4px 0 0;
}

/*
 * Десктоп-герой: .row--main — поля + кнопка в одной линии (как колонки); .row--footer — только файл и согласие.
 * Кнопка по ширине/высоте как у input (flex-колонка max 250px, submit width 100%).
 * Список файлов — горизонтальная прокрутка внутри блока файла (не скролл у .rscable-hero-form-inner).
 */
@media (min-width: 768px) {
	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__row--main {
		flex-wrap: wrap !important;
		row-gap: 12px;
		column-gap: 12px;
		align-items: flex-start;
	}

	.rscable-banners-big__wrapper--hero-form .rscable-hero-form-inner {
		max-width: 736px;
		width: 100%;
		box-sizing: border-box;
	}

	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__row--main .rscable-hero-form__submit {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		height: 52px !important;
		min-height: 52px !important;
		line-height: 52px !important;
		padding: 0 10px !important;
		box-sizing: border-box !important;
	}

	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__row--footer {
		align-items: flex-start;
	}

	/* Горизонтальный скролл только у .file-list; колонка файла не режет overflow */
	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__row--footer .rscable-hero-form__field--file {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
		overflow-x: visible !important;
		overflow-y: visible;
	}

	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__field--file .rscable-hero-form__file-list {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 8px;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		max-height: none !important;
		margin-top: 6px;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		scrollbar-gutter: stable;
		scrollbar-width: thin;
		box-sizing: border-box;
	}

	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__file-item {
		flex: 0 0 auto;
		width: auto;
		max-width: 220px;
		min-width: 0;
	}

	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__file-head {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.rscable-banners-big__wrapper--hero-form .rscable-hero-form__file-head > .rscable-hero-form__field--consent-inline-row {
		flex: 1 1 auto !important;
		min-width: 0 !important;
		max-width: none !important;
		width: auto !important;
	}
}
