/* ===========================
   PaperMint — Global Styles
   =========================== */

/* Fonts (local TTF from /fonts) */
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/Poppins-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Poppins';
	src: url('../fonts/Poppins-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Merriweather';
	src: url('../fonts/Merriweather-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Reset & base */
* {
	box-sizing: border-box;
}
html,
body {
	height: 100%;
}
body {
	margin: 0;
	font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI,
		Roboto, 'Helvetica Neue', Arial;
	color: #17232a;
	background: linear-gradient(180deg, #f7fffb 0%, #f3fff9 30%, #ffffff 100%);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
/* было: max-width: 280px; */
img {
	display: block;
	width: auto; /* по умолчанию */
	max-width: 100%; /* не шире контейнера */
	height: auto;
}
/* <= 350px rule */
a {
	color: inherit;
	text-decoration: none;
}
ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.visually-hidden {
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Theme tokens */
:root {
	--mint-600: #0bb48a;
	--mint-500: #18c9a1;
	--mint-400: #2ddbb0;
	--mint-200: #d5fff1;
	--ink-900: #0f1b20;
	--ink-600: #2f4954;
	--ink-400: #587783;
	--paper: #ffffff;
	--shadow: 0 10px 30px rgba(23, 35, 42, 0.08);
	--radius: 18px;
}

/* Layout helpers */
.container {
	width: min(1180px, 92vw);
	margin-inline: auto;
}
.section {
	padding: clamp(56px, 8vw, 96px) 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-weight: 700;
	letter-spacing: 0.2px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
		color 0.18s ease, border-color 0.18s ease;
	will-change: transform;
}
.btn-primary {
	background: var(--mint-500);
	color: #fff;
	box-shadow: 0 6px 18px rgba(24, 201, 161, 0.25);
}
.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(24, 201, 161, 0.32);
}
.btn-ghost {
	background: transparent;
	color: var(--ink-900);
	border-color: var(--mint-400);
}
.btn-ghost:hover {
	background: var(--mint-200);
}

/* Header (fixed) */
.site-header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: saturate(140%) blur(8px);
	box-shadow: 0 1px 0 rgba(15, 27, 32, 0.06);
}
.header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 16px;
	align-items: center;
	min-height: 64px;
}
.brand {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	font-weight: 700;
}
.brand-logo {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: radial-gradient(
		circle at 30% 30%,
		var(--mint-400),
		var(--mint-600)
	);
	display: inline-grid;
	place-items: center;
	color: #fff;
	font-size: 14px;
	box-shadow: var(--shadow);
}
.brand-name {
	letter-spacing: 0.3px;
}

/* Nav */
.nav {
	display: block;
}
.nav-list {
	display: flex;
	gap: clamp(10px, 2.2vw, 24px);
	align-items: center;
}
.nav-list a {
	padding: 10px 12px;
	border-radius: 10px;
	transition: background 0.18s ease, color 0.18s ease;
}
.nav-list a:hover {
	background: var(--mint-200);
}
.nav-list .is-active {
	color: var(--mint-600);
}

/* Burger */
.nav-toggle {
	display: none;
	position: relative;
	width: 42px;
	height: 42px;
	border: 0;
	background: transparent;
	border-radius: 10px;
}
.nav-toggle .bar {
	position: absolute;
	left: 10px;
	right: 10px;
	height: 2px;
	background: #0f1b20;
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle .bar:nth-child(1) {
	top: 14px;
}
.nav-toggle .bar:nth-child(2) {
	top: 20px;
}
.nav-toggle .bar:nth-child(3) {
	top: 26px;
}

/* Mobile menu state */
.nav.is-collapsed {
	display: none;
}
.nav.is-open {
	display: block;
}
.nav-toggle.is-open .bar:nth-child(1) {
	top: 20px;
	transform: rotate(45deg);
}
.nav-toggle.is-open .bar:nth-child(2) {
	opacity: 0;
}
.nav-toggle.is-open .bar:nth-child(3) {
	top: 20px;
	transform: rotate(-45deg);
}

/* Footer (new structure) */
.footer {
	border-top: 1px solid rgba(15, 27, 32, 0.06);
	background: #fff;
}
.footer-container {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 18px;
	align-items: center;
	padding: 18px 0;
}
.footer-column a {
	padding: 6px 0;
	display: inline-block;
}
.footer-brand {
	font-weight: 700;
	letter-spacing: 0.3px;
}
.footer-links a {
	border-radius: 10px;
	padding: 8px 10px;
	transition: background 0.18s ease;
}
.footer-links a:hover {
	background: var(--mint-200);
}

.footer-top .back-to-top {
	border: 0;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--mint-500);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.footer-top .back-to-top:hover {
	background: var(--mint-600);
}

/* animate-on-scroll совместимость (если уже есть — не дублировать) */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* responsive */
@media (max-width: 960px) {
	.footer-container {
		grid-template-columns: 1fr;
		justify-items: start;
	}
}

/* Reveal-on-scroll */
.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Media queries */
@media (max-width: 960px) {
	.nav-toggle {
		display: inline-block;
	}
	.nav {
		position: absolute;
		right: 16px;
		top: 64px;
		background: #fff;
		border: 1px solid rgba(15, 27, 32, 0.08);
		border-radius: 14px;
		box-shadow: var(--shadow);
	}
	.nav-list {
		flex-direction: column;
		align-items: stretch;
		padding: 10px;
		gap: 6px;
		min-width: 200px;
	}
}
@media (max-width: 720px) {
	.footer-inner {
		grid-template-columns: 1fr;
		justify-items: start;
	}
}
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}
/* Thank You screen */
.thankyou-section {
	min-height: 88dvh;
	display: grid;
	place-items: center;
	padding-block: 24px;
	/* мягкий «лист в линейку» */
	background: linear-gradient(
				180deg,
				rgba(213, 255, 241, 0.45),
				rgba(213, 255, 241, 0)
			)
			0 0/100% 280px no-repeat,
		repeating-linear-gradient(
			to bottom,
			rgba(11, 180, 138, 0.08) 0 1px,
			transparent 1px 28px
		);
	position: relative;
	overflow: hidden;
}
.thankyou-section::after {
	/* тонкий «свет» сверху */
	content: '';
	position: absolute;
	inset: -30% -40% auto -40%;
	height: 40%;
	background: radial-gradient(
		60% 60% at 50% 50%,
		rgba(24, 201, 161, 0.12),
		transparent 70%
	);
	pointer-events: none;
	animation: ty-sheen 8s ease-in-out infinite;
}
@keyframes ty-sheen {
	0%,
	100% {
		transform: translateY(-6%);
		opacity: 0.8;
	}
	50% {
		transform: translateY(0);
		opacity: 1;
	}
}

.thankyou-container {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px;
	max-width: 720px;
	text-align: center;
	animation: ty-in 0.6s ease both;
}
@keyframes ty-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.thankyou-title {
	margin: 0 0 10px;
	font-size: clamp(20px, 3vw, 28px);
}
.thankyou-message {
	margin: 0 0 14px;
	color: var(--ink-600);
	line-height: 1.6;
}
.thankyou-message strong {
	color: var(--ink-900);
}

/* кнопке добавим чуть акцента при наведении */
.cta-button {
	display: inline-block;
	font-weight: 700;
	border-radius: 12px;
	padding: 10px 14px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(23, 35, 42, 0.12);
}

/* responsive */
@media (max-width: 560px) {
	.thankyou-container {
		padding: 14px;
	}
}
.tile img {
	max-width: 150px;
}
