/*
Theme Name: dds_m2b-agency.ru
Theme URI: https://m2b-agency.ru/
Author: Алексей Романов
Description: Информационная тема для образовательного портала об учебных программах, рейтингах колледжей и вузов и digital-профессиях. Японский минимализм с ярким поп-акцентом: бирюзовый и глубокий индиго на светлом фоне.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtbag
*/

/* ---------- Токены ---------- */
:root {
	--mtb-bg: #F7F9FC;
	--mtb-bg-alt: #EDF2F7;
	--mtb-indigo: #0B1B3A;
	--mtb-indigo-2: #13284F;
	--mtb-white: #FFFFFF;
	--mtb-text: #0B1B3A;
	--mtb-teal: #00B8A9;
	--mtb-teal-dark: #008F83;
	--mtb-coral: #FF6B6B;
	--mtb-muted: #6B7A8F;
	--mtb-line: #DCE3EC;
	--mtb-shadow: 0 4px 12px rgba(11, 27, 58, 0.08);
	--mtb-shadow-up: 0 8px 24px rgba(11, 27, 58, 0.12);
	--mtb-font-head: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--mtb-font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--mtb-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Скрытие по атрибуту hidden (до основных стилей) ---------- */
.mtb-cookie[hidden] { display: none !important; }

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--mtb-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--mtb-text);
	background-color: var(--mtb-bg);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 520'%3E%3Cpath fill='%2300B8A9' fill-opacity='0.08' d='M118 64c62-46 168-58 252-34 70 20 140 40 178 96 40 58 34 140-8 198-46 64-130 96-210 112-88 18-176 22-238-24C30 368 4 288 22 214 38 146 62 106 118 64z'/%3E%3Cpath fill='none' stroke='%2300B8A9' stroke-opacity='0.14' stroke-width='3' d='M180 150h120M180 182h170M180 214h140M330 150v130'/%3E%3C/svg%3E"),
		repeating-linear-gradient(45deg, rgba(226, 232, 240, 0.3) 0 1px, transparent 1px 24px),
		repeating-linear-gradient(-45deg, rgba(226, 232, 240, 0.3) 0 1px, transparent 1px 24px);
	background-repeat: no-repeat, repeat, repeat;
	background-position: right -140px top 60px, 0 0, 0 0;
	background-size: 560px auto, auto, auto;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mtb-font-head);
	font-weight: 800;
	line-height: 1.2;
	color: var(--mtb-indigo);
	margin: 1.6em 0 0.6em;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
	hyphens: auto;
}
h1 { font-size: 3.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

h2::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 0.35em;
	border-radius: 50%;
	background: var(--mtb-coral);
	vertical-align: top;
	position: relative;
	top: 0.3em;
}

p { margin: 0 0 1.15em; }

p, li, td, th, dd, blockquote {
	overflow-wrap: break-word;
	hyphens: auto;
}

a {
	color: var(--mtb-teal-dark);
	text-decoration: none;
	transition: color .25s var(--mtb-ease);
}

.mtb-content a,
.mtb-comments a,
.widget_text a,
.mtb-card-excerpt a {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: 0% 2px;
	background-position: 0 100%;
	transition: background-size .3s var(--mtb-ease), color .25s;
}
.mtb-content a:hover,
.mtb-comments a:hover,
.widget_text a:hover,
.mtb-card-excerpt a:hover { background-size: 100% 2px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--mtb-coral);
	outline-offset: 2px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 1px solid #C9D3E0; }
