/* ============================================================
   Купанча — design tokens
   ============================================================ */
:root {
	--bg: #120e0a;
	--bg-panel: #1b150f;
	--bg-panel-2: #221a12;
	--line: #3a2e21;

	--wood: #8a5a34;
	--wood-dark: #5c3b21;
	--gold: #d9a552;
	--gold-hi: #f0c878;

	--cream: #f4ead8;
	--muted: #b7a488;
	--muted-2: #8b7a63;

	--font-display: "Yeseva One", "Georgia", serif;
	--font-body: "Manrope", system-ui, sans-serif;

	--radius: 14px;
	--wrap: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 28px;
}

.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;
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

::selection {
	background: var(--gold);
	color: #1b150f;
}

:focus-visible {
	outline: 2px solid var(--gold-hi);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ============================================================
   Signature element — fixed sun mark
   ============================================================ */
.sunmark {
	position: fixed;
	right: -46px;
	bottom: -46px;
	width: 190px;
	height: 190px;
	pointer-events: none;
	opacity: 0.5;
	z-index: 5;
}
.sunmark svg {
	width: 100%;
	height: 100%;
}
.sunmark-core {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.2;
}
.sunmark-rays line {
	stroke: var(--gold);
	stroke-width: 1.2;
	stroke-linecap: round;
	animation: raypulse 6s ease-in-out infinite;
}
.sunmark-rays line:nth-child(odd) {
	animation-delay: -3s;
}
@keyframes raypulse {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 0.9;
	}
}
@media (max-width: 720px) {
	.sunmark {
		width: 130px;
		height: 130px;
		right: -34px;
		bottom: -34px;
		opacity: 0.35;
	}
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: linear-gradient(to bottom, rgba(18, 14, 10, 0.85), rgba(18, 14, 10, 0));
	padding: 18px 0;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.brand-mark {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(217, 165, 82, 0.5);
}
.brand-word {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.brand-word strong {
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	color: var(--cream);
}
.brand-word em {
	font-style: normal;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.nav {
	display: flex;
	gap: 30px;
}
.nav-link {
	font-size: 0.88rem;
	letter-spacing: 0.03em;
	color: var(--muted);
	position: relative;
	padding: 4px 0;
	transition: color 0.2s ease;
}
.nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 1px;
	background: var(--gold);
	transition: width 0.25s ease;
}
.nav-link:hover {
	color: var(--cream);
}
.nav-link:hover::after {
	width: 100%;
}

.burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
}
.burger span {
	display: block;
	height: 2px;
	margin: 0 9px;
	background: var(--cream);
	transition:
		transform 0.25s ease,
		opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
	opacity: 0;
}
.burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
	.nav {
		position: absolute;
		top: 100%;
		right: 28px;
		left: 28px;
		flex-direction: column;
		gap: 0;
		background: var(--bg-panel);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		padding: 8px 0;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition:
			max-height 0.3s ease,
			opacity 0.25s ease;
	}
	.nav.is-open {
		max-height: 320px;
		opacity: 1;
	}
	.nav-link {
		padding: 14px 20px;
	}
	.nav-link::after {
		display: none;
	}
	.burger {
		display: flex;
	}
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero-veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18, 14, 10, 1) 0%, rgba(18, 14, 10, 0.55) 38%, rgba(18, 14, 10, 0.35) 60%, rgba(18, 14, 10, 0.75) 100%);
}
.hero-inner {
	position: relative;
	z-index: 1;
	padding-top: 120px;
	padding-bottom: 90px;
	max-width: 760px;
}
.eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-hi);
	margin: 0 0 18px;
}
.hero-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 5.2vw, 3.7rem);
	line-height: 1.15;
	margin: 0 0 22px;
	color: var(--cream);
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.hero-sub {
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 560px;
	margin: 0 0 34px;
}
.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}
.btn:hover {
	transform: translateY(-2px);
}
.btn-primary {
	background: linear-gradient(135deg, var(--gold-hi), var(--gold));
	color: #241605;
}
.btn-primary:hover {
	box-shadow: 0 10px 30px -8px rgba(217, 165, 82, 0.55);
}
.btn-ghost {
	background: rgba(244, 234, 216, 0.04);
	border-color: rgba(244, 234, 216, 0.3);
	color: var(--cream);
}
.btn-ghost:hover {
	border-color: var(--gold-hi);
	color: var(--gold-hi);
}

.scroll-cue {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	width: 24px;
	height: 40px;
	border: 1px solid rgba(244, 234, 216, 0.4);
	border-radius: 20px;
}
.scroll-cue span {
	position: absolute;
	top: 7px;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	background: var(--gold-hi);
	border-radius: 2px;
	animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
	0% {
		opacity: 1;
		transform: translateY(0);
	}
	70% {
		opacity: 0;
		transform: translateY(14px);
	}
	100% {
		opacity: 0;
		transform: translateY(0);
	}
}

