/* ==========================================================================
   Ufimka 2.0 — основная таблица стилей
   ========================================================================== */

:root {
	--ink: #111111;
	--ink-2: #2b2b2b;
	--muted: #6f6f6f;
	--line: #e8e6e1;
	--paper: #f6f5f2;
	--white: #ffffff;
	--accent: #a24e3f;
	--dark: #1c1c1c;

	--font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", sans-serif;

	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 24px rgba(0, 0, 0, .05);

	--container: 1240px;
	--gap: clamp(16px, 2.2vw, 28px);
	--pad: clamp(16px, 3.2vw, 32px);
}

/* Сброс
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.icon { flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px;
	background: var(--ink); color: var(--white);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--pad);
}

/* Кнопки, «таблетки», поля
   ------------------------------------------------------------------------ */
.button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 1px solid var(--ink);
	border-radius: 8px;
	background: var(--ink);
	color: var(--white);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: background .2s, color .2s, transform .2s;
}
.button:hover,
input[type="submit"]:hover { background: var(--ink-2); color: var(--white); }
.button:hover .icon { transform: translateX(3px); }
.button .icon { transition: transform .2s; }
.button--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.button--light:hover { background: var(--paper); color: var(--ink); }

.pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	transition: border-color .2s;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill--light { border-color: rgba(255, 255, 255, .8); color: var(--white); background: rgba(0, 0, 0, .15); }
.pill--light:hover { border-color: var(--white); color: var(--white); background: rgba(0, 0, 0, .3); }

.round-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	transition: border-color .2s, background .2s;
}
.round-btn:hover { border-color: var(--ink); color: var(--ink); }
.round-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.round-btn[aria-pressed="true"] path { fill: currentColor; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--white);
	color: var(--ink);
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}
input:focus, textarea:focus { border-color: var(--ink); outline: none; }
textarea { min-height: 140px; resize: vertical; }

.search-form {
	position: relative;
	display: flex;
	gap: 8px;
	max-width: 640px;
}
.search-form__icon { position: absolute; left: 14px; top: 13px; color: var(--muted); pointer-events: none; }
.search-form__input { flex: 1; padding-left: 44px; }

/* Мета-строка */
.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	color: var(--muted);
	font-size: 14px;
}
.meta__cat { color: var(--ink-2); font-weight: 600; }
.meta__cat:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.meta__dot { font-size: 10px; opacity: .7; }
.meta--small { font-size: 12.5px; }

/* Заглушки изображений */
.thumb-ph {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, #ecebe7 0%, #dcd9d2 100%);
	color: rgba(255, 255, 255, .85);
	overflow: hidden;
}
.thumb-ph span {
	font-size: clamp(48px, 7vw, 120px);
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: -0.04em;
}

/* Шапка
   ------------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header__bar {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 32px);
	min-height: 84px;
}

.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__name {
	margin: 0;
	font-size: clamp(26px, 2.8vw, 34px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}
.brand__name a:hover { color: var(--ink); }
.brand__dot { color: inherit; }
.brand__tagline {
	max-width: 110px;
	padding-left: 14px;
	border-left: 1px solid var(--line);
	color: var(--ink-2);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
}
.custom-logo { max-height: 56px; width: auto; }

.main-nav { flex: 1; min-width: 0; }
.main-nav__list,
.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px clamp(14px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.main-nav a {
	position: relative;
	display: inline-block;
	padding: 6px 0;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .2s;
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current-category-ancestor > a::after,
.main-nav .current-post-ancestor > a::after { transform: scaleX(1); }

.site-header__actions {
	display: flex;
	gap: 4px;
	margin-left: auto;
	padding-left: clamp(8px, 1.6vw, 20px);
	border-left: 1px solid var(--line);
}
.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
}
.icon-btn:hover { background: var(--paper); }
.icon-btn .icon-close { display: none; }
.icon-btn[aria-expanded="true"] .icon-open { display: none; }
.icon-btn[aria-expanded="true"] .icon-close { display: inline-flex; }

.header-search { padding-block: 16px 24px; border-top: 1px solid var(--line); }

.menu-panel { border-top: 1px solid var(--line); padding-block: 28px 40px; }
.menu-panel__grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.menu-panel__label { margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.menu-panel__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.menu-panel__list--big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.menu-panel__list--big a { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.menu-panel__list a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Блоки главной
   ------------------------------------------------------------------------ */
