/*
 * Основные стили темы Book.
 *
 * Порт вёрстки легаси-ридера (app/web/src/styles/globals.css + компоненты):
 * CSS-переменные, тёмная тема [data-theme="dark"], типографика глав,
 * callout-блоки, сайдбар/drawer, кнопки, карточки.
 */

/* ============ Переменные темы ============ */

:root {
	--background: oklch(0.985 0.003 85);
	--surface: oklch(0.97 0.003 85);
	--foreground: oklch(0.25 0.02 260);
	--muted: oklch(0.48 0.018 260);
	--accent: oklch(0.52 0.14 265);

	--border: color-mix(in oklab, var(--foreground) 10%, transparent);
	--border-strong: color-mix(in oklab, var(--foreground) 15%, transparent);
	--background-blur: color-mix(in oklab, var(--background) 85%, transparent);
}

[data-theme="dark"] {
	--background: oklch(0.16 0.012 260);
	--surface: oklch(0.21 0.014 260);
	--foreground: oklch(0.92 0.008 90);
	--muted: oklch(0.66 0.015 260);
	--accent: oklch(0.73 0.11 265);
}

/* ============ База ============ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "liga", "kern";
	transition: background-color 0.2s ease, color 0.2s ease;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 700;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: 0.01ms !important;
	}
}

.screen-reader-text {
	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:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	clip: auto;
	background: var(--background);
	color: var(--foreground);
	border: 1px solid var(--accent);
	border-radius: 0.375rem;
	text-decoration: none;
}

/* ============ Шапка ============ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--border);
	background: var(--background-blur);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 4rem;
	padding: 0 1rem;
}

@media (min-width: 1024px) {
	.site-header-inner {
		padding: 0 1.5rem;
	}
}

.site-title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--foreground);
	text-decoration: none;
	transition: color 0.15s;
}

.site-title:hover {
	color: var(--accent);
}

.site-nav {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.site-nav-link {
	display: none;
	padding: 0.375rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: var(--muted);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.site-nav-link:hover {
	background: var(--surface);
	color: var(--foreground);
}

.book-landing-page .site-nav-link {
	display: inline-block;
}

@media (min-width: 640px) {
	.site-nav-link {
		display: inline-block;
	}
}

.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--border);
	border-radius: 0.375rem;
	font-size: 1.125rem;
	line-height: 1;
	transition: background-color 0.15s, border-color 0.15s;
}

.btn-icon:hover {
	background: var(--surface);
}

.btn-icon-burger {
	display: none;
}

@media (max-width: 1023.98px) {
	.btn-icon-burger {
		display: inline-flex;
	}
}

.theme-toggle-icon {
	font-size: 1.125rem;
	line-height: 1;
}

/* ============ Сайдбар оглавления (десктоп) ============ */

.reader-sidebar {
	position: fixed;
	top: 4rem;
	left: 0;
	bottom: 0;
	width: 18rem;
	display: none;
	overflow-y: auto;
	border-right: 1px solid var(--border);
	padding: 1rem;
}

@media (min-width: 1024px) {
	.reader-sidebar {
		display: block;
	}
}

/* ============ Мобильный drawer ============ */

.drawer {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 50;
}

.drawer.is-open {
	display: block;
}

.book-drawer-open {
	overflow: hidden;
}

.drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.drawer-panel {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 20rem;
	max-width: 85vw;
	overflow-y: auto;
	border-right: 1px solid var(--border);
	background: var(--background);
	padding: 1rem;
}

.drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.drawer-title {
	font-size: 0.875rem;
	font-weight: 600;
}

@media (min-width: 1024px) {
	.drawer {
		display: none;
	}
}

/* ============ Оглавление в сайдбаре ============ */

.toc-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.toc-part-title {
	margin-bottom: 0.5rem;
	padding: 0 0.5rem;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
}

