/* ===== Local Google Fonts (TTF) mapped to project family names ===== */
@font-face {
	font-family: 'ClockerySans'; /* maps to Poppins Regular */
	src: local('Poppins Regular'),
		url('../fonts/Poppins-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'ClockerySans'; /* Poppins SemiBold */
	src: local('Poppins SemiBold'),
		url('../fonts/Poppins-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'ClockerySans'; /* Poppins ExtraBold for logo/accents */
	src: local('Poppins ExtraBold'),
		url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'ClockerySerif'; /* maps to Lora Regular */
	src: local('Lora Regular'),
		url('../fonts/Lora-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'ClockerySerif'; /* Lora Bold for section titles if needed */
	src: local('Lora Bold'), url('../fonts/Lora-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #fffaf0; /* warm, soft background */
	--ink: #222222;
	--muted: #5c5c5c;
	--brand: #ffb703; /* warm yellow */
	--brand-2: #fb8500; /* orange */
	--line: #e9e0c8;
	--card: #ffffff;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--radius: 18px;
	--speed: 320ms;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: 'ClockerySans', system-ui, -apple-system, 'Segoe UI', Roboto,
		Arial, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	width: min(100%, 350px); /* <= 350px */
	height: auto;
	border-radius: 12px;
}

/* Containers */
.container {
	width: min(1120px, 92%);
	margin-inline: auto;
}

/* Header (fixed) */
.site-header {
	position: fixed;
	top: 0;
	inset-inline: 0;
	z-index: 50;
	background: rgba(255, 250, 240, 0.85);
	backdrop-filter: saturate(1.1) blur(8px);
	border-bottom: 1px solid var(--line);
	transition: background var(--speed), transform var(--speed);
}
.site-header.is-scrolled {
	background: rgba(255, 250, 240, 0.95);
}

.header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
}

.logo {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	text-decoration: none;
	color: var(--ink);
}
.logo-mark {
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}
.logo-text {
	font-weight: 800;
	letter-spacing: 0.4px;
}

.nav {
	position: relative;
}
.nav-list {
	display: flex;
	gap: 18px;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-link {
	text-decoration: none;
	color: var(--ink);
	padding: 10px 14px;
	border-radius: 999px;
	transition: transform var(--speed), background var(--speed);
}
.nav-link:hover {
	background: var(--brand);
	transform: translateY(-1px);
}
.nav-link:focus-visible {
	outline: 2px solid var(--brand-2);
	outline-offset: 2px;
}

/* Burger */
.burger {
	display: none;
	border: 0;
	background: transparent;
	padding: 8px;
	border-radius: 8px;
}
.burger:focus-visible {
	outline: 2px solid var(--brand-2);
	outline-offset: 2px;
}
.burger-line {
	width: 26px;
	height: 2px;
	background: var(--ink);
	display: block;
	margin: 5px 0;
	transition: transform var(--speed), opacity var(--speed);
}
.burger.is-open .burger-line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.burger.is-open .burger-line:nth-child(2) {
	opacity: 0;
}
.burger.is-open .burger-line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Main spacing under fixed header */
.site-main {
	padding-top: 84px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border-radius: 999px;
	padding: 12px 18px;
	font-weight: 700;
	box-shadow: var(--shadow);
	transform: translateZ(0);
	transition: transform var(--speed), box-shadow var(--speed),
		background var(--speed), color var(--speed);
}
.btn:hover {
	transform: translateY(-2px);
}
.btn:active {
	transform: translateY(0);
}
.btn-primary {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #111;
}
.btn-primary:hover {
	box-shadow: 0 12px 28px rgba(251, 133, 0, 0.25);
}
.btn-ghost {
	background: #fff;
	color: var(--ink);
	border: 1px solid var(--line);
}
.btn-ghost:hover {
	background: #fff7e6;
}

/* Footer */
.site-footer {
	margin-top: 80px;
	padding: 40px 0 80px;
	background: #fff;
	border-top: 1px solid var(--line);
}
.footer-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: 1.2fr 1fr 1fr;
}
.f-title {
	font-family: 'ClockerySerif', serif;
	letter-spacing: 0.3px;
	margin: 0 0 10px;
}
.f-copy {
	color: var(--muted);
	margin: 10px 0 0;
}
.f-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.f-links a {
	color: var(--ink);
	text-decoration: none;
}
.f-links a:hover {
	text-decoration: underline;
}
.f-contact a {
	color: var(--ink);
	text-decoration: none;
}
.f-contact a:hover {
	text-decoration: underline;
}

/* Back to top */
.backtotop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	border: 0;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #111;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	box-shadow: var(--shadow);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--speed), transform var(--speed),
		visibility var(--speed);
}
.backtotop.is-show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.backtotop:hover {
	transform: translateY(-2px);
}

/* Reveal animation helper */
.reveal {
	opacity: 0;
	transform: translateY(10px);
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 820px) {
	.nav-list {
		position: absolute;
		right: 0;
		top: 54px;
		background: #fff;
		border: 1px solid var(--line);
		padding: 10px;
		border-radius: 12px;
		box-shadow: var(--shadow);
		flex-direction: column;
		gap: 8px;
		min-width: 180px;
		transform-origin: top right;
		transform: scale(0.96);
		opacity: 0;
		pointer-events: none;
		transition: opacity var(--speed), transform var(--speed);
	}
	.nav-list.is-open {
		opacity: 1;
		transform: scale(1);
		pointer-events: all;
	}
	.burger {
		display: inline-block;
	}
}
@media (max-width: 640px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}
html,
body {
	/* ... ваши текущие свойства ... */
	font-variant-numeric: tabular-nums; /* ровные цифры у часов и таблиц */
}
.hero-title,
.sec-title {
	font-family: 'ClockerySerif', serif;
	font-weight: 700; /* используем Lora Bold для заголовков */
}
.logo-text {
	font-family: 'ClockerySans', sans-serif;
	font-weight: 800;
}
/* ===== Thank You page (Clockery) ===== */

.thankyou-section {
	/* центрируем и даём приятный фон */
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: 48px 0;
	background: linear-gradient(180deg, #ffffff, #fff9ec);
}

.thankyou-container {
	width: min(720px, 92%);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 18px 16px 22px;
	text-align: center;
	position: relative;
	animation: ty-pop 0.36s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* декоративная «лента» внизу карточки */
.thankyou-container::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 6px;
	border-radius: 999px;
	background: linear-gradient(90deg, #ffe29a, #ffcc7a, #fb8500);
	filter: drop-shadow(0 6px 10px rgba(251, 133, 0, 0.18));
}

.thankyou-title {
	margin: 4px 0 8px;
	font-family: 'ClockerySerif', serif; /* ваш локальный гарнитур */
	line-height: 1.15;
}

.thankyou-message {
	margin: 0 0 14px;
	color: var(--muted);
	max-width: 60ch;
	margin-inline: auto;
}

/* кнопка — используем общий .cta-button, слегка увеличим для страницы */
.thankyou-container .cta-button {
	display: inline-block;
	padding: 10px 16px;
	font-weight: 700;
	border-radius: 14px;
	transition: transform var(--speed), box-shadow var(--speed);
}
.thankyou-container .cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.thankyou-container .cta-button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(251, 133, 0, 0.22), 0 10px 20px rgba(0, 0, 0, 0.12);
}

/* анимация появления карточки */
@keyframes ty-pop {
	from {
		transform: translateY(6px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* адаптив */
@media (max-width: 640px) {
	.thankyou-section {
		padding: 28px 0;
	}
	.thankyou-container {
		padding: 16px 14px 20px;
	}
	.thankyou-title {
		font-size: 1.5rem;
	}
	.thankyou-message {
		font-size: 1rem;
	}
}
.cta-button {
	text-decoration: none;
	color: #222222;
}
