/*
Theme Name: Quattro VPN Ru
Theme URI: https://quattrovpn.info/
Author: Quattro VPN Ru
Description: Тема брендового сайта о VPN-сервисе Quattro VPN.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: quattro-info
*/

/* ═══════════════════════════════════════════════════════════
   1. ТОКЕНЫ
   Палитра снята КОДОМ из CSS-переменных офсайта quattro.app
   (assets/index-BboJfiuM.css, замер 03.09.2026), а не пипеткой:
   у офсайта они объявлены явно в :root.
   ═══════════════════════════════════════════════════════════ */
:root {
	--bg:        #060609;   /* --bg-primary офсайта */
	--bg-2:      #0c0c12;   /* --bg-secondary без альфы */
	--surface:   rgba(255, 255, 255, .03);
	--surface-2: rgba(255, 255, 255, .06);
	--glass:     rgba(255, 255, 255, .04);
	--glass-2:   rgba(255, 255, 255, .07);

	--line:      rgba(255, 255, 255, .06);
	--line-2:    rgba(255, 255, 255, .12);

	--ink:       #f0f0f5;   /* --text-primary */
	/* Полотно светлой полосы. Раньше она красилась в --ink (#f0f0f5) —
	   почти белый лист посреди тёмного сайта, который бил по глазам.
	   Приглушённый холодный серый оставляет полосу светлой на фоне
	   соседних секций, но не слепит; тёмный текст держит на ней 11:1. */
	--band-lt:   #ccd0d9;
	--dim:       #c0c0cc;   /* --text-secondary */
	--muted:     #8888a0;   /* --text-muted */

	--red:       #e63232;   /* --accent */
	--red-h:     #ff4444;   /* --accent-hover */
	--glow:      rgba(230, 50, 50, .12);
	--glow-2:    rgba(230, 50, 50, .25);

	--ok:        #22c55e;   /* --success */
	--warn:      #f59e0b;   /* --warning */

	/* Радиусы и размытие — тоже токены офсайта */
	--r:     14px;
	--r-lg:  18px;
	--r-xl:  24px;
	--blur:  20px;

	--maxw:  1200px;
	--pad:   20px;
	--maxw-text: 1200px;

	--font-d: 'Moderustic', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-t: 'Chiron Hei HK', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-m: 'Iosevka Charon Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ═══════════════════════════════════════════════════════════
   2. БАЗА
   ═══════════════════════════════════════════════════════════ */
*, *::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(--font-t);
	font-size: 17px;
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-h); }

h1, h2, h3, h4 {
	font-family: var(--font-d);
	font-weight: 700;
	margin: 0;
	line-height: 1.14;
	letter-spacing: -.015em;
	text-wrap: balance;
	overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.3rem); margin-top: 16px; }
h2:first-child, .section-head h2, .card h2, .plan h2 { margin-top: 0; }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--ink); color: var(--bg); padding: 12px 18px; }
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--red-h); outline-offset: 3px; }