.toc-chapter-list {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.toc-chapter-link {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.375rem 0.5rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.375;
	color: var(--muted);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.toc-chapter-link:hover {
	background: var(--surface);
	color: var(--foreground);
}

.toc-chapter-link.is-active {
	background: color-mix(in oklab, var(--accent) 10%, transparent);
	color: var(--accent);
	font-weight: 500;
}

.toc-chapter-number {
	flex-shrink: 0;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.toc-chapter-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ============ Основная область ============ */

.site-main {
	min-height: 70vh;
}

@media (min-width: 1024px) {
	.reader-main {
		padding-left: 18rem;
	}
}

.reader-content {
	max-width: 48rem;
	margin: 0 auto;
	padding: 2rem 1rem;
}

@media (min-width: 1024px) {
	.reader-content {
		padding: 3rem 2.5rem;
	}
}

/* ============ Кнопки ============ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s, background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
}

.btn-primary:hover {
	opacity: 0.9;
}

.btn-secondary,
.btn-outline {
	border-color: var(--border-strong);
	color: var(--foreground);
}

.btn-secondary:hover,
.btn-outline:hover {
	background: var(--surface);
	color: var(--accent);
}

/* ============ Лендинг ============ */

.landing {
	max-width: 56rem;
	margin: 0 auto;
	padding: 4rem 1rem;
}

.landing-hero {
	text-align: center;
}

.landing-title {
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

@media (min-width: 640px) {
	.landing-title {
		font-size: 3rem;
	}
}

.landing-subtitle {
	margin-top: 1.25rem;
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--muted);
}

.landing-author {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
}

.landing-cta {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.landing-contents {
	margin-top: 5rem;
}

.landing-contents-title {
	margin-bottom: 2rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.landing-contents-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 640px) {
	.landing-contents-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.card {
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	background: var(--surface);
	padding: 1.25rem;
}

.landing-part-title {
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
}

.landing-part-list {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.landing-part-list a {
	color: color-mix(in oklab, var(--foreground) 85%, transparent);
	text-decoration: none;
	font-size: 0.875rem;
	line-height: 1.375;
	transition: color 0.15s;
}

.landing-part-list a:hover {
	color: var(--accent);
}

.chapter-number {
	margin-right: 0.5rem;
	font-weight: 600;
	color: var(--muted);
}

.landing-donate {
	margin-top: 3rem;
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
}

/* ============ Страницы (оглавление, скачивание) ============ */

.page-header {
	margin-bottom: 2.5rem;
}

.page-title {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.page-subtitle {
	margin-top: 0.5rem;
	color: var(--muted);
}

.text-muted {
	color: var(--muted);
}

.toc-section {
	margin-bottom: 2.5rem;
}

.toc-section-title {
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--border);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--accent);
}

.toc-section-list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.toc-section-link {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.375rem 0.5rem;
	border-radius: 0.375rem;
	color: var(--foreground);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

.toc-section-link:hover {
	background: var(--surface);
}

.toc-section-number {
	flex-shrink: 0;
	width: 2rem;
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

.toc-section-text {
	color: color-mix(in oklab, var(--foreground) 90%, transparent);
}

.toc-section-link:hover .toc-section-text {
	color: var(--accent);
}

/* ============ Глава ============ */

.chapter-header {
	margin-bottom: 1.5rem;
}

.chapter-part {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
}

.chapter-kind {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--accent);
}

.chapter-title {
	margin-top: 0.5rem;
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

@media (min-width: 640px) {
	.chapter-title {
		font-size: 2.25rem;
	}
}

.chapter-toc {
	margin-bottom: 2rem;
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	background: var(--surface);
}

.chapter-toc-title {
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
}

.chapter-toc-list {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.chapter-toc-link {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.875rem;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.15s;
}

.chapter-toc-link:hover {
	color: var(--accent);
}

.read-next {
	margin-top: 2rem;
	color: var(--muted);
}

.read-next a {
	color: var(--accent);
	font-weight: 500;
	text-decoration: none;
}

.read-next a:hover {
	text-decoration: underline;
}

.prev-next {
	margin-top: 3.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.prev-next {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.prev-next-card {
	display: block;
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	text-decoration: none;
	transition: border-color 0.15s;
}

.prev-next-card:hover {
	border-color: color-mix(in oklab, var(--accent) 50%, transparent);
}

.prev-next-card-next {
	text-align: right;
}

.prev-next-card.is-empty {
	visibility: hidden;
}

.prev-next-label {
	font-size: 0.75rem;
	color: var(--muted);
}

.prev-next-text {
	display: -webkit-box;
	margin-top: 0.25rem;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.375;
	color: var(--foreground);
	transition: color 0.15s;
}

.prev-next-card:hover .prev-next-text {
	color: var(--accent);
}

/* ============ Типографика глав ============ */

.chapter-content {
	font-size: 1.0625rem;
	line-height: 1.625;
}

.chapter-content h2 {
	margin: 2.5rem 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	scroll-margin-top: 6rem;
}

.chapter-content h3 {
	margin: 2rem 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	scroll-margin-top: 6rem;
}

.chapter-content h4 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	scroll-margin-top: 6rem;
}

.chapter-content h5,
.chapter-content h6 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	scroll-margin-top: 6rem;
}

.chapter-content p {
	margin: 1rem 0;
}

.chapter-content ul {
	margin: 1rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	list-style: disc;
	padding-left: 1.5rem;
}

.chapter-content ol {
	margin: 1rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	list-style: decimal;
	padding-left: 1.5rem;
}

.chapter-content li > ul,
.chapter-content li > ol {
	margin: 0.25rem 0;
}

.chapter-content a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-color: color-mix(in oklab, var(--accent) 40%, transparent);
	text-underline-offset: 2px;
}

.chapter-content a:hover {
	text-decoration-color: var(--accent);
}

.chapter-content table {
	margin: 1.5rem 0;
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.chapter-content th {
	border: 1px solid var(--border);
	background: var(--surface);
	padding: 0.5rem 0.75rem;
	text-align: left;
	font-weight: 600;
}

.chapter-content td {
	border: 1px solid var(--border);
	padding: 0.5rem 0.75rem;
	vertical-align: top;
}

.chapter-content pre {
	margin: 1rem 0;
	overflow-x: auto;
	border-radius: 0.5rem;
	background: var(--surface);
	padding: 1rem;
	font-size: 0.875rem;
	line-height: 1.625;
}

.chapter-content code {
	border-radius: 0.25rem;
	background: var(--surface);
	padding: 0.125rem 0.375rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 0.9em;
	color: var(--foreground);
}

.chapter-content pre code {
	background: transparent;
	padding: 0;
}

.chapter-content hr {
	margin: 2rem 0;
	border: 0;
	border-top: 1px solid var(--border);
}

.chapter-content blockquote {
	margin: 1rem 0;
	border-left: 2px solid var(--border-strong);
	padding-left: 1rem;
	color: var(--muted);
}

/* Чек-листы (task-item): input от рендерера book-content */
.chapter-content input[type="checkbox"] {
	margin-right: 0.5rem;
	accent-color: var(--accent);
}

/* ============ Якоря заголовков ============ */

.heading-anchor {
	margin-right: 0.5rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	color: color-mix(in oklab, var(--muted) 50%, transparent);
	text-decoration: none;
	opacity: 0;
	transition: opacity 0.15s, color 0.15s;
}

h2:hover > .heading-anchor,
h3:hover > .heading-anchor,
h4:hover > .heading-anchor,
h5:hover > .heading-anchor,
h6:hover > .heading-anchor {
	opacity: 1;
}

.heading-anchor:hover {
	color: var(--accent);
}

/* ============ Callout-блоки ============ */

.callout {
	margin: 1rem 0;
	border-left: 4px solid var(--border);
	border-radius: 0.5rem;
	background: var(--surface);
	padding: 0.75rem 1rem;
}

.callout-badge {
	display: inline-block;
	margin-bottom: 0.25rem;
	border-radius: 0.25rem;
	padding: 0.125rem 0.375rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Исходный **Label:** внутри callout — скрываем, бейдж уже выведен */
.callout-body > p:first-child > strong:first-child {
	display: none;
}

.callout-problem {
	border-color: rgba(239, 68, 68, 0.5);
}

.callout-problem .callout-badge {
	background: rgba(239, 68, 68, 0.1);
	color: #b91c1c;
}

.callout-cross-reference {
	border-color: rgba(59, 130, 246, 0.5);
}

.callout-cross-reference .callout-badge {
	background: rgba(59, 130, 246, 0.1);
	color: #1d4ed8;
}

.callout-lesson {
	border-color: rgba(16, 185, 129, 0.5);
}

.callout-lesson .callout-badge {
	background: rgba(16, 185, 129, 0.1);
	color: #047857;
}

.callout-important {
	border-color: rgba(245, 158, 11, 0.5);
}

.callout-important .callout-badge {
	background: rgba(245, 158, 11, 0.1);
	color: #b45309;
}

.callout-tip {
	border-color: rgba(20, 184, 166, 0.5);
}

.callout-tip .callout-badge {
	background: rgba(20, 184, 166, 0.1);
	color: #0f766e;
}

.callout-summary {
	border-color: rgba(100, 116, 139, 0.5);
}

.callout-summary .callout-badge {
	background: rgba(100, 116, 139, 0.1);
	color: #334155;
}

.callout-source {
	border-color: rgba(139, 92, 246, 0.5);
}

.callout-source .callout-badge {
	background: rgba(139, 92, 246, 0.1);
	color: #6d28d9;
}

.callout-anecdotal {
	border-color: rgba(99, 102, 241, 0.5);
}

.callout-anecdotal .callout-badge {
	background: rgba(99, 102, 241, 0.1);
	color: #4338ca;
}

.callout-generic {
	border-color: rgba(156, 163, 175, 0.5);
}

.callout-generic .callout-badge {
	background: rgba(107, 114, 128, 0.1);
	color: #4b5563;
}

[data-theme="dark"] .callout-problem .callout-badge {
	color: #f87171;
}

[data-theme="dark"] .callout-cross-reference .callout-badge {
	color: #60a5fa;
}

[data-theme="dark"] .callout-lesson .callout-badge {
	color: #34d399;
}

[data-theme="dark"] .callout-important .callout-badge {
	color: #fbbf24;
}

[data-theme="dark"] .callout-tip .callout-badge {
	color: #2dd4bf;
}

[data-theme="dark"] .callout-summary .callout-badge {
	color: #94a3b8;
}

[data-theme="dark"] .callout-source .callout-badge {
	color: #a78bfa;
}

[data-theme="dark"] .callout-anecdotal .callout-badge {
	color: #818cf8;
}

[data-theme="dark"] .callout-generic .callout-badge {
	color: #d1d5db;
}

.anecdotal-badge {
	display: inline-block;
	border-radius: 0.25rem;
	background: rgba(99, 102, 241, 0.1);
	padding: 0.125rem 0.375rem;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #4f46e5;
}

[data-theme="dark"] .anecdotal-badge {
	color: #a5b4fc;
}

/* ============ Скачивание ============ */

.download-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.download-item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
	background: var(--surface);
}

@media (min-width: 640px) {
	.download-item {
		flex-direction: row;
		align-items: center;
	}
}

.download-item-info {
	flex: 1;
	min-width: 0;
}

.download-item-title {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

.download-item-label {
	font-size: 1.125rem;
	font-weight: 700;
}

.download-item-size {
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
}

.download-item-desc {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	color: var(--muted);
}

.download-item-date {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: var(--muted);
}

.download-donate {
	margin-top: 2.5rem;
	max-width: 28rem;
}

/* ============ Донат ============ */

.donate-card {
	padding: 1.5rem;
	border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
	border-radius: 0.75rem;
	background: var(--surface);
}

.donate-card-title {
	font-size: 1.25rem;
	font-weight: 700;
}

.donate-card-text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--muted);
}

.donate-card .btn {
	margin-top: 1rem;
}

.donate-card-qr {
	margin-top: 1rem;
	width: 10rem;
	height: 10rem;
	border: 1px solid var(--border);
	border-radius: 0.5rem;
}

/* ============ 404 ============ */

.not-found {
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	text-align: center;
}

.not-found-title {
	font-size: 3.75rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.not-found-text {
	margin-top: 1rem;
	font-size: 1.125rem;
	color: var(--muted);
}

.not-found-actions {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

/* ============ Подвал ============ */

.site-footer {
	margin-top: 3rem;
	border-top: 1px solid var(--border);
}

.site-footer-inner {
	max-width: 56rem;
	margin: 0 auto;
	padding: 1.5rem 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.site-footer-copy {
	font-size: 0.875rem;
	color: var(--muted);
}

.site-footer-nav {
	display: flex;
	gap: 0.5rem;
}

.site-footer-link {
	font-size: 0.875rem;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.15s;
}

.site-footer-link:hover {
	color: var(--accent);
}
