/* Changan A06 Club — статическая версия */

/* ==========================================================================
   1. Дизайн-токены — нейтральная чёрно-белая гамма
   ========================================================================== */
:root {
	--ink: #08090C;            /* графитовый чёрный */
	--ink-2: #0E1014;
	--ink-3: #15171C;
	--paper: #F5F5F6;          /* нейтральный светлый фон */
	--surface: #FFFFFF;
	--line: #E4E5E8;
	--line-dark: rgba(255, 255, 255, .09);
	--text: #1A1C20;
	--text-muted: #5D6168;
	--text-dark: #F0F1F3;
	--text-dark-muted: #A6ABB3;

	--accent: #17181C;         /* нейтральный акцент — почти чёрный */
	--accent-deep: #101114;
	--accent-soft: #EDEEF0;    /* светло-серая подложка */
	--silver: #C9CFDA;         /* серебро для тёмных секций */
	--silver-deep: #8E97A6;

	/* монохромные градиенты */
	--grad: linear-gradient(96deg, #2B2D33 0%, #0C0D10 100%);
	--grad-soft: linear-gradient(96deg, rgba(23, 24, 28, .07), rgba(23, 24, 28, .04));
	--grad-line: linear-gradient(90deg, transparent, rgba(160, 165, 175, .55), transparent);

	--glass-dark: rgba(255, 255, 255, .045);
	--glass-dark-border: rgba(255, 255, 255, .1);

	--radius: 22px;
	--radius-s: 14px;
	--shadow-s: 0 1px 2px rgba(8, 9, 12, .05), 0 8px 24px rgba(8, 9, 12, .06);
	--shadow-m: 0 20px 50px -12px rgba(8, 9, 12, .22);
	--shadow-glow: 0 10px 34px -6px rgba(8, 9, 12, .45);

	--font-display: "Unbounded", "Manrope", "Segoe UI", sans-serif;
	--font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

	--container: 1200px;
	--header-h: 74px;
	--ease: cubic-bezier(.22, .61, .36, 1);
	--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Базовые стили
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--text);
	background:
		radial-gradient(1100px 500px at 85% -5%, rgba(14, 16, 20, .035), transparent 60%),
		radial-gradient(900px 500px at -10% 30%, rgba(14, 16, 20, .025), transparent 55%),
		var(--paper);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

a { color: var(--accent-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #3A3E46; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 800;
	line-height: 1.16;
	letter-spacing: -.015em;
	color: var(--ink);
	margin: 0 0 .5em;
}

::selection { background: #D9DCE1; color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #C6C9CF; border-radius: 8px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #A6ABB3; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 14px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Световая линия — фирменный ходовой огонь A06 (монохром) */
.lightbar {
	display: block; width: 64px; height: 3px; border-radius: 3px;
	background: linear-gradient(96deg, var(--ink), #3A3E46); margin-bottom: 20px; position: relative;
}
.lightbar::after {
	content: ""; position: absolute; right: -14px; top: 0; width: 9px; height: 3px; border-radius: 3px;
	background: var(--ink);
}

.section { padding-block: clamp(60px, 9vw, 110px); position: relative; }
.section--dark { background: var(--ink); color: var(--text-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--tight { padding-block: clamp(42px, 6vw, 68px); }

/* Зерно плёнки на тёмных секциях */
.section--dark::after, .hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: var(--noise); opacity: .05; mix-blend-mode: overlay;
}

.section-head { max-width: 760px; margin-bottom: clamp(30px, 5vw, 54px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lightbar { margin-inline: auto; }
.section-head p { color: var(--text-muted); font-size: 1.06rem; margin: 0; }
.section--dark .section-head p { color: var(--text-dark-muted); }

/* Киккер-чип над заголовком */
.eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--font-head); font-weight: 700; font-size: .74rem;
	letter-spacing: .15em; text-transform: uppercase;
	color: #4A4E55; margin-bottom: 14px;
	background: #ECEDEF; border: 1px solid #D8DADE;
	padding: 7px 15px; border-radius: 999px;
}
.eyebrow::before {
	content: ""; width: 6px; height: 6px; border-radius: 50%;
	background: var(--ink);
}
.section--dark .eyebrow {
	color: var(--silver);
	background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14);
}
.section--dark .eyebrow::before { background: var(--silver); }

/* Дисплейные заголовки секций */
.section-head h2, .forum-cta h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.35rem, 3vw, 2.05rem);
	letter-spacing: -.01em;
}

/* ==========================================================================
   3. Кнопки, чипы
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--font-head); font-weight: 700; font-size: .98rem;
	padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
	cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
	text-decoration: none; line-height: 1.2;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }

.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 8px 24px -6px rgba(8, 9, 12, .4); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-s); }
.btn--ghost:hover { border-color: #B9BFCB; color: var(--ink); background: var(--accent-soft); transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.btn--light:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }

.btn--outline-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .24); backdrop-filter: blur(6px); }
.btn--outline-light:hover { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.chip {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: .84rem; font-weight: 600; color: var(--text-muted);
	background: var(--surface); border: 1px solid var(--line);
	border-radius: 999px; padding: 6px 14px;
}

/* ==========================================================================
   4. Шапка и навигация
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 90;
	background: rgba(245, 245, 246, .8);
	-webkit-backdrop-filter: saturate(1.3) blur(16px);
	backdrop-filter: saturate(1.3) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -12px rgba(8, 9, 12, .12); }

.site-header__inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.brand__link { display: inline-flex; }
/* логотип «встроен» в шапку: прозрачный фон, без плашки */
.brand-logo {
	display: block;
	height: 40px; width: auto;
}
.brand__link:hover .brand-logo { opacity: .82; }
.brand-logo--footer { height: 36px; filter: invert(1); }
.brand__mark {
	width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
	background: linear-gradient(145deg, #15171C, #08090C);
	display: grid; place-items: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 16px -4px rgba(8, 9, 12, .5);
}
.brand__mark svg { width: 27px; height: 27px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__title { font-family: var(--font-head); font-weight: 800; font-size: 1.06rem; color: var(--ink); letter-spacing: -.01em; }
.brand__title a { color: inherit; }
.brand__sub {
	font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--silver-deep);
}
.custom-logo { max-height: 48px; width: auto; }

.nav-primary { margin-right: 6px; min-width: 0; }
.nav-primary > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.nav-primary li { position: relative; }

.nav-primary a {
	display: inline-flex; align-items: center; gap: 5px;
	font-family: var(--font-head); font-weight: 600; font-size: .86rem;
	color: var(--text); padding: 9px 10px; border-radius: 12px;
	white-space: nowrap;
}
.nav-primary a:hover { color: var(--ink); background: rgba(20, 22, 26, .06); }

.nav-primary .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 95; min-width: 272px;
	display: block;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
	border: 1px solid var(--line); border-radius: 16px;
	box-shadow: var(--shadow-m); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98); transform-origin: top left;
	transition: opacity .2s var(--ease), transform .25s var(--ease), visibility .2s;
}
.nav-primary li:hover > .sub-menu,
.nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
/* кнопки-переключатели подменю нужны только мобильному drawer */
.nav-primary .submenu-toggle { display: none !important; }
.nav-primary .sub-menu { list-style: none; margin: 0; }
.nav-primary .sub-menu li { width: 100%; }
.nav-primary .sub-menu a {
	display: flex; width: 100%; padding: 11px 14px; border-radius: 10px; font-size: .92rem;
	transition: background .15s var(--ease), color .15s var(--ease), padding-left .15s var(--ease);
}
.nav-primary .sub-menu a:hover,
.nav-primary .sub-menu a:focus-visible {
	background: var(--ink); color: #fff; padding-left: 19px;
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-tg {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; padding: 0;
	font-family: var(--font-head); font-weight: 700; font-size: .88rem;
	color: #fff; border-radius: 13px;
	background: linear-gradient(135deg, #23252B, #0E1014);
	box-shadow: 0 6px 18px -4px rgba(8, 9, 12, .45);
	transition: box-shadow .2s var(--ease), transform .2s var(--ease), filter .2s;
}
.header-tg svg { width: 17px; height: 17px; }
.header-tg span { display: none; }
.header-tg:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.25); }

.nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 13px;
	background: var(--surface); border: 1px solid var(--line); cursor: pointer;
	box-shadow: var(--shadow-s);
}
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
	content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
	background: var(--ink); position: relative; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span:first-child::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span:first-child::after { position: absolute; top: 6px; left: 0; }
