/*
Theme Name: Dragon Compass
Theme URI: https://dragoncompass.ru/
Author: Dragon Compass
Description: Тема dragoncompass.ru — учёба в Китае. Палитра «Киноварь» (#E8432E, тушь #13213C, фон #EEF1F6), шрифты Onest и Inter. Собрана по макетам mcp-design/дизайн/макеты. Работает вместе с плагином «Dragon Compass — типы страниц».
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: dragon-compass
*/

/* Цвета, шрифты, размеры — из дизайн/tokens.css */
:root {
	--cinnabar-50:  #FDF1EF;
	--cinnabar-100: #FBDEDA;
	--cinnabar-200: #F7BDB5;
	--cinnabar-400: #ED6A5A;
	--cinnabar-500: #E8432E;
	--cinnabar-600: #D82D18;
	--cinnabar-700: #B32614;
	--cinnabar-800: #8A1D0F;
	--ink:     #13213C;
	--muted:   #5B6780;
	--line:    #D9DFEA;
	--page:    #EEF1F6;
	--surface: #FFFFFF;
	--brand:        var(--cinnabar-500);
	--button:       var(--cinnabar-600);
	--button-hover: var(--cinnabar-700);
	--link:         var(--cinnabar-700);
	--tag-bg:       var(--cinnabar-50);
	--tag-text:     var(--cinnabar-700);
	--font-display: "Onest", system-ui, sans-serif;
	--font-text:    "Inter", system-ui, sans-serif;
	--radius-card:   16px;
	--radius-button: 999px;
	--button-height: 50px;
}

/* ===== Основа ===== */
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.65 var(--font-text); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: var(--cinnabar-800); }
h1, h2, h3, h4, .display { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; margin: 0; color: inherit; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 48px 0 16px; }
h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
p { margin: 0 0 16px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--cinnabar-600); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Шапка ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(238, 241, 246, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .header { top: 32px; }
/* размытие под шапкой запирает открытое меню телефона внутри шапки (64px) — когда меню открыто и на телефоне, размытия нет */
.header:has(.is-menu-open) { backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 640px) { .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #EEF1F6; } }
.header .wp-block-navigation__responsive-container.is-menu-open { padding: 16px 20px 32px; }
.header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; }
.header .wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; line-height: 1; color: var(--ink); text-decoration: none; }
.logo img { height: 32px; width: 32px; display: block; }
.logo-t b { font: 600 19px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.logo-dark { color: #fff; }
.header .wp-block-navigation { font: 500 15px var(--font-display); }
.header .wp-block-navigation .wp-block-navigation__container { gap: 26px; }
.header .wp-block-navigation a { color: var(--ink); text-decoration: none; }
.header .wp-block-navigation a:hover, .header .wp-block-navigation .current-menu-item > a { color: var(--link); }
.header .header-cta { margin-left: auto; flex: none; }
.wp-block-navigation__responsive-container-open { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); align-items: center; justify-content: center; }
.header .wp-block-navigation { margin-left: 0; }

/* Меню на телефоне (полноэкранное) */
.wp-block-navigation__responsive-container.is-menu-open { background: var(--page) !important; color: var(--ink) !important; padding: 20px 24px 32px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; align-items: stretch; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--line); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 16px 0 !important; font: 600 20px var(--font-display); }
.wp-block-navigation__responsive-container-close { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }

