/*
Theme Name: Perplexity Sonar Ru
Description: Тема сайта perplexity-sonar.help. Язык дизайна — «вкладка-источник»: карточки с выступающим ярлычком, осциллограмма на canvas за первым экраном, горизонтальный аккордеон моделей. Палитра снята с CSS офсайта бренда.
Version: 1.0.0
Author: Perplexity Sonar Ru
*/

/* ============================================================
   1. ТОКЕНЫ
   Палитра снята с собственных CSS-чанков docs.perplexity.ai,
   а не подобрана пипеткой и не по памяти.
   ============================================================ */
:root {
	--bg:            #121516;
	--bg-deep:       #0D1011;
	--surface:       #1A1F20;
	--surface-2:     #232829;
	--line:          #2C3233;
	--line-soft:     #21262700;
	--ink:           #F7F7F8;
	--muted:         #ABB0B3;
	--dim:           #545658;
	--accent:        #35BDC8;
	--accent-deep:   #1A6872;
	--accent-pale:   #92DCE2;
	--cream:         #FBFAF4;
	--ok:            #88BB8C;

	--maxw:     1360px;
	--pad:      clamp(20px, 4vw, 40px);
	--text-col: 820px;

	--r:      14px;
	--r-sm:   10px;
	--tab-h:  32px;

	--f-display: 'Podkova', Georgia, 'Times New Roman', serif;
	--f-text:    'Merriweather Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--f-mono:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

	--ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 17px;
	line-height: 1.7;
	font-weight: 400;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img, svg, canvas, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-pale); text-decoration-color: rgba(146, 220, 226, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* ============================================================
   2. ТИПОГРАФИКА
   ============================================================ */
h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
	color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.45rem); margin-bottom: .6em; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.42rem); letter-spacing: -.005em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
	font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem);
	line-height: 1.6;
	color: var(--muted);
	max-width: 46ch;
}
.lead--wide { max-width: 62ch; }

strong { font-weight: 700; color: var(--ink); }

.num {
	font-family: var(--f-mono);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
}

/* «Строка ответа» — подача чисел и фактов с бирюзовым префиксом-стрелкой */
.ans {
	display: flex;
	gap: 10px;
	align-items: baseline;
	font-family: var(--f-mono);
	font-size: .93rem;
	color: var(--ink);
	padding: 9px 0;
	border-bottom: 1px dashed rgba(44, 50, 51, .9);
}
.ans:last-child { border-bottom: none; }
.ans::before {
	content: "→";
	color: var(--accent);
	flex: none;
	font-size: .95em;
}
.ans b { font-weight: 700; color: var(--accent-pale); }
.ans span { color: var(--muted); }

/* ============================================================
   3. РАСКЛАДКА
   Тонированных полос вразбивку нет: полотно единое, секции
   разделяет линия с осциллограммой.
   ============================================================ */
.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--pad);
}
.wrap--text { max-width: calc(var(--text-col) + var(--pad) * 2); }

.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section--tight { padding-top: clamp(44px, 5vw, 68px); }

.section__head { max-width: 62ch; margin-bottom: clamp(28px, 3.4vw, 46px); }
.section__head p { color: var(--muted); margin-bottom: 0; }

/* Разделитель секций — линия с миниатюрной осциллограммой по центру */
.divider {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--pad);
}
.divider::before, .divider::after {
	content: "";
	height: 1px;
	flex: 1;
	background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.divider svg { flex: none; opacity: .75; }

.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px)  { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 820px) and (max-width: 999px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 660px) and (max-width: 999px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stack > * + * { margin-top: 18px; }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--accent); color: #06191C; padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ============================================================
   4. НЕСУЩАЯ ФОРМА — ВКЛАДКА-ИСТОЧНИК
   Ярлычок сверху слева на настоящих рамках (не clip-path,
   чтобы сохранить границы и тень). Свет падает конусом
   из-под ярлычка вниз по корпусу.
   ============================================================ */
/* Инлайновая иконка из спрайта. Размер задавать ОБЯЗАТЕЛЬНО: <svg> без
   width/height разворачивается в 300×150 по умолчанию и распирает ярлычок. */
.ico {
	width: 15px;
	height: 15px;
	flex: none;
	display: inline-block;
	vertical-align: -2px;
	stroke: currentColor;
	fill: none;
}

.src { display: flex; flex-direction: column; min-width: 0; }