body.nav-open .nav-toggle span:first-child { background: transparent; }
body.nav-open .nav-toggle span:first-child::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:first-child::after { transform: translateY(-6px) rotate(-45deg); }

.header-search { display: inline-flex; align-items: center; }
.header-search button {
	width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line);
	background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text-muted);
	box-shadow: var(--shadow-s);
	transition: color .2s, border-color .2s, transform .2s;
}
.header-search button:hover { color: var(--ink); border-color: #B9BFCB; transform: translateY(-1px); }
.header-search button svg { width: 19px; height: 19px; }

.header-search-panel { padding-block: 4px 18px; }

/* ==========================================================================
   5. Hero — центрированная сцена, монохромный «плавучий свет»
   ========================================================================== */
.hero {
	position: relative; overflow: clip; text-align: center;
	background: var(--ink);
	color: var(--text-dark);
}

/* тонкая HUD-сетка */
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
	background-size: 54px 54px;
	mask-image: radial-gradient(1000px 640px at 50% 32%, #000 25%, transparent 78%);
	-webkit-mask-image: radial-gradient(1000px 640px at 50% 32%, #000 25%, transparent 78%);
}

/* статичные серебристые световые пятна */
.aurora { position: absolute; inset: -20%; pointer-events: none; filter: blur(70px); opacity: .9; }
.aurora i { position: absolute; display: block; border-radius: 50%; }
.aurora i:nth-child(1) {
	width: 46vw; height: 46vw; left: 4%; top: 0;
	background: radial-gradient(circle, rgba(255, 255, 255, .09), transparent 65%);
}
.aurora i:nth-child(2) {
	width: 52vw; height: 52vw; right: -6%; top: 6%;
	background: radial-gradient(circle, rgba(200, 206, 216, .08), transparent 65%);
}
.aurora i:nth-child(3) {
	width: 36vw; height: 36vw; left: 32%; bottom: -14%;
	background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 65%);
}

/* контурная «06» */
.hero__watermark {
	position: absolute; right: -1%; bottom: -16%; z-index: 0;
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(220px, 36vw, 620px); line-height: 1;
	letter-spacing: -.02em; color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .06);
	user-select: none; pointer-events: none;
}

.hero__inner {
	position: relative; z-index: 1;
	max-width: 980px; margin-inline: auto;
	padding-block: 24px 20px;
}

.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: var(--silver); margin-bottom: 24px;
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .16);
	padding: 8px 18px; border-radius: 999px;
	backdrop-filter: blur(6px);
}
.hero__eyebrow::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%;
	background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .65);
}

.hero h1 {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.72rem, 4.6vw, 3.55rem);
	line-height: 1.14; letter-spacing: -.015em;
	color: #fff; margin: 0 0 22px; text-wrap: balance;
}
.hero h1 em {
	font-style: normal;
	background: linear-gradient(96deg, #FFFFFF 10%, #C9CFDA 95%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__lead {
	font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-dark-muted);
	max-width: 62ch; margin: 0 auto 32px;
}

