:root {
	--bg: #030304;
	--bg-elevated: #08080a;
	--surface: #0c0c0f;
	--surface-2: #101014;
	--surface-hover: #141418;
	--border: rgba(255, 255, 255, 0.06);
	--border-strong: rgba(255, 255, 255, 0.11);
	--text: #ececee;
	--text-muted: #8b8b93;
	--text-dim: #55555c;
	--accent: #ffffff;
	--accent-soft: rgba(255, 255, 255, 0.04);
	--green: #6ee7a0;
	--green-dim: rgba(110, 231, 160, 0.12);
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
	--max: 1240px;
	--nav-h: 60px;
	--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.55;
	color: var(--text);
	background: var(--bg);
	min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: .75;
}
.icon svg { width: 100%; height: 100%; display: block; }

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
	background: var(--bg);
}

.site-bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255,255,255,.025), transparent 60%),
		linear-gradient(180deg, #030304 0%, #050506 100%);
}

.site-header, .site-main, .site-footer { position: relative; z-index: 1; }
.site-main { flex: 1; padding: 28px 20px 80px; }
.container { max-width: var(--max); margin: 0 auto; width: 100%; }
.container--home { display: flex; flex-direction: column; align-items: stretch; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--nav-h);
	background: rgba(3,3,4,.88);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 20px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -.02em;
	color: var(--text);
}

.site-logo__mark {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--surface-2);
	border: 1px solid var(--border-strong);
	display: grid;
	place-items: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--text-muted);
}

.site-nav { display: flex; align-items: center; gap: 2px; }

.site-nav a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
}

.site-nav a:hover { color: var(--text); background: var(--accent-soft); }

.site-nav-toggle {
	display: none;
	width: 38px;
	height: 38px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.site-nav-toggle span {
	display: block;
	width: 14px;
	height: 2px;
	background: var(--text-muted);
	position: relative;
}

.site-nav-toggle span::before,
.site-nav-toggle span::after {
	content: '';
	position: absolute;
	left: 0;
	width: 14px;
	height: 2px;
	background: var(--text-muted);
}

.site-nav-toggle span::before { top: -4px; }
.site-nav-toggle span::after { top: 4px; }

/* Hero */
.hero {
	position: relative;
	padding: 40px 20px 36px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero--compact {
	max-width: 640px;
	margin: 0 auto 40px;
	padding: 32px 24px 40px;
	border-bottom: 1px solid var(--border);
}

.hero--compact .hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.hero__archive {
	margin: 0 0 16px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--accent-soft);
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	margin-bottom: 18px;
}

.hero__badge-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--green);
}

.hero--compact .hero__title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 600;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--text);
}

.hero--compact .hero__title span {
	color: var(--text-muted);
	font-weight: 500;
}

.hero__subtitle {
	margin: 0 auto;
	max-width: 520px;
	color: var(--text-dim);
	font-size: 14px;
	line-height: 1.6;
	text-wrap: balance;
}

.hero__glow { display: none; }

/* Catalog layout */
.catalog {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: start;
	width: 100%;
}

.catalog-sidebar { position: sticky; top: calc(var(--nav-h) + 16px); }

.sidebar-block {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px 12px;
}

.sidebar-title {
	margin: 0 0 10px;
	padding: 0 8px 10px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--text-dim);
	border-bottom: 1px solid var(--border);
}

.sidebar-link {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 34px;
	padding: 7px 10px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	color: var(--text-muted);
}

.sidebar-link:hover { background: var(--accent-soft); color: var(--text); }

.sidebar-link.is-active {
	background: var(--surface-hover);
	color: var(--text);
	font-weight: 500;
}

.sidebar-group { margin: 6px 0 2px; }

.sidebar-group__label {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 30px;
	padding: 6px 10px 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
}

.sidebar-group__links {
	padding-left: 6px;
	margin-left: 14px;
	border-left: 1px solid var(--border);
}

