/*
Theme Name: Hedra Ru
Theme URI: https://hedra.click/
Description: Тема сайта Hedra Ru — студия ИИ-видео с говорящими персонажами. Светлая редакционная сетка, антиква в заголовках, тёмные секции-врезки, оранжевый градиент знака.
Author: Hedra Ru
Version: 1.0.0
Text Domain: hedra-ru
*/

/* ══════════════════════════════════════════════════════════
   Токены
   ══════════════════════════════════════════════════════════ */
:root {
	--bg: #ffffff;
	--bg-soft: #f6f6f6;
	--bg-dark: #0a0a0a;
	--surface-dark: #171717;
	--surface-dark-2: #262626;

	--fg: #0a0a0a;
	--fg-muted: #737373;
	--fg-dark: #fafafa;
	--fg-dark-muted: #a1a1a1;

	--line: #e5e5e5;
	--line-soft: #efefef;
	--line-dark: rgba(255, 255, 255, .13);

	--accent: #ff5a1f;
	--accent-2: #ff9d2e;
	--accent-deep: #c62d12;
	--accent-grad: linear-gradient(70deg, #140a0c 0%, #c9331a 54%, #ff932c 100%);
	--accent-soft: #fff1e9;
	--danger: #e40014;
	--ok: #157f4a;

	--font-display: "Playfair Display", "Times New Roman", Georgia, serif;
	--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

	--radius: 14px;
	--radius-lg: 22px;
	--wrap: 1180px;
	--header-h: 68px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

p { margin: 0 0 18px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 880px; }

/* ── Типографика ─────────────────────────────────────────── */
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
	line-height: 1.14;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.65rem); font-weight: 400; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 52px 0; }
h3 { font-size: clamp(1.18rem, 2.1vw, 1.42rem); margin-top: 32px; }
h4 { font-size: 1.06rem; margin-top: 24px; }

.lead {
	font-size: 1.15rem;
	color: var(--fg-muted);
	max-width: 720px;
	margin-bottom: 26px;
}

.label {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--fg-muted);
	margin-bottom: 14px;
}

.num {
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: .1em;
	color: var(--accent);
}

strong, b { font-weight: 600; }

.text-accent { color: var(--accent-deep); }

/* ── Сетка точек — фирменный фон офсайта ─────────────────── */
.dotgrid {
	background-image: radial-gradient(circle, rgba(10, 10, 10, .13) 1px, transparent 1px);
	background-size: 22px 22px;
}

/* ══════════════════════════════════════════════════════════
   Кнопки
   ══════════════════════════════════════════════════════════ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-family: var(--font-sans);
	font-weight: 500;
	font-size: .96rem;
	line-height: 1;
	padding: 14px 24px;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .16s ease, background .2s ease, color .2s ease, border-color .2s ease;
	white-space: nowrap;
	border: #ff932c;
}

.btn:hover { transform: translateY(-1px); }

.btn--accent {
	background: var(--accent-grad);
	color: #fff;
	box-shadow: 0 8px 22px rgba(198, 45, 18, .22);
}
.btn--accent:hover { box-shadow: 0 10px 26px rgba(198, 45, 18, .3); }

.btn--dark { background: var(--fg); color: #fff; }
.btn--dark:hover { background: #262626; }

.btn--outline { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn--outline:hover { background: var(--fg); color: #fff; }

.btn--ghost {
	border-color: rgba(255, 255, 255, .3);
	color: #fff;
	background: transparent;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 10px 17px; font-size: .88rem; }

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

/* ══════════════════════════════════════════════════════════
   Шапка
   ══════════════════════════════════════════════════════════ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 18px rgba(0, 0, 0, .04); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: var(--header-h);
	justify-content: space-between;
}

.site-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }

.site-logo__icon {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: var(--accent-grad);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.site-logo__icon svg { width: 19px; height: 19px; }

.site-logo__text {
	font-family: var(--font-display);
	font-size: 1.24rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.site-logo__text b { font-weight: 400; color: var(--fg-muted); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
	font-size: .93rem;
	color: var(--fg-muted);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
	transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--fg); border-bottom-color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header-cta { margin-left: 22px; }
.header-cta__text-short { display: none; }

.burger {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--fg);
	cursor: pointer;
	padding: 8px;
}
.burger svg { width: 22px; height: 22px; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav .wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.mobile-nav a {
	padding: 12px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: .98rem;
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   Секции
   ══════════════════════════════════════════════════════════ */