/* сцена с автомобилем (фото: фронт, чёрный фон растворяется в hero) */
.hero__media { position: relative; max-width: 1060px; margin: 0 auto; }
.hero__media img {
	width: 100%;
	-webkit-mask-image: radial-gradient(ellipse 100% 95% at 50% 46%, #000 62%, transparent 92%);
	mask-image: radial-gradient(ellipse 100% 95% at 50% 46%, #000 62%, transparent 92%);
}

.hero__media::after {
	content: ""; position: absolute; left: 10%; right: 10%; bottom: 4%; height: 54px;
	background: radial-gradient(50% 100% at 50% 50%, rgba(255, 255, 255, .13), transparent 75%);
	filter: blur(14px); z-index: -1; display: none;
}

/* свитч версий A06R / A06E */
.hero__switch-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.hero__switch {
	display: inline-flex; gap: 4px; padding: 4px;
	border: 1px solid var(--glass-dark-border); border-radius: 999px;
	background: var(--glass-dark); backdrop-filter: blur(8px);
}
.hero__switch-btn {
	display: inline-flex; align-items: center; gap: 4px;
	font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
	color: var(--text-dark-muted);
	border: 0; border-radius: 999px; padding: 6px 14px;
	background: transparent; cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease);
}
.hero__switch-btn strong { font-weight: 700; }
.hero__switch-btn:hover { color: #fff; }
.hero__switch-btn:focus-visible { outline: 2px solid var(--silver); outline-offset: 2px; }
.hero__switch-btn.is-active { background: #fff; color: var(--ink); }
.hero__switch-btn.is-active:hover { color: var(--ink); }

.hero__note {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	font-size: .86rem; color: var(--text-dark-muted);
}
.hero__note svg { flex: 0 0 auto; color: var(--silver); }

/* ==========================================================================
   7. Плитки разделов на главной (просторные, горизонтальные)
   ========================================================================== */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }

.link-tile {
	display: flex; align-items: center; gap: 18px;
	min-height: 152px;
	padding: 24px 26px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
	text-decoration: none; color: inherit;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.link-tile:hover {
	transform: translateY(-4px); border-color: #B9BFCB;
	box-shadow: var(--shadow-m); color: inherit;
}

.link-tile__icon {
	width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto;
	display: grid; place-items: center;
	background: linear-gradient(145deg, #F2F3F5, #FDFDFD);
	border: 1px solid #E2E4E8;
	color: #26282E;
	box-shadow: inset 0 1px 0 #fff, 0 6px 14px -6px rgba(8, 9, 12, .1);
}
.link-tile__icon svg { width: 24px; height: 24px; }

.link-tile__body { flex: 1; min-width: 0; }
.link-tile__title {
	display: block;
	font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
	color: var(--ink); line-height: 1.25; letter-spacing: -.01em;
}
.link-tile__sub {
	display: block;
	font-size: .82rem; color: var(--text-muted); line-height: 1.45; margin-top: 6px;
}

.link-tile__chev {
	flex: 0 0 auto;
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--accent-soft); color: var(--silver-deep);
	transition: background .2s, color .2s, transform .2s var(--ease);
}
.link-tile__chev svg { width: 15px; height: 15px; }
.link-tile:hover .link-tile__chev { background: var(--ink); color: #fff; transform: translateX(2px); }

/* Telegram-плитка */
.link-tile--tg { border-color: #D9DCE1; }

@media (max-width: 640px) { .link-grid { grid-template-columns: 1fr; } .link-tile { min-height: 0; } }

/* Полоса статистики (статичная) */
.stats { position: relative; z-index: 2; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.stats__grid {
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: 8px; padding-block: 18px;
	height: 128px; align-content: center; /* фиксированная высота — цифры не прыгают */
}
.stat { text-align: center; padding: 6px 10px; position: relative; }
.stat + .stat::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 1px; height: 44px; background: var(--grad-line);
}
.stat__value {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.01em; color: #fff;
	line-height: 1.1;
}
.stat__value .stat__unit {
	font-size: .62em; font-weight: 600;
	color: var(--silver);
}
.stat__label { font-size: .78rem; color: var(--text-dark-muted); letter-spacing: .05em; margin-top: 6px; }

/* лёгкая анимация при смене версии через свитч */
.stats__grid.is-swapping { animation: stat-swap .35s var(--ease); }
@keyframes stat-swap {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* ==========================================================================
   8. База знаний — bento-сетка со spotlight
   ========================================================================== */
.kb-group { margin-bottom: clamp(38px, 5vw, 56px); }
.kb-group:last-child { margin-bottom: 0; }
.kb-group__head {
	display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px;
	padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.kb-group__title {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.05rem, 2vw, 1.3rem); margin: 0; letter-spacing: 0;
}
.kb-group__hint { font-size: .9rem; color: var(--text-muted); }

.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; grid-auto-flow: dense; }
.kb-card--wide { grid-column: span 2; }

.kb-card {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: 12px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 26px 26px 22px; text-decoration: none; color: inherit;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
	box-shadow: 0 1px 2px rgba(8, 9, 12, .03);
}
/* верхний световой кант */
.kb-card::after {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5px;
	background: linear-gradient(90deg, #3A3E46, var(--ink));
	opacity: 0; transition: opacity .3s var(--ease);
}
/* spotlight — подсветка за курсором (координаты задаёт JS) */
.kb-card::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 22, 26, .055), transparent 62%);
	opacity: 0; transition: opacity .35s var(--ease);
}
.kb-card:hover {
	transform: translateY(-5px); border-color: #B9BFCB;
	box-shadow: var(--shadow-m); color: inherit;
}
.kb-card:hover::after, .kb-card:hover::before { opacity: 1; }

.kb-card__icon {
	width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
	background: linear-gradient(145deg, #F2F3F5, #FDFDFD);
	border: 1px solid #E2E4E8;
	color: #26282E; flex: 0 0 auto;
	box-shadow: inset 0 1px 0 #fff, 0 6px 14px -6px rgba(8, 9, 12, .12);
}
.kb-card__icon svg { width: 24px; height: 24px; }
.kb-card h3 { margin: 0; font-size: 1.07rem; letter-spacing: -.01em; }
.kb-card p { margin: 0; font-size: .9rem; color: var(--text-muted); line-height: 1.55; flex-grow: 1; }
.kb-card__more {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--accent-deep);
}
.kb-card__more svg { transition: transform .2s var(--ease); }
.kb-card:hover .kb-card__more svg { transform: translateX(3px); }
.kb-card--wide .kb-card__icon { width: 56px; height: 56px; border-radius: 17px; }
.kb-card--wide .kb-card__icon svg { width: 27px; height: 27px; }
.kb-card--wide h3 { font-size: 1.18rem; }

/* Особые карточки: форум и сообщество */
.kb-card--forum {
	background:
		radial-gradient(420px 240px at 85% -20%, rgba(255, 255, 255, .07), transparent 65%),
		linear-gradient(160deg, var(--ink-2), var(--ink));
	border-color: rgba(255, 255, 255, .16); color: var(--text-dark);
}
.kb-card--forum h3 { color: #fff; }
.kb-card--forum p { color: var(--text-dark-muted); }
.kb-card--forum .kb-card__icon {
	background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); color: var(--silver);
	box-shadow: 0 0 24px -4px rgba(255, 255, 255, .14);
}
.kb-card--forum:hover { border-color: rgba(255, 255, 255, .4); }
.kb-card--forum .kb-card__more { color: var(--silver); }

.kb-card--tg {
	background:
		radial-gradient(420px 240px at 15% -20%, rgba(20, 22, 26, .05), transparent 65%),
		var(--surface);
	border-color: #D9DCE1;
}
.kb-card--tg .kb-card__icon { background: var(--accent-soft); border-color: #D8DADE; color: #26282E; box-shadow: 0 6px 14px -6px rgba(8, 9, 12, .12); }

/* ==========================================================================
   8. Сравнение A06R / A06E (тёмное, стекло)
   ========================================================================== */
.compare { overflow: hidden; }
.compare::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(760px 380px at 88% -5%, rgba(255, 255, 255, .07), transparent 62%),
		radial-gradient(560px 300px at 6% 105%, rgba(200, 206, 216, .05), transparent 60%);
}
.compare__grid {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 3vw, 28px); margin-bottom: 28px;
}
.compare__col {
	border: 1px solid var(--glass-dark-border); border-radius: var(--radius);
	padding: clamp(24px, 3vw, 34px);
	background: var(--glass-dark);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	position: relative; overflow: hidden;
}
.compare__col::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
	background: var(--grad-line);
}
.compare__col--hl {
	border-color: rgba(255, 255, 255, .38);
	box-shadow: 0 0 60px -18px rgba(255, 255, 255, .16), inset 0 0 60px -30px rgba(255, 255, 255, .07);
}
.compare__col--hl::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); }
.compare__tag {
	display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .76rem;
	letter-spacing: .14em; color: var(--silver); margin-bottom: 12px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
	padding: 5px 13px; border-radius: 999px;
}
.compare__name {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.2rem, 2.6vw, 1.55rem); margin: 0 0 6px; color: #fff; letter-spacing: 0;
}
.compare__desc { font-size: .92rem; color: var(--text-dark-muted); margin-bottom: 20px; }
.compare__rows { border-top: 1px solid var(--line-dark); }
.compare__row {
	display: flex; justify-content: space-between; gap: 16px;
	padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: .93rem;
	transition: background .2s; border-radius: 8px;
}
.compare__row:hover { background: rgba(255, 255, 255, .03); }
.compare__row dt { margin: 0; color: var(--text-dark-muted); }
.compare__row dd { margin: 0; font-weight: 600; color: #fff; text-align: right; }
.compare__foot { position: relative; z-index: 1; font-size: .88rem; color: var(--text-dark-muted); text-align: center; }
.compare__foot a { color: var(--silver); }

/* ==========================================================================
   9. Важные заметки — монохромные градиентные рамки
   ========================================================================== */
.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.callout {
	display: flex; gap: 16px; padding: 24px;
	border: 1px solid transparent; border-radius: var(--radius);
	background:
		linear-gradient(var(--surface), var(--surface)) padding-box,
		linear-gradient(140deg, rgba(23, 24, 28, .22), rgba(23, 24, 28, .06)) border-box;
	box-shadow: var(--shadow-s);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.callout:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.callout__icon {
	width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto;
	border: 1px solid #D8DADE;
}
.callout--warn .callout__icon, .callout--ok .callout__icon, .callout--info .callout__icon {
	background: var(--accent-soft); color: #3A3E46;
}
.callout__icon svg { width: 22px; height: 22px; }
.callout h3 { margin: 4px 0 6px; font-size: 1rem; }
.callout p { margin: 0 0 8px; font-size: .9rem; color: var(--text-muted); }
.callout a { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.callout a:hover { text-decoration: underline; }

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.faq-list { display: grid; gap: 13px; max-width: 860px; margin-inline: auto; }
.faq-item {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
	overflow: hidden; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] { border-color: #B9BFCB; box-shadow: var(--shadow-m); }
.faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	cursor: pointer; list-style: none;
	font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink);
	padding: 19px 24px;
	transition: color .2s;
}
.faq-item summary:hover { color: #3A3E46; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: ""; flex: 0 0 auto; width: 11px; height: 11px; position: relative;
	border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
	transform: rotate(45deg); transition: transform .25s var(--ease); margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item .faq-item__body { padding: 0 24px 20px; color: var(--text-muted); font-size: .95rem; }
.faq-item .faq-item__body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   11. Сообщество + форум
   ========================================================================== */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tg-card {
	display: flex; align-items: center; gap: 14px; padding: 19px 21px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
	text-decoration: none; color: inherit; overflow: hidden; position: relative;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tg-card::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 22, 26, .05), transparent 62%);
	opacity: 0; transition: opacity .3s;
}
.tg-card:hover::before { opacity: 1; }
.tg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #B9BFCB; color: inherit; }
.tg-card__icon {
	width: 44px; height: 44px; border-radius: 50%;
	background: linear-gradient(145deg, #23252B, #0E1014); color: #fff;
	display: grid; place-items: center; flex: 0 0 auto;
	box-shadow: 0 8px 18px -6px rgba(8, 9, 12, .4);
}
.tg-card__icon svg { width: 20px; height: 20px; }
.tg-card b { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.tg-card span { font-size: .82rem; color: var(--text-muted); }

.forum-cta {
	position: relative; overflow: hidden; text-align: center;
	background:
		radial-gradient(640px 300px at 50% 130%, rgba(255, 255, 255, .08), transparent 65%),
		radial-gradient(560px 280px at 12% -20%, rgba(255, 255, 255, .06), transparent 60%),
		radial-gradient(480px 260px at 90% -10%, rgba(200, 206, 216, .05), transparent 60%),
		var(--ink);
	border: 1px solid var(--glass-dark-border);
	border-radius: calc(var(--radius) + 10px);
	padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 64px);
	color: var(--text-dark);
}
.forum-cta::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: var(--noise); opacity: .06; mix-blend-mode: overlay;
}
.forum-cta h2 { color: #fff; position: relative; }
.forum-cta p { color: var(--text-dark-muted); max-width: 58ch; margin-inline: auto; position: relative; }
.forum-cta .btn { margin-top: 12px; position: relative; }

/* ==========================================================================
   12. Подвал
   ========================================================================== */
.site-footer {
	background:
		radial-gradient(800px 300px at 50% 0%, rgba(255, 255, 255, .05), transparent 60%),
		var(--ink);
	color: var(--text-dark-muted); font-size: .9rem;
}
.site-footer::before {
	content: ""; display: block; height: 1px;
	background: var(--grad-line);
}
.footer-grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 48px);
	padding-block: clamp(44px, 6vw, 68px);
}
.site-footer h4 {
	color: #fff; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
	margin-bottom: 16px; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--text-dark-muted); transition: color .2s, padding-left .2s; }
