/* ==========================================================================
   Contact page (Figma "Inner - Contact (1440)" 66:554, section 66:569)
   ========================================================================== */

.contact { padding: 72px 0 96px; }
.contact__inner { display: flex; align-items: flex-start; gap: 80px; }

/* Info column */
.contact__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.contact__title { font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.contact__lead { font-size: 19px; line-height: 1.55; color: var(--text); }
.contact__block { display: flex; flex-direction: column; gap: 6px; width: 100%; padding-top: 20px; border-top: 1px solid var(--border); }
.contact__h { font-size: 16px; font-weight: 700; line-height: normal; color: var(--ink); text-wrap: wrap; }
.contact__block p { font-size: 15px; line-height: 1.5; color: var(--text); }
.contact__mail { background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease), color .25s; }
.contact__mail:hover { color: var(--orange); background-size: 100% 1.5px; }

/* Form card */
.contact__card {
	flex: none;
	width: 560px;
	padding: 36px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--bg-alt);
	scroll-margin-top: calc(var(--hh) + 24px);
}
.cform { display: flex; flex-direction: column; gap: 18px; }
.cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { font-size: 14px; font-weight: 600; line-height: normal; color: var(--ink); }
.field__input {
	width: 100%;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--white);
	font: inherit;
	font-size: 16px;
	line-height: 1.2;
	color: var(--ink);
	box-shadow: 0 0 0 0 rgba(233, 106, 51, 0);
	transition: border-color .25s, box-shadow .25s;
	-webkit-appearance: none;
	appearance: none;
}
.field__input::placeholder { color: var(--muted); opacity: 1; }
.field__input:hover { border-color: var(--light-1); }
.field__input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233, 106, 51, .16); }
.field__select {
	padding-right: 40px;
	color: var(--muted);
	cursor: pointer;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 12px;
}
.field__select:focus { color: var(--ink); }
.field__select option { color: var(--ink); }
.field__textarea { height: 140px; min-height: 100px; resize: vertical; line-height: 1.5; padding-top: 12px; }

.field.has-error .field__input { border-color: #dc2626; }
.field.has-error .field__input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .14); }
.field__error { font-size: 13px; line-height: 1.4; color: #b91c1c; }

.cform__submit { padding: 15px 24px; font-size: 16px; }
.cform__note { font-size: 13px; line-height: normal; color: var(--muted); }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Status message above the form */
.contact__status { scroll-margin-top: calc(var(--hh) + 24px); margin-bottom: 18px; padding: 14px 16px; border: 1px solid; border-radius: 10px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.contact__status[hidden] { display: none; }
.contact__status--success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.contact__status--error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

/* Tablet: keep text + form side by side */
@media (max-width: 1180px) {
	.contact__inner { gap: 48px; }
	.contact__card { flex: 0 1 480px; width: auto; padding: 32px; }
	.contact__title { font-size: 42px; }
}
@media (max-width: 960px) {
	.contact__inner { gap: 32px; }
	.contact__card { flex: 1 1 0; min-width: 0; padding: 28px 24px; }
	.contact__title { font-size: 32px; }
	.contact__lead { font-size: 17px; }
	.cform__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* Mobile: info first, then the form */
@media (max-width: 767px) {
	.contact { padding: 40px 0 60px; }
	.contact__inner { flex-direction: column; align-items: stretch; gap: 32px; }
	.contact__info { gap: 18px; }
	.contact__title { font-size: 34px; line-height: 1.12; }
	.contact__lead { font-size: 16px; }
	.contact__block { padding-top: 16px; }
	.contact__card { flex: none; width: 100%; padding: 24px 20px; border-radius: 16px; }
	.cform { gap: 16px; }
}
@media (max-width: 420px) {
	.contact__title { font-size: 30px; }
}
