/* ==========================================================================
   Kalnoff — визуальный язык «годового отчёта»: белый / чёрный / жёлтый,
   крупные цифры, тонкие линейки, гротеск Onest.
   ========================================================================== */

@font-face {
	font-family: "Onest";
	src: url("../fonts/onest-cyrillic.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Onest";
	src: url("../fonts/onest-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Onest";
	src: url("../fonts/onest-symbols.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
	unicode-range: U+2190, U+2192, U+2194-2199;
}

:root {
	--ink: #141414;
	--ink-2: #1c1c1c;
	--muted: #6b6b6b;
	--line: #e3e3e3;
	--line-dark: #2e2e2e;
	--paper: #ffffff;
	--paper-2: #f3f3f2;
	--accent: #ffd833;
	--bar: #8f8f8f;

	--font: "Onest", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1280px;
	--gutter: clamp(20px, 4vw, 56px);
	--radius: 4px;
	--section: clamp(64px, 9vw, 128px);
}

/* ---------- База ---------- */

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

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Safari < 15.4 без :focus-visible — обычный :focus */
@supports not selector(:focus-visible) {
	:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
}

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	padding: 10px 16px; background: var(--ink); color: #fff;
}
.skip:focus { top: 12px; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.kicker {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.kicker--line { padding-top: 16px; border-top: 1px solid currentColor; }
.small { font-size: 13px; line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.01em; }

.h2 {
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.03em;
}

.arrow { flex: none; width: 1em; height: 1em; vertical-align: -.12em; }

.link {
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1.5px;
}
.link:hover { text-decoration-color: transparent; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 10px 20px;
	font: 500 15px/1.2 var(--font);
	text-decoration: none;
	border: 1px solid var(--ink);
	border-radius: 0;
	transition: background-color .2s, color .2s;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); color: var(--ink); }

.ph {
	display: flex; align-items: center; justify-content: center;
	width: 100%; aspect-ratio: 1;
	background:
		repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.035) 14px 15px),
		#e9e9e7;
	color: var(--muted); font-size: 13px; text-decoration: none;
}
.cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Шапка ---------- */

.header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: 76px;
}

.logo {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 22px; font-weight: 600; letter-spacing: -.03em;
	text-decoration: none;
	color: var(--ink);
}

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 22px; }
.nav__list > li > a { white-space: nowrap; }
.nav__list a {
	font-size: 15px; text-decoration: none; color: var(--muted);
	transition: color .2s;
}
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-menu-ancestor > a,
.nav__list .current_page_parent > a { color: var(--ink); }

.nav__list > li { position: relative; padding-block: 26px; }
.nav__list .sub-menu {
	position: absolute; left: -20px; top: 100%;
	min-width: 280px; padding: 12px 0;
	background: #fff; border: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__list .sub-menu a { display: block; padding: 8px 20px; color: var(--ink); }
.nav__list .sub-menu a:hover { background: var(--paper-2); }
.nav__list > li:hover > .sub-menu,
.nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Подменю «Стратегия для маркетолога»: шаги с номерами и подписью (inc/setup.php) */
.nav__list .menu-steps > .sub-menu { left: auto; right: -20px; width: 420px; padding: 8px 0; }
.nav__list .nav-step > a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 20px; }
.nav-step__num {
	flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px;
	border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 500;
}
.nav-step__text { display: flex; flex-direction: column; gap: 3px; }
.nav-step__title { font-size: 15px; font-weight: 500; line-height: 1.3; }
.nav-step__desc { font-size: 13px; line-height: 1.4; color: var(--muted); }
.nav__list .nav-step.current-menu-item > a { background: var(--paper-2); }

/* «Аудит сайта в GEO/ИИ/Алисе» — отдельная кнопка в меню (inc/setup.php) */
.nav__list .menu-geo { padding-block: 20px; }
.nav__list .menu-geo > a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
	font-weight: 500; color: var(--ink); background: var(--accent); white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.nav__list .menu-geo > a:hover,