.src__tab {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: var(--tab-h);
	max-width: 100%;
	padding: 0 15px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-bottom: none;
	border-radius: var(--r-sm) var(--r-sm) 0 0;
	font-family: var(--f-mono);
	font-size: .74rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	position: relative;
	z-index: 2;
	margin-bottom: -1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color .2s var(--ease), background .2s var(--ease);
}
.src__tab .ico { color: var(--accent); }

.src__body {
	position: relative;
	flex: 1;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 0 var(--r) var(--r) var(--r);
	padding: clamp(20px, 2.2vw, 28px);
	overflow: hidden;
}
/* конус света из ярлычка */
.src__body::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 320px; height: 260px;
	background: radial-gradient(120% 90% at 12% 0%, rgba(53, 189, 200, .16), rgba(53, 189, 200, 0) 62%);
	pointer-events: none;
}
.src__body > * { position: relative; }
.src__body h3 { margin-bottom: .45em; }
.src__body p { color: var(--muted); }
.src__body p:last-child { margin-bottom: 0; }

/* ховер: ярлычок подсвечивается, но НЕ приподнимается */
.src:hover .src__tab { color: var(--accent-pale); background: var(--surface); }

.src--accent .src__tab { color: var(--accent-pale); border-color: var(--accent-deep); }
.src--accent .src__body { border-color: var(--accent-deep); }

/* ============================================================
   5. КНОПКИ
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 24px;
	border-radius: 999px;
	font-family: var(--f-text);
	font-size: .96rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
	white-space: nowrap;
}
.btn--primary {
	background: var(--accent);
	color: #06191C;
	box-shadow: 0 0 0 0 rgba(53, 189, 200, .5);
}
.btn--primary:hover {
	background: var(--accent-pale);
	color: #06191C;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px -10px rgba(53, 189, 200, .8);
}
.btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent-deep); color: var(--accent-pale); transform: translateY(-2px); }
.btn--xs { padding: 8px 15px; font-size: .84rem; white-space: nowrap; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

/* ============================================================
   6. ШАПКА — липкая полоса, навигация вкладками-пилюлями
   Реф-кнопка ВСЕГДА вне сворачиваемого меню.
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(18, 21, 22, .82);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.header-row {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 1.06rem;
	color: var(--ink);
	letter-spacing: -.01em;
	white-space: nowrap;
}

.nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-inline: auto;
	padding: 4px;
	border-radius: 999px;
	background: rgba(26, 31, 32, .7);
}
.nav a {
	padding: 7px 14px;
	border-radius: 999px;
	font-size: .87rem;
	color: var(--muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color .16s var(--ease), background .16s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.current { color: #06191C; background: var(--accent); font-weight: 700; }

.header-cta { flex: none; margin-left: auto; }
.header-cta .btn { padding: 10px 19px; font-size: .89rem; }

.burger {
	display: none;
	flex: none;
	width: 42px; height: 42px;
	align-items: center; justify-content: center;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	cursor: pointer;
	padding: 0;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: background .16s; }
.burger span::before, .burger span::after {
	content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
	transition: transform .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
	display: none;
	border-top: 1px solid var(--line);
	background: var(--bg);
	padding: 12px var(--pad) 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
	display: block;
	padding: 12px 4px;
	color: var(--ink);
	text-decoration: none;
	border-bottom: 1px solid var(--line);
	font-size: .98rem;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.current { color: var(--accent); }

/* ============================================================
   7. ПЕРВЫЙ ЭКРАН + ОСЦИЛЛОГРАММА
   canvas рисует первый кадр синхронно, иначе в фоновой вкладке
   холст остаётся чёрным (грабля из базы знаний).
   ============================================================ */
.hero { position: relative; padding: clamp(54px, 8vw, 104px) 0 clamp(40px, 5vw, 68px); overflow: hidden; }
.wave-host {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}
/* Затухание волны к краям — накладка обычным градиентом, а НЕ mask-image
   на самом холсте. Маска поверх поверхности, которая перерисовывается
   каждый кадр, пересчитывается вместе с ней: рендерер вставал намертво,
   вкладка переставала отвечать даже на внешние запросы к DOM, а CSS-переходы
   заголовка застревали на полпути. Накладка же композитится один раз. */
.wave-host::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--bg) 0%, rgba(18, 21, 22, 0) 24%, rgba(18, 21, 22, 0) 70%, var(--bg) 100%);
}
.wave-host canvas { width: 100%; height: 100%; display: block; }
.hero > .wrap { position: relative; z-index: 1; }

/* внутренние страницы держат ту же осциллограмму, но приглушённее */
.page-head { position: relative; padding: clamp(30px, 4vw, 52px) 0 clamp(18px, 2vw, 30px); overflow: hidden; }