main { display: block; }

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--soft { background: var(--bg-soft); }

.section--dark {
	background: var(--bg-dark);
	color: var(--fg-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--fg-dark); }
.section--dark .lead, .section--dark .label { color: var(--fg-dark-muted); }
.section--dark .card { background: var(--surface-dark); border-color: var(--line-dark); }
.section--dark .card p { color: var(--fg-dark-muted); }
.section--dark a.inline { color: var(--accent-2); }

.section__head { max-width: 780px; margin-bottom: 38px; }
.section__head h2 { margin-top: 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ══════════════════════════════════════════════════════════
   Первый экран
   ══════════════════════════════════════════════════════════ */
.hero {
	padding: 74px 0 64px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }

.hero__mark {
	width: 92px;
	height: 92px;
	border-radius: 24px;
	background: var(--accent-grad);
	display: grid;
	place-items: center;
	margin: 0 auto 26px;
	box-shadow: 0 18px 44px rgba(198, 45, 18, .24);
}
.hero__mark svg { width: 46px; height: 46px; }

.hero h1 { margin: 0 auto 18px; max-width: 900px; }
.hero .lead { margin: 0 auto 28px; }
.hero .btn-row { justify-content: center; }

.hero__note {
	margin-top: 18px;
	font-family: var(--font-mono);
	font-size: .76rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fg-muted);
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-top: 54px;
}
.stat { background: #fff; padding: 24px 18px; text-align: left; }
.stat__value {
	font-family: var(--font-display);
	font-size: 1.85rem;
	line-height: 1.05;
	margin-bottom: 6px;
}
.stat__label { font-size: .87rem; color: var(--fg-muted); line-height: 1.4; }

/* ── Хлебные крошки и шапка страницы ─────────────────────── */
.page-head { padding: 34px 0 8px; }
.crumbs {
	font-family: var(--font-mono);
	font-size: .74rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fg-muted);
	margin-bottom: 20px;
}
.crumbs a { color: var(--fg-muted); }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs__sep { margin: 0 8px; }

.tldr {
	border-left: 3px solid var(--accent);
	background: var(--accent-soft);
	padding: 18px 22px;
	border-radius: 0 var(--radius) var(--radius) 0;
	margin: 26px 0 8px;
}
.tldr p { margin: 0; }
.tldr p + p { margin-top: 10px; }

/* ══════════════════════════════════════════════════════════
   Карточки и сетки
   ══════════════════════════════════════════════════════════ */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
}
.card--soft { background: var(--bg-soft); border-color: transparent; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--accent-soft);
	color: var(--accent-deep);
	display: grid;
	place-items: center;
	margin-bottom: 16px;
}
.card__icon svg { width: 21px; height: 21px; stroke: currentColor; }

.section--dark .card__icon { background: rgba(255, 122, 40, .16); color: var(--accent-2); }

/* Нумерованный список-«лента», приём офсайта */
.numbered { border-top: 1px solid var(--line); }
.numbered__item {
	display: grid;
	grid-template-columns: 78px 1fr;
	gap: 18px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}
.numbered__item h3 { margin: 0 0 8px; }
.numbered__item p:last-child { margin-bottom: 0; }
.section--dark .numbered, .section--dark .numbered__item { border-color: var(--line-dark); }

/* ── Шаги ────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 18px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}
.step::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: .85rem;
	color: #fff;
	background: var(--fg);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
}
.step h3 { margin: 0 0 8px; font-size: 1.12rem; }
.step p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   Таблицы
   ══════════════════════════════════════════════════════════ */