th, td { border: 1px solid #C9D3E0; padding: 0.6em 0.8em; text-align: left; vertical-align: top; }
th { background: var(--mtb-bg-alt); font-family: var(--mtb-font-head); font-weight: 700; }

blockquote {
	margin: 1.6em 0;
	padding: 1.2em 1.5em;
	border-left: 4px solid var(--mtb-teal);
	background: var(--mtb-white);
	border-radius: 0 8px 8px 0;
	box-shadow: var(--mtb-shadow);
	font-family: var(--mtb-font-head);
	font-size: 1.15rem;
	font-weight: 600;
}
blockquote p:last-child { margin-bottom: 0; }

pre {
	overflow-x: auto;
	padding: 1em 1.2em;
	background: var(--mtb-indigo);
	color: #E6EDF7;
	border-radius: 8px;
	font-size: 0.9rem;
}

hr { border: 0; border-top: 2px dashed rgba(0, 184, 169, 0.45); margin: 2.5em 0; width: 40%; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.mtb-skip:focus {
	position: absolute; left: 1rem; top: 1rem; z-index: 200;
	width: auto; height: auto; clip: auto;
	padding: 0.6em 1em; background: var(--mtb-white); color: var(--mtb-indigo);
	border-radius: 4px;
}

/* ---------- Контейнер (единственное ограничение ширины) ---------- */
.mtb-shell {
	width: 85%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Верхняя полоса ---------- */
.mtb-topline {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	z-index: 120;
	background: var(--mtb-teal);
	transition: background-color .4s var(--mtb-ease);
	pointer-events: none;
}
.mtb-topline.is-scrolled { background: var(--mtb-coral); }
body.admin-bar .mtb-topline { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mtb-topline { top: 46px; } }

/* ---------- Шапка ---------- */
.mtb-header {
	background: var(--mtb-indigo);
	color: #E6EDF7;
	padding: 1.4rem 0 1.2rem;
	position: relative;
}
.mtb-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.mtb-brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	flex: 1 1 auto;
	color: #FFFFFF;
}
.mtb-brand:hover { color: #FFFFFF; }
.mtb-brand-mark { flex: 0 0 auto; display: block; }
.mtb-brand-mark svg,
.brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; }
.mtb-brand-text { min-width: 0; }
.mtb-brand-name {
	display: block;
	font-family: var(--mtb-font-head);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.3;
	color: #FFFFFF;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mtb-brand-desc {
	display: block;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #9FB0C8;
	margin-top: 0.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mtb-nav-toggle {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.9rem;
	background: transparent;
	color: #FFFFFF;
	border: 2px solid var(--mtb-teal);
	border-radius: 4px;
	font: 600 0.9rem var(--mtb-font-head);
	cursor: pointer;
}
.mtb-nav-toggle-bars { display: block; width: 18px; height: 12px; position: relative; }
.mtb-nav-toggle-bars::before,
.mtb-nav-toggle-bars::after,
.mtb-nav-toggle-bars span {
	content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.mtb-nav-toggle-bars::before { top: 0; }
.mtb-nav-toggle-bars span { top: 5px; }
.mtb-nav-toggle-bars::after { bottom: 0; }

.mtb-nav { flex: 0 0 auto; }
.mtb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.mtb-nav a {
	display: inline-block;
	padding: 0.35rem 0;
	color: #E6EDF7;
	font-family: var(--mtb-font-head);
	font-weight: 700;
	font-size: 0.98rem;
	position: relative;
}
.mtb-nav a::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 100%; height: 2px;
	background: var(--mtb-teal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--mtb-ease);
}
.mtb-nav a:hover { color: #FFFFFF; }
.mtb-nav a:hover::after,
.mtb-nav .current-menu-item > a::after { transform: scaleX(1); }
.mtb-nav .current-menu-item > a { color: var(--mtb-teal); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
	font-size: 0.88rem;
	color: var(--mtb-muted);
	padding: 1.6rem 0 0;
	overflow-wrap: break-word;
}
.breadcrumbs a { color: var(--mtb-teal-dark); font-weight: 600; }
.breadcrumbs a:hover { color: var(--mtb-coral); }
.breadcrumbs .sep { margin: 0 0.4em; color: var(--mtb-teal); }

/* ---------- Раскладки ---------- */
.mtb-main { padding: 0 0 80px; }
.layout-single { display: block; }
.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
	column-gap: 6%;
	align-items: start;
}
.content-area { min-width: 0; }

/* ---------- Заголовок раздела / страницы ---------- */
.mtb-pagehead {
	position: relative;
	margin: 1.4rem 0 2.6rem;
	padding: 2.6rem 2.4rem;
	border-radius: 8px;
	color: #FFFFFF;
	background-image:
		radial-gradient(rgba(255, 255, 255, 0.05) 1.4px, transparent 1.6px),
		linear-gradient(90deg, #00B8A9 0%, #0B1B3A 100%);
	background-size: 16px 16px, auto;
	overflow: hidden;
}
.mtb-pagehead::after {
	content: "";
	position: absolute; right: 1.6rem; bottom: 1.4rem;
	width: 12px; height: 12px; border-radius: 50%;
	background: var(--mtb-coral);
}
.mtb-pagehead h1 {
	margin: 0;
	color: #FFFFFF;
	font-size: 2.6rem;
}
.mtb-pagehead p { margin: 0.6rem 0 0; color: #D7E2F0; max-width: 60ch; }

.mtb-entry-title { font-size: 2.6rem; margin: 1.4rem 0 0.8rem; }

/* ---------- Заголовки секций ---------- */
.mtb-sec-title {
	margin: 0 0 2.4rem;
	padding-left: 1.1rem;
	border-left: 4px solid var(--mtb-teal);
	font-size: 2.2rem;
	max-width: 22ch;
}
.mtb-sec-lead {
	margin: -1.2rem 0 2.4rem;
	padding-left: calc(1.1rem + 4px);
	color: var(--mtb-muted);
	max-width: 58ch;
}

/* ---------- Кнопки ---------- */
.mtb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.6em;
	border-radius: 4px;
	border: 2px solid var(--mtb-teal);
	font-family: var(--mtb-font-head);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .3s var(--mtb-ease), border-color .3s var(--mtb-ease), color .3s var(--mtb-ease), transform .3s var(--mtb-ease);
}
.mtb-btn--fill { background: var(--mtb-teal); color: #FFFFFF; }
.mtb-btn--ghost { background: transparent; color: var(--mtb-teal-dark); }
.mtb-btn:hover {
	background: var(--mtb-coral);
	border-color: var(--mtb-coral);
	color: #FFFFFF;
	transform: translateY(-2px);
}
.mtb-hero .mtb-btn--ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.7); }
.mtb-hero .mtb-btn--ghost:hover { border-color: var(--mtb-coral); }

/* ---------- Разделитель секций ---------- */
.mtb-divider {
	position: relative;
	width: 38%;
	height: 0;
	margin: 0 0 0 7.5%;
	border-top: 2px dashed rgba(0, 184, 169, 0.7);
}
.mtb-divider::after {
	content: "";
	position: absolute;
	right: -5px; top: -6px;
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--mtb-teal);
}

/* ---------- Главная: секции ---------- */
.mtb-sec { padding: 80px 0; position: relative; }
.mtb-sec--base { background-color: transparent; }
.mtb-sec--alt { background-color: var(--mtb-bg-alt); }

/* Hero */
.mtb-hero {
	position: relative;
	padding: 0;
	min-height: 560px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--mtb-indigo);
}
.mtb-hero-media { position: absolute; inset: 0; }
.mtb-hero-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mtb-hero-media::after {
	content: "";
	position: absolute; inset: 0;
	background-image:
		radial-gradient(rgba(255, 255, 255, 0.05) 1.4px, transparent 1.6px),
		linear-gradient(90deg, rgba(11, 27, 58, 0.92) 0%, rgba(11, 27, 58, 0.7) 50%, rgba(0, 184, 169, 0.25) 100%);
	background-size: 16px 16px, auto;
}
.mtb-hero-inner { position: relative; z-index: 1; padding: 96px 0; }
.mtb-hero-text { max-width: 640px; }
.mtb-hero h1 {
	margin: 0 0 1.2rem;
	color: #FFFFFF;
	font-size: 3.5rem;
	line-height: 1.08;
}
.mtb-hero-sub {
	margin: 0 0 2.2rem;
	color: #CBD5E1;
	font-size: 1.15rem;
	max-width: 46ch;
}
.mtb-hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.mtb-hero-dot {
	position: absolute;
	right: 7.5%;
	bottom: 56px;
	z-index: 1;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--mtb-coral);
	box-shadow: 0 0 0 10px rgba(255, 107, 107, 0.15);
}