.nav__list .menu-geo.current-menu-item > a { background: var(--ink); color: #fff; }
.menu-geo__short { display: none; }
/* Подменю кнопки — модели ИИ в две колонки (inc/setup.php) */
.nav__list .menu-models > .sub-menu {
	left: auto; right: -20px; width: 600px; padding: 8px;
	display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.nav__list .nav-model > a { display: block; padding: 10px 14px; }
.nav__list .nav-model--data > a { background: var(--accent); }
.nav__list .nav-model--data > a:hover { background: #ffe066; }
.nav__list .nav-model.current-menu-item > a { background: var(--paper-2); }

.burger { display: none; }

/* ---------- Первый экран ---------- */

.hero { padding-top: clamp(32px, 6vw, 72px); padding-bottom: var(--section); }

.hero__word {
	font-size: clamp(120px, 40vw, 560px);
	font-weight: 500;
	line-height: .8;
	letter-spacing: -.065em;
	margin-left: -.05em;
	padding-bottom: .06em;
}

.hero__row {
	display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px 64px;
	margin-top: clamp(40px, 6vw, 80px);
}
.hero__title {
	font-size: clamp(34px, 4.4vw, 56px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.03em;
	max-width: 14ch;
}
.hero__aside { display: grid; gap: 28px; align-content: start; max-width: 460px; }
.hero__aside p { font-size: 17px; }

/* ---------- Жёлтый блок с цифрами ---------- */

.stats {
	display: grid; grid-template-columns: minmax(300px, 1fr) 2fr;
}
.stats__panel {
	display: flex; flex-direction: column;
	padding: clamp(28px, 4vw, 56px);
	background: var(--accent);
}
.stats__title { font-weight: 500; margin-bottom: auto; padding-bottom: 48px; }

.stat {
	position: relative;
	display: grid; grid-template-columns: 1fr auto; align-items: start;
	padding: 28px 0;
	border-top: 1px solid rgba(20,20,20,.25);
}
.stat:first-of-type { border-top: 0; }
.stat__value {
	font-size: clamp(56px, 6.4vw, 92px);
	font-weight: 600;
	line-height: .95;
	letter-spacing: -.05em;
}
.stat__delta { display: inline-flex; gap: 4px; align-items: center; font-size: 14px; font-weight: 500; padding-top: 12px; }
.stat__label { grid-column: 1 / -1; margin-top: 10px; color: rgba(20,20,20,.75); }

.stats__media { min-height: 420px; }
.stats__media .ph,
.stats__media img { height: 100%; aspect-ratio: auto; }

/* Клиенты вместо фото рядом с цифрами */
.clients {
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
	padding: clamp(28px, 4vw, 56px);
	background: var(--ink); color: #fff;
}
.clients .kicker { color: #bdbdbd; max-width: 30ch; }
.clients__list {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--line-dark);
}
.clients__list li {
	padding: 18px 16px 18px 0;
	border-bottom: 1px solid var(--line-dark);
	font-size: clamp(22px, 2.6vw, 36px);
	font-weight: 500; letter-spacing: -.03em; line-height: 1.1;
}
.clients__list a { text-decoration: none; }
.clients__list a:hover { color: var(--accent); }

/* ---------- Секции ---------- */

.section { padding-top: var(--section); }
.section--tight { padding-top: clamp(32px, 4vw, 56px); }
.section__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--row { grid-template-columns: 1fr auto; align-items: end; }

/* Список услуг */
.services { border-top: 1px solid var(--ink); }
.service { border-bottom: 1px solid var(--line); }
.service__link {
	display: grid;
	grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) 24px;
	gap: 24px; align-items: baseline;
	padding: 28px 0;
	text-decoration: none;
	transition: padding .25s, background-color .25s;
}
.service__num { font-size: 14px; color: var(--muted); }
.service__name { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.service__text { color: var(--muted); font-size: 15px; }
.service__link .arrow { align-self: center; width: 22px; height: 22px; transition: transform .25s; }
.service__link:hover { background: var(--paper-2); padding-inline: 16px; }
.service__link:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Тёмный блок с графиком ---------- */

.chart {
	margin-top: var(--section);
	padding-block: clamp(48px, 6vw, 88px);
	background: var(--ink);
	color: #fff;
}
.chart .kicker { color: #bdbdbd; }

.chart__head {
	display: grid; grid-template-columns: auto 1fr minmax(0, 360px); gap: 8px 40px;
	align-items: start;
	margin: 28px 0 56px;
}
.chart__big {
	font-size: clamp(72px, 10vw, 144px);
	font-weight: 600;
	line-height: .85;
	letter-spacing: -.06em;
}
.chart__big sup { font-size: .35em; letter-spacing: 0; vertical-align: top; position: relative; top: .25em; margin-left: .05em; }
.chart__suffix { font-size: 20px; padding-top: 8px; }
.chart__text { font-size: 14px; color: #bdbdbd; }

.chart__bars {
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px;
	border-top: 1px solid var(--line-dark);
}
.bar { display: grid; grid-template-rows: auto auto 220px; padding-top: 14px; }
.bar__label { min-height: 2.8em; padding-right: 8px; font-size: 11px; line-height: 1.3; color: #9a9a9a; }
.bar__value { font-size: 18px; font-weight: 500; margin: 4px 0 16px; }
.bar__track { display: flex; align-items: flex-end; }
.bar__fill { display: block; width: 100%; background: var(--bar); transition: height .8s cubic-bezier(.2,.8,.2,1); }
.bar:nth-child(even) .bar__fill { background: #5c5c5c; }
.bar--accent .bar__fill { background: var(--accent); }
.bar--accent .bar__value { color: var(--accent); }
.js .chart__bars:not(.is-visible) .bar__fill { height: 0 !important; }

/* ---------- Подход (серый) ---------- */

.approach { background: var(--paper-2); padding-block: clamp(56px, 7vw, 96px); }
.approach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.approach__title {
	font-size: clamp(30px, 3.6vw, 44px);
	font-weight: 500; line-height: 1.08; letter-spacing: -.03em;
	margin-bottom: 40px;
}
.approach__img { width: min(100%, 300px); aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.approach__grid .small { margin-top: 14px; max-width: 260px; }
.approach__body {
	display: grid; gap: 24px; align-content: start;
	padding-top: 32px; border-top: 1px solid #bdbdbd;
	margin-top: clamp(0px, 6vw, 80px);
}
.approach__body .small { max-width: 380px; }

/* ---------- Кейсы: «цифра + фото» ---------- */

.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.case:nth-child(even) .case__info { order: 2; }

.case__info {
	display: flex; flex-direction: column;
	min-height: 100%; padding: 20px 0 16px;
	border-top: 1px solid var(--ink);
	text-decoration: none;
}
.case__metric { font-size: clamp(40px, 4vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.case__label { margin-top: 10px; font-size: 15px; max-width: 18ch; }
.case__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 32px; }
.case__title { font-size: 15px; font-weight: 500; line-height: 1.3; }
.case__foot .arrow { width: 20px; height: 20px; transition: transform .25s; }
.case__info:hover .arrow { transform: translate(2px, 2px); }
.case__media { display: block; aspect-ratio: 1; overflow: hidden; }
.case__media img { transition: transform .6s; }
.case:hover .case__media img { transform: scale(1.04); }

.case-hero {
	display: inline-grid; gap: 8px;
	padding: 28px 32px; margin-bottom: 32px;
	background: var(--accent);
}

/* ---------- Карточки статей ---------- */

.grid { display: grid; gap: 48px 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: grid; gap: 14px; align-content: start; }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media .ph, .card__media img { height: 100%; aspect-ratio: auto; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__meta { display: flex; gap: 16px; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.card__title { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card__text { font-size: 15px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chips--tags { margin: 40px 0 0; }
.chip, .chips--tags a {
	padding: 7px 14px; font-size: 14px; text-decoration: none;
	border: 1px solid var(--line); border-radius: 100px;
	transition: border-color .2s, background-color .2s;
}
.chip:hover, .chips--tags a:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--line); text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}

.empty { padding: 40px 0; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */

.page-head { padding-top: clamp(28px, 4vw, 48px); }
.page-head__title {
	max-width: 18ch;
	font-size: clamp(40px, 6.4vw, 88px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.045em;
}
.page-head__title--article { max-width: 22ch; font-size: clamp(34px, 4.8vw, 64px); line-height: 1.05; }
.page-head__lead { max-width: 640px; margin-top: 24px; font-size: 19px; color: var(--muted); }

.crumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "—"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.article__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.article__cover { margin-top: 48px; }
.article__cover img { aspect-ratio: 16 / 9; }

/* Типографика контента */
.prose { max-width: 760px; font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.prose h3 { margin-top: 1.8em; font-size: 23px; font-weight: 500; line-height: 1.25; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--ink); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); font-size: 21px; }
.prose img, .prose figure { margin-block: 1.6em; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .table-wrap table { min-width: 520px; }
.prose .figure img { width: 100%; height: auto; margin: 0; background: var(--paper-2); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose code { padding: 2px 6px; background: var(--paper-2); font-size: .9em; }

/* Блок «уже реализовано в кейсе» под статьёй */
.related-case { max-width: 760px; margin-top: 56px; background: var(--accent); }
.related-case__kicker { padding: 20px 28px 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.related-case__link {
	display: grid; grid-template-columns: auto minmax(0, 1fr) 24px; gap: 8px 24px; align-items: center;
	padding: 16px 28px 24px; text-decoration: none;
}
.related-case__metric { font-size: clamp(36px, 4vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.related-case__body { display: grid; gap: 4px; }
.related-case__title { font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.related-case__note { font-size: 15px; color: rgba(20,20,20,.75); }
.related-case__link .arrow { width: 22px; height: 22px; transition: transform .25s; }
.related-case__link:hover .related-case__title { text-decoration: underline; text-underline-offset: 4px; }
.related-case__link:hover .arrow { transform: translate(3px, -3px); }

/* Бриф на SEO (хаб «Стратегия для маркетолога») */
.prose .brief { list-style: none; padding: 0; margin-top: 1.6em; counter-reset: brief; border-top: 1px solid var(--ink); }
.prose .brief__item { counter-increment: brief; position: relative; margin: 0; padding: 28px 0 32px 64px; border-bottom: 1px solid var(--line); }
.prose .brief__item::before { content: counter(brief, decimal-leading-zero); position: absolute; left: 0; top: 34px; font-size: 14px; color: var(--muted); }
.prose .brief__q { margin: 0; font-size: 23px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.prose .brief__why { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.prose .brief__link {
	display: grid; gap: 4px; position: relative; margin-top: 18px; padding: 16px 52px 18px 20px;
	text-decoration: none; transition: transform .25s;
}
.brief__link--tool { background: var(--accent); }
.brief__link--case { background: var(--paper-2); }
.prose .brief__link::after { content: "→"; position: absolute; right: 20px; top: 50%; font-size: 22px; transform: translateY(-50%); transition: transform .25s; }
.prose .brief__link:hover::after { transform: translate(4px, -50%); }
.prose .brief__link:hover .brief__name { text-decoration: underline; text-underline-offset: 4px; }
.brief__tag { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.brief__name { font-size: 19px; font-weight: 500; line-height: 1.25; }
.brief__note { font-size: 15px; line-height: 1.45; color: rgba(20,20,20,.75); }

/* Подпись автора */
.author {
	display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: center;
	max-width: 760px; margin-top: 56px; padding-top: 32px;
	border-top: 1px solid var(--ink);
}
.author__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.author__body { display: grid; gap: 6px; }
.author__name { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.author__name a { text-decoration: none; }
.author__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.author__role { font-size: 15px; color: var(--muted); }
.author__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.author__links a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 14px; font-size: 14px; text-decoration: none;
	border: 1px solid var(--line); border-radius: 100px;
	transition: border-color .2s, background-color .2s;
}
.author__links a:hover { border-color: var(--ink); background: var(--accent); }
.author__links .arrow { width: 14px; height: 14px; }

/* Контакты */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--ink); margin-bottom: 56px; }
.contacts__item {
	display: grid; gap: 10px; grid-template-columns: 1fr auto;
	padding: 24px 24px 28px 0;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
}
.contacts__item .kicker { grid-column: 1 / -1; }
.contacts__value { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; }
.contacts__item:hover .contacts__value { text-decoration: underline; text-underline-offset: 4px; }

.doc-card {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
	margin: -24px 0 56px; padding: 32px 40px;
	color: var(--ink); background: var(--accent); text-decoration: none;
	transition: transform .2s;
}
.doc-card__icon svg { display: block; width: 112px; height: 112px; transition: transform .2s; }
.doc-card__text { display: grid; gap: 8px; min-width: 0; }
.doc-card .kicker { color: var(--ink); }
.doc-card__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.doc-card__meta { font-size: 16px; }
.doc-card__btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 18px 28px; font-size: 18px; font-weight: 500; color: #fff; background: var(--ink); border-radius: 100px;
	white-space: nowrap;
}
.doc-card:hover .doc-card__icon svg { transform: translateY(4px); }
.doc-card:hover .doc-card__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.doc-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
@media (max-width: 760px) {
	.doc-card { grid-template-columns: auto 1fr; gap: 20px; padding: 24px; margin-top: -16px; }
	.doc-card__icon svg { width: 72px; height: 72px; }
	.doc-card__title { font-size: 24px; }
	.doc-card__btn { grid-column: 1 / -1; justify-content: center; }
}

.results { display: grid; gap: 20px; margin-top: 32px; }
.results a { font-size: 20px; font-weight: 500; }

.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 48px; padding: 0 16px; font: inherit; border: 1px solid var(--line); border-radius: 0; -webkit-appearance: none; appearance: none; }
.search-submit { height: 48px; padding: 0 20px; font: inherit; color: #fff; background: var(--ink); border: 0; border-radius: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }

/* ---------- План SEO-работ на 6 месяцев ---------- */

.plan, .smeta {
	--c-tech: var(--ink); --c-meta: var(--accent); --c-content: #8f8f8f; --c-comm: #c8c8c8;
	--c-anal: #fff; --c-local: #555; --c-links: #f3e7a6;
}
.plan__intro { margin-bottom: 40px; }

.plan-tabs {
	position: sticky; top: 76px; z-index: 5;
	display: flex; overflow-x: auto; scrollbar-width: none;
	margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
	background: rgba(255,255,255,.96);
	border-bottom: 1px solid var(--ink);
}
.plan-tabs::-webkit-scrollbar { display: none; }
.plan-tabs__item {
	flex: none; padding: 16px 20px;
	font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); white-space: nowrap;
	transition: color .2s, background-color .2s;
}
.plan-tabs__item:hover { color: var(--ink); }
.plan-tabs__item[aria-selected="true"] { color: var(--ink); background: var(--accent); }

.plan-filters { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); }
.plan-filters label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.plan-filters input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }

.plan-panel { padding-top: clamp(40px, 5vw, 64px); }
.plan-panel__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.plan-panel__title { font-size: clamp(32px, 4.4vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.plan-panel__about { max-width: 820px; margin-top: 20px; font-size: 17px; color: #3a3a3a; }

.plan-copy {
	flex: none; min-height: 40px; padding: 8px 16px;
	font: 500 14px/1.2 var(--font); color: var(--ink);
	background: #fff; border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
	transition: background-color .2s;
}
.plan-copy:hover { background: var(--accent); }

.plan-legend { display: grid; gap: 10px; margin-top: 24px; padding: 16px 20px; background: var(--paper-2); font-size: 13px; }
.plan-legend__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.plan-legend__title { font-weight: 500; }

.plan-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.plan-tag::before { content: ""; width: 10px; height: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(20,20,20,.35); }
.plan-tag--tech { --c: var(--c-tech); }
.plan-tag--meta { --c: var(--c-meta); }
.plan-tag--content { --c: var(--c-content); }
.plan-tag--comm { --c: var(--c-comm); }
.plan-tag--anal { --c: var(--c-anal); }
.plan-tag--local { --c: var(--c-local); }
.plan-tag--links { --c: var(--c-links); }

.plan-geo { display: inline-block; padding: 2px 7px; font-size: 11px; font-weight: 600; letter-spacing: .06em; background: var(--ink); color: var(--accent); vertical-align: .1em; }

.plan-key { display: inline-flex; align-items: center; gap: 7px; }
.plan-key::before { content: ""; width: 3px; height: 14px; background: var(--k); }
.plan-key--traffic, .plan-ev__item--traffic { --k: var(--ink); }
.plan-key--leads, .plan-ev__item--leads { --k: var(--accent); }
.plan-key--index, .plan-ev__item--index { --k: #8f8f8f; }
.plan-key--lesson, .plan-ev__item--lesson { --k: #c8c8c8; }
.plan-key--doc, .plan-ev__item--doc { --k: #555; }
.plan-key--geo, .plan-ev__item--geo { --k: repeating-linear-gradient(180deg, var(--ink) 0 4px, var(--accent) 4px 8px); }
.plan-key--series::before { display: none; }

.plan-month { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--ink); }
.plan-month__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 20px; align-items: baseline; padding-top: 20px; }
.plan-month__head--plain { grid-template-columns: minmax(0, 1fr) auto; }
.plan-month__num { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: .9; letter-spacing: -.05em; }
.plan-month__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }

.plan-share { display: flex; height: 10px; margin-top: 20px; background: var(--paper-2); }
.plan-share__seg { display: block; height: 100%; box-shadow: inset -1px 0 0 #fff; }
.plan-share__seg--1, .plan-share__label--1 { --s: var(--ink); }
.plan-share__seg--2, .plan-share__label--2 { --s: var(--accent); }
.plan-share__seg--3, .plan-share__label--3 { --s: #8f8f8f; }
.plan-share__seg--4, .plan-share__label--4 { --s: #c8c8c8; }
.plan-share__seg--5, .plan-share__label--5 { --s: #e6e6e3; }
.plan-share__seg { background: var(--s); }
.plan-share__labels { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.plan-share__label { display: inline-flex; align-items: center; gap: 6px; }
.plan-share__label::before { content: ""; width: 8px; height: 8px; background: var(--s); box-shadow: inset 0 0 0 1px rgba(20,20,20,.2); }

.plan-items { margin-top: 12px; }
.plan-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.plan-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plan-item__text { max-width: 900px; margin-top: 8px; font-size: 17px; line-height: 1.5; }
.plan-empty { padding: 20px 0; color: var(--muted); }

.plan-ev { display: grid; gap: 8px; max-width: 900px; margin-top: 12px; }
.plan-ev--none { font-size: 13px; color: var(--muted); }
.plan-ev__item { position: relative; padding: 2px 0 2px 16px; font-size: 14px; line-height: 1.5; color: #3a3a3a; }
.plan-ev__item::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: var(--k); }
.plan-ev__kind { margin-right: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.plan-ev__item--leads .plan-ev__kind { background: var(--accent); padding: 1px 5px; }
.plan-ev__series { margin-right: 6px; font-size: 12px; color: var(--muted); }
.plan-ev__src { font-weight: 500; color: var(--ink); }
.plan-ev__links a { margin-right: 12px; color: var(--muted); text-underline-offset: 3px; overflow-wrap: anywhere; }
.plan-ev__links a:hover { color: var(--ink); }
.plan.is-compact .plan-ev { display: none; }

.plan-check { margin-top: 20px; padding: 16px 20px; background: var(--accent); font-size: 15px; }

.plan-notes { margin-top: 40px; padding: 24px 28px; background: var(--paper-2); }
.plan-notes__title { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.plan-notes__title:not(:first-child) { margin-top: 24px; }
.plan-notes ul, .plan-notes ol { display: grid; gap: 8px; margin-top: 14px; font-size: 15px; }
.plan-notes ul > li { position: relative; padding-left: 20px; }
.plan-notes ul > li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--ink); }
.plan-notes ol { list-style: decimal; padding-left: 1.3em; }
.plan-notes a { color: var(--muted); text-underline-offset: 3px; overflow-wrap: anywhere; }

.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.plan-grid--4 .plan-notes { margin-top: 24px; }

.plan-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; background: var(--accent); }
.plan-kpi > div { display: grid; gap: 10px; align-content: start; padding: 28px 24px; border-left: 1px solid rgba(20,20,20,.2); }
.plan-kpi > div:first-child { border-left: 0; }
.plan-kpi b { font-size: clamp(36px, 4vw, 56px); font-weight: 600; line-height: .95; letter-spacing: -.05em; }
.plan-kpi span { font-size: 14px; color: rgba(20,20,20,.75); }
.plan-table { max-width: none; margin-top: 40px; }
.plan-table h3 { margin-top: 40px; }
.plan-table .table-wrap table { min-width: 720px; }

.plan .author { margin-top: clamp(56px, 6vw, 80px); }

.plan-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 60;
	padding: 12px 20px; background: var(--ink); color: #fff; font-size: 14px;
	transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	transition: opacity .2s, transform .2s;
}
.plan-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Пример сметы на SEO ---------- */

.plan-tag--start { --c: var(--accent); }
.plan-tag--reg { --c: #e6e6e3; }

.smeta-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; background: var(--accent); }
.smeta-sum > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 28px 24px; border-left: 1px solid rgba(20,20,20,.2); }
.smeta-sum > div:first-child { border-left: 0; }
.smeta-sum dd { margin: 0; font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; line-height: .95; letter-spacing: -.05em; white-space: nowrap; }
.smeta-sum dt { font-size: 14px; color: rgba(20,20,20,.75); }
.smeta-download.doc-card { margin: 2px 0 0; background: var(--ink); color: #fff; }
.smeta-download .kicker { color: rgba(255,255,255,.7); }
.smeta-download .doc-card__icon { color: var(--ink); }
.smeta-download .doc-card__icon svg path:first-child { stroke: #fff; }
.smeta-download .doc-card__btn { color: var(--ink); background: var(--accent); }
.smeta-download:focus-visible { outline-color: var(--accent); }

.smeta-table { margin-top: 40px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink); }
.smeta-table:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.smeta-table table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.smeta-table th, .smeta-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.smeta-table thead th { font-size: 14px; font-weight: 500; vertical-align: bottom; }
.smeta-table__work { width: 34%; min-width: 300px; position: sticky; left: 0; z-index: 1; background: #fff; font-weight: 400; }
.smeta-table__num { text-align: right !important; white-space: nowrap; }
.smeta-table__focus { display: block; max-width: 110px; margin: 4px 0 0 auto; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--muted); white-space: normal; }
.smeta-table__name { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.smeta-table__desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: #3a3a3a; }
.smeta-table__cell { background: var(--paper-2); }
.smeta-table__cell--empty { color: #c8c8c8; }
.smeta-table__hours { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.smeta-table__total { font-weight: 600; }
.smeta-table tfoot th, .smeta-table tfoot td { font-size: 16px; font-weight: 600; background: var(--accent); border-bottom: 0; }
.smeta-table tfoot .smeta-table__hours { color: rgba(20,20,20,.7); font-weight: 400; }

.smeta-notes { display: grid; gap: 12px; max-width: 820px; margin-top: 40px; font-size: 16px; color: #3a3a3a; }
.smeta-notes li { position: relative; padding-left: 24px; }
.smeta-notes li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--ink); }
.smeta-notes a { text-underline-offset: 3px; }
.smeta .author { margin-top: clamp(56px, 6vw, 80px); }

/* ---------- Коммерческий потенциал страниц ---------- */

.pot-form { max-width: 760px; padding: clamp(24px, 3vw, 36px); background: var(--accent); }
.pot-form__label { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.pot-form__row { display: flex; gap: 8px; }
.pot-form__input {
	flex: 1; min-width: 0; height: 52px; padding: 0 16px;
	font: 500 18px/1 var(--font); color: var(--ink);
	background: #fff; border: 1px solid var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.pot-form__btn { min-height: 52px; cursor: pointer; }
.pot-form__btn:disabled { opacity: .6; cursor: progress; }
.pot-form__btn.btn--dark:hover { background: #fff; }
.pot-form__note { margin-top: 12px; font-size: 14px; color: rgba(20,20,20,.7); }
.pot-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pot-status { max-width: 760px; margin-top: 16px; font-size: 15px; color: var(--muted); }
.pot-status:empty { display: none; }
.pot-status.is-error { padding: 12px 16px; color: var(--ink); background: var(--paper-2); border-left: 4px solid var(--ink); }

.pot-result { margin-top: clamp(40px, 5vw, 64px); scroll-margin-top: 96px; }
.pot-result[hidden] { display: none; }
.pot-result__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.pot-result__title { font-size: clamp(26px, 3vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }

.pot-engine { margin-top: clamp(32px, 4vw, 48px); }
.pot-engine__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.pot-engine__sum { padding: 2px 10px; font-size: 16px; background: var(--accent); }
.pot-engine__empty { max-width: 640px; margin-top: 12px; color: var(--muted); }
.pot-engine .table-wrap { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pot-t { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.pot-t th { padding: 10px 12px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-align: left; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.pot-t td { padding: 16px 12px; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pot-t__num { width: 32px; color: var(--muted); }
.pot-t td.pot-t__page { width: 100%; white-space: normal; }
.pot-t__page > a { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.pot-t td.pot-t__money { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.pot-q { margin-top: 8px; padding: 0; list-style: none; font-size: 14px; }
.pot-q li + li { margin-top: 2px; }
.pot-q__meta { color: var(--muted); white-space: nowrap; }

.pot-contact {
	display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end;
	margin-top: clamp(40px, 5vw, 56px); padding: clamp(24px, 3vw, 40px); background: var(--accent);
}
.pot-contact__title { margin-top: 12px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.pot-contact__text p:last-child { margin-top: 16px; }

.pot-export { display: flex; flex-wrap: wrap; gap: 8px; }
.pot-export .plan-copy:disabled { opacity: .6; cursor: progress; }

/* Слайд 16:9 для JPEG: строится вне экрана, снимается html2canvas в 2× (2560×1440). */
.pot-slide {
	position: fixed; left: -10000px; top: 0;
	display: flex; flex-direction: column;
	width: 1280px; height: 720px; padding: 40px 56px 0;
	font-family: var(--font); color: var(--ink); background: #fff;
}
.pot-slide__top { display: flex; align-items: center; justify-content: space-between; }
.pot-slide__logo { display: flex; align-items: flex-start; gap: 10px; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.03em; }
.pot-slide__kicker { font-size: 12px; line-height: 30px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pot-slide__title { margin-top: 28px; font-size: 40px; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.pot-slide__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 28px; }
.pot-slide__engine { padding-bottom: 12px; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid var(--ink); }
.pot-slide__sum { display: inline-block; margin-left: 12px; padding: 0 10px; font-size: 15px; line-height: 28px; vertical-align: 2px; font-weight: 500; letter-spacing: 0; background: var(--accent); }
.pot-slide__list { margin: 0; padding: 0; list-style: none; }
.pot-slide__row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pot-slide__num { font-size: 14px; color: var(--muted); }
.pot-slide__page { display: grid; gap: 3px; min-width: 0; }
.pot-slide__url { font-size: 16px; font-weight: 500; line-height: 1.35; white-space: nowrap; }
.pot-slide__meta { font-size: 12px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
.pot-slide__money { font-size: 19px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.pot-slide__empty { padding: 16px 0; font-size: 15px; color: var(--muted); }
.pot-slide__note { margin-top: auto; padding-bottom: 14px; font-size: 11px; color: var(--muted); }
.pot-slide__foot {
	display: flex; justify-content: space-between; gap: 24px;
	margin: 0 -56px; padding: 0 56px; height: 72px; flex: none;
	font-size: 16px; line-height: 72px; background: var(--accent);
}
.pot-slide__contact { font-weight: 600; white-space: nowrap; }
/* html2canvas рисует Onest примерно на 0,4em ниже, чем браузер: поднимаем текст там, где рядом фон или знак. */
.pot-slide__lift { position: relative; top: -.4em; }

.pot__about { margin-top: clamp(56px, 6vw, 80px); }
.pot .author { margin-top: clamp(56px, 6vw, 80px); }

/* ---------- Аудит сайта в GEO / ИИ / Алисе (page-geo-audit.php, assets/js/geo.js) ---------- */
.geo-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: clamp(28px, 3vw, 40px); }
.geo-total__num { font-size: clamp(56px, 7vw, 96px); font-weight: 600; line-height: 1; letter-spacing: -.05em; }
.geo-total__text { max-width: 420px; font-size: 18px; line-height: 1.35; }
.geo-empty { max-width: 720px; margin-top: 20px; font-size: 17px; color: var(--ink); }
.geo-t { min-width: 760px; }
.geo-q { display: block; font-size: 17px; font-weight: 500; }
.geo-others { display: block; margin-top: 4px; font-size: 13px; white-space: normal; }
.geo-of { font-size: 14px; font-weight: 400; color: var(--muted); }
.geo-t td.pot-t__page { width: auto; }
.geo-t td.geo-url { width: 40%; min-width: 280px; white-space: normal; font-size: 14px; overflow-wrap: anywhere; }
.geo-note { max-width: 720px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.geo-send__actions { display: grid; gap: 12px; justify-items: start; }
.geo-send__btn { gap: 10px; min-height: 56px; padding-inline: 24px; font-size: 17px; }
.geo-send__btn.btn--dark:hover { background: #fff; }
.geo-send__note { font-size: 14px; color: rgba(20,20,20,.7); }

/* Хаб: список моделей и текст раздела */
.geo-hub__title { margin-bottom: 20px; font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; }
.geo-models__vendor { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.geo-models__badge { display: table; margin-bottom: 6px; padding: 2px 8px; font-size: 13px; color: var(--ink); background: var(--accent); }
.geo-hub__about { margin-top: clamp(56px, 6vw, 80px); }
.geo-hub .pot-contact { margin-top: clamp(56px, 6vw, 80px); }
.geo-hub .author { margin-top: clamp(56px, 6vw, 80px); }

/* Доступ ботов модели */
.pot-engine__sum.is-bad { color: #fff; background: #c62828; }
.geo-checks { display: grid; gap: 8px; max-width: 860px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 16px; }
.geo-checks li { position: relative; padding-left: 30px; }
.geo-checks li::before {
	content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 20px; height: 20px;
	font-size: 12px; font-weight: 600; border-radius: 50%; background: var(--accent);
}
.geo-checks li.is-bad::before { content: "!"; color: #fff; background: #c62828; }
.geo-checks li.is-warn::before { content: "–"; background: var(--paper-2); }
.geo-bots { min-width: 640px; }
.geo-bots td.geo-bot__name { font-weight: 500; }
.geo-bots td.geo-bot__role { color: var(--muted); }
.geo-bot__state { font-weight: 600; }
.geo-bot__state .geo-of { display: block; font-weight: 400; }
.geo-bot__state.is-bad { color: #c62828; }
.geo-bot__state.is-warn { color: var(--muted); }

/* Ссылки на другие модели */
.geo-other { margin-top: clamp(48px, 5vw, 64px); }
.geo-other__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.geo-other__link { display: inline-block; padding: 8px 14px; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); transition: background-color .2s; }
.geo-other__link:hover { background: var(--accent); }
.geo-other__link--hub { color: #fff; background: var(--ink); }
.geo-other__link--hub:hover { color: var(--ink); }

/* ---------- Поиск конкурентов ---------- */

.comp-form { max-width: 960px; }
.comp-hint { padding: 16px 20px; background: #fff; border-left: 4px solid var(--ink); font-size: 15px; }
.comp-hint__title { margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.comp-rows { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.comp-row { display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) 40px; gap: 8px 12px; align-items: end; }
.comp-row__num { align-self: center; padding-top: 24px; font-size: 20px; font-weight: 600; }
.comp-row__field { min-width: 0; }
.comp-row__field .pot-form__input { width: 100%; font-size: 16px; }
.comp-row__remove {
	width: 40px; height: 52px; font: 400 26px/1 var(--font); color: var(--ink);
	background: transparent; border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
}
.comp-row__remove:hover { background: #fff; }
.comp-row__remove[hidden] { visibility: hidden; display: block; }
.comp-form__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; }
.comp-form__add { min-height: 52px; background: transparent; }
.comp-form__add[hidden] { display: none; }

.comp-summary { margin-top: clamp(32px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); background: var(--paper-2); }
.comp-summary__title { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.comp-summary__lead { max-width: 640px; margin-top: 8px; color: var(--muted); }
.comp-summary .table-wrap, .comp-engine .table-wrap { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.comp-page { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--ink); }
.comp-page__title { margin-top: 8px; font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.comp-page__url { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 15px; }
.comp-page__url a { overflow-wrap: anywhere; }
.comp-page__url span { color: var(--muted); }
.comp-engine { margin-top: 28px; }
.comp-engine__title { display: inline-block; padding: 2px 10px; font-size: 18px; font-weight: 600; background: var(--accent); }
.comp-engine__note { max-width: 820px; margin-top: 12px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.comp-t { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.comp-t th { padding: 10px 12px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-align: left; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.comp-t td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--line); white-space: nowrap; }
.comp-t__num { width: 32px; color: var(--muted); }
.comp-t td.comp-t__site { width: 100%; white-space: normal; font-weight: 500; overflow-wrap: anywhere; }
.comp-t td.comp-t__dirs { min-width: 200px; white-space: normal; }
.comp-t__own td { background: #fffbe6; }
.comp-t__own .comp-t__num { font-weight: 600; color: var(--ink); }
.comp-contact .pot-contact__title { max-width: 16ch; }

/* ---------- Структура конкурентов ---------- */

.str-form { max-width: 960px; }
.str-form__site { display: block; width: 100%; max-width: 480px; }
.str-form__comps { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.str-form__comps .pot-form__label { padding: 0; }
.str-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.str-form__grid .pot-form__input { width: 100%; font-size: 16px; }
.str-form__hint { margin-top: 10px; font-size: 14px; color: rgba(20,20,20,.75); }
.str-form__hint a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.str-form__btn { margin-top: 24px; }

.str-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(28px, 3.5vw, 40px); background: var(--accent); }
.str-total { display: grid; gap: 4px; padding: clamp(20px, 3vw, 32px); }
.str-total + .str-total { border-left: 1px solid rgba(20,20,20,.2); }
.str-total__label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.str-total__sum { font-size: clamp(32px, 4vw, 52px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; }
.str-total__note { font-size: 14px; color: rgba(20,20,20,.7); }
.str-lead { max-width: 820px; margin-top: 16px; color: var(--muted); }

.str-t { min-width: 760px; }
.str-t__kind, .str-t__sites { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.str-t__sites { color: var(--ink); }
.str-t td.str-t__money { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.str-t__meta { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.str-sites td:nth-child(n+3) { width: 160px; }
.str-t th:nth-child(n+3), .str-sites th:nth-child(n+3) { white-space: nowrap; }

/* ---------- Форма брифа (/seo-marketology/seo-brief/) ---------- */

.bf { scroll-margin-top: 96px; }
.bf-steps { max-width: 960px; padding: clamp(20px, 3vw, 32px); background: var(--accent); font-size: 16px; line-height: 1.55; }
.bf-steps__title { margin-bottom: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.bf-steps__list { display: grid; gap: 6px; margin: 16px 0 0; padding-left: 22px; }
.bf-steps__list a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bf-steps__note { margin-top: 16px; font-size: 14px; color: rgba(20,20,20,.75); }

.bf-form { max-width: 960px; margin-top: clamp(28px, 3.5vw, 40px); }
.bf-label { display: block; margin-bottom: 14px; padding: 0; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.bf-meta { min-width: 0; margin: 0; padding: 0; border: 0; }
.bf-meta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bf-meta__field { min-width: 0; }
.bf-meta__label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.bf-meta .pot-form__input { width: 100%; height: 48px; font-size: 16px; }

.bf-list { margin: clamp(28px, 3.5vw, 40px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.bf-q { padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.bf-q__title { display: flex; gap: 16px; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.bf-q__num { flex: none; width: 32px; padding-top: 5px; font-size: 14px; color: var(--muted); }
.bf-q__hint { margin: 8px 0 0 48px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.bf-q__tool { display: inline-block; margin-left: 4px; padding: 0 6px; font-weight: 500; color: var(--ink); background: var(--accent); text-decoration: none; }
.bf-q__tool:hover { text-decoration: underline; text-underline-offset: 3px; }
.bf-q__options { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 48px; }
.bf-opt { position: relative; cursor: pointer; }
.bf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf-opt span { display: inline-block; padding: 8px 14px; font-size: 14px; font-weight: 500; border: 1px solid var(--ink); transition: background-color .2s; }
.bf-opt:hover span { background: var(--paper-2); }
.bf-opt input:checked + span { background: var(--accent); }
.bf-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.bf-q__answer {
	display: block; width: calc(100% - 48px); min-height: 104px; margin: 14px 0 0 48px; padding: 12px 16px;
	font: 400 16px/1.5 var(--font); color: var(--ink);
	background: #fff; border: 1px solid var(--ink); border-radius: 0; resize: vertical; -webkit-appearance: none; appearance: none;
}
.bf-q__answer::placeholder { color: #9a9a9a; }
.bf-q__answer:focus, .bf-meta .pot-form__input:focus { outline: 2px solid var(--accent); outline-offset: 0; }

.bf-export { margin-top: 28px; padding: clamp(20px, 3vw, 28px); background: var(--paper-2); }
.bf-export .pot-status { margin-top: 12px; }
.bf-export__note { margin-top: 14px; font-size: 15px; }
.bf-export__note a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bf-reset { min-height: 40px; padding: 8px 4px; font: 500 14px/1.2 var(--font); color: var(--muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bf-reset:hover { color: var(--ink); }
.bf-q__answer { scroll-margin-top: 120px; }

/* ---------- Прогресс стратегии и брифа (template-parts/strategy-bar.php, assets/js/strategy.js) ---------- */

.sbar-wrap { margin-top: clamp(4px, 1vw, 12px); }
.sbar { padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); color: #fff; background: var(--ink); }
.sbar__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.sbar__num { flex: none; min-width: 2.4em; font-size: clamp(44px, 6vw, 72px); font-weight: 600; line-height: .9; letter-spacing: -.04em; color: var(--accent); }
.sbar__text { flex: 1 1 300px; min-width: 0; }
.sbar__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.sbar__msg { margin-top: 4px; font-size: 16px; color: rgba(255,255,255,.75); }
.sbar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sbar__btn {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
	font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
	background: var(--accent); border: 1px solid var(--accent); transition: background-color .2s, border-color .2s;
}
.sbar__btn--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.45); }
.sbar__btn:hover { color: var(--ink); background: #fff; border-color: #fff; }
.sbar__track { height: 8px; margin-top: 20px; background: var(--line-dark); }
.sbar__fill { display: block; height: 100%; background: var(--accent); transition: width .5s; }
.sbar__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.sbar__step { display: flex; gap: 10px; height: 100%; padding: 10px 12px; font-size: 14px; line-height: 1.3; color: #fff; text-decoration: none; border: 1px solid var(--line-dark); transition: border-color .2s; }
a.sbar__step:hover { border-color: var(--accent); }
.sbar__step.is-current { border-color: #fff; }
.sbar__badge { flex: none; display: grid; place-items: center; width: 24px; height: 24px; font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.sbar__step.is-done .sbar__badge { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.sbar__label { min-width: 0; }
.sbar__name { display: block; font-weight: 500; }
.sbar__note { display: block; margin-top: 2px; font-size: 12px; color: rgba(255,255,255,.6); }
.sbar__plan { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.sbar__plan-title { margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sbar__plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; font-size: 15px; line-height: 1.45; }
.sbar__plan-cell { display: grid; gap: 4px; overflow-wrap: anywhere; }
.sbar__plan-name { font-weight: 600; }
.sbar__plan-cell a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }
.sbar__plan-cell a:hover { color: var(--accent); }

.sb-offer { margin-top: clamp(28px, 3.5vw, 40px); padding: clamp(20px, 3vw, 28px); background: var(--accent); }
.sb-offer__head { display: flex; align-items: center; gap: 20px; }
.sb-offer__pct { flex: none; font-size: clamp(36px, 4.4vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.sb-offer__title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.sb-offer__q { margin-top: 2px; font-size: 15px; }
.sb-offer__text { max-height: 220px; overflow: auto; margin: 16px 0 0; padding: 14px 16px; font: 400 14px/1.55 var(--font); white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; }
.sb-offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.sb-offer__link { display: inline-flex; align-items: center; text-decoration: none; }
.sb-offer__note { margin-top: 12px; font-size: 14px; }
.sb-prefill { max-width: 760px; margin-bottom: 18px; padding: 10px 14px; font-size: 15px; background: var(--accent); }

@media (max-width: 900px) {
	.sbar__steps { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.sbar__plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.sbar__num { min-width: 0; }
	.sbar__actions, .sbar__btn { width: 100%; }
	.sbar__btn { justify-content: center; }
	.sb-offer__head { align-items: flex-start; }
}

/* Лист для JPEG: вне экрана, ширина 1280, высота по содержимому. */
.bf-sheet { position: fixed; left: -10000px; top: 0; width: 1280px; padding: 40px 56px 0; font-family: var(--font); color: var(--ink); background: #fff; }
.bf-sheet__title { margin-top: 28px; font-size: 44px; font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.bf-sheet__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 28px 0 0; }
.bf-sheet__meta div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bf-sheet__meta dt { font-size: 14px; color: var(--muted); }
.bf-sheet__meta dd { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.bf-sheet__list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.bf-sheet__q { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.bf-sheet__num { padding-top: 4px; font-size: 14px; color: var(--muted); }
.bf-sheet__question { font-size: 20px; font-weight: 500; line-height: 1.3; }
.bf-sheet__choice { display: inline-block; margin-top: 10px; padding: 4px 10px 0; height: 28px; font-size: 15px; font-weight: 600; background: var(--accent); }
.bf-sheet__answer { margin-top: 10px; font-size: 16px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.bf-sheet__foot { margin-top: 36px; }

/* ---------- Призыв ---------- */

.cta { margin-top: var(--section); padding-block: clamp(56px, 7vw, 96px); background: var(--accent); }
.cta__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 64px; align-items: end; }
.cta__title { font-size: clamp(32px, 4.4vw, 56px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.cta__lead { margin-top: 20px; max-width: 520px; }
.cta__actions { display: grid; gap: 0; }
.cta__contact {
	display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center;
	padding: 16px 0;
	border-top: 1px solid rgba(20,20,20,.3);
	font-size: 19px; font-weight: 500; text-decoration: none;
}
.cta__contact .kicker { color: rgba(20,20,20,.65); }
.cta__contact:hover span:not(.kicker) { text-decoration: underline; text-underline-offset: 4px; }
.cta__actions .btn { margin-top: 20px; justify-self: start; }
.cta__actions .btn--dark:hover { background: #fff; }

/* ---------- Подвал ---------- */

.main > :last-child:not(.cta) { margin-bottom: var(--section); }

.footer { background: var(--ink); color: #fff; padding-block: 64px 32px; }
.footer .logo { color: #fff; }
.footer .logo__mark rect { fill: var(--accent); }
.footer .logo__mark path { stroke: var(--ink); }
.footer__top { display: grid; grid-template-columns: 2.4fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { display: grid; gap: 16px; align-content: start; max-width: 360px; }
.footer__brand p { font-size: 15px; color: #bdbdbd; }
.footer .kicker { color: #8a8a8a; margin-bottom: 18px; }
.footer__list { display: grid; gap: 10px; font-size: 15px; }
.footer__list a { text-decoration: none; color: #e6e6e6; }
.footer__list a:hover { color: var(--accent); }
.footer__list .is-current { color: var(--accent); }
.footer__map { padding-block: 40px 48px; border-top: 1px solid var(--line-dark); }
.footer__map-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.footer__map-head .kicker { margin-bottom: 0; }
.footer__map-all { font-size: 15px; color: #e6e6e6; text-underline-offset: 4px; }
.footer__map-all:hover { color: var(--accent); }
.footer__map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px 32px; }
.footer__map-title { margin-bottom: 14px; font-size: 16px; font-weight: 500; color: #fff; }
.footer__map-title a { color: #fff; text-decoration: none; }
.footer__map-title a:hover { color: var(--accent); }
.footer__map .footer__list { gap: 8px; font-size: 14px; }
.footer__map .footer__list a { color: #bdbdbd; }
.footer__map .footer__list a:hover { color: var(--accent); }
.footer__map .arrow { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------- Карта сайта (страница) ---------- */

.site-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; }
.site-map__section { display: grid; gap: 18px; align-content: start; }
.site-map__section--wide { grid-column: 1 / -1; }
.site-map__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; padding-top: 16px; border-top: 1px solid var(--ink); }
.site-map__title a { text-decoration: none; }
.site-map__title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-map__list { display: grid; gap: 0; list-style: none; padding: 0; }
.site-map__list li { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(20,20,20,.12); font-size: 17px; }
.site-map__list a { text-underline-offset: 3px; }
.site-map__note { flex: none; font-size: 14px; color: #6b6b6b; white-space: nowrap; }
.site-map__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.site-map__group-title { margin-bottom: 4px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.site-map__group-title a { text-decoration: none; }
.site-map__group-title a:hover { text-decoration: underline; }
.site-map .is-current { color: #6b6b6b; }
.site-map__list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }

.footer__bottom {
	display: flex; flex-wrap: wrap; gap: 12px 32px;
	padding-top: 24px; border-top: 1px solid var(--line-dark);
	font-size: 13px; color: #8a8a8a;
}
.footer__bottom a { color: #8a8a8a; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Адаптив ---------- */

/* Шапка: логотип + 8 пунктов с кнопкой GEO + «Написать в Telegram» помещаются в контейнер 1280 px только целиком */
@media (max-width: 1360px) {
	.header__cta { display: none; }
}
@media (max-width: 1140px) {
	.menu-geo__full { display: none; }
	.menu-geo__short { display: inline; }
}
@media (min-width: 901px) and (max-width: 1000px) {
	.nav__list { gap: 16px; }
	.nav__list > li > a { font-size: 14px; }
}

@media (max-width: 1100px) {
	.cases { grid-template-columns: 1fr; }
	.chart__head { grid-template-columns: auto 1fr; }
	.chart__text { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 900px) {
	body { font-size: 16px; }

	.burger {
		display: grid; gap: 6px; place-content: center;
		width: 44px; height: 44px; margin-left: auto;
		background: none; border: 0; cursor: pointer;
	}
	.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s; }
	.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
	.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

	.nav {
		position: fixed; top: 76px; right: 0; bottom: 0; left: 0; z-index: 40;
		padding: 24px var(--gutter) 48px;
		background: #fff; overflow-y: auto;
		display: none;
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list > li { padding: 0 !important; border-bottom: 1px solid var(--line); }
	.nav__list a { display: block; padding: 16px 0; font-size: 22px; color: var(--ink); }
	.nav__list .sub-menu {
		position: static; min-width: 0; padding: 0 0 12px; border: 0;
		opacity: 1; visibility: visible; transform: none;
	}
	.nav__list .sub-menu a { padding: 8px 0 8px 16px; font-size: 16px; color: var(--muted); }
	.nav__list .sub-menu a:hover { background: none; }
	.nav__list .menu-steps > .sub-menu { width: auto; padding: 0 0 12px; }
	.nav__list .nav-step > a { padding: 10px 0 10px 4px; gap: 12px; }
	.nav-step__title { color: var(--ink); }
	.nav__list .menu-geo > a { display: block; min-height: 0; margin: 12px 0; padding: 14px 16px; }
	.menu-geo__full { display: inline; }
	.menu-geo__short { display: none; }
	.nav__list .menu-models > .sub-menu { display: block; width: auto; padding: 0 0 12px; }
	.nav__list .nav-model > a { padding: 10px 0 10px 4px; }
	.nav__list .nav-model--data > a { padding-inline: 12px; }
	body.nav-open { overflow: hidden; }
	/* backdrop-filter делает шапку контейнером для fixed-меню и обрезает его по высоте шапки */
	body.nav-open .header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }

	.hero__row,
	.approach__grid,
	.cta__grid,
	.stats { grid-template-columns: 1fr; }
	.stats__media { min-height: 0; aspect-ratio: 4 / 3; }
	.approach__body { margin-top: 0; }

	.service__link { grid-template-columns: 40px 1fr 22px; gap: 4px 16px; }
	.service__text { grid-column: 2; grid-row: 2; }
	.service__link .arrow { grid-column: 3; grid-row: 1; }

	.grid--3 { grid-template-columns: 1fr 1fr; }
	.footer__top { grid-template-columns: 1fr 1fr; }
	.footer__brand { grid-column: 1 / -1; }
	.site-map { grid-template-columns: 1fr; }

	.plan-grid { grid-template-columns: 1fr; }
	.plan-kpi, .smeta-sum { grid-template-columns: 1fr 1fr; }
	.smeta-sum > div:nth-child(3) { border-left: 0; }
	.smeta-sum > div:nth-child(n+3) { border-top: 1px solid rgba(20,20,20,.2); }
	.plan-kpi > div:nth-child(3) { border-left: 0; }
	.plan-kpi > div:nth-child(n+3) { border-top: 1px solid rgba(20,20,20,.2); }
}

@media (max-width: 600px) {
	.bf-meta__grid, .bf-sheet__meta { grid-template-columns: 1fr; }
	.bf-q__title { gap: 10px; font-size: 18px; }
	.bf-q__num { width: 24px; padding-top: 3px; }
	.bf-q__hint, .bf-q__options { margin-left: 0; }
	.bf-q__answer { width: 100%; margin-left: 0; }
	.smeta-sum { grid-template-columns: 1fr; }
	.smeta-sum > div { border-left: 0; border-top: 1px solid rgba(20,20,20,.2); padding: 20px; }
	.smeta-sum > div:first-child { border-top: 0; }
	.smeta-table table { min-width: 940px; }
	.smeta-table__work { width: 200px; min-width: 200px; }
	.smeta-table__desc { font-size: 12px; }
	.section__head--row { grid-template-columns: 1fr; }
	.grid--3 { grid-template-columns: 1fr; }
	.case { grid-template-columns: 1fr 1fr; }
	.chart__bars { overflow-x: auto; grid-auto-columns: minmax(64px, 1fr); }
	.bar { grid-template-rows: auto auto 160px; }
	.cta__contact { grid-template-columns: 1fr auto; }
	.cta__contact .kicker { grid-column: 1 / -1; }
	.footer__top { grid-template-columns: 1fr; }
	.footer__map-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
	.site-map__list--cols { grid-template-columns: 1fr; }
	.site-map__list li { flex-wrap: wrap; gap: 2px 12px; }
	.related-case__kicker { padding-inline: 20px; }
	.related-case__link { grid-template-columns: minmax(0, 1fr) 22px; padding-inline: 20px; }
	.related-case__metric { grid-column: 1 / -1; }
	.prose .brief__item { padding-left: 0; padding-top: 56px; }
	.prose .brief__item::before { top: 28px; }
	.prose .brief__q { font-size: 20px; }
	.author { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
	.author__photo { width: 64px; height: 64px; }
	.plan-month__head { grid-template-columns: auto minmax(0, 1fr); }
	.plan-month__head--plain { grid-template-columns: minmax(0, 1fr); }
	.plan-month__head .plan-copy { grid-column: 1 / -1; justify-self: start; }
	.plan-kpi { grid-template-columns: 1fr; }
	.plan-kpi > div { border-left: 0; border-top: 1px solid rgba(20,20,20,.2); }
	.plan-kpi > div:first-child { border-top: 0; }
	.plan-notes { padding: 20px; }
	.pot-form__row { flex-direction: column; }
	.pot-contact { grid-template-columns: 1fr; }
	.pot-t { min-width: 0; }
	.pot-t thead { display: none; }
	.pot-t tr { display: grid; grid-template-columns: 28px repeat(3, auto); gap: 4px 12px; justify-content: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.pot-t td { padding: 0; border: 0; }
	.pot-t__num { grid-row: 1 / 3; }
	.pot-t td.pot-t__page { grid-column: 2 / -1; }
	.pot-t td:nth-child(n+3) { grid-row: 2; padding-top: 8px; }
	.pot-t td:nth-child(4)::before { content: "+"; }
	.pot-t td:nth-child(4)::after { content: " визитов"; color: var(--muted); }
	.pot-t td:nth-child(5)::after { content: " запр."; color: var(--muted); }
	.pot-t td.pot-t__money { font-size: 17px; }
	.pot-t td:nth-child(n+4) { align-self: end; font-size: 14px; }
	/* GEO-аудит: показы и место в одну строку, страница — под ними на всю ширину */
	.geo-t tr { grid-template-columns: 28px auto auto; }
	.geo-t td:nth-child(n)::before,
	.geo-t td:nth-child(n)::after { content: none; }
	.geo-t td:nth-child(3)::after { content: " показов/мес"; color: var(--muted); }
	.geo-t td:nth-child(4)::before { content: "место "; font-size: 14px; font-weight: 400; color: var(--muted); }
	.geo-t td:nth-child(4) { align-self: baseline; font-size: 17px; }
	.geo-t td:nth-child(3) { align-self: baseline; font-size: 14px; }
	.geo-t td.geo-url { grid-row: 3; grid-column: 2 / -1; width: auto; min-width: 0; padding-top: 4px; }
	.geo-kw td:nth-child(4)::before { content: "поз. "; }
	.geo-bots tr { grid-template-columns: 1fr auto; }
	.geo-bots td:nth-child(n)::before,
	.geo-bots td:nth-child(n)::after { content: none; }
	.geo-bots td.geo-bot__name { grid-row: 1; grid-column: 1; }
	.geo-bots td.geo-bot__state { grid-row: 1; grid-column: 2; align-self: start; padding-top: 0; font-size: 15px; text-align: right; }
	.geo-bots td.geo-bot__role { grid-row: 2; grid-column: 1 / -1; padding-top: 4px; font-size: 14px; }
	.pot-q__meta { white-space: normal; }
	.comp-row { grid-template-columns: minmax(0, 1fr) 40px; padding-top: 16px; border-top: 1px solid rgba(20,20,20,.25); }
	.comp-row:first-child { padding-top: 0; border-top: 0; }
	.comp-row__num { display: none; }
	.comp-row__field { grid-column: 1; }
	.comp-row__remove { grid-column: 2; grid-row: 1; }
	.comp-form__actions .btn { width: 100%; }
	.comp-t { min-width: 0; }
	.comp-t thead { display: none; }
	.comp-t tr { position: relative; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); }
	.comp-t td { padding: 0; border: 0; font-size: 14px; }
	.comp-t__own { background: #fffbe6; }
	.comp-t td.comp-t__num { position: absolute; left: 0; top: 12px; width: 32px; }
	.comp-t td.comp-t__site, .comp-t td.comp-t__dirs { flex-basis: 100%; min-width: 0; }
	.comp-t td.comp-t__site { font-size: 15px; }
	.comp-t:not(.comp-t--summary) td:nth-child(3)::after { content: " общих"; color: var(--muted); }
	.comp-t:not(.comp-t--summary) td:nth-child(4)::before { content: "пересеч. "; color: var(--muted); }
	.comp-t:not(.comp-t--summary) td:nth-child(5)::after { content: " в ТОП-10"; color: var(--muted); }
	.comp-t:not(.comp-t--summary) td:nth-child(6)::before { content: "видимость "; color: var(--muted); }
	.comp-t--summary td:nth-child(5)::after { content: " общих запросов"; color: var(--muted); }
	.str-form__grid, .str-totals { grid-template-columns: 1fr; }
	.str-total + .str-total { border-left: 0; border-top: 1px solid rgba(20,20,20,.2); }
	.str-form__btn { width: 100%; }
	.str-t { min-width: 0; }
	.str-t td:nth-child(n+3)::after { content: none; }
	.str-t td.str-t__money { font-size: 17px; }
	.str-t td:nth-child(3)::before { content: "Яндекс "; font-weight: 400; color: var(--muted); }
	.str-t td:nth-child(4)::before { content: "Google "; font-weight: 400; color: var(--muted); }
	.str-sites td:nth-child(3)::after { content: " стр."; color: var(--muted); }
	.str-sites td:nth-child(4)::before { content: "видимость "; color: var(--muted); }
}

/* ---------- Услуги: цена и условия, автор и дата, перелинковка (inc/services.php) ---------- */
.page-meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
.page-meta a { color: var(--ink); text-underline-offset: 3px; }

.offer {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 3vw, 48px);
	margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 3vw, 40px);
	background: var(--accent);
}
.offer__kicker { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.offer__value { margin-top: 12px; font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.offer__terms { display: grid; gap: 10px; margin: 24px 0 0; font-size: 15px; }
.offer__terms div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.offer__terms dt { color: rgba(20,20,20,.65); }
.offer__terms dd { margin: 0; }
.offer__list { display: grid; gap: 10px; margin-top: 14px; padding: 0; list-style: none; font-size: 16px; line-height: 1.4; }
.offer__list li { position: relative; padding-left: 24px; }
.offer__list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 12px; height: 2px; background: var(--ink); }
.offer__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.offer__actions .btn { width: 100%; }
.offer__note { margin-top: auto; font-size: 13px; color: rgba(20,20,20,.7); }

.service__price { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

.related-services { max-width: 760px; margin-top: 56px; }
.related-services__title { margin-bottom: 16px; font-size: 23px; font-weight: 500; line-height: 1.25; }
.service__link--compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px; padding: 20px 0; }
.service__link--compact .service__name { font-size: 21px; }

.service-posts__title { margin: 12px 0 24px; }
.service-posts { display: grid; gap: 14px; padding: 0; list-style: none; font-size: 18px; }

@media (max-width: 900px) {
	.offer { grid-template-columns: 1fr 1fr; }
	.offer__actions { grid-column: 1 / -1; }
	.offer__note { margin-top: 0; }
}
@media (max-width: 600px) {
	.offer { grid-template-columns: 1fr; }
	.service__link--compact { grid-template-columns: minmax(0, 1fr) 22px; gap: 6px 16px; }
	.service__link--compact .service__text { grid-column: 1; }
	.service__link--compact .arrow { grid-column: 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