.table-wrap {
	overflow-x: auto;
	margin: 0 0 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
table.data {
	width: 100%;
	border-collapse: collapse;
	min-width: 540px;
	font-size: .95rem;
	background: #fff;
}
table.data th, table.data td {
	text-align: left;
	padding: 13px 16px;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
table.data thead th {
	background: var(--bg-soft);
	font-weight: 600;
	font-size: .82rem;
	font-family: var(--font-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fcfcfc; }
table.data .is-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .row-hi { background: var(--accent-soft); }

.table-note {
	font-size: .85rem;
	color: var(--fg-muted);
	margin: -12px 0 26px;
}

@media (max-width: 640px) {
	.table-wrap { overflow-x: visible; border: 0; }
	table.data { min-width: 0; }
	table.data thead {
		position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
		overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
	}
	table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
	table.data tr {
		border: 1px solid var(--line);
		border-radius: var(--radius);
		margin-bottom: 12px;
		overflow: hidden;
	}
	table.data tr:last-child { margin-bottom: 0; }
	table.data td { padding: 10px 14px 10px 44%; position: relative; min-height: 20px; }
	table.data td strong {text-align: right}
	table.data tr td:last-child { border-bottom: 0; }
	table.data td::before {
		content: attr(data-label);
		position: absolute;
		left: 14px;
		top: 10px;
		width: 38%;
		font-weight: 600;
		font-size: .8rem;
		color: var(--fg-muted);
	}
}

/* ══════════════════════════════════════════════════════════
   Тарифы
   ══════════════════════════════════════════════════════════ */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.plan {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 26px 22px;
	background: #fff;
	display: flex;
	flex-direction: column;
	position: relative;
}
.plan--hi { border-color: var(--fg); box-shadow: 0 14px 40px rgba(10, 10, 10, .08); }

.plan__badge {
	position: absolute;
	top: -11px;
	left: 22px;
	background: var(--accent-grad);
	color: #fff;
	font-family: var(--font-mono);
	font-size: .66rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
}
.plan__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--fg);
	display: inline-block;
	margin-right: 9px;
	vertical-align: middle;
}
.plan__name { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin: 0 0 14px; }
.plan__price {
	font-family: var(--font-display);
	font-size: 3rem;
	line-height: 1;
	letter-spacing: -0.02em;
}
.plan__price span { font-size: 1rem; color: var(--fg-muted); font-family: var(--font-sans); }
.plan__rub { font-size: .88rem; color: var(--fg-muted); margin: 8px 0 0; }
.plan__billing {
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--fg-muted);
	margin: 14px 0 18px;
}
.plan__list { list-style: none; margin: 0 0 22px; padding: 0; font-size: .93rem; }
.plan__list li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--fg-muted); }
.plan__list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 9px;
	width: 5px;
	height: 5px;
	background: var(--fg-muted);
	border-radius: 50%;
}
.plan__list li.is-key { color: var(--fg); font-weight: 500; }
.plan__list li.is-key::before { background: var(--accent); }
.plan__list li.is-no { color: #a3a3a3; }
.plan__cta { margin-top: auto; }
.plan__cta .btn { width: 100%; }

/* ══════════════════════════════════════════════════════════
   Калькулятор кредитов
   ══════════════════════════════════════════════════════════ */
.calc {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: #fff;
	margin: 30px 0;
}
.calc__form {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	padding: 26px;
	background: var(--bg-soft);
	border-bottom: 1px solid var(--line);
}
.calc__field { display: flex; flex-direction: column; gap: 7px; }
.calc__field label {
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--fg-muted);
}
.calc__field select, .calc__field input {
	font-family: var(--font-sans);
	font-size: .96rem;
	padding: 11px 13px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--fg);
	width: 100%;
}
.calc__field select:focus, .calc__field input:focus {
	outline: 2px solid var(--accent);
	outline-offset: 1px;
	border-color: transparent;
}
.calc__range { display: flex; align-items: center; gap: 12px; }
.calc__range input[type="range"] { flex: 1; accent-color: var(--accent); padding: 0; }
.calc__range output {
	font-family: var(--font-mono);
	font-size: .9rem;
	min-width: 54px;
	text-align: right;
}

.calc__out { padding: 26px; }
.calc__headline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 34px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 20px;
}
.calc__metric { min-width: 150px; }
.calc__metric b {
	display: block;
	font-family: var(--font-display);
	font-size: 1.9rem;
	font-weight: 500;
	line-height: 1.1;
}
.calc__metric span { font-size: .86rem; color: var(--fg-muted); }

.calc__plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.calc__plan {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px;
	font-size: .9rem;
}
.calc__plan.is-fit { border-color: var(--accent); background: var(--accent-soft); }
.calc__plan.is-short { opacity: .55; }
.calc__plan b { display: block; font-size: 1rem; margin-bottom: 4px; }
.calc__plan .calc__verdict {
	font-family: var(--font-mono);
	font-size: .68rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fg-muted);
	display: block;
	margin-top: 6px;
}
.calc__method { font-size: .85rem; color: var(--fg-muted); margin: 18px 0 0; }

/* ══════════════════════════════════════════════════════════
   Рейтинг: звёзды и полосы
   ══════════════════════════════════════════════════════════ */