/* Статистика */
.mtb-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}
.mtb-stat {
	min-width: 0;
	padding: 0.6rem 1.8rem;
	border-left: 2px dashed rgba(107, 122, 143, 0.35);
}
.mtb-stat:first-child { border-left: 0; padding-left: 0; }
.mtb-stat-num {
	display: block;
	font-family: var(--mtb-font-head);
	font-weight: 800;
	font-size: 3.4rem;
	line-height: 1;
	color: var(--mtb-teal);
	letter-spacing: -0.03em;
	margin-bottom: 0.7rem;
}
.mtb-stat-label { display: block; color: var(--mtb-muted); font-size: 0.98rem; line-height: 1.5; }

/* Сетка разделов 2x2 */
.mtb-guide-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	max-width: 1040px;
}
.mtb-guide-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--mtb-white);
	border-radius: 8px;
	box-shadow: var(--mtb-shadow);
	overflow: hidden;
	min-width: 0;
	transition: transform .3s var(--mtb-ease), box-shadow .3s var(--mtb-ease);
}
.mtb-guide-card:nth-child(even) { transform: translateY(2.2rem); }
.mtb-guide-card::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--mtb-teal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--mtb-ease);
	z-index: 2;
}
.mtb-guide-card:hover { transform: translateY(-4px); box-shadow: var(--mtb-shadow-up); }
.mtb-guide-card:nth-child(even):hover { transform: translateY(calc(2.2rem - 4px)); }
.mtb-guide-card:hover::before { transform: scaleX(1); }
.mtb-guide-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.mtb-guide-body { flex: 1; padding: 1.5rem 1.6rem 1.7rem; min-width: 0; }
.mtb-guide-body h3 { margin: 0 0 0.5rem; font-size: 1.3rem; transition: color .25s; }
.mtb-guide-body h3 a { color: var(--mtb-indigo); }
.mtb-guide-card:hover h3 a { color: var(--mtb-teal-dark); }
.mtb-guide-body p { margin: 0; color: var(--mtb-muted); font-size: 0.98rem; }
.mtb-guide-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* FAQ */
.mtb-faq { max-width: 860px; margin-left: 4%; }
.mtb-faq-item { border-bottom: 2px dashed rgba(0, 184, 169, 0.45); }
.mtb-faq-item:first-child { border-top: 2px dashed rgba(0, 184, 169, 0.45); }
.mtb-faq-item summary {
	list-style: none;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.35rem 3rem 1.35rem 0;
	font-family: var(--mtb-font-head);
	font-weight: 700;
	font-size: 1.22rem;
	line-height: 1.4;
	color: var(--mtb-indigo);
	cursor: pointer;
}
.mtb-faq-item summary::-webkit-details-marker { display: none; }
.mtb-faq-item summary::before {
	content: "";
	flex: 0 0 auto;
	width: 9px; height: 9px;
	margin-top: 0.55em;
	border-radius: 50%;
	background: var(--mtb-coral);
}
.mtb-faq-item summary::after {
	content: "";
	position: absolute;
	right: 0.4rem; top: 1.75rem;
	width: 12px; height: 12px;
	border-right: 2px solid var(--mtb-teal);
	border-bottom: 2px solid var(--mtb-teal);
	transform: rotate(45deg);
	transition: transform .3s var(--mtb-ease);
}
.mtb-faq-item[open] summary::after { transform: rotate(-135deg); top: 2rem; }
.mtb-faq-item summary:hover { color: var(--mtb-teal-dark); }
.mtb-faq-answer {
	margin: 0 0 1.5rem calc(9px + 1rem);
	padding: 0.1rem 0 0.1rem 1.2rem;
	border-left: 2px solid var(--mtb-teal);
	color: var(--mtb-muted);
}
.mtb-faq-answer p:last-child { margin-bottom: 0; }

