/**
 * Standards FM — contact template.
 *
 * Refined editorial two-column layout: location information on the left,
 * message form on the right. White background, black typography, green
 * accent, thin navy inputs. Typography runs on the theme's font token so
 * the whole site stays in sync (Bozon, locally hosted).
 */

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(48px, 7vw, 104px);
	align-items: start;
	padding-top: 16px;
}

/* Shared editorial chrome ------------------------------------------------ */

.contact-info__eyebrow {
	margin: 0 0 14px;
	font-size: var(--sfm-text-xs);
	font-weight: var(--sfm-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--sfm-green, #2e7d32);
}

/* Left column ------------------------------------------------------------ */

.contact-info__intro {
	margin: 0 0 30px;
	position: relative;
	padding-left: 18px;
	color: #2e7d32;
	font-size: clamp(21px, 2.5vw, 27px);
	font-weight: var(--sfm-weight-bold);
	line-height: 1.45;
	max-width: 24ch;
}

.contact-info__intro::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	border-radius: 2px;
	background: var(--sfm-green);
}

.contact-info__heading {
	margin: 0 0 18px;
	font-size: clamp(21px, 2.1vw, 26px);
	font-weight: var(--sfm-weight-bold);
	line-height: 1.3;
	color: #111;
}

.contact-info__address {
	margin: 0;
	color: #222;
	font-size: var(--sfm-text-base);
	line-height: 1.85;
}

.contact-info__meta {
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--sfm-line);
}

.contact-info__row {
	display: grid;
	grid-template-columns: 22px 64px 1fr;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--sfm-line);
	color: #222;
	font-size: 15.5px;
	line-height: 1.5;
}

.contact-info__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--sfm-navy);
}

.contact-info__ico .ficon {
	width: 19px;
	height: 19px;
}

.contact-info__k {
	font-weight: var(--sfm-weight-bold);
	color: #111;
}

.contact-info__v {
	color: #222;
}

.contact-info__v--link {
	color: var(--sfm-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(0, 19, 87, 0.35);
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.contact-info__v--link:hover {
	color: #2e7d32;
	text-decoration-color: #2e7d32;
}

/* Right column ------------------------------------------------------------ */

.contact-panel__heading {
	margin: 0 0 26px;
	font-size: clamp(22px, 2.3vw, 28px);
	font-weight: var(--sfm-weight-bold);
	line-height: 1.2;
	color: #111;
}

/* Notices ------------------------------------------------------------------ */

.contact-notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 15px 16px;
	border-radius: 10px;
	margin-bottom: 24px;
	font-size: 14.5px;
	line-height: 1.55;
}

.contact-notice__ico {
	flex: 0 0 auto;
	margin-top: 1px;
}

.contact-notice--ok {
	background: #f1fbe4;
	border: 1px solid #c7ec9f;
	border-left: 4px solid var(--sfm-green);
	color: #1e4b06;
}

.contact-notice--ok .contact-notice__ico {
	color: #2e7d32;
}

.contact-notice--err {
	background: #fdf1f1;
	border: 1px solid #f3c1c1;
	border-left: 4px solid #d63638;
	color: #7a1010;
}

.contact-notice--err .contact-notice__ico {
	color: #d63638;
}

.contact-notice ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-notice li + li {
	margin-top: 4px;
}

/* Form --------------------------------------------------------------------- */

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-form__hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

.contact-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.contact-form__field {
	margin: 0;
}

.contact-form__field--full {
	grid-column: 1 / -1;
}

.contact-form__field label {
	display: block;
	margin-bottom: 8px;
	font-size: 12.5px;
	font-weight: var(--sfm-weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #333;
}

.contact-form__field input,
.contact-form__field textarea {
	display: block;
	width: 100%;
	padding: 13px 15px;
	border: 1px solid rgba(0, 19, 87, 0.4);
	border-radius: 10px;
	background: #fff;
	color: #111;
	font-family: inherit;
	font-size: var(--sfm-text-md);
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form__field textarea {
	resize: vertical;
	min-height: 158px;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
	color: #9aa2bc;
}

.contact-form__field input:hover,
.contact-form__field textarea:hover {
	border-color: rgba(0, 19, 87, 0.6);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
	outline: none;
	border-color: var(--sfm-navy);
	box-shadow: 0 0 0 3px rgba(0, 19, 87, 0.12);
	background: #fbfcff;
}

.contact-form__submit {
	margin: 6px 0 0;
}

.contact-form__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 38px;
	border: 0;
	border-radius: 999px;
	background: var(--sfm-navy);
	color: #fff;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: var(--sfm-weight-bold);
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 19, 87, 0.18);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.06s ease;
}

.contact-form__btn svg,
.contact-form__btn span {
	transition: transform 0.15s ease;
}

.contact-form__btn:hover {
	background: #001a6b;
	box-shadow: 0 10px 26px rgba(0, 19, 87, 0.24);
}

.contact-form__btn:hover span {
	transform: translateX(3px);
}

.contact-form__btn:active {
	transform: translateY(1px);
	box-shadow: 0 6px 14px rgba(0, 19, 87, 0.18);
}

.contact-form__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 19, 87, 0.25);
}

/* Location map ------------------------------------------------------------ */

.contact-map {
	margin-top: clamp(48px, 6vw, 80px);
	aspect-ratio: 16 / 6;
	border: 1px solid var(--sfm-line);
	border-radius: 16px;
	overflow: hidden;
	background: #f2f4f8;
	box-shadow: 0 6px 18px rgba(0, 19, 87, 0.08);
}

.contact-map__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 960px) {
	.contact-layout {
		grid-template-columns: 1fr;
		gap: 56px;
	}

	.contact-info__intro {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.contact-map {
		aspect-ratio: 4 / 3;
	}

	.contact-form__row {
		grid-template-columns: 1fr;
	}
}