/* ===== Local Google Fonts (TTF) ===== */
@font-face {
	font-family: 'Manrope';
	src: local('Manrope Regular'),
		url('../fonts/Manrope-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: local('Manrope Medium'),
		url('../fonts/Manrope-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: local('Manrope SemiBold'),
		url('../fonts/Manrope-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Fraunces';
	src: local('Fraunces SemiBold'),
		url('../fonts/Fraunces-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ===== Root & Reset ===== */
:root {
	--bg: #0e0f11;
	--bg-soft: #15171b;
	--text: #eaecef;
	--muted: #b9bec7;
	--accent: #ef7f1a; /* warm saffron */
	--accent-2: #4767ff; /* indigo pop */
	--ring: rgba(239, 127, 26, 0.35);
	--shadow: rgba(0, 0, 0, 0.35);
	--radius: 16px;
	--container: 1120px;
	--font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial,
		sans-serif;
	--font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}
* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
	scroll-behavior: smooth;
}
body {
	margin: 0;
	color: var(--text);
	background: radial-gradient(
			1200px 800px at 10% -10%,
			#1e2127 0,
			transparent 60%
		),
		var(--bg);
	font: 400 16px/1.6 var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 350px; /* <== требование: не больше 350px в ширину */
	object-fit: cover;
}
a {
	color: inherit;
	text-decoration: none;
}
a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--bg-soft);
	color: var(--text);
	padding: 8px 12px;
	border-radius: 8px;
	z-index: 2000;
}
.skip-link:focus {
	left: 12px;
	top: 12px;
}

/* ===== Layout ===== */
.container {
	width: min(100% - 24px, var(--container));
	margin-inline: auto;
}

/* ===== Header (fixed) ===== */
.site-header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 1000;
	background: color-mix(in oklab, var(--bg) 92%, #000 8%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(10px);
}
.header-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 10px 0;
}
.logo img {
	width: 70px;
	max-width: 70px;
}
.nav {
	justify-self: end;
}
.nav-toggle {
	display: none;
	background: transparent;
	border: 0;
	padding: 8px;
	border-radius: 10px;
}
.nav-toggle-bar {
	width: 28px;
	height: 2px;
	background: var(--text);
	display: block;
	position: relative;
}
.nav-toggle-bar::before,
.nav-toggle-bar::after {
	content: '';
	position: absolute;
	left: 0;
	width: 28px;
	height: 2px;
	background: var(--text);
}
.nav-toggle-bar::before {
	top: -8px;
}
.nav-toggle-bar::after {
	top: 8px;
}

.menu {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.menu a {
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--muted);
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.menu a[aria-current='page'] {
	color: var(--text);
}
.menu a:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.05);
	transform: translateY(-1px);
}

/* ===== Footer (Brimline) ===== */
.footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: color-mix(in oklab, var(--bg) 92%, #000 8%);
	padding: 24px 0;
}
.footer-container {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 20px;
	align-items: start;
}
.footer-column a {
	color: var(--muted);
}
.footer-column a:hover {
	color: var(--text);
}

.footer-brand {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: 1.1rem;
	margin: 0 0 6px;
}

.footer-links {
	display: flex;
	gap: 14px;
	align-items: center;
}
.footer-links a {
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	transition: background-color 0.2s ease, border-color 0.2s ease,
		transform 0.2s ease;
}
.footer-links a:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.2);
	transform: translateY(-1px);
}

.footer-top {
	justify-self: end;
}
.back-to-top {
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid color-mix(in oklab, var(--accent) 55%, #000 45%);
	background: linear-gradient(
		180deg,
		color-mix(in oklab, var(--accent) 85%, #fff 15%),
		var(--accent)
	);
	color: #191919;
	box-shadow: 0 6px 16px var(--ring);
	transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}
.back-to-top:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px var(--ring);
}

/* Animate-on-scroll helper (если ещё не добавлено) */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(12px);
}
.animate-on-scroll.in-view {
	opacity: 1;
	transform: none;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive */
@media (max-width: 860px) {
	.footer-container {
		grid-template-columns: 1fr;
	}
	.footer-top {
		justify-self: start;
	}
}

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.25s ease,
		background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	will-change: transform;
}
.btn-primary {
	background: linear-gradient(
		180deg,
		color-mix(in oklab, var(--accent) 85%, #fff 15%),
		var(--accent)
	);
	color: #191919;
	border-color: color-mix(in oklab, var(--accent) 55%, #000 45%);
	box-shadow: 0 6px 16px var(--ring);
}
.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px var(--ring);
}
.btn-ghost {
	background: transparent;
	color: var(--text);
	border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-1px);
}

/* ===== Page Title (one h1 in main) ===== */
.page-title {
	position: absolute;
	inset: auto auto auto -9999px; /* keep semantic, not visible */
}

/* ===== Utilities ===== */
.reveal {
	opacity: 0;
	transform: translateY(12px);
}
.reveal.in-view {
	opacity: 1;
	transform: none;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
	.menu {
		display: none;
	}
	.nav-toggle {
		display: inline-block;
	}
	.nav[aria-expanded='true'] .menu {
		display: flex;
		position: absolute;
		right: 12px;
		top: 64px;
		flex-direction: column;
		background: var(--bg-soft);
		padding: 12px;
		border-radius: 12px;
		box-shadow: 0 10px 30px var(--shadow);
	}
}
@media (max-width: 640px) {
	.logo img {
		width: 60px;
		max-width: 60px;
	}
}
@media (max-width: 360px) {
	body {
		font-size: 15px;
	}
	.container {
		width: min(100% - 16px, var(--container));
	}
}
@media (max-width: 280px) {
	body {
		font-size: 14px;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
.section-title {
	font-family: var(--font-serif);
	font-weight: 600;
	letter-spacing: 0.2px;
}
/* ===== Thank You page (Brimline) ===== */
.thankyou-section {
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: 32px 0;
	background: radial-gradient(
			80% 60% at 50% 0%,
			color-mix(in oklab, var(--accent) 10%, transparent) 0%,
			transparent 60%
		),
		color-mix(in oklab, var(--bg) 96%, #000 4%);
}

.thankyou-container {
	max-width: 760px;
	width: min(92%, 760px);
	text-align: center;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.06),
		rgba(255, 255, 255, 0.02)
	);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 18px;
	padding: 22px 18px;
	box-shadow: 0 14px 48px var(--shadow);
	animation: riseFade 0.6s ease both;
}

.thankyou-title {
	font-family: var(--font-serif);
	font-weight: 600;
	margin: 0 0 8px;
}

.thankyou-message {
	margin: 0 0 14px;
	color: var(--muted);
}

/* Brand button (shared look) */
.cta-button {
	display: inline-block;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid color-mix(in oklab, var(--accent) 55%, #000 45%);
	background: linear-gradient(
		180deg,
		color-mix(in oklab, var(--accent) 85%, #fff 15%),
		var(--accent)
	);
	color: #191919;
	box-shadow: 0 6px 16px var(--ring);
	transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.2s ease;
}
.cta-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 26px var(--ring);
}

/* Simple entrance animation */
@keyframes riseFade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 520px) {
	.thankyou-container {
		padding: 18px 14px;
	}
}
main {
	margin-top: 20px;
}