/* Последние записи */
.mtb-latest-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2.4rem;
}
.mtb-latest-head .mtb-sec-title { margin-bottom: 0; }

/* ---------- Карточки записей ---------- */
.mtb-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}
.layout-with-sidebar .mtb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--mtb-white);
	border-radius: 8px;
	box-shadow: var(--mtb-shadow);
	overflow: hidden;
	transition: transform .3s var(--mtb-ease), box-shadow .3s var(--mtb-ease);
}
.card::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--mtb-teal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--mtb-ease);
	z-index: 2;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--mtb-shadow-up); }
.card:hover::before { transform: scaleX(1); }
.card-thumb { display: block; overflow: hidden; background: var(--mtb-bg-alt); }
.card-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.4rem 1.5rem 1.6rem;
	min-width: 0;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.card-title { margin: 0 0 0.6rem; font-size: 1.22rem; line-height: 1.3; }
.card-title::after { display: none; }
.card-title a { color: var(--mtb-indigo); transition: color .25s; }
.card:hover .card-title a { color: var(--mtb-teal-dark); }
.card-meta { font-size: 0.85rem; color: var(--mtb-muted); margin-bottom: 0.7rem; }
.card-excerpt { color: #3A4A63; font-size: 0.98rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
	align-self: flex-start;
	margin-top: 0.9rem;
	font-family: var(--mtb-font-head);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--mtb-teal-dark);
	position: relative;
}
.card-more::after {
	content: "";
	position: absolute; left: 0; bottom: -2px;
	width: 100%; height: 2px;
	background: currentColor;
	transform: scaleX(0); transform-origin: left;
	transition: transform .3s var(--mtb-ease);
}
.card-more:hover { color: var(--mtb-coral); }
.card-more:hover::after { transform: scaleX(1); }

