/* Prefooter callback — Figma Rscable node43-152 */

.rscable-prefooter {
	position: relative;
	margin: 0;
	padding: 32px 0 40px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.rscable-prefooter .maxwidth-theme {
	container-type: inline-size;
}

/* Фон и скругление — внутри .maxwidth-theme, как карта и блоки главной (отступы — padding-inline темы) */
.rscable-prefooter__shell {
	position: relative;
	overflow: hidden;
	z-index: 0;
	min-width: 0;
	box-sizing: border-box;
}

.rscable-prefooter__bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	background-image: var(--rscable-prefooter-bg);
	background-size: cover;
	background-position: center;
	filter: blur(2px);
	transform: scale(1.04);
	border-radius: inherit;
}

.rscable-prefooter__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.26) 100%);
	border-radius: inherit;
}

.rscable-prefooter__shell.maxwidth-theme > .rscable-prefooter__bg,
.rscable-prefooter__shell.maxwidth-theme > .rscable-prefooter__overlay {
	left: var(--theme-page-width-padding, 32px);
	right: var(--theme-page-width-padding, 32px);
}

.rscable-prefooter__inner,
.rscable-prefooter__success {
	position: relative;
	z-index: 1;
}

.rscable-prefooter__inner {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	row-gap: 20px;
	column-gap: 28px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	flex: 1 1 auto;
	min-height: 0;
}

.rscable-prefooter__promo {
	color: #fff;
	flex: 1 1 min(100%, 35rem);
	max-width: min(100%, 35rem);
	min-width: 0;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	margin-top: -12px;
}

.rscable-prefooter__title {
	margin: 0 0 1rem;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: clamp(1.375rem, 1.1rem + 1.25vw, 2rem);
	font-weight: 600;
	line-height: 1.22;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9);
}

.rscable-prefooter__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: clamp(1rem, 0.85rem + 0.85vw, 1.5rem);
	line-height: 1.45;
	font-weight: 400;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 0 1px rgba(0, 0, 0, 0.9);
}

.rscable-prefooter__list li {
	position: relative;
	margin: 0 0 0.55em;
	padding-left: 1.1em;
	box-sizing: border-box;
}

.rscable-prefooter__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.22em;
	height: 0.22em;
	min-width: 4px;
	min-height: 4px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.rscable-prefooter__form-wrap {
	flex: 0 1 min(100%, 25rem);
	min-width: 0;
	width: 100%;
	max-width: min(100%, 25rem);
	box-sizing: border-box;
}

.rscable-footer-form__errors--global {
	margin: 0 0 12px;
}

.rscable-footer-form__card {
	background: #fff !important;
	border-radius: 16px !important;
	padding: 32px 32px 28px !important;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18) !important;
	box-sizing: border-box !important;
	overflow-x: hidden;
}

.rscable-footer-form__descr {
	font-size: 14px;
	color: #666;
	margin: 0 0 16px;
	line-height: 1.45;
}

.rscable-footer-form__fields {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	max-width: 100%;
}

.rscable-footer-form__field--text {
	margin-bottom: 4px;
}

.rscable-footer-form__field-text-inner {
	position: relative;
	width: 100%;
	min-height: 48px;
	display: flex;
	align-items: center;
}

.rscable-footer-form__field--text .rscable-footer-form__field-text-inner--required textarea ~ .rscable-footer-form__ph-star {
	top: 22px;
	transform: none;
}

.rscable-footer-form__field--text input[type='text'],
.rscable-footer-form__field--text input[type='tel'],
.rscable-footer-form__field--text input[type='email'],
.rscable-footer-form__field--text textarea {
	width: 100% !important;
	box-sizing: border-box !important;
	border: none !important;
	border-bottom: 1px solid #c8c8c8 !important;
	border-radius: 0 !important;
	background: transparent !important;
	padding: 12px 28px 12px 0 !important;
	min-height: 48px !important;
	font-size: 15px !important;
	color: #222 !important;
	outline: none !important;
	box-shadow: none !important;
}