.star-rating { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.star-rating__bg, .star-rating__fg { display: flex; gap: 2px; }
.star-rating__bg { color: #d8d8d8; }
.star-rating__fg {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	overflow: hidden;
	color: var(--accent);
}
.star-rating svg {
	width: var(--star-size, 18px);
	height: var(--star-size, 18px);
	fill: currentColor;
	stroke: currentColor;
	flex-shrink: 0;
}

.bar {
	display: block;
	height: 7px;
	border-radius: 999px;
	background: var(--line);
	overflow: hidden;
	min-width: 90px;
}
.bar__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--accent-grad);
}

.score-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 26px;
	padding: 26px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
	margin-bottom: 34px;
}
.score-hero__value {
	font-family: var(--font-display);
	font-size: 3.6rem;
	line-height: 1;
	margin-bottom: 20px;
}
.score-hero__meta { font-size: .9rem; color: var(--fg-muted); }

.criteria { display: grid; gap: 14px; }
.criterion { display: grid; grid-template-columns: 1fr 130px 44px; gap: 14px; align-items: center; }
.criterion__name { font-size: .95rem; }
.criterion__num { font-family: var(--font-mono); font-size: .9rem; text-align: right; }

.review {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	background: #fff;
}
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__author { font-weight: 600; }
.review__date { font-family: var(--font-mono); font-size: .74rem; color: var(--fg-muted); }
.review h3 { margin: 10px 0 8px; font-size: 1.08rem; }
.review p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════════ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	padding: 20px 44px 20px 0;
	font-family: var(--font-sans);
	font-size: 1.04rem;
	font-weight: 500;
	color: var(--fg);
	cursor: pointer;
	position: relative;
	line-height: 1.4;
}
.faq__question::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 1.6px solid var(--fg-muted);
	border-bottom: 1.6px solid var(--fg-muted);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .22s ease;
}
.faq__item.open .faq__question::after { transform: translateY(-30%) rotate(-135deg); }
.faq__answer { display: none; padding: 0 40px 22px 0; color: var(--fg-muted); }
.faq__item.open .faq__answer { display: block; }

/* ══════════════════════════════════════════════════════════
   Полоса призыва, «Читайте также», футер
   ══════════════════════════════════════════════════════════ */