.site-footer a:hover { color: #fff; padding-left: 3px; }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
	border-top: 1px solid var(--line-dark);
	padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px;
	justify-content: space-between; align-items: center; font-size: .8rem;
}
.footer-disclaimer { max-width: 72ch; line-height: 1.55; }

.to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 80;
	width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
	background: linear-gradient(145deg, var(--ink-2), var(--ink)); color: #fff;
	display: grid; place-items: center;
	box-shadow: var(--shadow-m), inset 0 0 0 1px rgba(255, 255, 255, .12);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: linear-gradient(145deg, #2B2D33, #15171C); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   13. Страницы и записи
   ========================================================================== */
.page-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(700px 320px at 88% -30%, rgba(255, 255, 255, .07), transparent 62%),
		radial-gradient(520px 280px at 4% 120%, rgba(200, 206, 216, .05), transparent 60%),
		var(--ink);
	color: var(--text-dark); padding-block: clamp(24px, 3vw, 32px);
	min-height: 200px; display: flex; align-items: flex-start; box-sizing: border-box;
}
@media (min-width: 921px) {
	.page-hero { height: 200px; padding: 22px 0 0; }
}
.page-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: var(--noise); opacity: .05; mix-blend-mode: overlay;
}
.page-hero .container { position: relative; z-index: 1; width: 100%; }
.page-hero .breadcrumbs {
	font-size: .82rem; color: var(--text-dark-muted); margin-bottom: 12px;
	display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.page-hero .breadcrumbs a { color: var(--text-dark-muted); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs .sep { opacity: .5; }
.page-hero h1 {
	font-family: var(--font-display); font-weight: 700;
	color: #fff; margin: 0 0 10px; max-width: 26ch;
	font-size: clamp(1.5rem, 3.8vw, 2.6rem); letter-spacing: -.01em; text-wrap: balance;
}
.page-hero .page-lead { color: var(--text-dark-muted); max-width: 66ch; margin: 0; font-size: 1.02rem; }
.page-hero .chip {
	background: var(--glass-dark); border-color: var(--glass-dark-border); color: var(--text-dark-muted);
	backdrop-filter: blur(8px);
}
.page-hero .chip a { color: #fff; font-weight: 600; }
.page-hero .kb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.page-hero .chip:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }

/* Постоянная полоса подразделов раздела (вкладки) */
.subnav-band {
	background: var(--ink);
	border-top: 1px solid var(--line-dark);
	padding-block: 14px;
}
.page-subnav {
	display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.page-subnav__label {
	font-family: var(--font-head); font-size: .7rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--text-dark-muted);
	margin-right: 8px;
}
.page-subnav__item {
	font-family: var(--font-head); font-size: .88rem; font-weight: 600;
	color: var(--text-dark-muted);
	padding: 8px 16px; border-radius: 999px;
	border: 1px solid var(--glass-dark-border);
	background: var(--glass-dark);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	transition: color .2s, border-color .2s, background .2s;
	white-space: nowrap;
}
.page-subnav__item:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.page-subnav__item.is-active {
	background: #fff; color: var(--ink); border-color: #fff; font-weight: 700;
}

.layout-article { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: clamp(28px, 5vw, 64px); padding-block: clamp(38px, 6vw, 76px); }
.layout-article--full { grid-template-columns: minmax(0, 1fr); }

.entry-content { max-width: 76ch; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: 0;
	margin-top: 2.1em; padding-top: .7em; scroll-margin-top: calc(var(--header-h) + 20px);
	border-top: 1px solid var(--line); position: relative;
}
.entry-content h2::before {
	content: ""; position: absolute; left: 0; top: -1px; width: 54px; height: 2px; border-radius: 2px;
	background: linear-gradient(96deg, var(--ink), #3A3E46);
}
.entry-content h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.entry-content h2:first-child::before { display: none; }
.entry-content h3 { font-size: 1.16rem; margin-top: 1.7em; scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content h4 { font-size: 1.02rem; margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--ink); font-weight: 700; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(23, 24, 28, .35); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: var(--ink); }
.entry-content strong { color: var(--ink); }

.entry-content blockquote {
	margin: 1.7em 0; padding: 20px 24px;
	background: linear-gradient(120deg, rgba(23, 24, 28, .045), rgba(23, 24, 28, .02));
	border-left: 3px solid var(--ink);
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
	color: var(--text); font-size: .98rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content code {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: .88em; background: #EDEEF0; border: 1px solid var(--line);
	border-radius: 6px; padding: .12em .4em; color: #26282E; word-break: break-word;
}
.entry-content pre {
	background: var(--ink); color: #E3E6EB; border-radius: var(--radius-s);
	padding: 20px 22px; overflow: auto; font-size: .86rem; line-height: 1.6;
	border: 1px solid var(--line-dark);
}
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry-content hr { border: 0; height: 1px; background: var(--grad-line); margin: 2.6em 0; }

/* Таблицы */
.table-scroll {
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	border: 1px solid var(--line); border-radius: var(--radius-s);
	margin: 1.5em 0; box-shadow: var(--shadow-s); background: var(--surface);
}
.entry-content table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 560px; }
.entry-content th, .entry-content td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content thead th {
	background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #fff;
	font-family: var(--font-head); font-size: .78rem; letter-spacing: .07em;
	text-transform: uppercase; font-weight: 700; border-bottom: 0; white-space: nowrap;
}
.entry-content tbody tr:nth-child(even) { background: #FAFAFB; }
.entry-content tbody tr { transition: background .15s; }
.entry-content tbody tr:hover { background: var(--accent-soft); }
.entry-content tbody tr:last-child td { border-bottom: 0; }

/* Оглавление */
.toc {
	position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: .86rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
	padding: 20px; box-shadow: var(--shadow-s);
}
.toc__title {
	font-family: var(--font-head); font-weight: 800; font-size: .74rem;
	letter-spacing: .13em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 13px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a {
	display: block; padding: 6px 12px; color: var(--text-muted);
	border-left: 2px solid var(--line); line-height: 1.4;
	border-radius: 0 9px 9px 0; transition: all .2s;
}
.toc a:hover { color: var(--ink); background: var(--accent-soft); border-left-color: var(--ink); }
.toc a.is-active {
	color: var(--ink); border-left-color: var(--ink); font-weight: 600;
	background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.toc li.toc--lvl3 a { padding-left: 24px; font-size: .82rem; }

.post-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--text-muted); margin-bottom: 20px; }

/* ==========================================================================
   14. bbPress
   ========================================================================== */
.bbpress .layout-article { grid-template-columns: minmax(0, 1fr); }
#bbpress-forums { font-size: .95rem; color: var(--text); }
#bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-search-results,
#bbpress-forums div.bbp-the-content-wrapper, #bbpress-forums div.bbp-template-notice {
	border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden;
}
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics { background: var(--surface); box-shadow: var(--shadow-s); border: 0; }
#bbpress-forums div.even, #bbpress-forums ul.even { background: var(--surface); }
#bbpress-forums div.odd, #bbpress-forums ul.odd { background: #FAFAFB; }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer {
	background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: #fff; border-top: 0;
	font-family: var(--font-head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
}
#bbpress-forums li.bbp-header a { color: var(--silver); }
#bbpress-forums li.bbp-body div.bbp-topic-header, #bbpress-forums li.bbp-body div.bbp-reply-header { border: 0; }
#bbpress-forums div.bbp-topic-header a.bbp-topic-permalink, #bbpress-forums div.bbp-reply-header a.bbp-reply-permalink { font-weight: 700; color: var(--ink); font-family: var(--font-head); }
#bbpress-forums li.bbp-body div.hentry { padding: 15px 18px; }
#bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-replies { border: 0; }
#bbpress-forums .bbp-body-content, #bbpress-forums .bbp-reply-content { font-size: .95rem; }
.bbp-breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 18px; }
.bbp-breadcrumb a { color: var(--text-muted); }
.bbp-breadcrumb a:hover { color: var(--ink); }
#bbpress-forums .bbp-pagination { color: var(--text-muted); font-size: .88rem; }
#bbpress-forums .bbp-pagination-links a, #bbpress-forums .bbp-pagination-links span {
	border: 1px solid var(--line); border-radius: 10px; padding: 6px 13px; margin: 0 3px;
	background: var(--surface); color: var(--text); text-decoration: none; display: inline-block;
	transition: border-color .2s, color .2s;
}
#bbpress-forums .bbp-pagination-links span.page-numbers.current { background: var(--ink); color: #fff; border-color: transparent; }
#bbpress-forums .bbp-pagination-links a:hover { border-color: var(--ink); color: var(--ink); }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 24px; background: var(--surface); box-shadow: var(--shadow-s); }
#bbpress-forums fieldset.bbp-form legend { font-family: var(--font-head); font-weight: 800; padding: 0 8px; color: var(--ink); }
#bbpress-forums input[type="text"], #bbpress-forums input[type="email"], #bbpress-forums input[type="password"],
#bbpress-forums select, #bbpress-forums textarea {
	border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
	font-family: inherit; font-size: .95rem; background: #fff; color: var(--text);
}
div.bbp-template-notice { background: var(--accent-soft); border: 1px solid #D8DADE; border-radius: var(--radius-s); padding: 12px 18px; }
div.bbp-template-notice.info { border: 1px solid #D8DADE; background: var(--accent-soft); }
#bbpress-forums .bbp-topic-tags a, #bbpress-forums .wp-editor-container { border-color: var(--line); }
#bbpress-forums div.bbp-topic-author img.avatar, #bbpress-forums div.bbp-reply-author img.avatar { border-radius: 50%; }
.bbp-user-navigation, .bbp-user-section { font-size: .92rem; }
#bbpress-forums .quicktags-toolbar, #bbpress-forums .wp-editor-tools { border-color: var(--line); }
#favorite-toggle a, .bbp-header .subscription-toggle a, .bbp-header .favorite-toggle a { color: var(--accent-deep); }

/* ==========================================================================
   15. Формы и поиск
   ========================================================================== */
.search-form { display: flex; max-width: 540px; margin-inline: auto; }
.page-hero .search-form { margin-inline: 0; }
.search-form .search-field {
	flex: 1; min-width: 0; padding: 14px 20px;
	border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px;
	font-family: inherit; font-size: .95rem; background: var(--surface); color: var(--text);
	box-shadow: var(--shadow-s);
}
.search-form .search-field:focus { outline: none; border-color: var(--ink); }
.search-form .search-submit {
	padding: 14px 24px; border: 0; border-radius: 0 999px 999px 0;
	background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700;
	cursor: pointer; font-size: .92rem;
	transition: background .2s;
}
.search-form .search-submit:hover { background: #23252B; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], textarea, select {
	border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px;
	font-family: inherit; font-size: .95rem; color: var(--text); background: var(--surface);
}

/* ==========================================================================
   16. Лента, комментарии
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.post-card__thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--accent-soft); }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { margin: 0; font-size: 1.08rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: #3A3E46; }
.post-card p { margin: 0; color: var(--text-muted); font-size: .9rem; flex: 1; }
.post-card time { font-size: .76rem; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

.pagination, .navigation.pagination { margin-block: 36px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
	color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none;
	transition: border-color .2s, color .2s, transform .2s;
}
.page-numbers:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

.comments-area { max-width: 76ch; margin-top: 52px; border-top: 1px solid var(--line); padding-top: 38px; }
.comment-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.comment-list .comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 19px 21px; }
.comment-list .children { list-style: none; margin-top: 18px; padding-left: 26px; display: grid; gap: 18px; }
.comment-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }
.comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.reply a { font-size: .84rem; font-weight: 700; }

/* ==========================================================================
   17. Появление блоков — отключено (статичный показ, классы .reveal — no-op)
   ========================================================================== */
.reveal { opacity: 1; transform: none; }
.reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4 { transition: none; }

/* ==========================================================================
   18. Адаптивность
   ========================================================================== */
@media (max-width: 1080px) {
	.nav-primary { display: none; }
	.nav-toggle { display: inline-flex; }
	.layout-article { grid-template-columns: minmax(0, 1fr); }
	.toc { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.kb-card--wide { grid-column: auto; }
}

@media (max-width: 920px) {
	.stats__grid { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; height: 210px; }
	.stat:nth-child(3)::before { display: none; }
	.compare__grid { grid-template-columns: 1fr; }
	.hero__watermark { font-size: clamp(200px, 62vw, 420px); bottom: auto; top: 24%; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.footer-grid { grid-template-columns: 1fr; }
	.btn { width: 100%; }
	.kb-grid { grid-template-columns: 1fr; }
	.post-grid { grid-template-columns: 1fr; }
	.to-top { right: 14px; bottom: 14px; }
	.brand__sub { display: none; }
}

/* ==========================================================================
   19. Мобильное меню (drawer; без transform — открытие мгновенное)
   ========================================================================== */
.mobile-nav {
	position: fixed; inset: var(--header-h) 0 0 0; z-index: 85;
	background: var(--paper); padding: 20px clamp(16px, 4vw, 32px) 40px;
	overflow-y: auto; -webkit-overflow-scrolling: touch;
	display: none;
}
body.nav-open .mobile-nav { display: block; }
body.nav-open { overflow: hidden; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mobile-nav > ul > li > a, .mobile-nav > ul > li > button {
	display: flex; width: 100%; align-items: center; justify-content: space-between;
	font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink);
	padding: 15px 12px; border-radius: 13px; background: none; border: 0; cursor: pointer; text-align: left;
}
/* пункт с подменю: название и кнопка-стрелочка в одну строку */
.mobile-nav > ul > li.menu-item-has-children {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.mobile-nav > ul > li.menu-item-has-children > a { flex: 1 1 0; width: auto; min-width: 0; }
.mobile-nav > ul > li.menu-item-has-children > a span { pointer-events: none; }
.mobile-nav > ul > li.menu-item-has-children .sub-menu { flex: 1 1 100%; }
.mobile-nav li a:hover { background: var(--accent-soft); color: var(--ink); }
.mobile-nav .sub-menu {
	display: grid; gap: 2px; list-style: none; padding: 0 0 8px 14px; margin: 0;
	border-left: 2px solid var(--line);
}
.mobile-nav .sub-menu a { font-size: .96rem; font-weight: 500; color: var(--text-muted); padding: 9px 12px; border-radius: 10px; }
.mobile-nav .sub-menu a:hover { color: var(--ink); background: var(--accent-soft); }
.mobile-nav .submenu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
	background: var(--surface); color: var(--ink); cursor: pointer;
}
.mobile-nav .submenu-toggle svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.mobile-nav .menu-item--open .submenu-toggle svg { transform: rotate(180deg); }
.mobile-nav__extras { margin-top: 24px; display: grid; gap: 12px; }
.mobile-nav__extras .btn { width: 100%; }

/* ==========================================================================
   20. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: calc(50% - min(46vw, 620px)); max-width: min(92vw, 1240px); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .caption-text { font-size: .82rem; color: var(--text-muted); text-align: center; padding:  6px 0; }
.sticky { border-color: #B9BFCB; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-item { margin: 0; }
.gallery-caption { font-size: .8rem; color: var(--text-muted); }
.post-password-form input[type="submit"] {
	border: 0; border-radius: 11px; padding: 11px 20px; background: var(--ink); color: #fff; cursor: pointer;
	font-family: var(--font-head); font-weight: 700;
}
.wp-block-image img { border-radius: var(--radius-s); }


/* Активный пункт меню (статическая версия) */
.nav-primary .is-active > a { color: var(--ink); background: rgba(20, 22, 26, .06); font-weight: 700; }

/* ==========================================================================
   Комплектации — сравнительные таблицы
   ========================================================================== */
.trim-page { margin-block: clamp(28px, 4vw, 48px); }

.trim-legend { color: var(--text-muted); font-size: .92rem; margin: 0 0 14px; }
.trim-legend .m-yes, .trim-legend .m-opt { font-style: normal; }
.m-yes { color: #1E9E60; font-weight: 700; }
.m-opt { color: #C07A00; font-weight: 700; }
.m-no { color: #B9BFCB; }

.trim-controls { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; flex-wrap: wrap; }
.trim-diff {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	font: inherit; font-size: .95rem; font-weight: 600; color: var(--text);
	user-select: none;
}
.trim-diff input { width: 17px; height: 17px; accent-color: var(--ink); cursor: pointer; }

.trim-nav {
	display: flex; flex-wrap: wrap; gap: 6px;
	padding: 10px; margin: 0 0 26px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
	position: sticky; top: calc(var(--header-h) + 8px); z-index: 30;
	box-shadow: var(--shadow-s);
}
.trim-nav__item {
	font-size: .8rem; font-weight: 600; color: var(--text-muted);
	text-decoration: none; padding: 5px 10px; border-radius: 8px; white-space: nowrap;
}
.trim-nav__item:hover { background: var(--accent-soft); color: var(--ink); }

.trim-block { margin-bottom: clamp(30px, 4vw, 44px); scroll-margin-top: calc(var(--header-h) + 74px); }
.trim-block h2 { margin-bottom: 14px; }

.trim-table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	font-size: .78rem; line-height: 1.4;
	min-width: 980px;
}
.trim-table th, .trim-table td {
	border-bottom: 1px solid var(--line);
	padding: 7px 8px; text-align: left; vertical-align: top;
}
.trim-table thead th {
	position: sticky; top: 0; z-index: 3;
	background: var(--ink); color: #fff;
	font-family: var(--font-head); font-size: .78rem; font-weight: 700;
	border-bottom: 2px solid var(--ink);
}
.trim-table thead .trim-name { display: block; white-space: nowrap; }
.trim-table thead .trim-year { display: block; font-size: .66rem; font-weight: 500; color: var(--silver); }
.trim-table thead th:first-child { z-index: 4; }
.trim-table tbody th {
	font-weight: 600; color: var(--text);
	background: var(--surface);
	position: sticky; left: 0; z-index: 2;
	min-width: 168px; max-width: 240px;
}
.trim-table tbody tr:hover th { background: var(--accent-soft); }
.trim-table tbody tr:hover td { background: rgba(20, 22, 26, .03); }
.trim-table tbody td { min-width: 74px; }
.trim-table tbody tr:nth-child(even) td { background: #FAFAFB; }
.trim-table tbody tr:nth-child(even) th { background: #FAFAFB; }
.trim-table .old-trim .trim-name::after {
	
}
.trim-subhead th {
	background: var(--accent-soft) !important;
	font-family: var(--font-head); font-size: .8rem; font-weight: 800; color: var(--ink);
	letter-spacing: .02em;
}

@media (max-width: 720px) {
	.trim-nav { border-radius: 10px; }
	.trim-table { font-size: .74rem; min-width: 880px; }
	.trim-table tbody th { min-width: 140px; }
}

/* свитч версий: компактнее при 4 вкладках */
@media (max-width: 860px) {
	.hero__switch-wrap { margin-bottom: 10px; }
	.hero__switch { flex-wrap: wrap; justify-content: center; max-width: 340px; }
	.hero__switch-btn { font-size: .74rem; padding: 5px 10px; }
}


/* ==========================================================================
   Русификация (/rus/): чек-лист, карточки, адаптивные таблицы
   ========================================================================== */

/* Чек-лист «как выбрать» */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 1.4em 0; }
.pick {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
	padding: 18px 20px; box-shadow: var(--shadow-s);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.pick h3 { margin: 0 0 6px; font-size: .95rem; }
.pick p { margin: 0; font-size: .86rem; color: var(--text-muted); line-height: 1.55; }
.pick strong { color: var(--ink); }

/* Карточки прошивок */
.ver-cards { display: grid; gap: 14px; margin: 1.4em 0; }
.ver-card {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
	padding: 20px 22px; box-shadow: var(--shadow-s);
}
.ver-card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ver-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.ver-card__badge {
	font-family: var(--font-head); font-weight: 700; font-size: .68rem;
	letter-spacing: .07em; text-transform: uppercase;
	padding: 4px 11px; border-radius: 999px;
	background: var(--accent-soft); border: 1px solid var(--line); color: #3A3E46;
}
.ver-card__badge--hot { background: var(--ink); border-color: var(--ink); color: #fff; }
.ver-card p { margin: 0 0 8px; font-size: .92rem; }
.ver-card p:last-child { margin-bottom: 0; }
.ver-card__rus { color: var(--text-muted); }
.ver-card__rus strong { color: var(--ink); }

/* Карточки исполнителей */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 1.4em 0; }
.prov-card {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px 24px 18px; box-shadow: var(--shadow-s);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.prov-card::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2.5px;
	background: linear-gradient(90deg, #3A3E46, var(--ink));
}
.prov-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: #B9BFCB; }
.prov-card--native { background: linear-gradient(160deg, #FAFAFB, var(--surface)); }
.prov-card h3 { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin: 0 0 6px; font-size: 1.16rem; }
.prov-card h3 small { font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--text-muted); }
.prov-card__fmt { margin: 0 0 16px; font-size: .87rem; color: var(--text-muted); line-height: 1.5; }
.prov-card__prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prov-card--native .prov-card__prices { grid-template-columns: 1fr; }
.prov-card__price { background: var(--accent-soft); border-radius: 12px; padding: 11px 14px; }
.prov-card__price span {
	display: block; font-family: var(--font-head); font-weight: 700; font-size: .68rem;
	letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px;
}
.prov-card__price b { font-family: var(--font-display); font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--ink); letter-spacing: -.015em; }
.prov-card__note { margin: 12px 0 14px; font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.prov-card__spec { margin: auto -4px 0; padding-top: 4px; border-top: 1px solid var(--line); }
.prov-card__spec > div {
	display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
	padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: .85rem;
}
.prov-card__spec > div:last-child { border-bottom: 0; }
.prov-card__spec dt { flex: 0 0 38%; margin: 0; color: var(--text-muted); }
.prov-card__spec dd { flex: 1; margin: 0; text-align: right; }
.prov-card__spec dd strong { color: var(--ink); }

/* Адаптивные таблицы: на узких экранах строка превращается в карточку,
   каждая ячейка подписывается именем исполнителя (data-p ставит JS страницы) */
.entry-content .stack-table { min-width: 0; }
.stack-table td:first-child { font-weight: 600; color: var(--ink); }

@media (max-width: 720px) {
	.prov-card__spec dt { flex-basis: 44%; }
	.stack-table { display: block; }
	.stack-table thead { display: none; }
	.stack-table tbody { display: block; }
	.stack-table tbody tr {
		display: block; padding: 12px 14px;
		border-bottom: 1px solid var(--line);
	}
	.entry-content .stack-table tbody tr:nth-child(even) { background: transparent; }
	.entry-content .stack-table tbody tr:hover { background: transparent; }
	.entry-content .stack-table tbody tr:last-child { border-bottom: 0; }
	.stack-table td {
		display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
		padding: 5px 0; border: 0; font-size: .85rem; text-align: right;
	}
	.stack-table td:first-child {
		display: block; text-align: left; padding: 2px 0 8px;
		font-family: var(--font-head); font-weight: 700;
	}
	.stack-table td:nth-child(n+2)::before {
		content: attr(data-p);
		flex: 0 0 36%; text-align: left;
		font-family: var(--font-head); font-weight: 700; font-size: .76rem;
		color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em;
	}
}