/* Теги категорий */
.mtb-tag {
	display: inline-block;
	padding: 0.2em 0.6em;
	border-radius: 2px;
	background: rgba(0, 184, 169, 0.15);
	color: var(--mtb-teal-dark);
	font-family: var(--mtb-font-head);
	font-weight: 700;
	font-size: 0.78rem;
	line-height: 1.5;
	transition: background-color .25s, color .25s;
}
.mtb-tag:hover { background: var(--mtb-coral); color: #FFFFFF; }

.mtb-empty {
	padding: 2rem 2.2rem;
	background: var(--mtb-white);
	border-radius: 8px;
	box-shadow: var(--mtb-shadow);
	color: var(--mtb-muted);
}

/* ---------- Пагинация (type => plain) ---------- */
.mtb-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 3rem;
}
.mtb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.7rem;
	height: 2.7rem;
	padding: 0 0.85rem;
	border: 2px solid var(--mtb-teal);
	border-radius: 4px;
	background: var(--mtb-white);
	color: var(--mtb-teal-dark);
	font-family: var(--mtb-font-head);
	font-weight: 700;
	transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.mtb-pagination a.page-numbers:hover {
	background: var(--mtb-coral);
	border-color: var(--mtb-coral);
	color: #FFFFFF;
	transform: translateY(-2px);
}
.mtb-pagination .page-numbers.current { background: var(--mtb-teal); color: #FFFFFF; }
.mtb-pagination .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 0.2rem; color: var(--mtb-muted); }

/* ---------- Запись / страница ---------- */
.mtb-article { min-width: 0; }
.mtb-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; color: var(--mtb-muted); font-size: 0.9rem; margin-bottom: 1.6rem; }
.mtb-article-thumb { margin: 0 0 2rem; }
.mtb-article-thumb img { display: block; width: 100%; height: auto; border-radius: 8px; }
.mtb-content { min-width: 0; }
.mtb-content > *:first-child { margin-top: 0; }
.mtb-content img { display: block; height: auto; border-radius: 6px; }
.mtb-content ul,
.mtb-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.mtb-content li { margin-bottom: 0.4em; }
.mtb-content ul li::marker { color: var(--mtb-teal); }
.mtb-content figure { margin: 1.8em 0; }
.mtb-content figcaption { font-size: 0.85rem; color: var(--mtb-muted); margin-top: 0.5em; }
.mtb-content .wp-block-table { overflow-x: auto; }
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.mtb-post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2.2rem; }

