/*
Theme Name: Gemini AI Ru
Theme URI: https://geminiai.help/
Description: Тема сайта Gemini AI Ru — русскоязычного ресурса о нейросети Gemini от Google.
Author: Gemini AI Ru
Version: 1.0.4
Text Domain: gemini-help
*/

/* ═══════════════════════════════════════════════════════════
   ШРИФТ — PT Root UI, хостится локально, субсет lat+cyr
   ═══════════════════════════════════════════════════════════ */
@font-face {
	font-family: 'PT Root UI';
	src: url('fonts/ptroot-regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'PT Root UI';
	src: url('fonts/ptroot-medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'PT Root UI';
	src: url('fonts/ptroot-bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ═══════════════════════════════════════════════════════════
   ТОКЕНЫ — палитра снята с офсайта deepmind.google
   ═══════════════════════════════════════════════════════════ */
:root {
	--canvas: #ffffff;
	--band: #f3f4f6;
	--band-soft: #f8f9fc;
	--ink: #0a0a0a;
	--ink-2: #212226;
	--muted: #4e4f56;
	--line: #e1e6ec;
	/* Офсайтный #3186ff на белом даёт 3,5:1 — для текста мало, поэтому
	   ссылки и кнопки идут на затемнённом варианте (5,5:1), а исходный
	   тон живёт в декоративных заливках. */
	--accent: #1a63d8;
	--accent-soft: #3186ff;
	--accent-deep: #1e2867;
	--tile-blue: #dcf1ff;
	--tile-pink: #ffeef7;
	--tile-green: #daf9d4;
	--tile-lemon: #fcffad;
	--tile-lilac: #ece7ff;
	--star: #f0a202;
	--ok: #005143;
	--warn: #d05600;

	--shell: 1440px;
	--col: 767px;
	--pad: 40px;
	--r-tile: 24px;
	--r-sm: 16px;
	--r-pill: 9999px;
	--hdr: 72px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--f: 'PT Root UI', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .5em; }
strong { font-weight: 700; }

.lead {
	font-size: clamp(1.1rem, 1rem + .55vw, 1.42rem);
	line-height: 1.45;
	color: var(--muted);
	max-width: var(--col);
}

.visually-hidden {
	position: absolute; width: 1px; height: 1px; margin: -1px;
	padding: 0; 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(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ═══════════════════════════════════════════════════════════
   ПОЛОТНО И СЕКЦИИ
   ═══════════════════════════════════════════════════════════ */
.shell {
	width: 100%;
	max-width: var(--shell);
	margin: 0 auto;
	padding-inline: var(--pad);
}
.shell--text { max-width: calc(var(--col) + var(--pad) * 2); }

.block { padding-block: clamp(56px, 4vw, 96px); }
.block--tight { padding-block: clamp(40px, 3vw, 64px); }
.block--band { background: var(--band); }
.block--soft { background: var(--band-soft); }

.block__head { max-width: var(--col); margin-bottom: clamp(28px, 2.4vw, 48px); }
.block__head p:last-child { margin-bottom: 0; }
.block__head--wide { max-width: 980px; }

/* текстовая колонка внутри страницы */
.prose { max-width: var(--col); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > *:first-child { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════
   ШАПКА
   ═══════════════════════════════════════════════════════════ */
.top {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, background .2s ease;
}
.top.is-stuck { border-bottom-color: var(--line); }

.top__row {
	display: flex; align-items: center; gap: 20px;
	min-height: var(--hdr);
}

.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.mark:hover { text-decoration: none; }
.mark__star { width: 30px; height: 30px; flex-shrink: 0; }
.mark__text { white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; min-width: 0; }
.nav a {
	color: var(--ink-2); font-size: .96rem; font-weight: 500;
	padding: 8px 12px; border-radius: var(--r-pill);
	transition: background-color .15s ease, color .15s ease;
	white-space: nowrap;
}
.nav a:hover { background: var(--band); text-decoration: none; }
.nav a.is-current { color: var(--accent); }

.top__cta { margin-left: 12px; }

.burger {
	display: none; margin-left: 8px;
	width: 42px; height: 42px; border: 0; background: var(--band);
	border-radius: var(--r-pill); cursor: pointer;
	align-items: center; justify-content: center; color: var(--ink);
}
.burger svg { width: 22px; height: 22px; }

.drawer {
	display: none; border-top: 1px solid var(--line); background: #fff;
	padding: 12px var(--pad) 22px;
}
.drawer.is-open { display: block; }
.drawer a {
	display: block; padding: 11px 0; color: var(--ink-2);
	font-size: 1.02rem; font-weight: 500; border-bottom: 1px solid var(--line);
}
.drawer a:last-child { border-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   КНОПКИ — пилюли, как на офсайте
   ═══════════════════════════════════════════════════════════ */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: inherit; font-size: 1rem; font-weight: 500; line-height: 1;
	padding: 15px 26px; border-radius: var(--r-pill); border: 1px solid transparent;
	cursor: pointer; text-align: center;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #1550b5; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { background: var(--band); }
.btn--sm { padding: 11px 18px; font-size: .93rem; }
.btn--xs { padding: 9px 14px; font-size: .86rem; white-space: nowrap; }
.btn--wide { width: 100%; }
.btn svg { width: 18px; height: 18px; }

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

/* иконки — спрайт Lucide, печатается в подвале */
.i {
	width: 20px; height: 20px; flex-shrink: 0;
	fill: none; stroke: currentColor; stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
}
.qa-list { border-top: 1px solid var(--line); max-width: 980px; }

/* ═══════════════════════════════════════════════════════════
   ПЕРВЫЙ ЭКРАН — парящая звезда + всплывающий текст
   ═══════════════════════════════════════════════════════════ */
.hero { position: relative; padding-block: clamp(48px, 5vw, 104px) clamp(40px, 4vw, 80px); overflow: hidden; }
.hero__inner { position: relative; text-align: center; }

.hero__star {
	width: clamp(96px, 12vw, 168px); height: clamp(96px, 12vw, 168px);
	margin: 0 auto clamp(20px, 2vw, 34px);
	animation: hover-star 6s ease-in-out infinite;
	will-change: transform;
}
@keyframes hover-star {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50%      { transform: translateY(-22px) rotate(6deg); }
}

.hero h1 { margin-bottom: .34em; }
.hero__lead { margin-inline: auto; text-align: center; }
.hero .btn-row { justify-content: center; margin-top: 28px; }
.hero__note { margin-top: 18px; font-size: .93rem; color: var(--muted); }

/* градиентная подсветка полотна.
   Тот же слой печатается в начале внутренних страниц: .pagehead::before
   переиспользует эти объявления один в один, чтобы цвета, направление,
   высота и затухание совпадали с главной, а не «были похожи». */
.hero__glow,
.pagehead::before {
	position: absolute; inset: -30% -10% auto; height: 620px; z-index: -1;
	background:
		radial-gradient(42% 55% at 30% 42%, rgba(66, 133, 244, .22), transparent 70%),
		radial-gradient(38% 50% at 68% 38%, rgba(155, 114, 203, .20), transparent 70%),
		radial-gradient(36% 46% at 52% 62%, rgba(217, 101, 112, .14), transparent 72%);
	filter: blur(12px);
	pointer-events: none;
}

/* Верх внутренней страницы. Обрезки (overflow: hidden), как у .hero, здесь нет
   намеренно: на главной срез приходится на границу липкой шапки и не виден,
   а внутри страницы он дал бы жёсткую горизонтальную кромку под крошками.
   Без обрезки слой сам уходит в прозрачность по краям своей коробки. */
.pagehead { position: relative; }
.pagehead::before { content: ""; }

/* всплывающий текст — по словам */
.pop { display: inline-block; overflow: hidden; vertical-align: bottom; }
.pop > span {
	display: inline-block;
	transform: translateY(115%);
	transition: transform .7s var(--ease);
	transition-delay: var(--d, 0ms);
}
.is-lit .pop > span { transform: translateY(0); }

/* всплытие блоков */
.rise {
	opacity: 0; transform: translateY(26px);
	transition: opacity .55s var(--ease), transform .55s var(--ease);
	transition-delay: var(--d, 0ms);
}
.rise.is-in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   JUMPLINKS — панель разделов с кнопками прокрутки
   ═══════════════════════════════════════════════════════════ */
.jumplinks { position: relative; border-block: 1px solid var(--line); background: #fff; }
.jumplinks__inner { position: relative; display: flex; align-items: center; gap: 10px; min-height: 66px; }

.jumplinks__track {
	display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none; flex: 1 1 auto; min-width: 0;
	padding-block: 12px;
}
.jumplinks__track::-webkit-scrollbar { display: none; }

.jumplinks__link {
	flex: 0 0 auto; padding: 9px 18px; border-radius: var(--r-pill);
	background: var(--band); color: var(--ink-2);
	font-size: .94rem; font-weight: 500; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.jumplinks__link:hover { background: var(--tile-blue); text-decoration: none; }
.jumplinks__link.is-active { background: var(--ink); color: #fff; }

.jumplinks__btn {
	flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-pill);
	border: 1px solid var(--line); background: #fff; color: var(--ink);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, opacity .2s ease;
}
.jumplinks__btn:hover { background: var(--band); }
.jumplinks__btn[disabled] { opacity: .3; cursor: default; }
.jumplinks__btn svg { width: 20px; height: 20px; }

/* ═══════════════════════════════════════════════════════════
   ПЛИТКИ
   ═══════════════════════════════════════════════════════════ */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tiles--2 { grid-template-columns: minmax(0, 1fr); }
.tiles--3 { grid-template-columns: minmax(0, 1fr); }
.tiles--4 { grid-template-columns: minmax(0, 1fr); }

.tile {
	background: var(--band); border-radius: var(--r-tile);
	padding: clamp(24px, 2vw, 34px);
	min-width: 0;
	transition: background-color .18s ease;
}
.tile--blue { background: var(--tile-blue); }
.tile--pink { background: var(--tile-pink); }
.tile--green { background: var(--tile-green); }
.tile--lemon { background: var(--tile-lemon); }
.tile--lilac { background: var(--tile-lilac); }
.tile--ink { background: var(--ink); color: #fff; }
.tile--ink h3, .tile--ink h2 { color: #fff; }
.tile--ink p { color: rgba(255, 255, 255, .78); }
.tile--outline { background: #fff; border: 1px solid var(--line); }

.tile h3 { margin-bottom: .4em; }
.tile p:last-child { margin-bottom: 0; }
.tile__icon { width: 30px; height: 30px; margin-bottom: 16px; color: var(--ink); }
.tile--ink .tile__icon { color: #fff; }

.tile__num {
	display: block; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
	font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px;
}
.tile__cap { font-size: .95rem; color: var(--muted); }
.tile--ink .tile__cap { color: rgba(255, 255, 255, .7); }

.tile--link:hover { background: var(--tile-blue); }
.tile--link a { color: inherit; }

/* ═══════════════════════════════════════════════════════════
   ТАРИФЫ
   ═══════════════════════════════════════════════════════════ */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.plan {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-tile);
	padding: 30px 26px; min-width: 0;
}
.plan--hot { background: var(--tile-blue); border-color: transparent; }
.plan__flag {
	position: absolute; top: -13px; left: 26px;
	background: var(--ink); color: #fff; font-size: .8rem; font-weight: 500;
	padding: 6px 14px; border-radius: var(--r-pill);
}
.plan__name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.plan__price { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.plan__per { font-size: .95rem; color: var(--muted); margin-bottom: 18px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 24px; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.plan__list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--ok); }
.plan .btn { margin-top: auto; }

/* ═══════════════════════════════════════════════════════════
   ТАБЛИЦЫ — на мобильном стек карточек
   ═══════════════════════════════════════════════════════════ */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.4em; }
table.data {
	width: 100%; border-collapse: collapse; font-size: .97rem;
	background: #fff; min-width: 0;
}
table.data th, table.data td {
	padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line);
	vertical-align: top;
}
table.data th { font-weight: 700; background: var(--band); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data caption { caption-side: bottom; padding-top: 12px; font-size: .88rem; color: var(--muted); text-align: left; }

/* ═══════════════════════════════════════════════════════════
   АККОРДЕОН — grid-template-rows 0fr → 1fr
   ═══════════════════════════════════════════════════════════ */
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
	display: flex; width: 100%; gap: 16px; align-items: flex-start; justify-content: space-between;
	background: none; border: 0; padding: 22px 0; cursor: pointer;
	font-family: inherit; font-size: 1.08rem; font-weight: 500; color: var(--ink); text-align: left;
}
.qa__sign { flex-shrink: 0; width: 26px; height: 26px; transition: transform .25s var(--ease); color: var(--muted); }
.qa.is-open .qa__sign { transform: rotate(45deg); }
.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 { max-width: var(--col); color: var(--muted); }
.qa__a p:first-child { margin-top: 0; }
.qa__a > div > *:last-child { margin-bottom: 22px; }

/* ═══════════════════════════════════════════════════════════
   ОТЗЫВЫ И ЗВЁЗДЫ
   ═══════════════════════════════════════════════════════════ */
.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(--muted); opacity: .3; }
.star-rating__fg { position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden; white-space: nowrap; color: var(--star); }
.star-rating svg { width: var(--star-size, 20px); height: var(--star-size, 20px); flex-shrink: 0; fill: currentColor; stroke: currentColor; }

.score { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 8px; }
.score__num { font-size: clamp(3rem, 2rem + 4vw, 4.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.score .star-rating { --star-size: 26px; }

.crit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 6px; }
.crit__row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.crit__name { flex: 1 1 auto; min-width: 0; font-size: .97rem; }
.crit__bar { flex: 0 0 120px; height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.crit__bar i { display: block; height: 100%; background: var(--accent-soft); border-radius: inherit; }
.crit__val { flex: 0 0 34px; text-align: right; font-weight: 700; font-size: .97rem; }

.voice {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-tile);
	padding: 26px; min-width: 0;
}
.voice__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.voice__who { font-weight: 700; }
.voice__date { font-size: .88rem; color: var(--muted); margin-left: auto; }
.voice .star-rating { --star-size: 16px; }
.voice p:last-child { margin-bottom: 0; }
.voice__src { font-size: .86rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   ПРОЧЕЕ
   ═══════════════════════════════════════════════════════════ */
.crumbs { font-size: .89rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.crumbs__sep { margin-inline: 8px; opacity: .5; }

.note {
	background: var(--band-soft); border-left: 3px solid var(--accent);
	border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 18px 22px; margin-bottom: 1.4em;
}
.note p:last-child { margin-bottom: 0; }
.note--warn { border-left-color: var(--warn); }

.steps { list-style: none; padding: 0; counter-reset: s; }
.steps > li {
	counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 22px; min-width: 0;
}
.steps > li::before {
	content: counter(s); position: absolute; left: 0; top: -2px;
	width: 36px; height: 36px; border-radius: var(--r-pill);
	background: var(--ink); color: #fff; font-weight: 700; font-size: .98rem;
	display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: .3em; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1.4em; list-style: none; }
.pill-list li {
	padding: 7px 15px; border-radius: var(--r-pill); background: var(--band);
	font-size: .92rem; margin: 0;
}

.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-tile); padding: clamp(34px, 3.4vw, 60px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .78); max-width: var(--col); }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); }

.next-up { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.next-up a {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-sm);
	color: var(--ink); font-weight: 500; background: #fff;
	transition: background-color .15s ease;
}
.next-up a:hover { background: var(--band); text-decoration: none; }
.next-up svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   ПОДВАЛ
   ═══════════════════════════════════════════════════════════ */
.foot { background: var(--band); padding-block: clamp(44px, 3.4vw, 72px) 32px; margin-top: clamp(56px, 4vw, 96px); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.foot__about p { color: var(--muted); font-size: .96rem; max-width: 40ch; }
.foot h4 { margin-bottom: .9em; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .55em; }
/* Цвет ссылок подвала кнопок не касается.
   Изначально здесь стояло `.foot a` — специфичность (0,1,1) против (0,1,0)
   у .btn--primary, и правило идёт ниже по файлу, поэтому текст кнопки в
   подвале уезжал в var(--ink-2): #212226 на заливке #0a0a0a, контраст 1,25:1.
   Правка терялась дважды не из-за каскада, а из-за деплоя: gemini-deploy.sh
   копирует тему из /root/gemini-deploy/gemini-help-theme, и дореформенный
   style.css оттуда затирал живой файл. Копию-исток держать в синхроне.
   .btn в цепочке ниже добавлен намеренно: (0,3,1) против (0,2,1) у правила
   общих ссылок — цвет кнопки выигрывает по специфичности и больше не зависит
   от того, в каком порядке правила окажутся друг относительно друга. */
.foot a:not(.btn) { color: var(--ink-2); font-size: .96rem; }
.foot a.btn.btn--primary, .foot a.btn.btn--accent { color: #fff; }
.foot a.btn.btn--ghost, .foot a.btn.btn--quiet { color: var(--ink); }
.foot a.btn.btn--ghost:hover { color: #fff; }
.foot__legal {
	margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
	font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px 26px;
}
.foot__legal p { margin: 0; max-width: 78ch; }

/* ═══════════════════════════════════════════════════════════
   АДАПТИВ — своя лестница: 1180 / 1024 / 860 / 700 / 560 / 430
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 700px) {
	.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.next-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.crit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 1024px) {
	.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.foot__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media (max-width: 1180px) {
	:root { --pad: 28px; }
	.nav a { padding: 8px 9px; font-size: .92rem; }
}

@media (max-width: 1024px) {
	.nav { display: none; }
	.burger { display: inline-flex; }
	.top__cta { margin-left: auto; }
}

@media (max-width: 700px) {
	:root { --pad: 20px; --hdr: 64px; }
	body { font-size: 16px; }
	.hero { padding-block: 34px 30px; }
	.plan__price { font-size: 2.1rem; }
	.foot__legal { flex-direction: column; }
}

@media (max-width: 560px) {
	/* таблицы становятся карточками — без горизонтальной прокрутки */
	.table-scroll { overflow: visible; }
	table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
	table.data thead { display: none; }
	table.data tr {
		border: 1px solid var(--line); border-radius: var(--r-sm);
		margin-bottom: 14px; padding: 6px 0; background: #fff;
	}
	table.data td { border-bottom: 1px solid var(--line); padding: 11px 16px; }
	table.data tr td:last-child { border-bottom: 0; }
	table.data td::before {
		content: attr(data-label); display: block;
		font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
		color: var(--muted); margin-bottom: 4px;
	}
	.score__num { font-size: 3rem; }
	.crit__bar { flex-basis: 84px; }
}

/* короткая подпись кнопки в шапке — чтобы лого и CTA умещались на узких экранах */
.btn__short { display: none; }

@media (max-width: 470px) {
	.top__cta .btn__full { display: none; }
	.top__cta .btn__short { display: inline; }
}

@media (max-width: 359px) {
	.mark__text { display: none; }
}

@media (max-width: 430px) {
	.btn { padding: 13px 20px; }
	.btn--sm { padding: 10px 14px; }
	.steps > li { padding-left: 44px; }
	.steps > li::before { width: 32px; height: 32px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero__star { animation: none; }
	.rise, .pop > span { transition: none; opacity: 1; transform: none; }
	* { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