/* ============================================================
   Sections — shared
   ============================================================ */
.section {
	padding: 110px 0;
}
.section-label {
	font-size: 0.78rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 14px;
}
.section-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(1.7rem, 3.4vw, 2.5rem);
	margin: 0 0 20px;
	color: var(--cream);
}

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.7s ease,
		transform 0.7s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ============================================================
   About
   ============================================================ */
.about {
	background: var(--bg);
}
.about-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 40px;
	align-items: start;
}
.about-text p {
	color: var(--muted);
	margin: 0 0 16px;
	max-width: 46ch;
}
.about-text p:last-child {
	margin-bottom: 0;
}

.about-divider {
	display: flex;
	justify-content: center;
}
.divider-svg {
	width: 24px;
	height: 100%;
	min-height: 260px;
}
.divider-svg line {
	stroke: var(--line);
	stroke-width: 1;
}
.divider-svg circle {
	fill: var(--gold);
}

.about-facts {
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.fact {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line);
}
.fact:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.fact-num {
	font-family: var(--font-display);
	color: var(--wood);
	font-size: 1.1rem;
	min-width: 30px;
}
.fact p {
	margin: 0;
	color: var(--cream);
	font-size: 0.96rem;
}

@media (max-width: 880px) {
	.about-grid {
		grid-template-columns: 1fr;
	}
	.about-divider {
		order: 3;
		transform: rotate(90deg);
		margin: 10px 0;
	}
	.divider-svg {
		min-height: 0;
		width: 100%;
		height: 24px;
	}
}

/* ============================================================
   Progress / timeline
   ============================================================ */
.progress {
	background: var(--bg-panel);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.progress-intro {
	color: var(--muted);
	max-width: 56ch;
	margin: 0 0 50px;
}

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 11px;
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: var(--line);
}
.tl-item {
	position: relative;
	padding: 0 0 40px 46px;
}
.tl-item:last-child {
	padding-bottom: 0;
}
.tl-marker {
	position: absolute;
	left: 0;
	top: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--bg-panel);
	border: 1px solid var(--wood);
}
.tl-item.is-done .tl-marker {
	background: var(--wood);
	border-color: var(--wood);
}
.tl-item.is-active .tl-marker {
	border-color: var(--gold-hi);
	box-shadow: 0 0 0 4px rgba(217, 165, 82, 0.18);
}
.tl-item.is-active .tl-marker::after {
	content: "";
	position: absolute;
	inset: 6px;
	border-radius: 50%;
	background: var(--gold-hi);
}
.tl-stage {
	display: inline-block;
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted-2);
	margin-bottom: 6px;
}
.tl-item.is-active .tl-stage {
	color: var(--gold-hi);
}
.tl-body h3 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.2rem;
	margin: 0 0 8px;
	color: var(--cream);
}
.tl-body p {
	margin: 0;
	color: var(--muted);
	max-width: 56ch;
}

/* ============================================================
   Notify
   ============================================================ */
.notify {
	background: var(--bg);
}
.notify-inner {
	max-width: 620px;
	text-align: left;
}
.notify-sub {
	color: var(--muted);
	margin: 0 0 30px;
}
.notify-form {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.notify-form input {
	flex: 1 1 240px;
	padding: 15px 18px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--bg-panel-2);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 0.95rem;
}
.notify-form input::placeholder {
	color: var(--muted-2);
}
.notify-form input:focus {
	border-color: var(--gold);
	outline: none;
}
.notify-status {
	margin: 14px 0 0;
	font-size: 0.88rem;
	color: var(--gold-hi);
	min-height: 1.2em;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
	background: var(--bg-panel);
	border-top: 1px solid var(--line);
	padding-top: 70px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 50px;
}
.footer-mark {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 16px;
	border: 1px solid rgba(217, 165, 82, 0.4);
}
.footer-brand p {
	color: var(--muted);
	max-width: 32ch;
	margin: 0;
}

.footer-heading {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 14px;
}
.footer-legal p,
.footer-nav a {
	color: var(--muted);
	margin: 0 0 10px;
	font-size: 0.93rem;
}
.footer-legal .footer-heading {
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 14px;
}
.footer-nav {
	display: flex;
	flex-direction: column;
}
.footer-nav a {
	transition: color 0.2s ease;
}
.footer-nav a:hover {
	color: var(--gold-hi);
}

.footer-bottom {
	border-top: 1px solid var(--line);
	padding: 22px 0 28px;
}
.footer-bottom p {
	margin: 0;
	font-size: 0.82rem;
	color: var(--muted-2);
}

@media (max-width: 720px) {
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 34px;
	}
}
