/* Fieldlot — споделен UI (header, бутони, форми, footer) */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--fl-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--fl-ink);
	background: var(--fl-surface);
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, input, select, textarea {
	font: inherit;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	border-bottom: 1px solid var(--fl-line);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
}

.nav {
	width: min(1140px, calc(100% - 32px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand-mark {
	width: 44px;
	height: 44px;
	border-radius: var(--fl-radius);
	display: grid;
	place-items: center;
	background: var(--fl-brand-solid);
	color: #fff;
	flex-shrink: 0;
}

.brand-title {
	display: block;
	font-weight: 700;
	letter-spacing: 0.14em;
	font-size: 16px;
	color: var(--fl-brand);
}

.brand-sub {
	display: block;
	margin-top: 2px;
	color: var(--fl-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border: 1px solid var(--fl-line);
	border-radius: 999px;
	background: var(--fl-surface);
	flex-shrink: 0;
}

.lang-switch button {
	border: 0;
	background: transparent;
	color: var(--fl-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 6px 10px;
	border-radius: 999px;
	cursor: pointer;
	line-height: 1;
}

.lang-switch button.is-active {
	background: var(--fl-brand-solid);
	color: #fff;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fl-muted);
}

.nav-links a {
	text-decoration: none;
	transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
	color: var(--fl-brand);
}

.nav-cta,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	border-radius: var(--fl-radius);
	border: 1px solid transparent;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-cta,
.btn-primary {
	background: var(--fl-brand-solid);
	color: #fff;
}

.nav-cta:hover,
.btn-primary:hover {
	background: var(--fl-brand-solid-hover);
}

.btn-secondary {
	border-color: var(--fl-line);
	background: var(--fl-white);
	color: var(--fl-ink);
}

.btn-secondary:hover {
	border-color: #cbd5e1;
	background: var(--fl-surface);
}

.container {
	width: min(1140px, calc(100% - 32px));
	margin: 0 auto;
}

.site-footer {
	border-top: 1px solid var(--fl-line);
	padding: 32px 0 48px;
	color: var(--fl-muted);
	font-size: 14px;
	background: var(--fl-white);
}

.site-footer p { margin: 0 0 6px; }

.site-footer a {
	color: var(--fl-accent);
	font-weight: 500;
	text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

.board-eyebrow,
.section-title {
	margin: 0;
	color: var(--fl-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (max-width: 920px) {
	.nav-links { display: none; }
}

@media (max-width: 640px) {
	.container,
	.nav {
		width: min(100% - 24px, 1140px);
	}
	.nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}
