/*
Theme Name: Дядя Ваня VPN Ru
Theme URI: https://vanya-vpn.help/
Author: Дядя Ваня VPN Ru
Description: Тема брендового сайта о VPN-сервисе «Дядя Ваня».
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: vanya-vpn
*/

/* ═══════════════════════════════════════════════════════════
   1. ТОКЕНЫ
   Палитра снята пипеткой с офсайта 11.08.2026.
   ═══════════════════════════════════════════════════════════ */
:root {
	--red:    #ee4043;   /* основная кнопка, акцент, выделенный тариф */
	--red-d:  #d63337;
	--orange: #ee8c40;   /* вторая кнопка, «Ванечка», выгода */
	--orange-d:#dd7c30;
	--coral:  #ff8562;   /* ссылки и подсветка в тексте */
	--ink:    #111111;
	--paper:  #fcfdff;
	--mist:   #f4f2f2;   /* серые полосы-подложки */
	--grey:   #919191;
	--line:   #e4e2e2;
	--space:  #101a3d;   /* тёмная полоса первого экрана и карта */
	--space-2:#1b2a5c;
	--amber:  #ffc845;   /* маркеры локаций */

	--r:      15px;      /* радиус с офсайта: и у кнопок, и у карточек */
	--maxw:   1200px;    /* ширина экрана офсайта */
	--pad:    20px;
	--maxw-text: 1200px;

	/* Смещённая тень — несущая примета темы. Свет падает слева сверху,
	   тень уходит вправо вниз. Значения с офсайта. */
	--shadow: 10px 15px 40px rgba(83, 91, 110, .11);

	--font-d: 'Jura', 'Trebuchet MS', system-ui, sans-serif;
	--font-t: 'Istok Web', system-ui, -apple-system, sans-serif;
	--font-m: 'Victor Mono', ui-monospace, 'Cascadia Mono', monospace;
}

/* ═══════════════════════════════════════════════════════════
   2. БАЗА
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--paper);
	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(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

h1, h2, h3, h4 {
	font-family: var(--font-d);
	font-weight: 700;
	margin: 0;
	line-height: 1.12;
	letter-spacing: -.01em;
	text-wrap: balance;
	overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 16px; }
/* Первому заголовку в блоке верхний отступ не нужен: он бы раздвинул
   карточку или шапку секции изнутри. */
h2:first-child, .section-head h2, .card h2, .plan h2 { margin-top: 0; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
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; }

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

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

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

/* ═══════════════════════════════════════════════════════════
   3. КОНТЕЙНЕР
   1200px — ширина экрана офсайта (t-container Tilda).
   ═══════════════════════════════════════════════════════════ */