/* Toolbar */
.catalog-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.catalog-notice {
	position: relative;
	margin-bottom: 18px;
	padding: 16px 18px 16px 20px;
	border-radius: var(--radius);
	border: 1px solid rgba(255, 255, 255, 0.08);
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
		var(--surface);
	overflow: hidden;
}

.catalog-notice.is-hidden { display: none; }

.catalog-notice__accent {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, #f87171 0%, #818cf8 55%, #4ade80 100%);
}

.catalog-notice__content { position: relative; padding-left: 4px; }

.catalog-notice__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.catalog-notice__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.catalog-notice__close {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--text-dim);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	flex-shrink: 0;
}

.catalog-notice__close:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
}

.catalog-notice__lead {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--text-muted);
}

.catalog-notice__lead strong { color: var(--text); font-weight: 600; }

.catalog-notice__lead a {
	color: var(--text);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.catalog-notice__lead a:hover { border-bottom-color: var(--text); }

.catalog-notice__note {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--text-dim);
}

.catalog-notice__hint {
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(248, 113, 113, 0.18);
	background: rgba(248, 113, 113, 0.06);
	font-size: 12px;
	line-height: 1.55;
	color: #fca5a5;
}

.catalog-notice__hint strong { color: #fecaca; font-weight: 600; }

.search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 220px;
	max-width: 400px;
	position: relative;
}

.search-form__icon {
	position: absolute;
	left: 12px;
	color: var(--text-dim);
	pointer-events: none;
	width: 15px;
	height: 15px;
}

.search-form input {
	flex: 1;
	height: 40px;
	padding: 0 12px 0 38px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	outline: none;
	font-size: 13px;
	color: var(--text);
}

.search-form input::placeholder { color: var(--text-dim); }

.search-form input:focus {
	border-color: var(--border-strong);
	background: var(--surface-2);
}

.search-form button {
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	color: var(--text);
	cursor: pointer;
	font-weight: 500;
	font-size: 13px;
}

.search-form button:hover { background: var(--surface-hover); }

.sort-tabs { display: flex; gap: 6px; }

.sort-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	background: var(--surface);
}

.sort-tabs a:hover,
.sort-tabs a.is-active {
	color: var(--text);
	border-color: var(--border-strong);
	background: var(--surface-2);
}

.show-hidden-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	background: var(--surface);
	cursor: pointer;
	user-select: none;
}

.show-hidden-toggle:hover { color: var(--text); border-color: var(--border-strong); }

.show-hidden-toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.show-hidden-toggle__box {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	border: 1px solid var(--border-strong);
	background: var(--bg);
	position: relative;
	flex-shrink: 0;
}

.show-hidden-toggle input:checked + .show-hidden-toggle__box {
	background: var(--text);
	border-color: var(--text);
}

.show-hidden-toggle input:checked + .show-hidden-toggle__box::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 7px;
	border: solid var(--bg);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.product-card--hidden { display: none !important; }

#productGrid[data-show-hidden="0"] .product-card[data-has-preview="0"],
#productGrid[data-show-hidden="0"] .product-card--broken {
	display: none !important;
}

#productGrid[data-show-hidden="1"] .product-card[data-has-preview="0"] {
	opacity: 0.55;
}

/* Product grid & cards */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.product-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .2s, background .2s;
	contain: layout style paint;
	min-height: 100%;
}

.product-card:hover {
	border-color: var(--border-strong);
	background: var(--surface-2);
}

.product-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

mark {
	background: rgba(255,255,255,.1);
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}

.product-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #060608;
}

.product-card__img-frame {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 2;
}

.product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.05);
	transition: transform .4s ease;
	background: transparent;
}

.product-card:hover .product-card__img { transform: scale(1.08); }

.product-card__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5) 100%);
}

.product-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	padding: 3px 8px;
	border-radius: 4px;
	background: rgba(0,0,0,.65);
	border: 1px solid rgba(255,255,255,.08);
	color: var(--green);
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.product-card__badge .icon { display: none; }