.mono { font-family: var(--font-m); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════
   3. КОНТЕЙНЕР
   1200px — ширина, заданная владельцем по образцу vanya-vpn.help.
   ═══════════════════════════════════════════════════════════ */
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.wrap--text { max-width: calc(var(--maxw-text) + var(--pad) * 2); }

.section { padding-block: clamp(48px, 6vw, 90px); }
.section + .section { padding-top: 0; }

/* Полосы. Логика обратная светлой теме соседа: полотно тёмное,
   а отбивается блок СВЕТЛЫМ или уплотнённым стеклом. */
.band { padding-block: clamp(48px, 6vw, 90px); }
.band--deep { background: var(--bg-2); border-block: 1px solid var(--line); }
.band--light { background: var(--band-lt); color: #16161c; margin-block: clamp(32px, 4.5vw, 64px); }
.band--light h2, .band--light h3 { color: #0b0b10; }
.band--light p { color: #3a3a46; }
.band--light .card { background: rgba(0, 0, 0, .04); border-color: rgba(0, 0, 0, .08); backdrop-filter: none; }
.band--light .card:hover { border-color: rgba(230, 50, 50, .5); box-shadow: 0 0 0 3px rgba(230, 50, 50, .1); }
.band--light .card p { color: #3a3a46; }
.band--light .chip { border-color: rgba(0, 0, 0, .18); color: #16161c; }

.section-head { max-width: 780px; margin-bottom: clamp(26px, 3vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; margin-bottom: 0; font-size: 18px; }
.band--light .section-head p { color: #4a4a58; }

.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--dim); }

/* ═══════════════════════════════════════════════════════════
   4. КНОПКИ
   Радиус 14 — токен офсайта. Форма пилюли не берётся: у офсайта
   её нет, а у соседа радиус 15 с другой высотой.
   ═══════════════════════════════════════════════════════════ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 54px;
	padding: 0 clamp(22px, 3.4vw, 40px);
	border: 0;
	border-radius: var(--r);
	font-family: var(--font-t);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	transition: background .2s ease, box-shadow .25s ease, color .2s ease;
}
.btn--red { background: var(--red); box-shadow: 0 0 0 0 var(--glow-2); }
.btn--red:hover { background: var(--red-h); color: #fff; box-shadow: 0 8px 30px -6px var(--glow-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--red); }
.band--light .btn--ghost { color: #16161c; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.band--light .btn--ghost:hover { background: rgba(0, 0, 0, .06); color: #16161c; box-shadow: inset 0 0 0 1px var(--red); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.cta__short { display: none; }

/* ═══════════════════════════════════════════════════════════
   5. ШАПКА
   Скелет — как у vanya-vpn.help по требованию владельца:
   логотип, меню, реф-кнопка вне бургера, бургер, мобильное меню.
   Расхождение — в материале: стекло на тёмном вместо белой полосы.
   ═══════════════════════════════════════════════════════════ */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(6, 6, 9, .82);
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-2); background: rgba(6, 6, 9, .94); }

.header-row { display: flex; align-items: center; gap: 22px; min-height: 74px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__mark svg { width: 100%; height: 100%; display: block; }
.logo__text { font-family: var(--font-d); font-weight: 700; font-size: 18px; line-height: 1.05; letter-spacing: -.02em; }
.logo__text i { font-style: normal; display: block; font-family: var(--font-m); font-size: 10px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 19px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--dim); padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .18s ease, color .18s ease; }
.nav a:hover, .nav a.is-here { border-bottom-color: var(--red); color: var(--ink); }

.header-cta { flex: none; }
.header-cta .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; cursor: pointer; position: relative; flex: none; }
.burger span, .burger::before, .burger::after { content: ''; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger span { top: 50%; transform: translateY(-50%); }
.burger::before { top: 14px; }
.burger::after { bottom: 14px; }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::before { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger[aria-expanded="true"]::after { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 13px 0; text-decoration: none; color: var(--dim); font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   6. ПЕРВЫЙ ЭКРАН
   Структура — как у соседа (заголовок, лид, кнопки, полоса чисел).
   Своё: вместо фотографии — панель состояния подключения, где
   индикатор и показания набраны моноширинным.
   ═══════════════════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before {
	/* Два мягких красных пятна офсайта: они дают глубину без картинки
	   и без единого внешнего запроса. */
	content: '';
	position: absolute; inset: -20% -10% auto -10%; height: 130%; z-index: -1;
	background:
		radial-gradient(38% 46% at 78% 18%, var(--glow) 0%, transparent 70%),
		radial-gradient(42% 40% at 12% 8%, rgba(86, 77, 202, .10) 0%, transparent 72%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(44px, 6.5vw, 84px); }
.hero h1 { font-size: clamp(2.05rem, 4.5vw, 3.4rem); }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--dim); margin: 18px 0 26px; }
.hero__stat { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.hero__stat b { display: block; font-family: var(--font-m); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1; color: var(--red-h); font-variant-numeric: tabular-nums; }
.hero__stat span { font-family: var(--font-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Панель состояния — несущий объект первого экрана */
.conn {
	background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-xl);
	backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
	padding: 22px; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
}
.conn__top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.conn__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.conn__state { font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.conn__brand { margin-left: auto; font-family: var(--font-m); font-size: 11px; color: var(--muted); }
.conn__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-block: 9px; border-bottom: 1px dashed var(--line); }
.conn__row:last-child { border-bottom: 0; }
.conn__k { font-size: 14px; color: var(--muted); }
.conn__v { font-family: var(--font-m); font-size: 14.5px; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.conn__v em { font-style: normal; color: var(--red-h); }

/* ═══════════════════════════════════════════════════════════
   7. КАРТОЧКА — несущая форма
   У соседа это белая рамка 5px со смещённой тенью. Здесь —
   стеклянная плита с волосяной рамкой; ховер не двигает плиту,
   а разжигает вокруг неё красное свечение.
   ═══════════════════════════════════════════════════════════ */
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(20px, 2.4vw, 28px);
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
	transition: border-color .25s ease, box-shadow .3s ease, background .25s ease;
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 0 0 4px var(--glow), 0 18px 40px -28px var(--glow-2); }
.card--flat:hover { border-color: var(--line); background: var(--surface); box-shadow: none; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--dim); }
.card__icon { width: 26px; height: 26px; display: block; margin-bottom: 14px; color: var(--red-h); }

.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Технический чип — своя подача чисел.
   Значение моноширинным в кольце, единица подписью. */
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-m); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip--red { border-color: rgba(230, 50, 50, .55); color: var(--red-h); }
.chip--ok { border-color: rgba(34, 197, 94, .5); color: var(--ok); }
.chip span { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Полоса фактов */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; }
.facts__i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.facts dt { font-family: var(--font-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--font-m); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════
   8. ТАРИФЫ
   У каждого тарифа своя кнопка — требование владельца.
   ═══════════════════════════════════════════════════════════ */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.plan { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.plan--best { border-color: rgba(230, 50, 50, .55); box-shadow: 0 0 0 4px var(--glow); }
.plan__term { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-family: var(--font-m); font-size: 12px; letter-spacing: .06em; color: var(--dim); }
.plan--best .plan__term { background: rgba(230, 50, 50, .16); color: var(--red-h); }
.plan__save { font-family: var(--font-m); font-size: 12.5px; color: var(--ok); }
.plan__price { font-family: var(--font-m); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__per { font-size: 14px; color: var(--muted); margin-top: -4px; }
.plan__list { margin: 6px 0 0; padding: 0; list-style: none; width: 100%; }
.plan__list li { display: flex; gap: 8px; font-size: 14.5px; color: var(--dim); margin-bottom: 7px; }
.plan__list li::before { content: '—'; color: var(--red); flex: none; }
.plan__cta { margin-top: auto; padding-top: 16px; width: 100%; }
.plan__cta .btn { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   9. КАРТА ЛОКАЦИЙ
   Контур суши — инлайновый SVG. Маркеры — по реальным
   координатам локаций Quattro. Внешних запросов ноль.
   ═══════════════════════════════════════════════════════════ */
.map { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 10px; overflow: hidden; }
.map__svg { display: block; width: 100%; height: auto; }
.map__land path { fill: rgba(255, 255, 255, .07); }
.map__dot { fill: var(--red); opacity: .85; transition: opacity .2s ease, r .2s ease; cursor: default; }
.map__dot--fast { fill: var(--red-h); }
.map__dot.is-on { opacity: 1; r: 9; }
@media (prefers-reduced-motion: no-preference) {
	.map__dot { animation: qv-pop .5s ease both; animation-delay: var(--d, 0ms); }
}
@keyframes qv-pop { from { opacity: 0; transform: scale(.2); } to { opacity: .85; transform: none; } }
.map__tip {
	position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
	margin: 0; padding: 7px 14px; border-radius: 999px;
	background: rgba(6, 6, 9, .92); border: 1px solid var(--line-2);
	font-family: var(--font-m); font-size: 13px; color: var(--ink); white-space: nowrap;
}

.locs-wrap { position: relative; }
.locs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.locs__i { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--dim); }
.locs__i--fast { border-color: rgba(230, 50, 50, .4); color: var(--ink); }
.locs__i b { font-family: var(--font-m); font-size: 11px; color: var(--red-h); font-weight: 400; }
.js-locs.is-collapsed .locs { max-height: var(--locs-h, 120px); overflow: hidden; }
.js-locs.is-collapsed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 52px; height: 60px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.locs__toggle { margin-top: 16px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--ink); font-family: var(--font-t); font-size: 15px; font-weight: 700; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.locs__toggle:hover { border-color: var(--red); background: var(--glass-2); }

/* ═══════════════════════════════════════════════════════════
   10. FAQ, ПЕРЕЛИНКОВКА, ПАНЕЛИ
   ═══════════════════════════════════════════════════════════ */
.faq { margin-top: clamp(34px, 4vw, 56px); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 0; border: 0; background: transparent; color: var(--ink); font-family: var(--font-d); font-weight: 700; font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.3; text-align: left; cursor: pointer; }
.faq__q::after { content: ''; flex: none; width: 11px; height: 11px; margin-top: 7px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .25s ease; }
.faq__item.is-open .faq__q::after { transform: rotate(-135deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--dim); padding-bottom: 18px; }

.related { margin-top: clamp(34px, 4vw, 56px); }
.related h2 { margin-bottom: 18px; }
.related__grid { display: flex; flex-wrap: wrap; gap: 10px; }
.related__grid a { padding: 11px 17px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-decoration: none; font-size: 15px; color: var(--dim); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.related__grid a:hover { border-color: var(--red); color: var(--ink); background: var(--glass-2); }

.panel { border: 1px solid var(--line-2); border-left: 3px solid var(--red); border-radius: var(--r); background: var(--surface); padding: 20px 22px; margin: 26px 0; }
.panel--warn { border-left-color: var(--warn); }
.panel--ok { border-left-color: var(--ok); }
.panel__label { font-family: var(--font-m); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
.panel p { color: var(--dim); }

/* ═══════════════════════════════════════════════════════════
   11. ТАБЛИЦЫ
   ═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-family: var(--font-d); font-weight: 700; font-size: 14px; color: var(--ink); background: var(--surface-2); white-space: nowrap; }
table.data td { color: var(--dim); }
table.data tr:last-child td { border-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   12. ОТЗЫВЫ И ЗВЁЗДЫ
   ═══════════════════════════════════════════════════════════ */
.review__top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review__name { font-family: var(--font-d); font-weight: 700; font-size: 16px; }
.review__meta { font-family: var(--font-m); font-size: 11.5px; color: var(--muted); }
.review p { margin-top: 10px; }

.stars { display: inline-block; position: relative; line-height: 1; color: var(--line-2); }
.stars__fill { position: absolute; inset: 0; overflow: hidden; color: var(--warn); white-space: nowrap; }
.stars svg { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: top; }

.score { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.score__num { font-family: var(--font-m); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }

.crit { margin: 0; padding: 0; list-style: none; }
.crit li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 11px; border-bottom: 1px solid var(--line); }
.crit li:last-child { border-bottom: 0; }
.crit b { font-family: var(--font-m); font-weight: 700; color: var(--red-h); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════
   13. ХЛЕБНЫЕ КРОШКИ, ЗАГОЛОВОК СТРАНИЦЫ
   ═══════════════════════════════════════════════════════════ */
.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red-h); }
.crumbs span { margin-inline: 7px; opacity: .5; }

.page-head { padding-block: clamp(20px, 2.6vw, 34px) clamp(22px, 3vw, 38px); max-width: 860px; }
.page-lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--dim); margin-top: 16px; }

.content { max-width: 860px; }
.content h2 { margin-top: clamp(32px, 3.6vw, 48px); }
.content h3 { margin-top: 26px; margin-bottom: 8px; }
.content p, .content li { color: var(--dim); }
.content .table-wrap, .content .panel { max-width: none; }

/* ═══════════════════════════════════════════════════════════
   14. ПОДВАЛ
   ═══════════════════════════════════════════════════════════ */
.site-footer { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); background: var(--bg-2); padding-block: clamp(40px, 5vw, 66px) 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.site-footer h3 { font-size: 17px; margin-bottom: 14px; }
.site-footer p { color: var(--muted); font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { text-decoration: none; color: var(--dim); font-size: 15px; }
.site-footer li a:hover { color: var(--red-h); }
.footer-note { margin-top: clamp(30px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.footer-note p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════════
   15. 404
   ═══════════════════════════════════════════════════════════ */
.e404 { padding-block: clamp(60px, 9vw, 130px); max-width: 720px; }
.e404__code { font-family: var(--font-m); font-size: clamp(3.4rem, 9vw, 6rem); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }

/* ═══════════════════════════════════════════════════════════
   16. АДАПТИВ
   Лестница своя: 1120 / 940 / 780 / 620 / 520 / 400.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1120px) {
	.nav { gap: 14px; }
	.nav a { font-size: 14px; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
	.nav { display: none; }
	.burger { display: block; }
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	body { font-size: 16px; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.hero__stat { gap: 18px; }
	.header-cta .btn { padding: 0 14px; }
	.cta__full { display: none; }
	.cta__short { display: inline; }
}
@media (max-width: 520px) {
	.facts { grid-template-columns: minmax(0, 1fr); }
	/* Таблица разбирается в карточки: колонки подписываются data-label */
	table.data { min-width: 0; }
	table.data thead { display: none; }
	table.data tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
	table.data tr:last-child { border-bottom: 0; }
	table.data td { display: flex; gap: 12px; border: 0; padding: 7px 14px; }
	table.data td::before { content: attr(data-label); flex: none; width: 42%; font-family: var(--font-m); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 400px) {
	.btn { padding: 0 16px; font-size: 15px; }
	.logo__text { font-size: 16px; }
}

/* Ниже 380px шапка не помещается: знак + название + реф-кнопка + бургер
   дают 387px и выносят строку за экран (замер CDP: +27px на 360, +67px
   на 320). Реф-кнопку прятать нельзя — правило первого экрана, поэтому
   ужимается всё остальное: подпись под названием, само название,
   зазоры и бургер. Знак остаётся ссылкой на главную. */
@media (max-width: 380px) {
	.header-row { gap: 10px; }
	.logo__text { display: none; }
	.burger { width: 42px; height: 42px; }
	.burger span, .burger::before, .burger::after { left: 10px; right: 10px; }
	.burger::before { top: 12px; }
	.burger::after { bottom: 12px; }
	.header-cta .btn { padding: 0 12px; font-size: 14px; }
	.wrap { padding-inline: 16px; }
}

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

/* ═══════════════════════════════════════════════════════════
   Калькулятор подписки на странице тарифов
   ═══════════════════════════════════════════════════════════
   Форма та же, что у панелей темы: стекло, тонкая рамка, радиус
   18. Кнопки выбора одного размера между собой — иначе ряд
   «прыгает» при переключении. Недоступные объёмы на 90 днях
   гасятся классом .is-off и остаются на месте: пропадающая
   кнопка сдвигает соседей под курсором.
   ═══════════════════════════════════════════════════════════ */
.calc {
	margin: 22px 0 30px;
	padding: 22px;
	background: var(--glass);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	backdrop-filter: blur(var(--blur));
	-webkit-backdrop-filter: blur(var(--blur));
}

.calc__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.calc__label { flex: 0 0 130px; color: var(--muted); font-size: 14px; }
.calc__opts { display: flex; flex-wrap: wrap; gap: 8px; }

.calc__opt {
	min-height: 40px;
	min-width: 64px;
	padding: 0 14px;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	background: transparent;
	color: var(--dim);
	font: inherit;
	font-size: 14.5px;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.calc__opt:hover:not(:disabled) { border-color: var(--red); color: var(--ink); }
.calc__opt.is-on { border-color: var(--red); background: var(--glow); color: var(--ink); font-weight: 600; }
.calc__opt.is-off, .calc__opt:disabled { opacity: .32; cursor: not-allowed; }

.calc__note { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }

.calc__out {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
	padding-top: 18px; border-top: 1px solid var(--line);
}
.calc__sum { font-family: var(--font-m); line-height: 1; }
.calc__sum b { font-size: clamp(30px, 5vw, 42px); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__sum span { color: var(--muted); font-size: 20px; }
.calc__conf { margin: 0; color: var(--muted); font-size: 14px; }
.calc__out .btn { margin-left: auto; }

@media (max-width: 620px) {
	.calc { padding: 16px; }
	.calc__label { flex: 1 0 100%; }
	.calc__out .btn { margin-left: 0; width: 100%; justify-content: center; }
}