.rscable-footer-form__field--text textarea {
	min-height: 56px;
	padding-top: 14px !important;
	resize: vertical;
}

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

.rscable-footer-form__ph-star {
	position: absolute !important;
	right: 4px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #e30613 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	pointer-events: none !important;
}

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

.rscable-footer-form__field-msg--error {
	color: #c62828;
}

.rscable-footer-form__field--file {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: flex-start;
	justify-content: flex-start;
	gap: 8px;
	min-height: 48px;
	min-width: 0;
	max-width: 100%;
	margin-top: 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid #c8c8c8;
	box-sizing: border-box;
}

.rscable-footer-form__file-lead {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
}

.rscable-footer-form__file-placeholder {
	font-size: 15px;
	color: rgba(0, 0, 0, 0.45);
}

.rscable-footer-form__file-name:empty {
	display: none;
}

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

.rscable-footer-form__file-btn {
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 4px !important;
	margin: 0 !important;
	border: none !important;
	background: transparent !important;
	cursor: pointer;
	color: #e30613 !important;
	flex-shrink: 0;
}

.rscable-footer-form__file-name {
	font-size: 12px;
	color: #444;
	word-break: break-word;
}

.rscable-footer-form__file-name:not(:empty) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	min-width: 0;
	margin-top: 4px;
}