.cta-band { background: var(--bg-dark); color: var(--fg-dark); padding: 58px 0; }
.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	align-items: center;
	justify-content: space-between;
}
.cta-band__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; color: var(--fg-dark); }
.cta-band__text { color: var(--fg-dark-muted); margin: 0; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.related { margin: 54px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.related__title { font-size: 1.1rem; margin: 0 0 14px; font-family: var(--font-sans); font-weight: 600; }
.related__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related__list a {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: .9rem;
	color: var(--fg-muted);
	transition: border-color .18s ease, color .18s ease;
}
.related__list a:hover { border-color: var(--fg); color: var(--fg); }

.site-footer { background: var(--bg-dark); color: var(--fg-dark-muted); padding: 56px 0 30px; font-size: .93rem; }
.site-footer a { color: var(--fg-dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.footer-brand__name {
	font-family: var(--font-display);
	font-size: 1.3rem;
	color: var(--fg-dark);
	margin-bottom: 10px;
}
.footer-col h4 {
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 14px;
	font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-bottom {
	margin-top: 38px;
	padding-top: 22px;
	border-top: 1px solid var(--line-dark);
	font-size: .84rem;
	line-height: 1.6;
	color: #8a8a8a;
}
.footer-bottom p { margin: 0 0 8px; }
.footer-bottom p:last-child { margin: 0; }

/* ══════════════════════════════════════════════════════════
   Прочее
   ══════════════════════════════════════════════════════════ */
.pros-cons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pros-cons ul { list-style: none; margin: 0; padding: 0; }
.pros-cons li { position: relative; padding-left: 24px; margin-bottom: 11px; }
.pros-cons li::before {
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--font-mono);
	font-size: .95rem;
}
.pros li::before { content: "+"; color: var(--ok); }
.cons li::before { content: "−"; color: var(--danger); }

.callout {
	border: 1px solid var(--line);
	border-left: 3px solid var(--fg);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 18px 22px;
	background: var(--bg-soft);
	margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--danger); background: #fff5f5; }

a.inline { color: var(--accent-deep); border-bottom: 1px solid rgba(198, 45, 18, .35); }
a.inline:hover { border-bottom-color: var(--accent-deep); }

.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 22px; }
.entry-content li { margin-bottom: 9px; }

.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .contact-list__key { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); min-width: 190px; }

.disclaimer { font-size: .88rem; color: var(--fg-muted); }

.error-404 { padding: 90px 0; text-align: center; }

/* ══════════════════════════════════════════════════════════
   Адаптив
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
	.nav { display: none; }
	.burger { display: grid; place-items: center; }
	.header-cta { margin-left: auto; }
}

@media (max-width: 980px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.plans { grid-template-columns: repeat(2, 1fr); }
	.calc__plans { grid-template-columns: repeat(2, 1fr); }
	.hero__stats { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.section { padding: 54px 0; }
	.grid--2, .grid--3 { grid-template-columns: 1fr; }
	.pros-cons { grid-template-columns: 1fr; }
	.calc__form { grid-template-columns: 1fr; padding: 20px; }
	.calc__out { padding: 20px; }
	.numbered__item { grid-template-columns: 1fr; gap: 6px; }
	.criterion { grid-template-columns: 1fr 90px 40px; }
	.footer-top { grid-template-columns: 1fr; gap: 26px; }
	.hero { padding: 48px 0 46px; }
	.hero__mark { width: 74px; height: 74px; border-radius: 20px; }
	.hero__mark svg { width: 38px; height: 38px; }
}

@media (max-width: 560px) {
	.plans { grid-template-columns: 1fr; }
	.calc__plans { grid-template-columns: 1fr; }
	.hero__stats { grid-template-columns: 1fr; }
	.score-hero { gap: 16px; padding: 20px; }
	.btn-row .btn { flex: 1 1 100%; }
	.cta-band__actions { width: 100%; }
	.cta-band__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
	.header-cta__text-full { display: none; }
	.header-cta__text-short { display: inline; }
	.header-cta .btn { padding: 10px 15px; font-size: .86rem; }
	h2 { margin: 40px 0; }
}

@media (max-width: 360px) {
	.site-logo__text { display: none; }
	.wrap { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ──────────────────────────────────────────────────────────
   Полоса персонажей (главная, под первым экраном)
   ────────────────────────────────────────────────────────── */
.cast { padding-top: 46px; padding-bottom: 46px; }

.figrow {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.figcard {
	margin: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.figcard:hover {
	border-color: #d8d8d8;
	box-shadow: 0 10px 30px rgba(10, 10, 10, .06);
}

.figcard__media {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--bg-soft);
}
.figcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.figcard:hover .figcard__media img { transform: scale(1.025); }
.figcard__media.is-empty { background: linear-gradient(158deg, var(--bg-soft) 0%, var(--accent-soft) 100%); }

.figcard__cap {
	padding: 15px 18px 17px;
	border-top: 1px solid var(--line);
}
.figcard__cap .label { display: block; margin-bottom: 5px; }
.figcard__name {
	font-family: var(--font-display);
	font-size: 1.14rem;
	line-height: 1.2;
	margin-bottom: 5px;
}
.figcard__cap p {
	margin: 0;
	font-size: .89rem;
	line-height: 1.5;
	color: var(--fg-muted);
}

/* ──────────────────────────────────────────────────────────
   Портрет-врезка на тёмном (страница «Аватар»)
   ────────────────────────────────────────────────────────── */

.portrait-band__inner {
	display: grid;
	grid-template-columns: 268px 1fr;
	gap: 34px;
	align-items: center;
}
.portrait-band__media {
	margin: 0;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--surface-dark);
	border: 1px solid var(--line-dark);
}
.portrait-band__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.portrait-band__media.is-empty { background: var(--surface-dark-2); }

.portrait-band .label { display: block; color: var(--fg-dark-muted); margin-bottom: 10px; }
.portrait-band__title {
	font-family: var(--font-display);
	font-size: clamp(1.32rem, 2.6vw, 1.76rem);
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin-bottom: 12px;
}
.portrait-band__text p {
	margin: 0;
	color: var(--fg-dark-muted);
}

/* ── Адаптив полос с персонажами ─────────────────────────── */
@media (max-width: 900px) {
	.portrait-band__inner { grid-template-columns: 210px 1fr; gap: 26px; }
}

@media (max-width: 760px) {
	.figrow {
		display: flex;
		gap: 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
		scrollbar-width: thin;
	}
	.figcard {
		flex: 0 0 74%;
		scroll-snap-align: start;
	}
	.figcard:hover { box-shadow: none; }

	.portrait-band__inner { grid-template-columns: 1fr; gap: 20px; }
	.portrait-band__media { max-width: 230px; }
}
