/**
 * Блок reb/contacts-requisites (блок 06 страницы «Контакты»).
 * Таблица реквизитов + форма «Написать нам» (contacts_main).
 */

.reb-contacts-requisites {
	background: #fff;
}

.reb-contacts-requisites__inner {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	padding-top: 56px;
	padding-bottom: 56px;
}

/* Таблица реквизитов. */
.reb-contacts-requisites__main {
	flex: 1;
	min-width: 0;
}

.reb-contacts-requisites__heading {
	margin: 0 0 10px;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.reb-contacts-requisites__subheading {
	margin: 0 0 20px;
	max-width: 560px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--reb-text-muted);
}

.reb-contacts-requisites__table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid var(--reb-border);
	font-size: 14px;
	line-height: 1.5;
}

.reb-contacts-requisites__table th,
.reb-contacts-requisites__table td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--reb-border);
}

.reb-contacts-requisites__table tr:last-child th,
.reb-contacts-requisites__table tr:last-child td {
	border-bottom: none;
}

.reb-contacts-requisites__table th {
	width: 220px;
	font-weight: 600;
	color: var(--reb-text-muted);
	background: var(--reb-bg);
}

.reb-contacts-requisites__table td {
	font-weight: 600;
}

.reb-contacts-requisites__downloads {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

/* Карточка формы. */
.reb-contacts-requisites__form-card {
	flex: 0 0 400px;
	width: 400px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 30px 32px;
	background: var(--reb-bg);
	border: 1px solid var(--reb-border);
}

.reb-contacts-requisites__form-title {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.reb-contacts-requisites__form-subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--reb-text-muted);
}

.reb-contacts-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 4px;
}

.reb-contacts-form__field {
	width: 100%;
	border: 1px solid #CDDCD3;
	padding: 14px;
	font-size: 14px;
	background: #fff;
	border-radius: 0;
}

.reb-contacts-form__field::placeholder {
	color: var(--reb-text-faint);
}

.reb-contacts-form__field:focus {
	outline: 2px solid var(--reb-accent);
	outline-offset: -1px;
	border-color: var(--reb-accent);
}

.reb-contacts-form__field--area {
	min-height: 80px;
	resize: vertical;
}

/* Прикрепление файлов (верстка, обработчик - отдельный этап). */
.reb-contacts-form__file {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	border: 1px dashed #A9B5AD;
	background: #fff;
	font-size: 13px;
	color: var(--reb-text-muted);
	text-align: center;
	cursor: pointer;
}

.reb-contacts-form__file input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.reb-contacts-form__submit {
	width: 100%;
	padding: 16px;
}

.reb-contacts-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 11px;
	line-height: 1.45;
	color: var(--reb-text-faint);
	cursor: pointer;
}

.reb-contacts-form__consent input {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin: 1px 0 0;
	accent-color: var(--reb-accent);
}

/* Адаптив. */
@media (max-width: 1024px) {
	.reb-contacts-requisites__inner {
		flex-wrap: wrap;
	}

	.reb-contacts-requisites__form-card {
		flex: 1 1 100%;
		width: auto;
	}
}

@media (max-width: 768px) {
	.reb-contacts-requisites__inner {
		padding-top: 40px;
		padding-bottom: 40px;
		gap: 28px;
	}

	.reb-contacts-requisites__heading {
		font-size: 24px;
	}

	/* Реквизиты строками: подпись над значением. */
	.reb-contacts-requisites__table,
	.reb-contacts-requisites__table tbody,
	.reb-contacts-requisites__table tr,
	.reb-contacts-requisites__table th,
	.reb-contacts-requisites__table td {
		display: block;
		width: 100%;
	}

	.reb-contacts-requisites__table th {
		padding-bottom: 2px;
		border-bottom: none;
	}

	.reb-contacts-requisites__table td {
		padding-top: 0;
	}

	.reb-contacts-requisites__form-card {
		padding: 24px 20px;
	}
}