.rscable-footer-form__file-name:not(:empty)::before {
	content: '';
	width: 16px;
	height: 18px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='18' fill='none' stroke='%23555' stroke-width='1.25'%3E%3Cpath d='M3 1.5h5.5L12.5 5v11.5A1.5 1.5 0 0 1 11 18H3a1.5 1.5 0 0 1-1.5-1.5v-14A1.5 1.5 0 0 1 3 1.5Z'/%3E%3Cpath d='M8.5 1.5V6h4'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

.rscable-footer-form__field--consent {
	margin-top: 16px;
	overflow: visible;
}

.rscable-footer-form__consent-label {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: clamp(0.72rem, 0.65rem + 0.35vw, 0.8125rem);
	line-height: 1.45;
	color: #666;
	margin: 0;
	padding: 0;
}

.rscable-footer-form__checkbox {
	flex-shrink: 0;
	float: none;
	width: 18px !important;
	height: 18px !important;
	margin: 2px 0 0 0 !important;
	accent-color: #1a73e8;
	cursor: pointer;
}

.rscable-footer-form__consent-text {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: visible;
}

.rscable-footer-form__consent-asterisk {
	color: #e30613;
	font-weight: 700;
}

.rscable-footer-form__consent-text a,
.rscable-footer-form__consent-link {
	color: #8eb4d8;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rscable-footer-form__actions {
	margin-top: 20px;
}

.rscable-footer-form__submit {
	appearance: none !important;
	width: 100% !important;
	box-sizing: border-box !important;
	min-height: 52px !important;
	padding: 0 20px !important;
	border: none !important;
	border-radius: 8px !important;
	background: #e30613 !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.rscable-footer-form__submit:hover,
.rscable-footer-form__submit:focus {
	opacity: 0.94;
}

.rscable-footer-form__submit:disabled,
.rscable-footer-form__submit.rscable-footer-form__submit--pending {
	opacity: 0.65;
	cursor: wait;
	pointer-events: none;
}

.rscable-footer-form__hint {
	margin: 12px 0 0;
	text-align: center;
	font-size: 13px;
	color: #888;
}

.rscable-prefooter__success.rscable-footer-form__success {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 520px;
	margin: 0 auto;
	padding: 20px 24px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.rscable-footer-form__success-title {
	display: block;
	font-size: 20px;
	color: #1a1a1a;
	margin-bottom: 6px;
}

.rscable-footer-form__success-msg {
	font-size: 14px;
	color: #444;
	margin: 0;
}

@media (min-width: 992px) {
	.rscable-prefooter__shell {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
		padding: 40px 0;
		min-height: 661px;
		min-height: calc(661 * 100cqi / 1468);
	}

	/* Промо и форма — в ряд, по центру блока с небольшим зазором */
	.rscable-prefooter__inner {
		align-items: center;
		justify-content: center;
		align-content: center;
		column-gap: 28px;
		row-gap: 20px;
	}

	.rscable-prefooter__promo {
		align-self: center;
		flex: 0 1 auto;
		max-width: min(100%, 28rem);
		margin-top: -12px;
		padding-top: 0;
		box-sizing: border-box;
	}

	.rscable-prefooter__form-wrap {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
		align-self: center;
		margin-left: 0;
		margin-right: 0;
	}

	.rscable-prefooter__list {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
		max-width: 100%;
		text-align: left;
	}

	.rscable-prefooter__shell > .rscable-prefooter__success.rscable-footer-form__success {
		flex: 0 0 auto;
		align-self: center;
	}
}

@media (max-width: 991px) {
	.rscable-prefooter {
		padding: 32px 0 40px;
	}

	.rscable-prefooter__shell {
		display: block;
		min-height: 0;
		padding: 24px 0;
	}

	.rscable-prefooter__inner {
		flex-direction: column;
		align-items: center;
		flex: none;
		row-gap: 22px;
		column-gap: 0;
	}

	.rscable-prefooter__promo {
		text-align: left;
		padding-left: 0;
		padding-right: 0;
		max-width: min(100%, 19.25rem);
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}

	.rscable-prefooter__form-wrap {
		flex: 1 1 auto;
		max-width: min(100%, 19.25rem);
		width: 100%;
		margin-left: auto;
		margin-right: auto;
		box-sizing: border-box;
	}

	.rscable-prefooter__title {
		font-size: clamp(1.2rem, 1.05rem + 0.9vw, 1.65rem);
	}

	.rscable-prefooter__list {
		margin-left: 0;
		margin-right: 0;
		width: 100%;
		max-width: 100%;
		text-align: left;
	}

	.rscable-footer-form__card {
		padding: 28px 22px !important;
	}
}

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

.rscable-footer-form__file-formats {
	display: block;
	font-size: 10px;
	color: #888;
	margin-top: 2px;
	line-height: 1.3;
}

.rscable-footer-form__file-list {
	--rsc-file-line: calc(2 * 4px + 1.35 * 12px);
	display: flex;
	flex-direction: column;
	flex: 1 1 100%;
	gap: 4px;
	margin-top: 8px;
	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-footer-form__file-item {
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	padding: 4px 8px;
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.rscable-footer-form__file-item-name {
	flex: 1 1 0%;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	line-height: 1.3;
	color: #333;
	display: block;
	overflow-wrap: normal;
	word-break: normal;
}

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

.rscable-footer-form__file-item-remove:hover {
	background: rgba(220, 53, 69, 0.15);
	color: #c00;
}

.rscable-footer-form__file-type-error {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	font-size: 11px;
	color: #c0392b;
	margin: 4px 0 0;
}

/* ── Переключатель способа связи ────────────────────────────────────────── */

.rscable-footer-form__contact-type {
	margin-bottom: 12px;
}

.rscable-footer-form__contact-type-label {
	font-size: 13px;
	color: #444;
	margin: 0 0 8px;
}

.rscable-footer-form__contact-type-btns {
	display: flex;
	gap: 8px;
}

.rscable-footer-form__contact-type-btn {
	flex: 1 1 0%;
	padding: 8px 12px;
	border: 1.5px solid rgba(0, 0, 0, 0.2);
	border-radius: 8px;
	background: transparent;
	color: #555;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	text-align: center;
}

.rscable-footer-form__contact-type-btn--active {
	border-color: #1a1a1a;
	background: rgba(0, 0, 0, 0.07);
	color: #1a1a1a;
}

.rscable-footer-form__contact-type-btn:hover:not(.rscable-footer-form__contact-type-btn--active) {
	border-color: rgba(0, 0, 0, 0.45);
	color: #333;
}