.site-main { padding-top: 8px; min-height: 50vh; }

.block { margin-top: clamp(40px, 6vw, 72px); }
.block__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(18px, 2.4vw, 26px);
}
.block__title { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.025em; }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.more-link:hover .icon { transform: translateX(3px); }
.more-link .icon { transition: transform .2s; }

/* Слайдер */
.hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--dark);
	aspect-ratio: 2.05 / 1;
	min-height: 420px;
	color: var(--white);
}
.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility .7s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__media,
.hero__media img,
.hero__media .thumb-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.hero__media .thumb-ph { background: linear-gradient(120deg, #2a2a2a, #4a4238 60%, #7c6648); color: rgba(255,255,255,.08); }
.hero__media .thumb-ph span { font-size: 360px; }
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%),
		linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 40%);
}
.hero__body {
	position: absolute;
	left: clamp(22px, 4vw, 56px);
	bottom: clamp(56px, 7vw, 92px);
	max-width: min(560px, 80%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
.hero__title {
	font-size: clamp(32px, 4.6vw, 60px);
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero__title a:hover { color: var(--white); opacity: .92; }
.hero__excerpt { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.45; color: rgba(255, 255, 255, .92); }
.hero__body .button { margin-top: 6px; }
.hero__dots {
	position: absolute;
	left: clamp(22px, 4vw, 56px);
	bottom: clamp(22px, 3vw, 34px);
	display: flex;
	gap: 12px;
}
.hero__dot {
	width: 13px; height: 13px;
	padding: 0;
	border: 2px solid var(--white);
	border-radius: 50%;
	background: transparent;
	transition: background .2s;
}
.hero__dot.is-active { background: var(--white); }

/* Горизонтальные карточки */
.rows { display: flex; flex-direction: column; gap: 14px; }
.row-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 40%) minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(16px, 2.6vw, 32px);
	padding: 4px clamp(16px, 2.6vw, 32px) 4px 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	transition: box-shadow .25s, border-color .25s;
}
.row-card:hover { box-shadow: var(--shadow); border-color: #ddd9d1; }
.row-card__media { overflow: hidden; border-radius: var(--radius-sm); align-self: stretch; }
.row-card__media img,
.row-card__media .thumb-ph { width: 100%; height: 100%; aspect-ratio: 2.4 / 1; object-fit: cover; transition: transform .5s; }
.row-card:hover .row-card__media img { transform: scale(1.03); }
.row-card__body { padding-block: 16px; }
.row-card__title { margin-top: 6px; font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; }
.row-card__excerpt { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 36em; }
.row-card__arrow { color: var(--ink); transition: transform .2s; }
.row-card:hover .row-card__arrow { transform: translateX(4px); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.row-card .meta__cat { position: relative; z-index: 2; }

/* Большой материал */
.block--feature { padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.block--first { margin-top: 0; }
.feature {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(20px, 3vw, 40px);
}
.feature__media { display: block; overflow: hidden; border-radius: var(--radius); }
.feature__media img,
.feature__media .thumb-ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.feature__media:hover img { transform: scale(1.03); }
.feature__title { margin-top: 12px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -0.03em; }
.feature__excerpt { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }
.feature__body .button { margin-top: 24px; }

/* Плитки рубрик */
.tiles {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
}
.tiles--1 { grid-template-columns: minmax(0, 1fr); }
.tiles--1 .tile { aspect-ratio: 3.4 / 1; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--2 .tile { aspect-ratio: 2 / 1; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	aspect-ratio: 0.82 / 1;
	overflow: hidden;
	border-radius: var(--radius-sm);
	background: linear-gradient(160deg, #3a3631, #1c1c1c);
	color: var(--white);
	isolation: isolate;
}
.tile--noimg:nth-child(2n) { background: linear-gradient(160deg, #6d5a43, #2a2520); }
.tile--noimg:nth-child(3n) { background: linear-gradient(160deg, #4a4a4a, #151515); }
.tile img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform .6s;
}
.tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, 0) 100%);
}
.tile:hover { color: var(--white); }
.tile:hover img { transform: scale(1.06); }
.tile__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.tile__name { font-size: clamp(17px, 1.6vw, 21px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.tile__desc { font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .85); }

/* Подписка */
.subscribe {
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	gap: clamp(16px, 2.6vw, 32px);
	margin-top: clamp(40px, 5vw, 64px);
	padding: clamp(20px, 2.6vw, 28px) clamp(20px, 3vw, 36px);
	border-radius: var(--radius);
	background: var(--paper);
}
.subscribe__icon { padding-right: clamp(16px, 2.6vw, 32px); border-right: 1px solid #d9d6cf; color: var(--ink); }
.subscribe__title { font-size: clamp(19px, 1.9vw, 24px); font-weight: 800; letter-spacing: -0.02em; }
.subscribe__text { max-width: 26em; color: var(--ink-2); font-size: 14.5px; justify-self: end; }

/* Сетка карточек */
.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(28px, 3.4vw, 40px) var(--gap);
}
.card { display: flex; flex-direction: column; gap: 14px; }
.card__media { display: block; overflow: hidden; border-radius: var(--radius-sm); }
.card__media img,
.card__media .thumb-ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { margin-top: 6px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.18; }
.card__excerpt { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* Пагинация */
.pagination { padding-block: 40px 16px; }
.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 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-weight: 700;
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pagination a.page-numbers:hover { border-color: var(--ink); }

/* Шапки разделов
   ------------------------------------------------------------------------ */
.page-head { padding-block: clamp(20px, 3vw, 36px) clamp(24px, 3vw, 40px); }
.page-head__title { font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.page-head__desc { max-width: 40em; margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.page-head__count { margin-top: 12px; color: var(--muted); font-size: 14px; }
.page-head__search { margin-top: 24px; }
.page-head--category.has-image {
	position: relative;
	overflow: hidden;
	margin-top: 8px;
	margin-bottom: clamp(32px, 4vw, 48px);
	padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px);
	border-radius: var(--radius);
	color: var(--white);
	isolation: isolate;
}
.page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head--category.has-image::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.2));
}
.page-head--category.has-image .page-head__desc,
.page-head--category.has-image .page-head__count,
.page-head--category.has-image .breadcrumbs { color: rgba(255,255,255,.85); }
.page-head--category:not(.has-image) { margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 13px;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before { content: "›"; font-size: 15px; line-height: 1; opacity: .7; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* Публикация
   ------------------------------------------------------------------------ */
.entry-banner { margin: 0 0 clamp(18px, 2.4vw, 28px); overflow: hidden; border-radius: var(--radius); }
.entry-banner img { width: 100%; aspect-ratio: 4.2 / 1; min-height: 200px; object-fit: cover; }

.entry-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
	padding-top: 8px;
}
.entry { min-width: 0; }
.entry--page { max-width: 760px; padding-top: 8px; }

.entry__header .meta { margin-bottom: 14px; font-size: 13.5px; }
.entry__title { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.04; letter-spacing: -0.035em; }
.entry__lead { margin-top: 14px; color: var(--ink-2); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.4; font-weight: 400; }

.entry__byline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 26px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--line);
}
.author { display: flex; align-items: center; gap: 14px; }
.author__avatar { border-radius: 50%; width: 52px; height: 52px; object-fit: cover; }
.author__name { font-weight: 700; font-size: 15.5px; }
.author__role { color: var(--muted); font-size: 13.5px; }
.entry__actions { display: flex; gap: 8px; }

/* Контент из редактора */
.entry__content {
	margin-top: 26px;
	font-size: 17px;
	line-height: 1.68;
	color: #1e1e1e;
}
.entry__content > * + * { margin-top: 1.1em; }
.entry__content h2, .entry__content h3, .entry__content h4 { margin-top: 1.7em; line-height: 1.15; }
.entry__content h2 { font-size: clamp(24px, 2.4vw, 30px); }
.entry__content h3 { font-size: clamp(20px, 2vw, 24px); }
.entry__content h4 { font-size: 18px; }
.entry__content a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(162, 78, 63, .4); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry__content a:hover { color: var(--accent); text-decoration-color: currentColor; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li + li { margin-top: .4em; }
.entry__content blockquote,
.entry__content .wp-block-quote {
	margin: 1.6em 0;
	padding: 2px 0 2px 26px;
	border-left: 3px solid var(--accent);
	font-size: 1.12em;
	font-style: italic;
	font-weight: 700;
	line-height: 1.45;
	color: var(--ink);
}
.entry__content blockquote cite,
.entry__content .wp-block-quote cite { display: block; margin-top: .4em; font-weight: 400; font-size: .85em; color: var(--ink-2); }
.entry__content blockquote p + p { margin-top: .6em; }
.entry__content .wp-block-pullquote { padding: 28px 0; border-block: 3px solid var(--ink); text-align: left; }
.entry__content .wp-block-pullquote blockquote { border: 0; padding: 0; font-size: 1.4em; font-style: normal; }
.entry__content figure { margin-inline: 0; }
.entry__content img { height: auto; border-radius: var(--radius-sm); }
.entry__content figcaption,
.entry__content .wp-element-caption { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.4; text-align: left; }
.entry__content .wp-block-gallery { gap: 18px; }
.entry__content .wp-block-columns { gap: 18px; }
.entry__content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry__content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry__content th, .entry__content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry__content pre { overflow-x: auto; padding: 16px; border-radius: 8px; background: var(--paper); font-size: 14px; }
.entry__content .wp-block-button__link { border-radius: 8px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; }
.entry__content .alignwide { max-width: none; }
.entry__content .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry__content .alignfull img { border-radius: 0; }
.entry__content .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry__content .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry__content .aligncenter { margin-inline: auto; }
.entry__content::after { content: ""; display: table; clear: both; }

/* Палитра редактора */
.has-ink-color { color: var(--ink); }
.has-muted-color { color: var(--muted); }
.has-accent-color { color: var(--accent); }
.has-white-color { color: var(--white); }
.has-paper-color { color: var(--paper); }
.has-ink-background-color { background-color: var(--ink); }
.has-paper-background-color { background-color: var(--paper); }
.has-accent-background-color { background-color: var(--accent); }
.has-white-background-color { background-color: var(--white); }
.has-small-font-size { font-size: 14px; }
.has-normal-font-size { font-size: 17px; }
.has-large-font-size { font-size: 22px; }
.has-huge-font-size { font-size: 36px; line-height: 1.1; }

.entry__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.share__label { margin-right: 4px; color: var(--ink-2); font-size: 14px; }

/* Боковая колонка */
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.admin-bar .sidebar { top: 132px; }
.side-box {
	padding: 16px;
	border: 0;
	border-radius: 10px;
	background: #f4f4f4;
}
.side-box__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.side-box__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.side-box__title .icon { width: 18px; height: 18px; color: var(--ink-2); }
.side-box__more { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.side-box__more:hover { color: var(--ink); }
.side-box__desc { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.side-box__list { display: flex; flex-direction: column; margin-top: 10px; }
.side-box .widget ul { margin: 10px 0 0; padding: 0; list-style: none; }

.mini {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding-block: 10px;
	border-top: 1px solid #e3e3e3;
}
.mini:first-child { border-top: 0; padding-top: 4px; }
.mini:last-child { padding-bottom: 0; }
.mini__media { display: block; overflow: hidden; border-radius: 4px; }
.mini__media img,
.mini__media .thumb-ph { width: 80px; aspect-ratio: 3 / 2; object-fit: cover; }
.mini__media .thumb-ph span { font-size: 20px; }
.mini__title { font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.mini__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mini .meta { margin-top: 4px; }

.rank { margin: 8px 0 0; padding: 0; list-style: none; }
.rank__item {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
	padding-block: 10px;
	border-top: 1px solid #e3e3e3;
}
.rank__item:first-child { border-top: 0; padding-top: 4px; }
.rank__item:last-child { padding-bottom: 0; }
.rank__num { color: var(--accent); font-size: 16px; font-weight: 700; line-height: 1.2; }
.rank__title { font-size: 13.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.rank__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rank .meta { margin-top: 4px; }
.side-box .meta--small { font-size: 12px; }

.related { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }

/* Комментарии
   ------------------------------------------------------------------------ */
.comments { margin-top: 48px; font-size: 15.5px; }
.comments__title { margin-bottom: 20px; font-size: 24px; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { padding-left: clamp(16px, 4vw, 48px); }
.comment-body { padding-block: 18px; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 2px 0 8px 56px; font-size: 13px; color: var(--muted); }
.comment-content { margin-left: 56px; line-height: 1.55; }
.comment-content p + p { margin-top: .8em; }
.reply { margin: 8px 0 0 56px; font-size: 13px; font-weight: 700; }
.comment-respond { margin-top: 36px; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--radius); background: var(--paper); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 14px; }
#cancel-comment-reply-link { margin-left: 12px; font-size: 14px; color: var(--accent); }

/* 404 и пустые состояния
   ------------------------------------------------------------------------ */
.not-found { padding-block: clamp(32px, 6vw, 80px) 0; }
.not-found__code { font-size: clamp(110px, 20vw, 240px); font-weight: 900; line-height: .85; letter-spacing: -0.06em; }
.not-found__code::after { content: "."; color: var(--accent); }
.not-found__title { margin-top: 20px; font-size: clamp(28px, 4vw, 44px); }
.not-found__text { max-width: 36em; margin-top: 12px; color: var(--ink-2); font-size: 18px; }
.not-found__search { margin-block: 28px 20px; }
.empty { padding-block: 40px; }
.empty-text { margin-block: 8px 20px; color: var(--ink-2); font-size: 18px; }

/* Подвал
   ------------------------------------------------------------------------ */
.site-footer { margin-top: clamp(48px, 7vw, 96px); background: var(--dark); color: var(--white); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.1fr 1.5fr auto auto;
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	padding-block: clamp(40px, 5vw, 60px);
}
.site-footer__name { font-size: clamp(32px, 3.6vw, 44px); font-weight: 900; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.site-footer__tagline { margin-top: 12px; max-width: 18em; color: #c9c9c9; font-size: 15px; }
.site-footer__label { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.site-footer__cols,
.site-footer__sections ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, max-content));
	gap: 10px 56px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #d6d6d6;
	font-size: 15px;
}
.site-footer__about { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid #3a3a3a; }
.site-footer__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: #d6d6d6; font-size: 15px; }
.socials { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	border: 1px solid #4a4a4a;
	border-radius: 50%;
	color: var(--white);
	transition: border-color .2s, background .2s;
}
.socials a:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); color: var(--white); }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 22px;
	border-top: 1px solid #333;
	color: #a9a9a9;
	font-size: 14px;
}
.site-footer__bottom a { color: #d6d6d6; }

/* Уведомление */
.toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	transform: translateX(-50%);
	box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
}

/* Адаптив
   ------------------------------------------------------------------------ */
@media (max-width: 1180px) {
	.brand__tagline { display: none; }
	.entry-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 1024px) {
	.main-nav { display: none; }
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles--1 { grid-template-columns: minmax(0, 1fr); }
	.subscribe { grid-template-columns: auto 1fr; }
	.subscribe__text { grid-column: 2; justify-self: start; }
	.subscribe .button { grid-column: 2; justify-self: start; }
	.subscribe__icon { grid-row: span 3; align-self: start; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { padding-left: 0; border-left: 0; }

	.entry-layout { grid-template-columns: minmax(0, 1fr); }
	.entry { max-width: 760px; }
	.sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sidebar > :first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature { grid-template-columns: 1fr; }
	.row-card { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); padding-right: 16px; }
	.row-card__arrow { display: none; }
	.hero { aspect-ratio: auto; min-height: 520px; }
	.hero__body { max-width: none; right: clamp(22px, 4vw, 56px); }
}

@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.admin-bar .site-header { top: 0; }
	.site-header { position: relative; }
	.site-header__bar { min-height: 68px; }
	.site-header__actions { border-left: 0; padding-left: 0; }
	.menu-panel__grid { grid-template-columns: 1fr; }
	.menu-panel__list--big { grid-template-columns: 1fr; }

	.hero { min-height: 480px; border-radius: 12px; }
	.hero__media::after { background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.1) 100%); }
	.hero__body { left: 20px; right: 20px; bottom: 56px; gap: 12px; }
	.hero__dots { left: 20px; bottom: 22px; }

	.grid { grid-template-columns: 1fr; }
	.row-card { grid-template-columns: 1fr; padding: 4px; gap: 0; }
	.row-card__body { padding: 14px 12px 12px; }
	.row-card__media img, .row-card__media .thumb-ph { aspect-ratio: 16 / 9; }

	.tiles,
	.tiles--3, .tiles--4, .tiles--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles--1 .tile, .tiles--2 .tile { aspect-ratio: 1.6 / 1; }
	.tiles--1, .tiles--2 { grid-template-columns: 1fr; }

	.subscribe { grid-template-columns: 1fr; }
	.subscribe__icon { display: none; }
	.subscribe__text, .subscribe .button { grid-column: 1; }

	.entry-banner img { aspect-ratio: 16 / 9; }
	.entry__byline { flex-wrap: wrap; }
	.entry__content { font-size: 16.5px; }
	.sidebar { grid-template-columns: 1fr; }
	.share { margin-left: 0; }

	.entry__content .alignleft, .entry__content .alignright { float: none; max-width: 100%; margin: 1em 0; }

	.site-footer__grid { grid-template-columns: 1fr; }
	.site-footer__cols, .site-footer__sections ul { gap: 10px 32px; }
	.comment-metadata, .comment-content, .reply { margin-left: 0; }
}

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

@media print {
	.site-header, .sidebar, .related, .comments, .site-footer, .entry__actions, .share { display: none !important; }
}

/* ==========================================================================
   Публикация: компактный первый экран
   ========================================================================== */
.single .site-main { padding-top: 18px; }

/* Обложка с заголовком */
.entry-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: clamp(220px, 26vw, 320px);
	overflow: hidden;
	border-radius: var(--radius);
	background: linear-gradient(120deg, #2a2a2a, #4a4238 60%, #7c6648);
	color: var(--white);
	isolation: isolate;
}
.entry-cover__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
}
.entry-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(0deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0) 75%),
		linear-gradient(90deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 60%);
}
.entry-cover--noimg::after { background: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 70%); }
.entry-cover__body {
	max-width: min(860px, 100%);
	padding: clamp(18px, 3vw, 36px);
}
.entry-cover__title {
	color: var(--white);
	font-size: clamp(28px, 3.6vw, 46px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}
.entry-cover__lead {
	margin-top: 10px;
	max-width: 44em;
	color: rgba(255, 255, 255, .9);
	font-size: clamp(15px, 1.3vw, 17px);
	line-height: 1.4;
}

/* Строка «крошки | время · дата» */
.entry-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 24px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 12.5px;
}
.entry-info .breadcrumbs { min-width: 0; }
.entry-info .breadcrumbs ol { margin: 0; font-size: 12.5px; }
.entry-info__meta { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.entry-info .meta__dot { font-size: 12.5px; opacity: 1; }

/* Текст сразу после строки */
.entry-layout--compact { padding-top: 0; margin-top: 22px; }
.entry-layout--compact .entry__content { margin-top: 0; }
.entry-layout--compact .entry__content > :first-child { margin-top: 0; }

/* Конец статьи: автор и кнопки */
.entry-end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
}
.entry-end .author__avatar { width: 44px; height: 44px; }
.entry-end .share { margin-left: auto; }
.entry__footer { flex-direction: column; align-items: stretch; }

@media (max-width: 640px) {
	.single .site-main { padding-top: 12px; }
	.entry-cover { height: auto; min-height: 220px; }
	.entry-cover__lead { display: none; }
	.entry-info { flex-direction: column; align-items: flex-start; }
	.entry-layout--compact { margin-top: 18px; }
	.entry-end .share { margin-left: 0; flex-wrap: wrap; }
}

/* ==========================================================================
   Сдержанные акценты и hover (кирпичный #a24e3f)
   ========================================================================== */

/* Главное меню: hover — тонкая серая линия, активный пункт — цвет и линия 2px */
.main-nav a { color: var(--ink); transition: color .15s; }
.main-nav a::after { height: 1px; background: currentColor; opacity: .5; transition: transform .2s, opacity .2s; }
.main-nav a:hover { color: var(--ink); }
.main-nav .current-menu-item > a,
.main-nav .current-category-ancestor > a,
.main-nav .current-post-ancestor > a { color: var(--accent); }
.main-nav .current-menu-item > a::after,
.main-nav .current-category-ancestor > a::after,
.main-nav .current-post-ancestor > a::after { height: 2px; background: var(--accent); opacity: 1; transform: scaleX(1); }

/* Заголовки карточек: подчёркивание вместо смены цвета */
.card__title a:hover,
.row-card:hover .row-card__title a,
.feature__title a:hover {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.hero__title a:hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.more-link:hover,
.side-box__more:hover,
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Цитаты и номера — кирпичный, без «золота» */
.rank__num { color: var(--accent); }
.entry__content blockquote,
.entry__content .wp-block-quote { border-left-color: var(--accent); }
:focus-visible { outline-color: var(--accent); }