.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--mist { background: var(--mist); margin-block: clamp(32px, 4.5vw, 64px); }
.band--space { background: var(--space); color: #fff; }
.band--space h1, .band--space h2, .band--space h3 { color: #fff; }
.band--space p { color: rgba(255, 255, 255, .78); }

.section-head { max-width: 760px; margin-bottom: clamp(26px, 3vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--grey); margin-top: 14px; margin-bottom: 0; font-size: 18px; }
.band--space .section-head p { color: rgba(255, 255, 255, .7); }

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

/* ═══════════════════════════════════════════════════════════
   4. КНОПКИ
   Геометрия с офсайта: радиус 15, высота 60, паддинг 0/60,
   кегль 16/700, без тени.
   ═══════════════════════════════════════════════════════════ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 0 clamp(24px, 4vw, 60px);
	border: 0;
	border-radius: var(--r);
	font-family: var(--font-t);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.devices {
	width:700px;
	margin: 0 auto;
		margin-top: 40px;
		margin-bottom: 40px;
	border-radius:25px;
}
.btn--red    { background: var(--red); }
.btn--red:hover { background: var(--red-d); color: #fff; }
.btn--orange { background: var(--orange); }
.btn--orange:hover { background: var(--orange-d); color: #fff; }
.btn--ghost  { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.band--space .btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.band--space .btn--ghost:hover { background: #fff; color: var(--space); box-shadow: inset 0 0 0 2px #fff; }
.btn--sm { min-height: 48px; padding: 0 22px; font-size: 15px; }

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

.cta__short { display: none; }

/* ═══════════════════════════════════════════════════════════
   5. ШАПКА
   ═══════════════════════════════════════════════════════════ */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(252, 253, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-stuck { border-bottom-color: var(--line); }

.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: -.01em; }
.logo__text i { font-style: normal; display: block; font-family: var(--font-m); font-size: 10.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; 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: 46px; padding: 0 20px; font-size: 15px; }

.burger { display: none; width: 46px; height: 46px; border: 2px solid var(--line); 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; font-size: 16px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════════════════
   6. ПЕРВЫЙ ЭКРАН
   Карта локаций не отдельный блок в середине страницы, а фон
   первого экрана. Ни один сайт сетки так не начинается.
   ═══════════════════════════════════════════════════════════ */
.hero { position: relative; background: var(--space); color: #fff; overflow: hidden; isolation: isolate; }
.hero::after {
	/* Звёздная пыль: два слоя мелких точек радиальными градиентами.
	   Картинкой не делаем — это лишний запрос ради двух точек. */
	content: '';
	position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image:
		radial-gradient(1.4px 1.4px at 18% 22%, #fff, transparent),
		radial-gradient(1.2px 1.2px at 62% 14%, #cdd7ff, transparent),
		radial-gradient(1.6px 1.6px at 82% 41%, #fff, transparent),
		radial-gradient(1.2px 1.2px at 34% 68%, #cdd7ff, transparent),
		radial-gradient(1.4px 1.4px at 74% 79%, #fff, transparent),
		radial-gradient(1.2px 1.2px at 8% 52%, #fff, transparent);
}
/* Фоновая сцена первого экрана: поверхность Луны, Земля и ракета.
   Подключается только когда файл реально лежит в теме — адрес приходит
   инлайновой переменной --hero-bg из front-page.php, иначе браузер ходил
   бы за отсутствующей картинкой на каждой загрузке.
   Слева поверх снимка лежит плотная синяя вуаль: текст первого экрана
   занимает 760px по левому краю, и без неё белый заголовок теряется на
   светлом грунте. Справа вуаль расходится — там Земля и ракета. */
.hero--photo::before {
	content: '';
	position: absolute; inset: 0; z-index: -2;
	background-image:
		linear-gradient(
88deg, rgba(16, 26, 61, .65) 0%, rgba(16, 26, 61, .68) 40%, rgba(16, 26, 61, .22) 74%, rgba(16, 26, 61, .12) 100%), var(--hero-bg);
	background-size: cover, cover;
	background-position: center, 72% 50%;
	background-repeat: no-repeat, no-repeat;
}
/* Звёзды уже есть на самом снимке — CSS-пыль приглушаем, чтобы небо не рябило. */
.hero--photo::after { opacity: .18; }

/* Карта уехала в блок «Куда можно переключиться», поэтому первый экран
   стал одноколоночным. Ширину текста ограничиваем: на 1200px строка в
   полный контейнер читается тяжело. */
.hero__inner { position: relative; padding-block: clamp(44px, 6.5vw, 84px) clamp(44px, 6.5vw, 78px); max-width: 760px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .8); 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-d); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; color: var(--amber); }
.hero__stat span { font-family: var(--font-m); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* ═══════════════════════════════════════════════════════════
   7. КАРТА ЛОКАЦИЙ
   Контур суши — инлайновый SVG, сгенерированный один раз из
   Natural Earth. Маркеры — по реальным координатам. Внешних
   запросов ноль.
   ═══════════════════════════════════════════════════════════ */
.map { position: relative; border-radius: var(--r); overflow: hidden; background: var(--space-2); }
.map__svg { display: block; width: 100%; height: auto; }
.map__land path { fill: #2b3d78; stroke: none; }
.map__dot {
	fill: var(--amber);
	opacity: .9;
	transition: r .16s ease, fill .16s ease;
	animation: vny-pulse 3.6s ease-in-out infinite;
	animation-delay: var(--d, 0ms);
	transform-box: fill-box;
	transform-origin: center;
}
.map__dot:hover, .map__dot.is-on { fill: #fff; r: 9; opacity: 1; }
@keyframes vny-pulse { 0%, 100% { opacity: .55 } 50% { opacity: 1 } }

/* Подсказка живёт в потоке, а не абсолютом поверх маркера: на узком
   экране абсолютная подсказка уезжает за край карты и расширяет
   документ. Здесь она всегда внутри карты, у нижнего края. */
.map__tip {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	margin: 0;
	max-width: calc(100% - 24px);
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(16, 26, 61, .92);
	border: 1px solid rgba(255, 255, 255, .2);
	font-family: var(--font-m);
	font-size: 13px;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

/* Карта в блоке локаций: отбиваем её от полосы фактов и от списка */
.band--space .map { margin-block: clamp(24px, 3vw, 36px); }

/* ── Список локаций плашками, сворачиваемый ──
   Свёрнутая высота приходит из скрипта в `--locs-h`: три строки плашек
   считаются по фактической раскладке, а не по формуле — высота плашки
   зависит от шрифта, а перенос строк от ширины окна. */
.locs-wrap { position: relative; }
.locs-wrap.is-collapsed .locs { max-height: var(--locs-h, 130px); overflow: hidden; }
/* Затухание над обрезом: показывает, что список продолжается */
.locs-wrap.is-collapsed::after {
	content: '';
	position: absolute;
	left: 0; right: 0;
	top: calc(var(--locs-h, 130px) - 40px);
	height: 40px;
	background: linear-gradient(to bottom, rgba(16, 26, 61, 0), var(--space));
	pointer-events: none;
}
.locs__toggle {
	margin-top: 16px;
	padding: 0;
	background: none;
	border: 0;
	font-family: var(--font-t);
	font-size: 16px;
	color: var(--amber);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}
.locs__toggle:hover { color: #fff; }

.locs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.locs__i {
	margin: 0;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--line);
	font-size: 14px;
	line-height: 1.2;
}
.band--space .locs__i { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .88); }
.band--mist .locs__i { background: var(--paper); }

/* ═══════════════════════════════════════════════════════════
   8. КАРТОЧКА — несущая форма
   Радиус 15px, смещённая тень, рамка 5px белая. Ховер —
   обратное движение: тень стягивается к нулю, рамка наливается
   красным, карточка как бы садится. Ни подъёма, ни сдвига.
   ═══════════════════════════════════════════════════════════ */
.card {
	background: var(--paper);
	border: 3px solid var(--paper);
	border-radius: var(--r);
	box-shadow: var(--shadow);
	padding: clamp(18px, 2vw, 26px);
	transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: 0 0 0 rgba(83, 91, 110, 0); border-color: var(--red); }
.card--flat:hover { box-shadow: var(--shadow); border-color: var(--paper); }
.card__icon { width: 30px; height: 30px; color: var(--red); margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--grey); margin: 0; }

.grid { display: grid; gap: 22px; }
.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)); }

/* ═══════════════════════════════════════════════════════════
   9. ТАРИФЫ
   Четыре колонки по 260px — как на офсайте. Связка
   «оранжевая пилюля выгоды + крупная цифра + моно-подпись».
   ═══════════════════════════════════════════════════════════ */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 260px)); gap: 22px; justify-content: center; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 10px; text-align: center; padding: 22px 18px; }
.plan--best { border-color: var(--red); }
.plan--best:hover { border-color: var(--red); }
.plan__term { display: inline-block; align-self: center; padding: 6px 14px; border-radius: 999px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.plan--soft .plan__term { background: var(--mist); color: var(--ink); }
.plan__save { color: var(--red); font-weight: 700; font-size: 15px; }
.plan__price { font-family: var(--font-d); font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1; }
.plan__per { font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.plan__cta { margin-top: auto; padding-top: 16px; }
.plan__cta .btn { width: 100%; min-height: 52px; padding: 0 14px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   10. ПОЛОСА ФАКТОВ
   ═══════════════════════════════════════════════════════════ */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin: 0; }
.facts__i { margin: 0; }
.facts dt { font-family: var(--font-m); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.05; }
.band--space .facts dt { color: rgba(255, 255, 255, .58); }
.band--space .facts dd { color: var(--amber); }

/* ═══════════════════════════════════════════════════════════
   11. ТАБЛИЦЫ
   ═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); margin-bottom: 28px; }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; }
table.data th, table.data td { padding: 15px 18px; text-align: left; vertical-align: top; }
table.data thead th { font-family: var(--font-m); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data tbody tr + tr td { border-top: 1px solid var(--line); }
table.data td.mono { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════
   12. ПАНЕЛЬ-ВРЕЗКА
   ═══════════════════════════════════════════════════════════ */
.panel { border-radius: var(--r); padding: clamp(18px, 2.2vw, 28px); background: var(--mist); border-left: 5px solid var(--grey); margin-block: 24px; }
.panel--red    { background: #fdeeee; border-left-color: var(--red); }
.panel--orange { background: #fdf3e9; border-left-color: var(--orange); }
.panel__label { font-family: var(--font-m); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); margin: 0 0 10px; }

/* Врезка с иллюстрацией сбоку. Кадр идёт вторым в разметке, чтобы на
   узком экране он вставал ПОД текстом, а не над ним: сначала суть,
   потом картинка. Ширину колонки задаём в px — иллюстрации в теме
   квадратные, и в долях они разъезжаются по высоте вместе с длиной
   текста врезки. */
.side-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; margin-block: 24px; }
.side-art > .panel { margin-block: 0; }
.side-art__pic { margin: 0; }
/* width: auto, а не 100% — кадры приходят разного и часто небольшого
   размера (177px, 213px), и растяжка до ширины колонки их мылит.
   Картинка рисуется в своём размере и центруется, а колонка задаёт
   только потолок. */
.side-art__pic img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; border-radius: var(--r); }

@media (min-width: 861px) {
	.side-art { grid-template-columns: minmax(0, 1fr) 300px; }
	.side-art__pic img { max-width: 300px; }
	/* Внутри текстовой колонки 820px кадр берём уже: иначе на текст
	   остаётся меньше 500px и строка рвётся по два-три слова. */
	.side-art--tight { grid-template-columns: minmax(0, 1fr) 240px; }
	.side-art--tight .side-art__pic img { max-width: 240px; }
}

/* ═══════════════════════════════════════════════════════════
   13. ЗВЁЗДЫ, РЕЙТИНГ, ОТЗЫВЫ
   ═══════════════════════════════════════════════════════════ */
.stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.stars svg { width: var(--star-size); height: var(--star-size); display: inline-block; }
.stars__bg { color: var(--line); display: block; }
.stars__fg { color: var(--orange); position: absolute; inset: 0; overflow: hidden; display: block; }

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 3vw, 40px); }
.rating__val { font-family: var(--font-d); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.rating p { max-width: 620px; color: var(--grey); margin: 0; }

.review { display: flex; flex-direction: column; gap: 10px; }
.review__top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.review__name { font-weight: 700; }
.review__meta { font-family: var(--font-m); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--grey); }

/* ═══════════════════════════════════════════════════════════
   14. FAQ
   ═══════════════════════════════════════════════════════════ */
.faq { margin-top: 24px; margin-bottom: 32px; display: grid; gap: 12px; }
.faq__item { background: var(--paper); border: 3px solid var(--paper); border-radius: var(--r); box-shadow: var(--shadow); transition: box-shadow .2s ease, border-color .2s ease; }
.faq__item.is-open { box-shadow: 0 0 0 rgba(83, 91, 110, 0); border-color: var(--red); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: 0; padding: 18px 20px; font-family: var(--font-d); font-weight: 700; font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.3; text-align: left; color: inherit; cursor: pointer; }
.faq__ico { width: 18px; height: 18px; flex: none; color: var(--red); transition: transform .22s ease; }
.faq__item.is-open .faq__ico { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--grey); padding: 0 20px 20px; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   15. КРОШКИ, ЗАГОЛОВОК, ПЕРЕЛИНКОВКА
   ═══════════════════════════════════════════════════════════ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-m); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); padding-top: 30px; }