.mtb-post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.2rem;
	margin-top: 3rem;
}
.mtb-post-nav a {
	display: block;
	padding: 1.1rem 1.3rem;
	background: var(--mtb-white);
	border-radius: 8px;
	box-shadow: var(--mtb-shadow);
	color: var(--mtb-indigo);
	font-family: var(--mtb-font-head);
	font-weight: 700;
	min-width: 0;
	transition: transform .3s var(--mtb-ease), box-shadow .3s var(--mtb-ease);
}
.mtb-post-nav a:hover { transform: translateY(-3px); box-shadow: var(--mtb-shadow-up); color: var(--mtb-teal-dark); }
.mtb-post-nav small { display: block; color: var(--mtb-muted); font-weight: 600; font-family: var(--mtb-font-body); margin-bottom: 0.3rem; }
.mtb-post-nav-next { text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; padding-top: 1.4rem; }
.sidebar .widget {
	background: #FFFFFF;
	color: var(--mtb-indigo);
	padding: 1.6rem 1.6rem 1.4rem;
	border-radius: 8px;
	box-shadow: var(--mtb-shadow);
	margin-bottom: 1.8rem;
}
.sidebar .widget-title {
	margin: 0 0 1rem;
	padding-left: 0.8rem;
	border-left: 4px solid var(--mtb-teal);
	font-size: 1.15rem;
	color: var(--mtb-indigo);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.65rem 0; border-bottom: 1px dashed #CFD8E4; line-height: 1.45; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--mtb-indigo); font-weight: 600; }
.sidebar .widget a:hover { color: var(--mtb-teal-dark); }
.sidebar .widget .post-date { display: block; font-size: 0.8rem; color: var(--mtb-muted); }
.sidebar .widget p { color: #3A4A63; }

/* ---------- Поиск ---------- */
.mtb-search { display: flex; gap: 0.5rem; max-width: 520px; }
.mtb-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.8em 1em;
	border: 2px solid #C9D3E0;
	border-radius: 4px;
	background: #FFFFFF;
	color: var(--mtb-indigo);
	font: inherit;
}
.mtb-search input[type="search"]:focus { border-color: var(--mtb-teal); outline: none; }
.mtb-search .mtb-btn { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.mtb-404 { padding: 2rem 0 1rem; max-width: 720px; }
.mtb-404-code {
	display: block;
	font-family: var(--mtb-font-head);
	font-weight: 800;
	font-size: 7rem;
	line-height: 1;
	color: var(--mtb-teal);
	letter-spacing: -0.04em;
}
.mtb-404 h1 { margin-top: 0.6rem; font-size: 2.4rem; }
.mtb-404 .mtb-search { margin: 1.8rem 0; }

/* ---------- Комментарии ---------- */
.mtb-comments { margin-top: 3.5rem; }
.mtb-comments-title { font-size: 1.6rem; }
.mtb-comment-list,
.mtb-comment-list .children { list-style: none; margin: 0; padding: 0; }
.mtb-comment-list .children { padding-left: 2rem; }
.mtb-comment-body {
	background: #FFFFFF;
	padding: 1.3rem 1.5rem;
	border-radius: 8px;
	box-shadow: var(--mtb-shadow);
	margin-bottom: 1.2rem;
}
.mtb-comment-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.mtb-comment-head img { display: block; border-radius: 50%; }
.mtb-comment-author { font-family: var(--mtb-font-head); font-weight: 700; }
.mtb-comment-date { font-size: 0.82rem; color: var(--mtb-muted); }
.mtb-comment-wait { font-size: 0.88rem; color: var(--mtb-coral); }
.mtb-comment-text p:last-child { margin-bottom: 0.4rem; }
.comment-reply-link { font-weight: 700; font-size: 0.9rem; }
.mtb-comments .comment-respond { margin-top: 2rem; }
.mtb-comments .comment-form p { margin-bottom: 1rem; }
.mtb-comments .comment-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.mtb-comments .comment-form input[type="text"],
.mtb-comments .comment-form input[type="email"],
.mtb-comments .comment-form input[type="url"],
.mtb-comments .comment-form textarea {
	width: 100%;
	padding: 0.75em 0.9em;
	border: 2px solid #C9D3E0;
	border-radius: 4px;
	background: #FFFFFF;
	color: var(--mtb-indigo);
	font: inherit;
}
.mtb-comments .comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.mtb-comments .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.mtb-comments .form-submit .submit {
	padding: 0.85em 1.6em;
	border: 2px solid var(--mtb-teal);
	border-radius: 4px;
	background: var(--mtb-teal);
	color: #FFFFFF;
	font: 700 1rem var(--mtb-font-head);
	cursor: pointer;
	transition: background-color .3s, border-color .3s, transform .3s;
}
.mtb-comments .form-submit .submit:hover { background: var(--mtb-coral); border-color: var(--mtb-coral); transform: translateY(-2px); }
.mtb-comments-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; }

/* ---------- Подвал ---------- */
.mtb-footer {
	background: var(--mtb-indigo);
	color: #B9C6D8;
	padding: 72px 0 0;
	position: relative;
	overflow: hidden;
}
.mtb-footer::before {
	content: "";
	position: absolute; left: 7.5%; top: 0;
	width: 38%; height: 0;
	border-top: 2px dashed rgba(0, 184, 169, 0.7);
}
.mtb-footer-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 3rem;
	padding-bottom: 3rem;
}
.mtb-footer-col { min-width: 0; }
.mtb-footer .widget { margin-bottom: 1.5rem; color: #B9C6D8; }
.mtb-footer .widget-title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	color: #FFFFFF;
}
.mtb-footer .widget-title::after { display: none; }
.mtb-footer .widget p { color: #B9C6D8; font-size: 0.95rem; }
.mtb-footer .widget a { color: #7FE3D9; }
.mtb-footer .widget a:hover { color: var(--mtb-coral); }
.mtb-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.mtb-footer .widget li { padding: 0.35rem 0; }
.mtb-footer .widget li a { color: #DCE6F2; }
.mtb-footer .widget li a:hover { color: var(--mtb-teal); }
.mtb-footer .widget .post-date { color: #8597B0; font-size: 0.8rem; }
.mtb-copy {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.4rem 0 1.6rem;
	font-size: 0.86rem;
	color: #8597B0;
}
.mtb-copy p { margin: 0; }

/* ---------- Cookie-баннер ---------- */
.mtb-cookie {
	position: fixed;
	left: 1.2rem;
	right: 1.2rem;
	bottom: 1.2rem;
	z-index: 150;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	max-width: 760px;
	padding: 1.1rem 1.4rem;
	background: var(--mtb-indigo);
	color: #DCE6F2;
	border-left: 4px solid var(--mtb-teal);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(11, 27, 58, 0.3);
}
.mtb-cookie p { margin: 0; font-size: 0.92rem; line-height: 1.5; min-width: 0; }
.mtb-cookie a { color: #7FE3D9; }
.mtb-cookie .mtb-btn { flex: 0 0 auto; padding: 0.65em 1.3em; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
	h1 { font-size: 2.6rem; }
	.mtb-hero h1 { font-size: 2.7rem; }
	.mtb-shell { width: 92%; }
	.mtb-header-row { flex-wrap: wrap; }
	.mtb-nav-toggle { display: inline-flex; }
	.mtb-nav { flex: 1 0 100%; display: none; }
	.mtb-nav.is-open { display: block; }
	.mtb-nav ul { flex-direction: column; gap: 0; padding: 0.6rem 0 0.2rem; }
	.mtb-nav li { border-top: 1px solid rgba(255, 255, 255, 0.08); }
	.mtb-nav a { display: block; padding: 0.75rem 0; }
	.mtb-nav a::after { display: none; }
	.layout-with-sidebar { display: block; }
	.sidebar { padding-top: 2.5rem; }
	.mtb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mtb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
	.mtb-stat:nth-child(3) { border-left: 0; padding-left: 0; }
	.mtb-footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.mtb-footer-col:last-child { grid-column: 1 / -1; }
	.mtb-faq { margin-left: 0; }
	.mtb-divider { margin-left: 4%; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	h1 { font-size: 2.1rem; }
	h2 { font-size: 1.6rem; }
	.mtb-sec { padding: 56px 0; }
	.mtb-sec-title { font-size: 1.7rem; }
	.mtb-hero { min-height: 0; }
	.mtb-hero-inner { padding: 64px 0 80px; }
	.mtb-hero h1 { font-size: 2.15rem; }
	.mtb-hero-sub { font-size: 1.02rem; }
	.mtb-hero-dot { bottom: 28px; width: 16px; height: 16px; }
	.mtb-pagehead { padding: 1.8rem 1.4rem; }
	.mtb-pagehead h1 { font-size: 1.9rem; }
	.mtb-entry-title { font-size: 1.95rem; }
	.mtb-cards,
	.layout-with-sidebar .mtb-cards,
	.mtb-guide-grid { grid-template-columns: minmax(0, 1fr); }
	.mtb-guide-card:nth-child(even) { transform: none; }
	.mtb-guide-card:nth-child(even):hover { transform: translateY(-4px); }
	.mtb-stats { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
	.mtb-stat { border-left: 0; padding: 0 0 1.4rem; border-bottom: 2px dashed rgba(107, 122, 143, 0.35); }
	.mtb-stat:last-child { border-bottom: 0; padding-bottom: 0; }
	.mtb-stat-num { font-size: 2.8rem; }
	.mtb-faq-item summary { font-size: 1.08rem; }
	.mtb-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.mtb-post-nav { grid-template-columns: minmax(0, 1fr); }
	.mtb-post-nav-next { text-align: left; }
	.mtb-search { flex-direction: column; }
	.mtb-cookie { flex-direction: column; align-items: stretch; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; padding: 1rem 1.1rem; }
	.mtb-404-code { font-size: 5rem; }
	.mtb-brand-mark svg,
	.brand-logo { width: 42px; height: 42px; }
	.mtb-brand-desc { display: none; }
	.alignleft,
	.alignright { float: none; margin: 1em 0; }
	.mtb-comment-list .children { padding-left: 1rem; }
}