.product-card__fallback {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background:
		repeating-linear-gradient(
			-45deg,
			rgba(255,255,255,.015) 0,
			rgba(255,255,255,.015) 1px,
			transparent 1px,
			transparent 8px
		),
		#08080a;
	color: var(--text-dim);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.product-card__fallback[hidden] { display: none !important; }

.product-card__fallback-icon {
	width: 36px;
	height: 36px;
	opacity: .35;
}

.product-card__fallback-icon svg rect,
.product-card__fallback-icon svg text {
	fill: currentColor;
	stroke: currentColor;
}

.product-card__media.is-fallback .product-card__img-frame { display: none; }

.product-card__body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.product-card__tags { display: none; }

.product-card__title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(13px * 1.4 * 2);
	color: var(--text);
}

.product-card__meta {
	font-size: 11px;
	color: var(--text-dim);
}

.product-card__author::before { content: ''; }

.product-card__footer {
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 38px;
}

.product-card__price {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-dim);
}

.product-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
}

.product-card:hover .product-card__cta { color: var(--green); }
.product-card__cta .icon { width: 12px; height: 12px; opacity: .8; }

/* Product page */
.product-page { max-width: 880px; margin: 0 auto; }

.product-hero {
	border-radius: var(--radius);
	border: 1px solid var(--border);
	overflow: hidden;
	background: var(--surface);
	margin-bottom: 20px;
}

.product-hero__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #060608;
	overflow: hidden;
}

.product-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
}

.product-hero__content { padding: 24px; }

.product-hero__category {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-dim);
}

.product-hero__title {
	margin: 0 0 10px;
	font-size: clamp(22px, 4vw, 30px);
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.2;
}

.product-hero__author {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 18px;
}

.product-hero__author a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.product-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 20px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.btn-primary {
	background: var(--text);
	color: var(--bg);
	border-color: var(--text);
}

.btn-primary:hover { background: #d4d4d8; border-color: #d4d4d8; color: var(--bg); }

.btn-secondary {
	background: transparent;
	color: var(--text-muted);
	border-color: var(--border-strong);
}

.btn-secondary:hover { background: var(--accent-soft); color: var(--text); }

.btn-author {
	margin-left: auto;
	height: auto;
	min-height: 42px;
	padding: 8px 14px;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(248, 113, 113, 0.45);
	color: #fca5a5;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
}

.btn-author:hover {
	color: #fee2e2;
	border-color: #f87171;
	background: rgba(239, 68, 68, 0.18);
}

.btn-author__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.btn-author__text strong {
	color: #fecaca;
	font-size: 12px;
	font-weight: 600;
}

.btn-author__text span {
	font-size: 11px;
	color: #f87171;
}

.btn-author:hover .btn-author__text strong,
.btn-author:hover .btn-author__text span {
	color: #fee2e2;
}

.btn-author .icon svg {
	color: #f87171;
}

.btn-author:hover .icon svg {
	color: #fee2e2;
}

.btn-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.product-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
}

.product-stat { font-size: 12px; color: var(--text-dim); }
.product-stat strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; }

.product-section {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 14px;
}

.product-section__title { margin: 0 0 12px; font-size: 15px; font-weight: 600; }

.product-description {
	color: var(--text-muted);
	font-size: 13px;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.review-list { display: flex; flex-direction: column; gap: 10px; }

.review-item {
	padding: 12px;
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	border: 1px solid var(--border);
}

.review-item__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
	font-size: 12px;
}

.review-item__name { font-weight: 600; }
.review-item__date { color: var(--text-dim); }
.review-item__text { margin: 0; font-size: 13px; color: var(--text-muted); }

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state--wide { grid-column: 1 / -1; }
.empty-state__icon { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--text-dim); opacity: .5; }
.empty-state h3 { margin: 0 0 6px; color: var(--text); font-size: 17px; font-weight: 600; }
.catalog-loader {
	text-align: center;
	min-height: 52px;
	padding: 20px;
	color: var(--text-dim);
	font-size: 13px;
	visibility: hidden;
}

.catalog-loader.is-active { visibility: visible; }

.site-footer {
	border-top: 1px solid var(--border);
	padding: 24px 20px;
	background: var(--bg);
}