.page-head > .wrap { position: relative; z-index: 1; }

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 15px 7px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(26, 31, 32, .72);
	font-family: var(--f-mono);
	font-size: .78rem;
	letter-spacing: .04em;
	color: var(--muted);
	margin-bottom: 22px;
}
.hero__badge b { color: var(--accent-pale); font-weight: 700; }
.hero__badge .dot {
	width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
	box-shadow: 0 0 0 4px rgba(53, 189, 200, .16);
}
.hero h1 { max-width: 17ch; }
.hero .lead { margin-bottom: 26px; }
.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 30px;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}
.hero__fact { min-width: 0; }
.hero__fact b {
	display: block;
	font-family: var(--f-display);
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem);
	line-height: 1.1;
	color: var(--ink);
	letter-spacing: -.02em;
}
.hero__fact span { font-size: .84rem; color: var(--muted); }

/* ============================================================
   8. ГОРИЗОНТАЛЬНЫЙ АККОРДЕОН
   Порт идеи interactive-image-accordion на чистый CSS/JS.
   Панель расширяется по наведению и по клику (для тач).
   ============================================================ */
.acc {
	display: flex;
	gap: 12px;
	min-height: 420px;
	width: 100%;
}
.acc__panel {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	overflow: hidden;
	cursor: pointer;
	transition: flex-grow .55s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
	padding: 0;
	text-align: left;
	font: inherit;
	color: inherit;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.acc__panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(150% 100% at 50% 0%, rgb(4 181 195 / 40%), rgba(53, 189, 200, 0) 55%), linear-gradient(180deg, rgba(13, 16, 17, 0) 30%, rgba(13, 16, 17, .92) 100%);
	opacity: .55;
	transition: opacity .45s var(--ease);
}
.acc__panel.is-open { flex-grow: 4.4; border-color: var(--accent-deep); background: var(--surface-2); }
.acc__panel.is-open::before { opacity: 1; }

/* декоративная осциллограмма внутри панели вместо картинки */
.acc__art { position: absolute; inset: 0; opacity: .5; }
.acc__art svg { width: 100%; height: 100%; }

.acc__inner { position: relative; padding: 22px; width: 100%; }

.acc__label {
	font-family: var(--f-mono);
	font-size: .82rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent-pale);
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
	transition: opacity .3s var(--ease);
	position: absolute;
	left: 22px;
	bottom: 22px;
}
.acc__panel.is-open .acc__label { opacity: 0; }

.acc__content {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .4s var(--ease) .12s, transform .4s var(--ease) .12s;
	pointer-events: none;
	max-width: 42ch;
}
.acc__panel.is-open .acc__content { opacity: 1; transform: none; pointer-events: auto; }
.acc__content h3 { margin-bottom: .4em; }
.acc__content p { color: var(--muted); font-size: .95rem; margin-bottom: .7em; }
.acc__price {
	font-family: var(--f-mono);
	font-size: .88rem;
	color: var(--accent-pale);
	display: block;
}

/* ============================================================
   9. ВСПЛЫВАЮЩАЯ АНИМАЦИЯ ТЕКСТА
   Строка выезжает из-под маски; блоки всплывают.
   ============================================================ */
.rv { display: block; overflow: hidden; }
.rv > span {
	display: block;
	transform: translateY(105%);
	transition: transform .8s var(--ease);
}
.rv.is-in > span { transform: none; }
.rv:nth-of-type(2) > span { transition-delay: .09s; }
.rv:nth-of-type(3) > span { transition-delay: .18s; }