.crumbs a { text-decoration: none; }
.crumbs__sep { color: var(--line); }

.page-head { padding-block: clamp(20px, 2.6vw, 34px) clamp(24px, 3vw, 40px); }
.page-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--grey); margin: 18px 0 0; max-width: 62ch; }

.content > h2 { margin-top: clamp(34px, 3.6vw, 54px); margin-bottom: 16px; }
.content > h3 { margin-top: 28px; margin-bottom: 10px; }
.content > *:first-child { margin-top: 0; }

.related { margin-block: clamp(40px, 4.6vw, 68px); }
.related h2 { margin-bottom: 16px; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related li { margin: 0; }
.related a { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); text-decoration: none; font-size: 15px; transition: box-shadow .18s ease, color .18s ease; }
.related a:hover { box-shadow: inset 0 0 0 2px var(--red); color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   16. ПОДВАЛ
   ═══════════════════════════════════════════════════════════ */
.site-footer { background: var(--space); color: #fff; padding-block: clamp(40px, 5vw, 70px) 30px; margin-top: clamp(48px, 5vw, 84px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h3 { font-family: var(--font-m); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; }
.site-footer p { color: rgba(255, 255, 255, .78); }
.footer-note { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .5); }
.footer-note p { margin-bottom: 8px; color: rgba(255, 255, 255, .5); }

/* ═══════════════════════════════════════════════════════════
   17. АДАПТИВ
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
	.plans { grid-template-columns: repeat(2, minmax(0, 300px)); }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
	.nav { display: none; }
	.burger { display: block; }
	.header-cta { margin-left: auto; }
	.header-row { gap: 14px; }
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	body { font-size: 16px; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
	.plans { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.btn { padding: 0 22px; }
	/* Маркеры крупнее: пальцем в точку радиусом 5 не попасть */
	.map__dot { r: 7; }
	.map__tip { font-size: 12px; }
}