.site-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.site-footer__copy { font-size: 12px; color: var(--text-dim); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 14px; }
.site-footer__links a { font-size: 12px; color: var(--text-muted); }
.site-footer__links a:hover { color: var(--text); }

.page-content {
	max-width: 720px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px;
}

.page-content h1, .page-content h2, .page-content h3 { color: var(--text); margin-top: 0; }
.page-content p, .page-content li { color: var(--text-muted); }
.page-content a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

#toTop {
	display: none;
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 42px;
	height: 42px;
	border-radius: var(--radius-sm);
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-muted);
	cursor: pointer;
	z-index: 90;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

#toTop.is-visible { display: flex; }

body.modal-open { overflow: hidden; }

.site-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}

.site-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.site-modal[hidden] { display: none; }

.site-modal:not([hidden]) { display: flex; }

.site-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
}

.site-modal__dialog {
	position: relative;
	width: min(560px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	padding: 28px 28px 24px;
	border-radius: var(--radius);
	border: 1px solid var(--border-strong);
	background: var(--surface);
	box-shadow: var(--shadow);
	transform: translateY(12px) scale(0.98);
	transition: transform .2s ease;
}

.site-modal.is-open .site-modal__dialog {
	transform: translateY(0) scale(1);
}

.site-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--text-dim);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.site-modal__close:hover { color: var(--text); background: var(--accent-soft); }

.site-modal__eyebrow {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.site-modal__title {
	margin: 0 0 16px;
	font-size: clamp(22px, 4vw, 28px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--text);
}

.site-modal__body p {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--text-muted);
}

.site-modal__body p:last-child { margin-bottom: 0; }

.site-modal__body a {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-modal__body strong { color: var(--text); font-weight: 600; }

.site-modal__note {
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--accent-soft);
}

.site-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.author-form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }

.author-form__label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: var(--text-muted);
	text-align: left;
}

.author-form__input {
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	font-size: 14px;
	font-family: inherit;
}

.author-form__input:focus {
	outline: none;
	border-color: var(--border-strong);
}

.author-form__hint {
	min-height: 18px;
	margin: 0;
	font-size: 13px;
	color: var(--text-dim);
}

.author-form__hint.is-success { color: #86efac; }
.author-form__hint.is-error { color: #fca5a5; }

.author-modal .site-modal__actions { margin-top: 8px; }

.author-form__check {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	color: var(--text-muted);
	user-select: none;
}

.author-form__check input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.author-form__check-box {
	width: 16px;
	height: 16px;
	border-radius: 4px;
	border: 1px solid var(--border-strong);
	background: var(--bg);
	flex-shrink: 0;
	position: relative;
}

.author-form__check input:checked + .author-form__check-box {
	background: #f87171;
	border-color: #f87171;
}

.author-form__check input:checked + .author-form__check-box::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 7px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.author-form__note {
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(248, 113, 113, 0.25);
	background: rgba(248, 113, 113, 0.08);
	font-size: 12px;
	line-height: 1.55;
	color: #fca5a5;
	text-align: left;
}

@media (max-width: 600px) {
	.site-modal { padding: 12px; }
	.site-modal__dialog { padding: 22px 18px 18px; }
	.site-modal__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 900px) {
	.catalog { grid-template-columns: 1fr; }
	.catalog-sidebar { position: static; }
	.site-nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute;
		top: var(--nav-h);
		left: 0;
		right: 0;
		flex-direction: column;
		padding: 10px 16px 16px;
		background: rgba(3,3,4,.98);
		border-bottom: 1px solid var(--border);
	}
	.site-nav.is-open { display: flex; }
}

@media (max-width: 600px) {
	.site-main { padding: 16px 12px 64px; }
	.hero--compact { padding: 24px 16px 32px; margin-bottom: 28px; }
	.hero__archive { font-size: 10px; letter-spacing: 0.12em; }
	.hero--compact .hero__title { font-size: clamp(22px, 7vw, 30px); }
	.hero__subtitle { font-size: 13px; }
	.product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.btn-author { margin-left: 0; width: 100%; }
}
