/* Contacts page */

.page-contacts {
	background: #fff;
}

/* Section 1 */
.contacts-section {
	padding: 48px 0 80px;
	background: #fff;
}

.contacts-section__inner {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 64px;
	align-items: start;
	margin-top: 32px;
}

.contacts-section__title {
	font-size: clamp(36px, 4vw, 56px);
	font-weight: 500;
	line-height: 1.1;
	color: #1a1918;
	margin: 12px 0 16px;
}

.contacts-section__desc {
	font-size: 15px;
	color: #6b6a68;
	line-height: 1.65;
	margin-bottom: 32px;
	max-width: 420px;
}

.contacts-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contacts-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid #e5e4e2;
	border-radius: 100px;
}

.contacts-card__icon {
	width: 40px;
	height: 40px;
	background: #f5f4f2;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.contacts-card__icon svg {
	width: 18px;
	height: 18px;
	color: #1a1918;
}

.contacts-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.contacts-card__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #aaa9a7;
}

.contacts-card__phones {
	display: block;
	line-height: 1.5;
}

.contacts-card__phones .contacts-card__value + .contacts-card__value::before {
	content: none;
}

.footer-contact-phones {
	display: block;
	line-height: 1.45;
}

.contacts-card__value {
	font-size: 15px;
	font-weight: 500;
	color: #1a1918;
	text-decoration: none;
	transition: color 0.2s;
}

a.contacts-card__value:hover {
	color: #fecc43;
}

.contacts-form-card {
	background: #fff;
	border: 1px solid #e5e4e2;
	border-radius: 20px;
	padding: 40px;
}

.contacts-form-card__title {
	font-size: 28px;
	font-weight: 500;
	color: #1a1918;
	margin: 0 0 8px;
}

.contacts-form-card__sub {
	font-size: 14px;
	color: #6b6a68;
	margin: 0 0 28px;
}

.contacts-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.contacts-form .form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.contacts-form__row .form-field {
	margin-bottom: 0;
}

.contacts-form label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #aaa9a7;
}

.contacts-form .req {
	color: #1a1918;
}

.contacts-form input,
.contacts-form textarea {
	font-family: var(--font);
	font-size: 15px;
	padding: 14px 18px;
	border: 1.5px solid #e5e4e2;
	border-radius: 100px;
	background: #fafaf9;
	color: #1a1918;
	outline: none;
	width: 100%;
	transition: border-color 0.2s, background 0.2s;
}

.contacts-form textarea {
	border-radius: 16px;
	resize: vertical;
	min-height: 120px;
}

.contacts-form input:focus,
.contacts-form textarea:focus {
	border-color: #fecc43;
	background: #fff;
}

.contacts-form input::placeholder,
.contacts-form textarea::placeholder {
	color: #cccbc9;
}

.contacts-form__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.contacts-form__privacy {
	font-size: 12px;
	color: #aaa9a7;
	line-height: 1.5;
	max-width: 280px;
	margin: 0;
}

.contacts-form__submit {
	border-radius: 100px;
	padding: 14px 28px;
	white-space: nowrap;
	flex-shrink: 0;
}

.contacts-form .form-success,
.contacts-form .form-error {
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14px;
}

.contacts-form .form-success {
	background: #d4edda;
	color: #155724;
}

.contacts-form .form-error {
	background: #f8d7da;
	color: #721c24;
}

/* Section 2 */
.section-regions-contacts {
	padding: 0 0 80px;
	background: #fff;
}

.regions-contacts-card {
	background: #1a1918;
	border-radius: 20px;
	padding: 52px 56px;
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 64px;
	align-items: center;
}

.regions-contacts-card__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #666462;
	display: block;
	margin-bottom: 16px;
}

.regions-contacts-card__title {
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 500;
	color: #fff;
	line-height: 1.15;
	margin: 0 0 16px;
}

.regions-contacts-card__desc {
	font-size: 14px;
	color: #888784;
	line-height: 1.6;
	margin: 0;
}

.regions-contacts-card__right {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.region-contacts-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 100px;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 400;
	transition: border-color 0.2s, background 0.2s;
}

.region-contacts-pill:hover {
	border-color: #fecc43;
	background: rgba(254, 204, 67, 0.06);
}

.region-contacts-pill__left {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.region-contacts-pill__left span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.region-contacts-pill__pin {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.region-contacts-pill__arrow {
	width: 14px;
	height: 14px;
	color: #666462;
	flex-shrink: 0;
	transition: color 0.2s;
}

.region-contacts-pill:hover .region-contacts-pill__arrow {
	color: #fecc43;
}

@media (max-width: 1024px) {
	.contacts-section__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.regions-contacts-card {
		grid-template-columns: 1fr;
		padding: 40px;
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.contacts-section {
		padding: 32px 0 56px;
	}

	.contacts-form__row {
		grid-template-columns: 1fr;
	}

	.contacts-form-card {
		padding: 24px 20px;
	}

	.contacts-form__footer {
		flex-direction: column;
		align-items: stretch;
	}

	.contacts-form__submit {
		width: 100%;
		justify-content: center;
	}

	.regions-contacts-card__right {
		grid-template-columns: 1fr;
	}

	.regions-contacts-card {
		padding: 32px 24px;
	}
}