@media (max-width: 520px) {
	.cta__full { display: none; }
	.cta__short { display: inline; }


	/* Таблица разбирается в карточки: подпись колонки из data-label */
	.table-wrap { box-shadow: none; background: transparent; overflow: visible; }
	/* Шапку убираем именно display:none, а не приёмом «визуально скрыто».
	   Абсолютно спозиционированный thead шириной 1px всё равно раскладывает
	   внутри себя строку заголовков, а у них стоит white-space: nowrap —
	   получается невидимый блок в 370px, который распирает документ вбок.
	   Замерено: +46px переполнения на 360px. В карточном режиме шапка и не
	   нужна: подпись каждой ячейки берётся из data-label. */
	table.data { display: block; width: 100%; }
	table.data thead { display: none; }
	table.data tbody { display: block; width: 100%; }
	table.data tbody tr { display: block; background: var(--paper); border: 5px solid var(--paper); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 14px; }
	table.data tbody tr + tr td { border-top: none; }
	/* Подпись строкой НАД значением, а не сбоку. В два столбца ячейка не
	   складывается: подпись стоит `flex: none`, а длинный текст значения
	   не ужимается ниже своей минимальной ширины — на 360px это давало
	   ячейку в 366px при доступных 295. Вертикально влезает всегда. */
	table.data td { display: block; min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
	table.data tr td:last-child { border-bottom: none; }
	table.data td.mono { white-space: normal; }
	table.data td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--font-m); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--grey); }
}