/* ===== Кнопки и метки ===== */
.btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--button-height); padding: 0 24px; border-radius: var(--radius-button); background: var(--button); color: #fff; font: 500 16px/1.2 var(--font-display); text-decoration: none; border: 0; white-space: nowrap; cursor: pointer; transition: background .15s; }
.btn:hover, .wp-block-button__link:hover { background: var(--button-hover); color: #fff; }
.btn:active, .wp-block-button__link:active { background: var(--cinnabar-800); }
.btn.ghost, .is-style-outline .wp-block-button__link { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--page); color: var(--ink); border-color: var(--ink); }
.btn.sm, .header-cta .wp-block-button__link { min-height: 42px; padding: 0 18px; font-size: 15px; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.tag { display: inline-block; background: var(--tag-bg); color: var(--tag-text); border-radius: 999px; padding: 5px 12px; font: 500 13px/1.4 var(--font-display); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.crumbs { font-size: 14px; color: var(--muted); margin: 28px 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs span { margin: 0 8px; }

/* ===== Карточки и первый экран ===== */
.card { background: var(--surface); border-radius: var(--radius-card); padding: 28px; }
.hero { padding: 40px; }
.hero h1 { margin-top: 16px; max-width: 900px; }
.hero .lead { font-size: 19px; max-width: 720px; margin: 18px 0 26px; }
.hero .sub { color: var(--muted); font-size: 15px; margin-top: 10px; }
.hero.city { background: linear-gradient(120deg, #fff 55%, var(--cinnabar-50)); }
.hero.offer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero.offer .pricecard { background: var(--page); }
.hero.offer .pricecard .k { font-size: 13px; color: var(--muted); }
.hero.offer .byline { margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.fact .k { font-size: 13px; color: var(--muted); }
.fact .v { font: 700 28px/1.1 var(--font-display); letter-spacing: -0.02em; margin: 8px 0 4px; }
.fact .n { font-size: 13px; color: var(--muted); }
.fact.dark { background: var(--ink); color: #fff; }
.fact.dark .k, .fact.dark .n { color: #9FB0CC; }
.fact.accent .v { color: var(--brand); }

.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-top: 22px; line-height: 1.5; }
.ava { width: 40px; height: 40px; border-radius: 50%; background: var(--tag-bg); color: var(--tag-text); display: flex; align-items: center; justify-content: center; font: 600 14px var(--font-display); flex: none; }
.byline b { color: var(--ink); font-weight: 500; }
.check { color: #1E7F4F; font-weight: 500; }

/* ===== Раскладка с оглавлением ===== */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; margin-top: 40px; align-items: start; }
.toc { position: sticky; top: 96px; min-width: 0; }
.toc .card { padding: 20px; }
.toc b { font: 600 14px var(--font-display); display: block; margin-bottom: 10px; }
.toc a { display: block; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.4; padding: 8px 0; border-top: 1px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--link); }
.toc a.btn { display: flex; width: 100%; margin-top: 14px; padding: 0 18px; border-top: 0; color: #fff; font-weight: 500; }
.content { max-width: 760px; min-width: 0; }
.content > .card { padding: 36px 40px; }
.layout.solo { grid-template-columns: minmax(0, 1fr); }
.layout.solo .content { margin: 0 auto; }

/* ===== Текст статьи (содержимое из редактора) ===== */
.entry > :first-child { margin-top: 0; }
.entry > :last-child { margin-bottom: 0; }
.entry ul, .entry ol { margin: 0 0 18px; padding-left: 22px; }
.entry li { margin: 6px 0; }
.entry li::marker { color: var(--brand); }
.entry strong { font-weight: 600; }
.entry .wp-block-table { margin: 8px 0 22px; overflow-x: auto; }
.tbl, .entry .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl th, .entry .wp-block-table th, .entry .wp-block-table thead td { text-align: left; font: 600 13px/1.4 var(--font-display); color: var(--muted); padding: 10px 12px; background: var(--page); border: 0; }
.tbl tr > th:first-child, .entry .wp-block-table thead th:first-child { border-radius: 10px 0 0 10px; }
.tbl tr > th:last-child, .entry .wp-block-table thead th:last-child { border-radius: 0 10px 10px 0; }
.tbl td, .entry .wp-block-table td { padding: 12px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry .wp-block-table table.has-fixed-layout { table-layout: auto; }
.entry .wp-block-table figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.scroll { overflow-x: auto; }
.entry .wp-block-buttons { margin: 24px 0; }
.entry .nodata { color: var(--muted); font-style: italic; }

/* Врезки */
.cta { background: var(--tag-bg); border-radius: var(--radius-card); padding: 24px 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; margin: 28px 0; }
.cta b { font: 600 19px/1.3 var(--font-display); display: block; }
.cta p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.note, .entry .is-style-note { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; margin: 20px 0; font-size: 16px; }
.note b { font-family: var(--font-display); }

/* Вопросы — блок «Подробности» */
details { border-top: 1px solid var(--line); padding: 16px 0; margin: 0; }
details:last-of-type, details + :not(details) { border-bottom: 0; }
.entry details:not(:has(+ details)) { border-bottom: 1px solid var(--line); margin-bottom: 24px; }
summary { cursor: pointer; font: 600 17px/1.35 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin: 10px 0 0; }

.sources, .entry .sources { font-size: 14px; color: var(--muted); }
.sources li { margin: 6px 0; }

/* Похожие */
.related h2 { margin-top: 56px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini { text-decoration: none; color: var(--ink); display: block; transition: transform .15s, box-shadow .15s; }
.mini:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 33, 60, .08); }
.mini .tag { margin-bottom: 12px; }
.mini b { font: 600 18px/1.3 var(--font-display); display: block; }
.mini span:not(.tag) { font-size: 14px; color: var(--muted); display: block; margin-top: 6px; }
.mini.dark { background: var(--ink); color: #fff; }
.mini.dark b { color: #fff; }
.mini.dark span:not(.tag) { color: #9FB0CC; }

/* Финальный блок с заявкой */
.final { background: var(--ink); color: #fff; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 56px 0; }
.final h2 { margin: 0 0 10px; color: #fff; }
.final p { color: #C7D1E2; margin: 0; }
.final .form { display: grid; gap: 10px; }
.final input { height: 50px; border-radius: 12px; border: 0; padding: 0 16px; font: 16px var(--font-text); color: var(--ink); width: 100%; }
.final .btn { justify-content: center; width: 100%; }
.final small { color: #9FB0CC; font-size: 13px; }

/* ===== Подвал ===== */
.bigfoot { background: var(--ink); color: #9FB0CC; padding: 56px 0 28px; margin-top: 72px; font-size: 14px; }
.bigfoot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.bigfoot .logo { margin-bottom: 16px; }
.bigfoot .logo img { height: 34px; width: 34px; }
.bigfoot h4 { font: 600 13px var(--font-display); color: #fff; text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 14px; }
.bigfoot p { margin: 0 0 14px; }
.bigfoot a { color: #C7D1E2; text-decoration: none; }
.bigfoot a:hover { color: #fff; }
.bigfoot ul { list-style: none; margin: 0; padding: 0; }
.bigfoot li { padding: 4px 0; margin: 0; }
.bigfoot .contacts a { color: #fff; font: 500 16px var(--font-display); }
.bigfoot .legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; flex-wrap: wrap; }
.bigfoot .legal p { margin: 0; }
.bigfoot .legal .links { flex: none; }

/* Плавающая кнопка Телеграма */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #229ED9; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(19, 33, 60, .25); text-decoration: none; transition: transform .15s; }
.fab:hover { color: #fff; transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; margin-left: -2px; }

/* ===== Услуга ===== */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step::before { counter-increment: s; content: counter(s); font: 700 34px var(--font-display); color: var(--brand); display: block; margin-bottom: 8px; }
.step b { font: 600 17px var(--font-display); display: block; margin-bottom: 6px; }
.step span { font-size: 15px; color: var(--muted); }
.price { font: 800 44px/1.1 var(--font-display); letter-spacing: -0.03em; margin: 4px 0; }
.price.ask { font-size: 30px; }

/* ===== Каталог вузов ===== */
.search { display: flex; gap: 10px; margin-top: 22px; max-width: 760px; }
.search input { flex: 1; height: 54px; border-radius: 999px; border: 1px solid var(--line); padding: 0 22px; font: 16px var(--font-text); background: var(--surface); color: var(--ink); min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 14px var(--font-display); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip small { color: var(--muted); font-weight: 500; }
.chip.on small { color: #9FB0CC; }
.cat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.filters { position: sticky; top: 96px; padding: 22px; }
.filters h4 { font: 600 14px var(--font-display); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.opt { display: flex; align-items: center; gap: 10px; font-size: 15px; padding: 5px 0; cursor: pointer; }
.opt input { accent-color: var(--button); width: 18px; height: 18px; margin: 0; }
.opt span { margin-left: auto; color: var(--muted); font-size: 13px; }
.filters .btn { width: 100%; margin-top: 18px; }
.filters .reset { display: block; text-align: center; font-size: 14px; margin-top: 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar b { font: 600 18px var(--font-display); }
.ucards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ucard { display: flex; flex-direction: column; gap: 12px; }
.ucard .top { display: flex; gap: 14px; align-items: flex-start; }
.ucard .ulogo { width: 52px; height: 52px; border-radius: 14px; background: var(--page); display: flex; align-items: center; justify-content: center; font: 700 15px var(--font-display); color: var(--ink); flex: none; }
.ucard h3 { margin: 0; font-size: 18px; }
.ucard h3 a { color: var(--ink); text-decoration: none; }
.ucard .city { font-size: 14px; color: var(--muted); }
.ucard .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--page); border-radius: 12px; padding: 12px 14px; }
.ucard .rows div { font-size: 13px; color: var(--muted); }
.ucard .rows b { display: block; font: 600 16px var(--font-display); color: var(--ink); margin-top: 2px; }
.ucard .foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: auto; }
.promo { background: var(--ink); color: #fff; justify-content: space-between; }
.promo h3 { color: #fff; font-size: 22px; }
.promo p { color: #C7D1E2; font-size: 15px; }
.empty { text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.pager a, .pager span { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; font: 600 15px var(--font-display); }
.pager .current { background: var(--ink); color: #fff; }
.mfilters, .mfilters-box { display: none; }
.mfilters-box { margin-bottom: 12px; }
.mfilters-box summary.chip { display: inline-flex; }
.mfilters-box summary::after { content: none; }
.mfilters-box > .card { margin-top: 10px; }
.mfilters-box[open] summary { margin-bottom: 0; }
.layout:not(:has(.toc)) { grid-template-columns: minmax(0, 1fr); }
.layout:not(:has(.toc)) .content { max-width: 860px; }

/* Список записей (архивы, блог) */
.postlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }

/* ===== Планшет 641–1100 ===== */
@media (min-width: 641px) and (max-width: 1100px) {
	.layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
	.cat { grid-template-columns: 240px minmax(0, 1fr); }
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ucards { grid-template-columns: minmax(0, 1fr); }
	.grid3, .postlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.header .wrap { gap: 20px; }
	.header .wp-block-navigation .wp-block-navigation__container { gap: 16px; }
	.header .wp-block-navigation { font-size: 14px; }
	.final { grid-template-columns: minmax(0, 1fr); }
	.hero.offer { grid-template-columns: minmax(0, 1fr); }
	.bigfoot .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bigfoot .contacts { grid-column: 1 / -1; }
}

/* Планшет вертикально 641–900: оглавление сверху, одна колонка */
@media (min-width: 641px) and (max-width: 900px) {
	.layout, .cat { grid-template-columns: minmax(0, 1fr); }
	.toc, .filters { position: static; }
	.toc a:nth-of-type(n+5):not(.btn) { display: none; }
	.filters { display: none; }
	.mfilters-box { display: block; }
	.ucards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.logo img { height: 30px; width: 30px; }
	.hero { padding: 32px; }
	.content { max-width: none; }
}

/* ===== Телефон ≤640 ===== */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.header .wrap { height: 64px; gap: 12px; justify-content: space-between; }
	.logo img { height: 29px; width: 29px; }
	.logo { gap: 8px; }
	.logo-t b { font-size: 17px; }
	.header .header-cta { display: none; }
	.hero { padding: 24px 20px; }
	.hero .lead { font-size: 17px; }
	.hero.offer { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.bento .card { padding: 16px; }
	.fact .v { font-size: 20px; }
	.layout { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
	.toc { position: static; }
	.toc a:nth-of-type(n+4):not(.btn) { display: none; }
	.content > .card { padding: 24px 20px; }
	.cta { flex-direction: column; align-items: flex-start; padding: 20px; }
	.grid3, .steps, .postlist { grid-template-columns: minmax(0, 1fr); }
	.final { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; margin: 40px 0; }
	.btn, .wp-block-button, .wp-block-button__link { width: 100%; }
	.btn, .wp-block-button__link { white-space: normal; padding: 12px 20px; text-align: center; }
	.actions .btn { width: 100%; }
	.cat { grid-template-columns: minmax(0, 1fr); }
	.filters { display: none; }
	.mfilters-box { display: block; border: 0; padding: 0; }
	.ucards { grid-template-columns: minmax(0, 1fr); }
	.search { flex-direction: column; }
	.search input { flex: none; min-height: 54px; }
	.hero .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; }
	.hero .chips .chip { flex: none; }
	.bigfoot { padding: 40px 0 96px; margin-top: 48px; }
	.bigfoot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.bigfoot .contacts { grid-column: 1 / -1; }
	.bigfoot .legal { flex-direction: column; gap: 8px; }
	.fab { right: 16px; bottom: 16px; }
	.crumbs { margin: 18px 0 12px; font-size: 13px; }
}

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

/* Первый блок страницы без крошек */
main.wrap > .hero:first-child { margin-top: 28px; }

/* Таблицы на узких экранах не сжимаются, а прокручиваются вбок */
@media (max-width: 900px) {
	.entry .wp-block-table table { min-width: 560px; }
	.entry .wp-block-table { -webkit-overflow-scrolling: touch; }
}

/* Таблицы: без жирной линии под шапкой, слова не рвутся посередине */
.entry .wp-block-table thead { border-bottom: 0; }
.entry .wp-block-table tfoot { border-top: 0; }
.entry .wp-block-table td, .entry .wp-block-table th { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 1100px) {
	.entry .wp-block-table td, .entry .wp-block-table th { min-width: 130px; }
}

/* Галочка согласия на обработку данных (перед кнопкой отправки) */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--button); }
.consent.dark { color: #C7D1E2; }
.consent.dark a { color: #fff; }
.final .consent input[type="checkbox"] { height: 18px; }

/* Подвал: реквизиты и правовые ссылки */
.bigfoot .legal .links a { margin-left: 18px; white-space: nowrap; }
.bigfoot .legal .links a:first-child { margin-left: 0; }
@media (max-width: 640px) { .bigfoot .legal .links a { display: inline-block; margin: 0 16px 6px 0; } }

/* Обычные страницы: отступ под заголовком */
.content .wp-block-post-title { margin-bottom: 24px; }

/* База фактов: пометки у цифр-исключений («оценка», «по правилам 2026», «уточняем») и статусы сроков */
.dc-flag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #FFF4CC; color: #7A5A00; font: 600 11px/1.5 var(--font-body, Inter, sans-serif); letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.dc-srok-hot { color: #B32614; font-weight: 600; }
.dc-srok-closed, .dc-srok-none { color: #5B6780; }