.rise {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.rise.is-in { opacity: 1; transform: none; }
.rise-d1 { transition-delay: .07s; }
.rise-d2 { transition-delay: .14s; }
.rise-d3 { transition-delay: .21s; }
.rise-d4 { transition-delay: .28s; }

/* ============================================================
   10. ТАРИФЫ — у КАЖДОЙ карточки своя кнопка, включая бесплатную
   ============================================================ */
.plans { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin-top: 26px; }
@media (min-width: 820px)  { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan__price {
	font-family: var(--f-display);
	font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem);
	line-height: 1.05;
	letter-spacing: -.03em;
	color: var(--ink);
	margin: 2px 0 2px;
}
.plan__price small { font-family: var(--f-text); font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan__note { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.plan__list { list-style: none; margin: 0 0 20px; padding: 0; }
.plan__list li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: .94rem; color: var(--muted); }
.plan__list li::before {
	content: "";
	position: absolute; left: 2px; top: .62em;
	width: 9px; height: 9px;
	border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(-45deg) translateY(-1px);
}
.plan__cta { margin-top: auto; }
.plan .src__body { display: flex; flex-direction: column; }

/* Флажок «выгоднее всего» вынесен за границу карточки — сверху нужен воздух */
.plans-wrap { padding-top: 22px; padding-bottom: 8px; }
.plan__flag {
	position: absolute;
	top: -12px; right: 18px;
	z-index: 3;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--accent);
	color: #06191C;
	font-family: var(--f-mono);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
.plan { position: relative; }

/* ============================================================
   11. ТАБЛИЦЫ — внутренний скролл, на узких стек карточек
   ============================================================ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 0; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
	font-family: var(--f-mono);
	font-size: .76rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 400;
	background: var(--surface-2);
	white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
td b { color: var(--ink); }
td .num { color: var(--accent-pale); }

@media (max-width: 660px) {
	.table-wrap { border: none; background: transparent; overflow: visible; }
	table, tbody, tr, td { display: block; width: 100%; }
	thead { display: none; }
	tr {
		border: 1px solid var(--line);
		border-radius: var(--r);
		background: var(--surface);
		margin-bottom: 14px;
		padding: 6px 4px;
	}
	td { border-bottom: 1px dashed var(--line); padding: 10px 14px; }
	tr td:last-child { border-bottom: none; }
	td::before {
		content: attr(data-label);
		display: block;
		font-family: var(--f-mono);
		font-size: .7rem;
		letter-spacing: .09em;
		text-transform: uppercase;
		color: var(--dim);
		margin-bottom: 3px;
	}
}

/* ============================================================
   12. ЗВЁЗДЫ И ОТЗЫВЫ
   fill: currentColor обязателен, иначе любая оценка читается
   как пятёрка. Ширина заливки — top/left/bottom, не inset.
   ============================================================ */
.star-rating { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.star-rating__bg, .star-rating__fg { display: flex; gap: 2px; }
.star-rating__bg { color: var(--dim); opacity: .5; }
.star-rating__fg {
	position: absolute; top: 0; left: 0; bottom: 0;
	overflow: hidden; white-space: nowrap; color: var(--accent);
}
.star-rating svg {
	width: var(--star-size, 20px); height: var(--star-size, 20px);
	flex-shrink: 0; fill: currentColor; stroke: currentColor;
}
/* специфичность: перебиваем любые правила на span внутри карточек */
.score .star-rating__fg, .voice .star-rating__fg { color: var(--accent); }

.score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 20px 24px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
}
.score__val {
	font-family: var(--f-display);
	font-size: clamp(2.4rem, 2rem + 1.6vw, 3.1rem);
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--ink);
}
.score__of { color: var(--muted); font-size: .9rem; }

.crit { display: grid; gap: 12px; margin-top: 22px; }
.crit__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.crit__name { font-size: .94rem; color: var(--muted); }
.crit__bar { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.crit__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.crit__num { font-family: var(--f-mono); font-size: .9rem; color: var(--accent-pale); }

.voice__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.voice__who { font-weight: 700; color: var(--ink); font-size: .96rem; }
.voice__date { font-family: var(--f-mono); font-size: .78rem; color: var(--dim); }

/* ============================================================
   13. FAQ-АККОРДЕОН — grid-template-rows 0fr → 1fr
   ============================================================ */
.qa { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.qa + .qa { margin-top: 12px; }
.qa__q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 22px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--f-display);
	font-size: 1.06rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ink);
	transition: color .18s var(--ease);
}
.qa__q:hover { color: var(--accent-pale); }
.qa__chev {
	flex: none;
	width: 11px; height: 11px;
	margin-top: 6px;
	border-right: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(45deg);
	transition: transform .25s var(--ease);
}
.qa[open] .qa__chev, .qa.is-open .qa__chev { transform: rotate(-135deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 22px 20px; color: var(--muted); margin: 0; }
.qa__a p + p { padding-top: 0; }

/* ============================================================
   14. ХЛЕБНЫЕ КРОШКИ, ПОДВАЛ, СВЯЗАННОЕ
   ============================================================ */
.psn-breadcrumb {
	display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
	font-size: .82rem; color: var(--dim); margin-bottom: 18px;
	font-family: var(--f-mono);
}
.psn-breadcrumb__link { color: var(--muted); text-decoration: none; }
.psn-breadcrumb__link:hover { color: var(--accent); }
.psn-breadcrumb__sep { color: var(--dim); }
.psn-breadcrumb__current { color: var(--ink); }

.related { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	text-decoration: none;
	color: var(--ink);
	font-weight: 700;
	font-size: .96rem;
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.related a:hover { border-color: var(--accent-deep); transform: translateY(-2px); color: var(--accent-pale); }
.related span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 4px; }

.cta-band {
	border: 1px solid var(--accent-deep);
	border-radius: var(--r);
	background:
		radial-gradient(90% 140% at 8% 0%, rgba(53, 189, 200, .16), rgba(53, 189, 200, 0) 60%),
		var(--surface);
	padding: clamp(28px, 4vw, 46px);
	text-align: left;
}
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { color: var(--muted); max-width: 58ch; }

.site-footer { border-top: 1px solid var(--line); margin-top: clamp(48px, 6vw, 82px); padding: clamp(38px, 4.5vw, 58px) 0 30px; background: var(--bg-deep); }
/* подвал не тремя колонками: знак и текст сверху, ссылки одной лентой */
.footer-top { max-width: 60ch; margin-bottom: 28px; }
.footer-top p { color: var(--muted); font-size: .93rem; margin-top: 12px; }
.footer-links {
	display: flex; flex-wrap: wrap; gap: 10px 26px;
	padding: 20px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-note { padding-top: 20px; font-size: .83rem; color: var(--dim); line-height: 1.6; }
.footer-note a { color: var(--muted); }

/* ============================================================
   15. МЕЛОЧИ
   ============================================================ */
.art {
	margin: 26px auto;
	max-width: 520px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	background: var(--surface);
}
.art img { width: 100%; display: block; }
.art figcaption { padding: 10px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Текст и иллюстрация бок о бок. Ниже 900px картинка уходит под текст:
   в две колонки на планшете иллюстрация сжимается до нечитаемой полоски. */
.art-side {
	display: grid;
	gap: clamp(20px, 3vw, 36px);
	align-items: center;
	grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
	.art-side { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); }
}
/* Картинка держится по центру своей колонки: сама она уже колонки,
   когда сетка раздаётся до 360px, и без этого липнет к левому краю. */
.art-side .art { margin: 0 auto; max-width: none; }

/* Иллюстрация во всю колонку текста — под лидом внутренних страниц */
.art--wide { max-width: var(--text-col); margin-inline: auto; }

.prose { max-width: var(--text-col); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent-deep); }

.note {
	border-left: 2px solid var(--accent-deep);
	padding: 4px 0 4px 18px;
	color: var(--muted);
	font-size: .95rem;
	margin: 22px 0;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
	font-family: var(--f-mono);
	font-size: .76rem;
	padding: 5px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
}

/* ============================================================
   16. АДАПТИВ — своя лестница 1180 / 1000 / 820 / 660 / 520 / 400
   ============================================================ */
@media (max-width: 1180px) {
	.nav a { padding: 7px 11px; font-size: .84rem; }
}
@media (max-width: 1000px) {
	.nav { display: none; }
	.burger { display: inline-flex; }
	.header-cta { margin-left: auto; }
	.acc { min-height: 380px; }
}
@media (max-width: 820px) {
	body { font-size: 16px; }
	.acc { flex-direction: column; min-height: 0; gap: 10px; }
	.acc__panel { flex: none; }
	.acc__panel .acc__inner { padding: 18px; }
	.acc__label { position: static; writing-mode: horizontal-tb; transform: none; display: block; margin-bottom: 4px; }
	.acc__panel.is-open .acc__label { opacity: 1; }
	.acc__content { display: grid; grid-template-rows: 0fr; opacity: 1; transform: none; transition: grid-template-rows .4s var(--ease), opacity .3s var(--ease); }
	.acc__content > div { overflow: hidden; }
	.acc__panel.is-open .acc__content { grid-template-rows: 1fr; }
	.acc__panel { justify-content: flex-start; }
	.acc__art { opacity: .28; }
}
@media (max-width: 660px) {
	.hero__facts { gap: 14px 22px; }
	.header-row { height: 60px; gap: 10px; }
	.score { padding: 16px 18px; }
}
@media (max-width: 520px) {
	.brand__name { display: none; }
	.header-cta .btn { padding: 9px 15px; font-size: .85rem; }
	.hero__fact { min-width: 44%; }
}
@media (max-width: 400px) {
	:root { --pad: 16px; }
	.header-cta .btn { padding: 9px 13px; font-size: .8rem; }
	.btn { padding: 12px 18px; }
}

/* ============================================================
   17. ДОСТУПНОСТЬ / ДВИЖЕНИЕ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.rv > span { transform: none; }
	.rise { opacity: 1; transform: none; }
}

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