/* На 360px шапка не помещалась: логотип в две строки, реф-кнопка и
   бургер вместе давали 365px при доступных 345. Прятать кнопку в бургер
   нельзя — она обязана быть на первом экране на всех ширинах. Поэтому
   ужимаем всё остальное: знак, кегль логотипа, подпись под ним и
   отступы. Замерено: было +20px переполнения, стало 0. */
@media (max-width: 420px) {
	.header-row { gap: 10px; }
	.logo { gap: 7px; }
	.logo__mark { width: 32px; height: 32px; }
	.logo__text { font-size: 15px; }
	.logo__text i { display: none; }
	.header-cta .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
	.burger { width: 42px; height: 42px; }
	.burger span, .burger::before, .burger::after { left: 10px; right: 10px; }
	.burger::before { top: 12px; }
	.burger::after { bottom: 12px; }
}

/* Ниже 330px правки предыдущего шага уже не спасают: замерено 307px
   содержимого шапки при 305 доступных на вьюпорте 320px — страница
   ехала вбок на 2px, виновник по замеру `button.burger`. Ужимаем
   последнее, что можно ужать, не пряча реф-кнопку: боковые поля,
   зазор строки, кнопку и сам бургер. Проверено на 320 / 315 / 300 —
   переполнения нет. */
@media (max-width: 330px) {
	:root { --pad: 12px; }
	.header-row { gap: 8px; }
	.logo__mark { width: 28px; height: 28px; }
	.logo__text { font-size: 14px; }
	.header-cta .btn { min-height: 40px; padding: 0 11px; font-size: 13px; }
	.burger { width: 38px; height: 38px; }
	.burger span, .burger::before, .burger::after { left: 9px; right: 9px; }
	.burger::before { top: 11px; }
	.burger::after { bottom: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   18. ЩАДЯЩИЙ РЕЖИМ
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}
	.map__dot { animation: none; opacity: .9; }
}
