/* =========================================================
   i38.su — газета Шелехова
   Карандашная графика, крафтовая бумага, красные акценты.
   Содержание:
   01. Токены и база
   02. Шапка
   03. Кнопки, ярлыки, метаданные
   04. Приёмные (CTA)
   05. Заголовки разделов
   06. Раскладка главной, карточки, лента
   07. Официальный блок
   08. Календарь
   09. Мнения
   10. Поддержка
   11. Подвал
   12. Архивы и пагинация
   13. Материал, страница, комментарии
   14. Дизайн-система, поддержка, 404
   15. Формы
   16. Адаптивность
   ========================================================= */

/* ---------- 01. Токены и база ---------- */
:root {
	--paper: #f1e5ce;
	--paper-2: #eadcbf;
	--paper-3: #e4d2b2;
	--card: #f8f1e2;
	--card-2: #fbf6ea;
	--ink: #1f1f1f;
	--ink-2: #3b3530;
	--ink-3: #5b544b;
	--muted: #6f6558;
	--red: #c1121f;
	--red-dark: #960e17;
	--bordeaux: #7a0010;
	--brick: #a63a2a;
	--gold: #c9a227;
	--mustard: #e0b04a;
	--line: rgba(59, 53, 48, 0.88);
	--line-soft: rgba(59, 53, 48, 0.32);
	--font-hand: "Caveat", "Kalam", "Marck Script", cursive;
	--font-serif: "PT Serif", Georgia, "Times New Roman", serif;
	--font-ui: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1180px;
	--gap: 30px;
	--shadow-card: 3px 4px 0 rgba(59, 53, 48, 0.13), 0 22px 30px -26px rgba(20, 15, 10, 0.6);
	--shadow-card-hover: 4px 6px 0 rgba(59, 53, 48, 0.16), 0 26px 34px -24px rgba(20, 15, 10, 0.65);
	--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.38'/%3E%3C/svg%3E");
	--underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C38 2.5 70 10.5 108 6.2 146 1.9 176 9.4 212 5.6 244 2.2 272 8.8 298 4.2' fill='none' stroke='%23C1121F' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--paper);
	background-image:
		repeating-linear-gradient(0deg, rgba(120, 88, 40, 0.022) 0 1px, transparent 1px 3px),
		radial-gradient(120% 70% at 50% -10%, rgba(255, 252, 244, 0.42), transparent 62%),
		radial-gradient(90% 60% at 50% 108%, rgba(122, 90, 40, 0.15), transparent 72%),
		var(--noise);
	background-attachment: scroll, fixed, fixed, scroll;
	overflow-x: hidden;
}

::selection {
	background: rgba(193, 18, 31, 0.22);
	color: var(--ink);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--red-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--red);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

figure {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px dashed var(--red);
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 24px;
}

.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 {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--red);
	color: #fff;
	border-radius: 4px;
}

.i38-icon {
	flex: none;
	vertical-align: -0.18em;
}

.svg-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* ---------- 02. Шапка ---------- */
.topbar {
	background: linear-gradient(180deg, #b2121d, #9c0e17);
	color: #f7e3c0;
	font-family: var(--font-ui);
	font-size: 12.5px;
	line-height: 1.2;
	letter-spacing: 0.15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	min-height: 35px;
	padding-block: 8px;
}

.topbar__left,
.topbar__right {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 8px;
}

.topbar__right {
	justify-content: flex-end;
	text-align: right;
}

.topbar__dot {
	opacity: 0.55;
}

.topbar__date {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted rgba(247, 227, 192, 0.45);
}

.topbar__date:hover {
	color: #fff3dc;
}

.topbar__age {
	font-weight: 600;
}

/* Полоса статуса: сайт в разработке, издание регистрируется */
.devbar {
	background: linear-gradient(180deg, #fbf6ea, #f3e8d3);
	border-bottom: 1.5px dashed rgba(59, 53, 48, 0.28);
}

.devbar__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	padding-block: 8px;
	min-height: 34px;
}

.devbar__badge {
	display: inline-flex;
	align-items: center;
	flex: none;
	gap: 7px;
	padding: 5px 9px 6px;
	border-radius: 3px;
	background: var(--red);
	color: #fff4e4;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.55px;
	text-transform: uppercase;
	box-shadow: 1px 2px 0 rgba(90, 10, 16, 0.2);
	transform: rotate(-0.4deg);
}

.devbar__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffe2ae;
	box-shadow: 0 0 0 2px rgba(255, 226, 174, 0.25);
}

.devbar__text {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--ink-3);
}

.masthead {
	padding-block: 16px 12px;
}

.masthead__inner {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) minmax(280px, 440px) auto;
	align-items: center;
	gap: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--ink);
	min-width: 0;
}

.brand__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 64px;
	height: 80px;
	padding: 4px;
	background: #fcf8ef;
	border: 1.5px solid rgba(59, 53, 48, 0.28);
	border-radius: 8px;
	box-shadow: 1px 2px 0 rgba(59, 53, 48, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
	transform: rotate(-0.8deg);
}

.brand__logo img {
	display: block;
	width: auto;
	height: 100%;
}

.brand__text {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.brand__name {
	font-family: var(--font-hand);
	font-size: 46px;
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.5px;
	color: var(--ink);
	transform: rotate(-1deg);
	display: inline-block;
}

.brand__name-tld {
	color: var(--red);
}

.brand__tagline {
	font-family: var(--font-serif);
	font-size: 11.8px;
	line-height: 1.3;
	color: var(--ink-3);
	max-width: 340px;
}

.masthead__search {
	justify-self: center;
	width: 100%;
}

.searchform__box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 46px;
	padding: 0 6px 0 18px;
	background: linear-gradient(180deg, #fdf8ee, #f6eedb);
	border: 1.8px solid var(--ink-2);
	border-radius: 26px;
	box-shadow: inset 0 -2px 0 rgba(59, 53, 48, 0.08), 2px 3px 0 rgba(59, 53, 48, 0.1);
}

.searchform__box::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 1.4px solid rgba(59, 53, 48, 0.45);
	border-radius: 29px;
	filter: url("#i38-pencil-soft");
	pointer-events: none;
	opacity: 0.8;
}

.searchform__icon {
	color: var(--ink-3);
	opacity: 0.8;
}

.searchform__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font-family: var(--font-serif);
	font-size: 15px;
	color: var(--ink);
	padding: 0;
	outline: none;
}

.searchform__input::placeholder {
	color: #8a7f70;
	opacity: 0.9;
}

.searchform__submit {
	flex: none;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--red);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.searchform__submit:hover {
	background: rgba(193, 18, 31, 0.08);
	transform: rotate(-8deg);
}

.masthead__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-self: end;
}

.burger {
	display: none;
	align-items: center;
	gap: 7px;
	background: transparent;
	border: 1.8px solid var(--ink-2);
	border-radius: 8px;
	padding: 8px 10px;
	font-family: var(--font-hand);
	font-size: 19px;
	cursor: pointer;
	color: var(--ink);
	box-shadow: 2px 2px 0 rgba(59, 53, 48, 0.2);
}

/* Навигация */
.mainnav {
	border-top: 2px solid rgba(59, 53, 48, 0.7);
	border-bottom: 1.5px solid rgba(59, 53, 48, 0.5);
	margin-top: 12px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
}

.mainnav__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	padding-block: 8px;
}

.mainnav__group {
	min-width: 0;
}

.mainnav__divider {
	width: 1px;
	height: 22px;
	background: rgba(59, 53, 48, 0.4);
	flex: none;
	margin-inline: 4px;
}

.mainnav__close {
	display: none;
}

.menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu--primary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
}

.menu--primary .menu-item > a {
	display: inline-block;
	font-family: var(--font-hand);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	text-decoration: none;
	padding: 3px 2px 4px;
	position: relative;
	transition: color 0.15s ease;
}

.menu--primary .menu-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 6px;
	background: var(--underline) no-repeat center / 100% 100%;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.menu--primary .menu-item > a:hover {
	color: var(--red-dark);
}

.menu--primary .menu-item > a:hover::after,
.menu--primary .current-menu-item > a::after {
	opacity: 1;
}

.menu-item--marker > a {
	background: linear-gradient(180deg, transparent 48%, rgba(193, 18, 31, 0.16) 48%, rgba(193, 18, 31, 0.16) 94%, transparent 94%);
	padding-inline: 2px;
}

.menu--rubrics {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px 14px;
}

.menu--rubrics .menu-item > a {
	font-family: var(--font-ui);
	font-size: 13.5px;
	color: var(--ink-3);
	text-decoration: none;
	padding: 4px 0;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.menu--rubrics .menu-item > a:hover {
	color: var(--red);
	border-bottom-color: rgba(193, 18, 31, 0.5);
}

/* ---------- 03. Кнопки, ярлыки, метаданные ---------- */
.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px 10px;
	font-family: var(--font-hand);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	color: var(--ink);
	text-decoration: none;
	border: 1.9px solid var(--ink-2);
	border-radius: 8px;
	background: linear-gradient(180deg, #fdf8ee, #f3e9d4);
	box-shadow: 2px 3px 0 rgba(59, 53, 48, 0.22);
	transform: rotate(-0.3deg);
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn:hover {
	color: var(--ink);
	transform: translate(1px, 1px) rotate(-0.3deg);
	box-shadow: 1px 2px 0 rgba(59, 53, 48, 0.22);
}

.btn:active {
	transform: translate(2px, 3px) rotate(-0.3deg);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn--support {
	background: linear-gradient(180deg, #edc25c, #d8a12e);
	border-color: #6d490f;
	color: #3a2504;
}

.btn--support:hover {
	color: #2e1d03;
	background: linear-gradient(180deg, #f0c968, #dda936);
}

.btn--support .i38-icon {
	color: #8a5a0b;
}

.btn--red {
	background: linear-gradient(180deg, #cc1724, #b00f1a);
	border-color: var(--bordeaux);
	color: #fff6e7;
	box-shadow: 3px 4px 0 rgba(90, 10, 16, 0.32);
}

.btn--red:hover {
	color: #fff;
	background: linear-gradient(180deg, #d91b29, #b4101c);
}

.btn--ghost {
	background: transparent;
	border-color: var(--red);
	color: var(--red-dark);
	box-shadow: 2px 2px 0 rgba(193, 18, 31, 0.18);
}

.btn--wide {
	width: 100%;
}

.tag {
	position: relative;
	display: inline-block;
	z-index: 0;
	font-family: var(--font-hand);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	padding: 4px 12px 5px;
	color: #fff5e8;
	text-decoration: none;
	transform: rotate(-0.4deg);
}

.tag::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--red);
	border-radius: 2px;
	transform: skew(-8deg);
	box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.18);
}

.tag:hover {
	color: #fff;
}

.tag--important::before {
	background: var(--bordeaux);
}

.tag--ghost {
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 500;
	color: var(--red-dark);
	padding: 3px 9px;
	border: 1px dashed rgba(193, 18, 31, 0.55);
	border-radius: 3px;
}

.tag--ghost::before {
	display: none;
}

.meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	font-family: var(--font-ui);
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--muted);
}

.meta a {
	color: inherit;
	text-decoration: none;
}

.meta a:hover {
	color: var(--red);
}

.meta__date {
	white-space: nowrap;
}

.meta__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.45;
	flex: none;
}

.meta__views,
.meta__comments {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.meta__comments {
	text-decoration: none;
}

.meta__comments:hover {
	color: var(--red);
}

.meta__num {
	font-variant-numeric: tabular-nums;
}

.meta--card {
	margin-top: auto;
}

.card--hero .meta--card {
	margin-top: 0;
}

/* ---------- 04. Приёмные (CTA) ---------- */
.cta-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin: 26px 0 38px;
}

.cta {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	min-height: 104px;
	text-decoration: none;
	color: var(--ink);
	border-radius: 10px;
	background:
		radial-gradient(120% 150% at 3% 50%, rgba(193, 18, 31, 0.07), transparent 52%),
		linear-gradient(165deg, #fbf0e2 0%, #f7ecd8 55%, #f4e8d3 100%);
	box-shadow: var(--shadow-card);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2.2px solid var(--ink-2);
	border-radius: 11px;
	filter: url("#i38-pencil");
	pointer-events: none;
}

.cta--ochre {
	background: linear-gradient(165deg, #fdf4e2 0%, #f7ead0 55%, #f2e3c6 100%);
}

.cta:hover {
	transform: translateY(-2px) rotate(-0.2deg);
	box-shadow: var(--shadow-card-hover);
	color: var(--ink);
}

.cta__icon-wrap {
	position: relative;
	flex: none;
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
}

.cta__blob {
	position: absolute;
	inset: -5px;
	background: radial-gradient(closest-side, rgba(193, 18, 31, 0.66), rgba(193, 18, 31, 0.24) 64%, transparent 76%);
	border-radius: 48% 52% 44% 56%;
	transform: rotate(-9deg);
	filter: blur(1.2px);
}

.cta--ochre .cta__blob {
	background: radial-gradient(closest-side, rgba(201, 162, 39, 0.72), rgba(201, 162, 39, 0.24) 64%, transparent 76%);
	transform: rotate(7deg) scale(1.05);
}

.cta__icon {
	position: relative;
	z-index: 1;
	color: var(--ink-2);
	display: flex;
}

.cta__text {
	min-width: 0;
}

.cta__title {
	display: block;
	font-family: var(--font-hand);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.02;
	margin-bottom: 5px;
	transform: rotate(-0.4deg);
}

.cta__desc {
	display: block;
	font-family: var(--font-ui);
	font-size: 13px;
	line-height: 1.35;
	color: var(--ink-3);
}

/* ---------- 05. Заголовки разделов ---------- */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 18px;
}

.section-head__text {
	min-width: 0;
}

.section-head__kicker {
	margin: 0 0 2px;
	font-family: var(--font-hand);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--red);
	letter-spacing: 0.2px;
	transform: rotate(-0.5deg);
}

.section-head__title {
	display: inline-block;
	margin: 0;
	padding-bottom: 14px;
	font-family: var(--font-hand);
	font-size: 44px;
	font-weight: 700;
	line-height: 0.95;
	letter-spacing: -0.3px;
	color: var(--ink);
	background: var(--underline) no-repeat left bottom / 100% 10px;
	transform: rotate(-0.5deg);
}

.section-head__title--small {
	font-size: 28px;
	padding-bottom: 8px;
	background-size: 100% 7px;
	margin: 26px 0 14px;
}

.section-head__more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	font-family: var(--font-hand);
	font-size: 17.5px;
	font-weight: 600;
	color: var(--red);
	text-decoration: none;
	padding-bottom: 4px;
}

.section-head__more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 06. Главная: раскладка, карточки, лента ---------- */
.home {
	padding-top: 4px;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 322px;
	grid-template-areas:
		"head ."
		"cards feed"
		"official calendar";
	column-gap: var(--gap);
	row-gap: 36px;
	align-items: start;
}

.layout__head {
	grid-area: head;
	min-width: 0;
}

.layout__cards {
	grid-area: cards;
	display: grid;
	grid-template-columns: 1.62fr 1fr;
	gap: 22px;
	align-items: start;
	min-width: 0;
}

.layout__feed {
	grid-area: feed;
	min-width: 0;
}

.layout__official {
	grid-area: official;
	min-width: 0;
}

.layout__calendar {
	grid-area: calendar;
	min-width: 0;
}

.home-side {
	display: grid;
	gap: 22px;
	min-width: 0;
}

.home-hero {
	min-width: 0;
	height: 100%;
}

/* Карточка */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 11px;
	border-radius: 11px;
	background: linear-gradient(180deg, var(--card-2), var(--card));
	box-shadow: var(--shadow-card);
}

.card::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2.2px solid rgba(59, 53, 48, 0.9);
	border-radius: 12px 10px 13px 9px / 10px 13px 9px 12px;
	filter: url("#i38-pencil");
	pointer-events: none;
	z-index: 3;
}

.card--hero {
	height: 100%;
}

.card__media {
	position: relative;
	overflow: hidden;
	border-radius: 5px;
	background: #e9dcc4;
	border: 1px solid rgba(59, 53, 48, 0.2);
	box-shadow: 0 2px 6px rgba(40, 25, 10, 0.12);
}

.card__media-link {
	display: block;
}

.card__img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card__img {
	transform: scale(1.02);
}

.card__img--placeholder {
	object-fit: cover;
}

.card__bar {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 10px 2px 7px;
	min-height: 30px;
}

.card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	min-width: 0;
}

.bookmark {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink-2);
	cursor: pointer;
	line-height: 0;
	transition: color 0.15s ease, transform 0.15s ease;
}

.bookmark:hover {
	color: var(--red);
	transform: translateY(-1px);
}

.bookmark.is-saved {
	color: var(--red);
}

.bookmark.is-saved .i38-icon {
	fill: currentColor;
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0 4px 5px;
	min-width: 0;
}

.card__title {
	margin: 0 0 8px;
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.2px;
	overflow-wrap: break-word;
}

.card__title a {
	color: var(--ink);
	text-decoration: none;
}

.card__title a:hover {
	color: var(--red-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.card--hero .card__title {
	font-size: 33px;
	margin-bottom: 10px;
}

.card--standard .card__title {
	font-size: 22px;
}

.card--small .card__title {
	font-size: 21px;
}

.card__excerpt {
	margin: 0 0 12px;
	font-family: var(--font-serif);
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--ink-3);
}

.card--hero .card__excerpt {
	font-size: 16.5px;
}

.card--small .card__excerpt {
	font-size: 14.5px;
}

/* Канцелярская кнопка и скотч */
.pin {
	position: absolute;
	top: -9px;
	left: 50%;
	width: 18px;
	height: 18px;
	margin-left: -9px;
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, #f06a66 0 16%, #d22a31 46%, #8e0d15 100%);
	box-shadow: 0 2px 3px rgba(40, 10, 10, 0.45), inset 0 -1px 2px rgba(0, 0, 0, 0.25);
	z-index: 5;
	pointer-events: none;
}

.pin::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 3px;
	width: 6px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	filter: blur(0.8px);
}

.tape {
	position: absolute;
	top: -13px;
	left: 50%;
	width: 94px;
	height: 26px;
	transform: translateX(-50%) rotate(-2deg);
	background: linear-gradient(180deg, rgba(216, 192, 150, 0.9), rgba(197, 171, 128, 0.78));
	box-shadow: 0 2px 3px rgba(60, 40, 15, 0.12);
	clip-path: polygon(2% 9%, 98% 0, 100% 90%, 1% 100%);
	opacity: 0.95;
	z-index: 5;
	pointer-events: none;
}

.tape--calendar {
	left: auto;
	right: 22px;
	width: 104px;
	transform: rotate(2deg);
}

.tape--feed {
	display: none;
}

/* Панели сайдбара */
.panel {
	position: relative;
	padding: 18px 16px 14px;
	border-radius: 11px;
	background: linear-gradient(180deg, #fbf5e8, #f7eedc);
	box-shadow: var(--shadow-card);
}

.panel::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2.2px solid rgba(59, 53, 48, 0.88);
	border-radius: 12px 10px 13px 9px / 10px 13px 9px 12px;
	filter: url("#i38-pencil");
	pointer-events: none;
	z-index: 2;
}

.panel__title {
	margin: 0 0 14px;
	font-family: var(--font-hand);
	font-size: 29px;
	font-weight: 700;
	line-height: 1.02;
	transform: rotate(-0.5deg);
}

.panel__title mark {
	background: linear-gradient(180deg, transparent 45%, rgba(193, 18, 31, 0.18) 45%, rgba(193, 18, 31, 0.18) 92%, transparent 92%);
	color: inherit;
	padding: 0 1px;
}

.panel__title--narrow {
	font-size: 27px;
	line-height: 1.05;
	margin-bottom: 14px;
}

.panel__title--narrow em {
	font-style: italic;
	color: var(--red);
}

.panel__kicker {
	margin: 0 0 6px;
	font-family: var(--font-hand);
	font-size: 18px;
	color: var(--red);
}

.panel__promo-text {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--ink-3);
	margin-bottom: 12px;
}

.panel__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-family: var(--font-hand);
	font-size: 18px;
	font-weight: 600;
	color: var(--red);
	text-decoration: none;
}

.panel__more:hover {
	text-decoration: underline;
}

.panel--promo {
	margin-top: 30px;
}

/* Лента новостей */
.feed {
	list-style: none;
	margin: 0;
	padding: 0;
}

.feed__item + .feed__item {
	border-top: 2px dotted rgba(59, 53, 48, 0.3);
}

.feed__link {
	display: grid;
	grid-template-columns: 50px minmax(0, 1fr);
	gap: 10px;
	padding: 11px 0;
	text-decoration: none;
	color: inherit;
}

.feed__time {
	padding-top: 2px;
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 700;
	font-size: 16.5px;
	line-height: 1.2;
	color: var(--red);
	white-space: nowrap;
}

.feed__title {
	display: block;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 15.5px;
	line-height: 1.34;
	margin-bottom: 3px;
	color: var(--ink);
}

.feed__meta {
	display: block;
	font-family: var(--font-ui);
	font-size: 11.8px;
	line-height: 1.3;
	color: var(--muted);
}

.feed__link:hover .feed__title {
	color: var(--red-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.feed--plain .feed__link {
	grid-template-columns: 46px minmax(0, 1fr);
}

.panel--popular {
	margin-top: 30px;
}

.popular {
	list-style: none;
	margin: 0;
	padding: 0;
}

.popular__item {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr);
	gap: 8px;
	padding: 9px 0;
	border-top: 2px dotted rgba(59, 53, 48, 0.26);
}

.popular__item:first-child {
	border-top: 0;
	padding-top: 0;
}

.popular__num {
	font-family: var(--font-hand);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	color: var(--red);
	padding-top: 2px;
}

.popular__link {
	text-decoration: none;
	color: inherit;
}

.popular__title {
	display: block;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.35;
	margin-bottom: 2px;
}

.popular__views {
	font-family: var(--font-ui);
	font-size: 11.5px;
	color: var(--muted);
}

.popular__link:hover .popular__title {
	color: var(--red-dark);
	text-decoration: underline;
}

/* ---------- 07. Официальный блок ---------- */
.official {
	position: relative;
	overflow: hidden;
	padding: 22px 26px 10px;
	border-radius: 12px;
	background: linear-gradient(135deg, #c8151f 0%, #b6121c 52%, #9e0e17 100%);
	color: #fbefd9;
	box-shadow: 0 18px 28px -22px rgba(122, 0, 16, 0.6), inset 0 2px 0 rgba(255, 255, 255, 0.14);
}

.official::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid rgba(255, 238, 214, 0.38);
	border-radius: 13px;
	filter: url("#i38-pencil");
	pointer-events: none;
}

.official::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 90% at 88% -20%, rgba(255, 255, 255, 0.16), transparent 58%);
	pointer-events: none;
}

.official__stamp {
	position: absolute;
	right: 14px;
	top: 20px;
	line-height: 0;
	transform: rotate(-11deg);
	pointer-events: none;
	z-index: 0;
	opacity: 0.17;
	filter: brightness(0) invert(1);
}

.official__stamp img {
	display: block;
	width: 200px;
	height: auto;
}

.official__list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
}

.official__item {
	padding: 13px 0 15px;
	border-top: 2px dotted rgba(255, 236, 214, 0.28);
}

.official__item:first-child {
	border-top: 0;
	padding-top: 4px;
}

.official__kicker {
	margin: 0 0 4px;
	font-family: var(--font-hand);
	font-style: italic;
	font-size: 16.5px;
	line-height: 1.2;
	color: #f5cba2;
	letter-spacing: 0.2px;
}

.official__title {
	margin: 0 0 6px;
	font-family: var(--font-serif);
	font-size: 22.5px;
	font-weight: 700;
	line-height: 1.26;
	max-width: 58ch;
}

.official__title a {
	color: #fff6e6;
	text-decoration: none;
}

.official__title a:hover {
	color: #ffe3b9;
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.official__excerpt {
	margin: 0;
	font-family: var(--font-serif);
	font-size: 15.5px;
	line-height: 1.55;
	color: rgba(255, 243, 227, 0.86);
	max-width: 62ch;
}

.official--page .official__title {
	font-size: 26px;
}

/* ---------- 08. Календарь ---------- */
.panel--calendar {
	padding: 20px 18px 16px;
}

.cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.cal__btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 31px;
	color: var(--ink);
	text-decoration: none;
	background: linear-gradient(180deg, #fdf8ee, #f5ebd7);
	border: 2px solid var(--ink-2);
	border-radius: 4px;
	box-shadow: 2px 2px 0 rgba(59, 53, 48, 0.24);
	transform: rotate(-1deg);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cal__btn:hover {
	color: var(--red);
	transform: translate(1px, 1px) rotate(-1deg);
	box-shadow: 1px 1px 0 rgba(59, 53, 48, 0.24);
}

.cal__month {
	font-family: var(--font-hand);
	font-size: 20.5px;
	font-weight: 700;
	white-space: nowrap;
}

.cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	row-gap: 1px;
}

.cal__weekday {
	padding: 4px 0 6px;
	font-family: var(--font-hand);
	font-style: italic;
	font-size: 15px;
	line-height: 1;
	color: var(--ink-3);
	text-align: center;
}

.cal__day {
	position: relative;
	display: grid;
	place-items: center;
	height: 35px;
	font-family: var(--font-ui);
	font-size: 13px;
	color: var(--ink-2);
}

.cal__day--empty {
	visibility: hidden;
}

.cal__num {
	position: relative;
	z-index: 2;
	font-variant-numeric: tabular-nums;
}

.cal__blot {
	position: absolute;
	inset: 5px 7px;
	border-radius: 52% 46% 55% 47%;
	filter: blur(2.4px);
	opacity: 0.92;
	transform: rotate(-7deg);
	z-index: 1;
}

.cal__blot--red {
	background: radial-gradient(closest-side, rgba(193, 18, 31, 0.62), rgba(193, 18, 31, 0.18) 70%, transparent);
}

.cal__blot--ochre {
	background: radial-gradient(closest-side, rgba(201, 162, 39, 0.66), rgba(201, 162, 39, 0.2) 70%, transparent);
}

.cal__blot--gray {
	background: radial-gradient(closest-side, rgba(80, 75, 68, 0.62), rgba(80, 75, 68, 0.18) 70%, transparent);
}

.cal__day--event .cal__num {
	font-weight: 500;
}

.cal__day--today .cal__num::after {
	content: "";
	position: absolute;
	inset: -8px -10px;
	border: 1.8px solid var(--ink);
	border-radius: 48% 52% 46% 54%;
	transform: rotate(-7deg);
	filter: url("#i38-pencil-soft");
}

.cal__events {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 2px dotted rgba(59, 53, 48, 0.3);
}

.cal__events-title {
	margin: 0 0 6px;
	font-family: var(--font-hand);
	font-size: 18px;
	font-weight: 600;
	color: var(--red);
	transform: rotate(-0.4deg);
}

.cal-list {
	list-style: none;
	margin: 0 0 6px;
	padding: 0;
}

.cal-list__item {
	display: grid;
	grid-template-columns: 15px minmax(0, 1fr);
	gap: 8px;
	padding: 7px 0;
	border-bottom: 2px dotted rgba(59, 53, 48, 0.2);
}

.cal-list__item:last-child {
	border-bottom: 0;
}

.cal-list__dot {
	width: 13px;
	height: 11px;
	margin-top: 5px;
	border-radius: 50% 45% 55% 48%;
	filter: blur(0.5px);
}

.cal-list__dot--red {
	background: radial-gradient(closest-side, #c1121f, rgba(193, 18, 31, 0.25));
}

.cal-list__dot--ochre {
	background: radial-gradient(closest-side, #c9a227, rgba(201, 162, 39, 0.25));
}

.cal-list__dot--gray {
	background: radial-gradient(closest-side, #4f4a43, rgba(79, 74, 67, 0.25));
}

.cal-list__title {
	display: block;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.3;
	color: var(--ink);
	text-decoration: none;
	margin-bottom: 2px;
}

.cal-list__title:hover {
	color: var(--red-dark);
	text-decoration: underline;
}

.cal-list__meta {
	display: block;
	font-family: var(--font-ui);
	font-size: 11.7px;
	line-height: 1.35;
	color: var(--muted);
}

.cal-list__type {
	display: block;
	margin-top: 2px;
	font-family: var(--font-hand);
	font-size: 14.5px;
	color: var(--red);
}

.cal__more {
	margin-top: 8px;
}

/* ---------- 09. Мнения ---------- */
.section {
	margin-top: 44px;
}

.section--opinions {
	margin-top: 40px;
}

.opinions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.quote-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 40px 22px 18px;
	min-height: 300px;
	border-radius: 11px;
	background: linear-gradient(180deg, #fbf5e8, #f6ecd8);
	box-shadow: var(--shadow-card);
}

.quote-card::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2.2px solid rgba(59, 53, 48, 0.88);
	border-radius: 12px 10px 13px 9px / 10px 13px 9px 12px;
	filter: url("#i38-pencil");
	pointer-events: none;
	z-index: 2;
}

.quote-card__mark {
	display: block;
	color: var(--red);
	line-height: 0;
	margin-bottom: 8px;
}

.quote-card__title {
	margin: 0 0 12px;
	font-family: var(--font-hand);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.2px;
	transform: rotate(-0.4deg);
}

.quote-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.quote-card__title a:hover {
	color: var(--red-dark);
}

.quote-card__quote {
	margin: 0 0 18px;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--ink-3);
}

.quote-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 2px dotted rgba(59, 53, 48, 0.3);
}

.avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #efe0c2, #dcc7a4);
	border: 1px solid rgba(59, 53, 48, 0.25);
	color: var(--ink-2);
	font-family: var(--font-hand);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.avatar--lg {
	width: 56px;
	height: 56px;
	font-size: 27px;
}

.quote-card__author-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.quote-card__author-text strong {
	font-family: var(--font-serif);
	font-size: 14.5px;
	line-height: 1.3;
}

.quote-card__author-text span {
	font-family: var(--font-ui);
	font-size: 11.8px;
	line-height: 1.3;
	color: var(--muted);
}

/* ---------- 10. Поддержка ---------- */
.support {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	margin: 40px 0 16px;
	padding: 22px 28px;
	border: 2.5px dashed rgba(193, 18, 31, 0.7);
	border-radius: 14px;
	background: rgba(251, 246, 234, 0.4);
}

.support__stamp {
	color: var(--red);
	line-height: 0;
	transform: rotate(-7deg);
	filter: drop-shadow(0 3px 3px rgba(60, 30, 10, 0.18));
}

.support__stamp img {
	display: block;
	width: 88px;
	height: auto;
}

.support__title {
	margin: 0 0 6px;
	font-family: var(--font-hand);
	font-size: 31px;
	font-weight: 700;
	line-height: 1;
	transform: rotate(-0.4deg);
}

.support__text p {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--ink-3);
	max-width: 70ch;
}

.support__btn {
	transform: rotate(-0.7deg);
}

/* ---------- 11. Подвал ---------- */
.site-footer {
	position: relative;
	margin-top: 46px;
	background: linear-gradient(180deg, #eadabd, #e2cfae);
	border-top: 2px solid rgba(59, 53, 48, 0.55);
	color: var(--ink);
}

.site-footer::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 0;
	right: 0;
	height: 4px;
	background: repeating-linear-gradient(90deg, rgba(59, 53, 48, 0.28) 0 10px, transparent 10px 20px);
	opacity: 0.7;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.45fr 0.85fr 1fr;
	gap: 44px;
	padding-block: 38px 26px;
}

.brand--footer {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}

.brand--footer .brand__name {
	font-size: 31px;
}

.brand__logo-img {
	display: block;
	height: 54px;
	width: auto;
	padding: 3px;
	background: #fcf8ef;
	border: 1.5px solid rgba(59, 53, 48, 0.25);
	border-radius: 6px;
	box-shadow: 1px 2px 0 rgba(59, 53, 48, 0.12);
}

.footer__about {
	margin: 12px 0 10px;
	max-width: 46ch;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ink-3);
}

.footer__editor {
	margin: 0 0 12px;
	font-family: var(--font-ui);
	font-size: 12.5px;
	color: var(--ink-3);
}

.footer__age {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--font-ui);
	font-size: 11.5px;
	line-height: 1.4;
	color: var(--ink-3);
}

.age-badge {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 23px;
	border: 1.5px solid var(--ink-2);
	border-radius: 3px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--ink-2);
}

.footer__heading {
	margin: 4px 0 12px;
	font-family: var(--font-hand);
	font-size: 23px;
	font-weight: 700;
	line-height: 1;
	transform: rotate(-0.4deg);
}

.menu--footer {
	display: grid;
	gap: 7px;
}

.menu--footer a {
	font-family: var(--font-ui);
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--ink-3);
	text-decoration: none;
}

.menu--footer a:hover {
	color: var(--red-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.footer__contacts {
	border-top: 2px dotted rgba(59, 53, 48, 0.28);
}

.footer__contacts-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 26px;
	padding-block: 15px;
}

.footer__contact {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--font-ui);
	font-size: 12.5px;
	color: var(--ink-3);
	text-decoration: none;
}

.footer__contact:hover {
	color: var(--red-dark);
}

.footer__contact .i38-icon {
	color: var(--brick);
}

.footer__socials {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.footer__social {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border: 1.5px solid rgba(59, 53, 48, 0.35);
	border-radius: 50%;
	color: var(--ink-2);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.footer__social:hover {
	color: var(--red);
	border-color: var(--red);
	transform: translateY(-1px);
}

.footer__socials--dark .footer__social {
	border-color: rgba(193, 18, 31, 0.45);
	color: var(--red-dark);
}

.footer__bottom {
	border-top: 1px solid rgba(59, 53, 48, 0.22);
	background: rgba(59, 53, 48, 0.05);
}

.footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 24px;
	padding-block: 11px;
	font-family: var(--font-ui);
	font-size: 11.5px;
	color: var(--ink-3);
}

.footer__bottom-inner p {
	margin: 0;
}

.footer__privacy a {
	color: var(--ink-3);
	text-decoration: none;
	border-bottom: 1px dotted rgba(59, 53, 48, 0.45);
}

.footer__privacy a:hover {
	color: var(--red-dark);
}

/* ---------- 12. Архивы и пагинация ---------- */
.archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 322px;
	gap: 36px;
	align-items: start;
	padding-top: 26px;
}

.archive-main {
	min-width: 0;
}

.archive-head {
	margin: 10px 0 26px;
}

.archive-head__title {
	display: inline-block;
	margin: 0 0 10px;
	padding-bottom: 15px;
	font-family: var(--font-hand);
	font-size: 52px;
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.4px;
	background: var(--underline) no-repeat left bottom / 100% 10px;
	transform: rotate(-0.4deg);
}

.archive-head__desc {
	max-width: 68ch;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-3);
}

.archive-head__desc p {
	margin-bottom: 0.6em;
}

.archive-head__search {
	max-width: 420px;
	margin-top: 16px;
}

.card-grid {
	display: grid;
	gap: 24px;
}

.card-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	font-family: var(--font-ui);
	font-size: 14px;
	color: var(--ink);
	text-decoration: none;
	background: linear-gradient(180deg, #fdf8ee, #f3e9d4);
	border: 1.8px solid var(--ink-2);
	border-radius: 5px;
	box-shadow: 2px 2px 0 rgba(59, 53, 48, 0.2);
}

.pagination .page-numbers:hover {
	color: var(--red);
	transform: translateY(-1px);
}

.pagination .page-numbers.current {
	background: var(--red);
	border-color: var(--bordeaux);
	color: #fff6e7;
	box-shadow: 2px 2px 0 rgba(90, 10, 16, 0.3);
}

.pagination .page-numbers.dots {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	font-family: var(--font-ui);
	font-size: 11.8px;
	color: var(--muted);
}

.crumbs a {
	color: var(--ink-3);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--red);
	text-decoration: underline;
}

.crumbs__sep {
	opacity: 0.5;
}

/* ---------- 13. Материал, страница, комментарии ---------- */
.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 322px;
	gap: 40px;
	align-items: start;
	padding-top: 26px;
}

.single {
	min-width: 0;
}

.single__head {
	margin-bottom: 18px;
}

.single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.single__title {
	margin: 0 0 14px;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -0.6px;
}

.single__lead {
	max-width: 68ch;
	margin: 0 0 16px;
	font-size: 19px;
	line-height: 1.55;
	color: var(--ink-3);
}

.single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
	padding-top: 12px;
	border-top: 2px dotted rgba(59, 53, 48, 0.28);
	font-family: var(--font-ui);
	font-size: 12.5px;
	color: var(--muted);
}

.single__reading {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.single__author strong {
	color: var(--ink-2);
}

.single__media {
	position: relative;
	margin: 22px 0 26px;
	padding: 10px;
	background: #fdf9f0;
	border-radius: 4px;
	box-shadow: 0 14px 26px -22px rgba(20, 15, 10, 0.6);
}

.single__media::after {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid rgba(59, 53, 48, 0.18);
	pointer-events: none;
}

.single__img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid rgba(59, 53, 48, 0.2);
}

.single__caption {
	margin-top: 8px;
	font-family: var(--font-ui);
	font-size: 12px;
	color: var(--muted);
}

.single__body {
	position: relative;
	padding: 30px 34px;
	border-radius: 10px;
	background: linear-gradient(180deg, #fbf6ea, #f7efde);
	box-shadow: var(--shadow-card);
}

.single__body::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid rgba(59, 53, 48, 0.8);
	border-radius: 11px;
	filter: url("#i38-pencil");
	pointer-events: none;
}

.entry-content {
	font-size: 17.5px;
	line-height: 1.75;
	color: var(--ink);
	overflow-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > * + * {
	margin-top: 1.05em;
}

.entry-content p {
	margin: 0;
}

.entry-content h2 {
	margin: 1.7em 0 0.5em;
	font-family: var(--font-hand);
	font-size: 35px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.2px;
}

.entry-content h3 {
	margin: 1.4em 0 0.4em;
	font-size: 25px;
	line-height: 1.25;
}

.entry-content h4 {
	margin: 1.2em 0 0.35em;
	font-size: 20px;
}

.entry-content a {
	color: var(--red-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.entry-content a:hover {
	color: var(--red);
}

.entry-content strong {
	color: var(--ink);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content li::marker {
	color: var(--red);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 20px;
	border-left: 3px solid var(--red);
	font-style: italic;
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-3);
}

.entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--font-ui);
	font-style: normal;
	font-size: 12.5px;
	color: var(--muted);
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	margin-top: 8px;
	font-family: var(--font-ui);
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--muted);
	text-align: center;
}

.entry-content img {
	border-radius: 4px;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border-bottom: 1.5px dotted rgba(59, 53, 48, 0.3);
	text-align: left;
}

.entry-content th {
	font-family: var(--font-ui);
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.entry-content code {
	padding: 1px 5px;
	background: rgba(59, 53, 48, 0.08);
	border-radius: 3px;
	font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 16px 18px;
	background: #2f2a25;
	color: #f4ebd9;
	border-radius: 6px;
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.6;
}

.entry-content pre code {
	background: transparent;
	padding: 0;
	color: inherit;
}

.entry-content hr {
	height: 10px;
	margin: 2em 0;
	border: 0;
	background: var(--underline) no-repeat center / 60% 8px;
	opacity: 0.7;
}

.entry-content iframe,
.entry-content video {
	max-width: 100%;
	border-radius: 4px;
}

.entry-content .wp-block-button__link {
	border-radius: 8px;
}

.single__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 24px 0 10px;
	padding-top: 18px;
	border-top: 2px dotted rgba(59, 53, 48, 0.3);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
}

.share__label {
	margin-right: 3px;
	font-family: var(--font-ui);
	font-size: 11.8px;
	color: var(--muted);
}

.share__link {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1.5px solid rgba(59, 53, 48, 0.35);
	border-radius: 50%;
	background: transparent;
	color: var(--ink-2);
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.share__link:hover {
	color: var(--red);
	border-color: var(--red);
}

.share__link.is-copied {
	color: var(--red);
	border-color: var(--red);
	background: rgba(193, 18, 31, 0.08);
}

.section--related {
	margin-top: 34px;
}

.section--related .section-head__title {
	font-size: 32px;
	padding-bottom: 9px;
	background-size: 100% 8px;
}

/* Одиночное мнение */
.single--opinion .single__title {
	font-size: 40px;
}

.opinion-author {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 12px;
	border-top: 2px dotted rgba(59, 53, 48, 0.28);
}

.opinion-author__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.opinion-author__text strong {
	font-size: 16px;
	line-height: 1.3;
}

.opinion-author__text span {
	font-family: var(--font-ui);
	font-size: 12.5px;
	color: var(--muted);
}

.opinion-author__date {
	margin-left: auto;
	font-family: var(--font-ui);
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}

.single__quote {
	position: relative;
	margin: 24px 0;
	padding: 24px 26px 24px 62px;
	border: 2px dashed rgba(193, 18, 31, 0.45);
	border-radius: 12px;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 20px;
	line-height: 1.6;
	color: var(--ink-2);
	background: rgba(251, 246, 234, 0.65);
}

.single__quote-icon {
	position: absolute;
	left: 16px;
	top: 20px;
	color: var(--red);
}

/* Событие */
.event-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 32px;
	margin: 20px 0 26px;
	padding: 18px 22px;
	border: 2px dashed rgba(59, 53, 48, 0.45);
	border-radius: 10px;
	background: rgba(251, 246, 234, 0.6);
}

.event-info__row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.event-info__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid rgba(59, 53, 48, 0.4);
	border-radius: 50%;
	color: var(--brick);
	flex: none;
}

.event-info__text {
	display: flex;
	flex-direction: column;
}

.event-info__label {
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--muted);
}

.event-info__value {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
}

.event-info .btn {
	margin-left: auto;
}

.event-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.event-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	padding: 12px 0;
	border-bottom: 2px dotted rgba(59, 53, 48, 0.25);
}

.event-list__date {
	font-family: var(--font-ui);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--red);
	white-space: nowrap;
	min-width: 130px;
}

.event-list__title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 16px;
	color: var(--ink);
	text-decoration: none;
}

.event-list__title:hover {
	color: var(--red-dark);
	text-decoration: underline;
}

.event-list__place,
.event-list__type {
	font-family: var(--font-ui);
	font-size: 12px;
	color: var(--muted);
}

.event-list__type {
	margin-left: auto;
	font-family: var(--font-hand);
	font-size: 15px;
	color: var(--red);
}

.event-list--big .event-list__item {
	padding: 15px 0;
}

.event-list--big .event-list__title {
	font-size: 18px;
}

/* Страница */
.page-layout {
	padding-top: 26px;
}

.page-shell {
	max-width: 900px;
	margin-inline: auto;
}

.page__head {
	margin-bottom: 22px;
}

.page__head--wide {
	max-width: 900px;
}

.page__title {
	display: inline-block;
	margin: 0 0 12px;
	padding-bottom: 15px;
	font-family: var(--font-hand);
	font-size: 56px;
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.5px;
	background: var(--underline) no-repeat left bottom / 100% 10px;
	transform: rotate(-0.4deg);
}

.page__lead {
	max-width: 70ch;
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-3);
}

.page__body {
	position: relative;
	padding: 30px 34px;
	border-radius: 10px;
	background: linear-gradient(180deg, #fbf6ea, #f7efde);
	box-shadow: var(--shadow-card);
}

.page__body::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid rgba(59, 53, 48, 0.8);
	border-radius: 11px;
	filter: url("#i38-pencil");
	pointer-events: none;
}

.calendar-page {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 34px;
	align-items: start;
}

.panel--calendar-wide {
	padding: 22px 20px 18px;
}

.calendar-page__calendar {
	position: sticky;
	top: 20px;
}

.calendar-page__content {
	margin-top: 24px;
	max-width: 68ch;
}

/* Комментарии */
.comments {
	margin-top: 34px;
	padding-top: 22px;
	border-top: 2px dotted rgba(59, 53, 48, 0.3);
}

.comments__title,
.comments__form-title {
	font-family: var(--font-hand);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.05;
	margin: 0 0 16px;
}

.comments__list {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.comments__list .children {
	list-style: none;
	margin: 14px 0 0;
	padding-left: 26px;
	border-left: 2px dotted rgba(59, 53, 48, 0.25);
}

.comment-card {
	padding: 14px 16px;
	margin-bottom: 14px;
	border-radius: 8px;
	background: rgba(251, 246, 234, 0.7);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 2px 3px 0 rgba(59, 53, 48, 0.08);
}

.comment-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.comment-card__author {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.comment-card__author strong {
	font-family: var(--font-serif);
	font-size: 14.5px;
}

.comment-card__author time {
	font-family: var(--font-ui);
	font-size: 11.5px;
	color: var(--muted);
}

.comment-card__reply {
	margin-left: auto;
	font-family: var(--font-ui);
	font-size: 12px;
}

.comment-card__body {
	font-size: 15.5px;
	line-height: 1.6;
}

.comment-card__body p:last-child {
	margin-bottom: 0;
}

.comment-card__moderation {
	font-family: var(--font-ui);
	font-size: 12px;
	color: var(--red);
}

.comments__notes,
.comments__closed {
	font-family: var(--font-ui);
	font-size: 12.5px;
	color: var(--muted);
}

.comment-form {
	display: grid;
	gap: 12px;
	max-width: 640px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 5px;
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 500;
	color: var(--ink-3);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1.8px solid rgba(59, 53, 48, 0.5);
	border-radius: 5px;
	background: #fdf9f0;
	font-family: var(--font-serif);
	font-size: 15px;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-family: var(--font-ui);
	font-size: 12px;
	color: var(--ink-3);
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-size: 12px;
	color: var(--ink-3);
}

.comment-form .form-submit {
	margin-top: 4px;
}

/* ---------- 14. Дизайн-система, поддержка, 404 ---------- */
.ds-page .page__head {
	max-width: 900px;
}

.ds-section {
	margin: 36px 0 0;
	padding-top: 22px;
	border-top: 2px dotted rgba(59, 53, 48, 0.3);
}

.ds-section__title {
	margin: 0 0 16px;
	font-family: var(--font-hand);
	font-size: 33px;
	font-weight: 700;
	line-height: 1.05;
}

.ds-palette {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
}

.ds-swatch {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 10px;
	background: rgba(251, 246, 234, 0.6);
	border-radius: 8px;
	border: 1px solid rgba(59, 53, 48, 0.15);
}

.ds-swatch__chip {
	display: block;
	height: 64px;
	border-radius: 5px;
	border: 1px solid rgba(59, 53, 48, 0.25);
	box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.06);
}

.ds-swatch__name {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 14.5px;
}

.ds-swatch__hex {
	font-family: var(--font-ui);
	font-size: 12px;
	color: var(--ink-3);
}

.ds-swatch__var {
	font-family: ui-monospace, Consolas, monospace;
	font-size: 11px;
	color: var(--red-dark);
}

.ds-swatch__note {
	font-family: var(--font-ui);
	font-size: 11.5px;
	color: var(--muted);
}

.ds-type {
	display: grid;
	gap: 18px;
}

.ds-type__row {
	padding-bottom: 14px;
	border-bottom: 1px dashed rgba(59, 53, 48, 0.25);
}

.ds-type__label {
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-ui);
	font-size: 11px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--muted);
}

.ds-type__row p {
	margin: 0;
}

.ds-type__h1 {
	font-family: var(--font-hand);
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
}

.ds-type__h2 {
	font-family: var(--font-hand);
	font-size: 44px;
	font-weight: 700;
	line-height: 1;
}

.ds-type__h3 {
	font-family: var(--font-serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
}

.ds-type__body {
	font-size: 18px;
	line-height: 1.7;
	max-width: 70ch;
}

.ds-type__meta {
	font-family: var(--font-ui);
	font-size: 13px;
	color: var(--muted);
}

.ds-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.ds-cards {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 22px;
	align-items: start;
}

.ds-demo-card {
	max-width: 420px;
}

.ds-demo-quote {
	min-height: 0;
}

.ds-notes {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-3);
}

.ds-notes p {
	margin-bottom: 10px;
}

.ds-form {
	display: grid;
	gap: 12px;
	max-width: 560px;
}

.ds-code {
	margin: 0 0 10px;
	padding: 18px 20px;
	background: #2f2a25;
	color: #f4ebd9;
	border-radius: 8px;
	overflow-x: auto;
	font-size: 13px;
	line-height: 1.6;
}

.ds-code code {
	font-family: ui-monospace, Consolas, monospace;
	white-space: pre;
}

.ds-note {
	font-family: var(--font-ui);
	font-size: 12.5px;
	color: var(--muted);
}

/* Страница поддержки */
.support-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 322px;
	gap: 36px;
	align-items: start;
}

.support-tiers {
	margin-top: 30px;
}

.support-tiers__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.support-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px;
	text-decoration: none;
	color: var(--ink);
	background: linear-gradient(180deg, #fdf8ee, #f5ebd7);
	border: 1.8px solid var(--ink-2);
	border-radius: 8px;
	box-shadow: 2px 3px 0 rgba(59, 53, 48, 0.2);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.support-tier:hover {
	transform: translateY(-2px) rotate(-0.3deg);
	box-shadow: 3px 5px 0 rgba(59, 53, 48, 0.22);
	color: var(--ink);
}

.support-tier__sum {
	font-family: var(--font-hand);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--red);
}

.support-tier__note {
	font-family: var(--font-ui);
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--ink-3);
}

.support-where {
	margin-top: 30px;
}

.support-where__list {
	margin: 0;
	padding-left: 1.3em;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink-3);
}

.support-where__list li + li {
	margin-top: 7px;
}

.support-where__list li::marker {
	color: var(--red);
}

.support-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	margin-top: 30px;
	padding: 20px 24px;
	border: 2px dashed rgba(193, 18, 31, 0.55);
	border-radius: 12px;
}

.support-cta__title {
	margin: 0 0 6px;
	font-family: var(--font-hand);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.05;
}

.support-cta p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-3);
}

.support-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* 404 */
.not-found {
	max-width: 720px;
	margin-inline: auto;
	padding: 38px 40px 32px;
	text-align: left;
}

.not-found__code {
	margin: 0 0 4px;
	font-family: var(--font-hand);
	font-size: 96px;
	font-weight: 700;
	line-height: 0.8;
	color: var(--red);
	transform: rotate(-2deg);
}

.not-found__title {
	margin: 0 0 10px;
	font-family: var(--font-hand);
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
}

.not-found__text {
	max-width: 52ch;
	font-size: 16px;
	color: var(--ink-3);
}

.not-found__search {
	max-width: 420px;
	margin: 16px 0;
}

.not-found__latest {
	margin-top: 26px;
	padding-top: 16px;
	border-top: 2px dotted rgba(59, 53, 48, 0.3);
}

.not-found__latest .section-head__kicker {
	margin-bottom: 6px;
}

.empty-state {
	max-width: 640px;
	padding: 28px 30px;
}

.empty-state__title {
	margin: 0 0 8px;
	font-family: var(--font-hand);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.05;
}

.empty-state p {
	font-size: 15.5px;
	color: var(--ink-3);
}

.empty-state .searchform {
	margin: 14px 0 0;
	max-width: 420px;
}

/* ---------- 15. Формы ---------- */
.form-row {
	margin: 0 0 14px;
}

.form-row label {
	display: block;
	margin-bottom: 5px;
	font-family: var(--font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2px;
	color: var(--ink-3);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1.8px solid rgba(59, 53, 48, 0.5);
	border-radius: 5px;
	background: #fdf9f0;
	font-family: var(--font-serif);
	font-size: 15px;
	line-height: 1.45;
	color: var(--ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	border-color: var(--red);
	box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.12);
	outline: none;
}

.form-row textarea {
	min-height: 130px;
	resize: vertical;
}

.form-row--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.form-row--split .form-row {
	margin-bottom: 0;
}

.form-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0 0 16px;
	font-family: var(--font-ui);
	font-size: 12px;
	line-height: 1.45;
	color: var(--ink-3);
}

.form-consent input {
	margin-top: 2px;
	accent-color: var(--red);
}

.form-consent a {
	color: var(--red-dark);
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.form-hint {
	font-family: var(--font-ui);
	font-size: 11.5px;
	color: var(--muted);
}

.form-message {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 6px;
	font-family: var(--font-ui);
	font-size: 13.5px;
	line-height: 1.5;
}

.form-message--ok {
	background: rgba(60, 120, 60, 0.1);
	border: 1px dashed rgba(46, 100, 46, 0.5);
	color: #2c5a2c;
}

.form-message--error {
	background: rgba(193, 18, 31, 0.08);
	border: 1px dashed rgba(193, 18, 31, 0.5);
	color: var(--red-dark);
}

.form-honeypot {
	position: absolute !important;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

.form-card {
	position: relative;
	margin: 22px 0;
	padding: 24px 26px;
	border-radius: 10px;
	background: linear-gradient(180deg, #fbf6ea, #f7efde);
	box-shadow: var(--shadow-card);
}

.form-card::before {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid rgba(59, 53, 48, 0.8);
	border-radius: 11px;
	filter: url("#i38-pencil");
	pointer-events: none;
}

.form-card__title {
	margin: 0 0 6px;
	font-family: var(--font-hand);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.05;
}

.form-card__note {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ink-3);
	margin-bottom: 16px;
}

/* Форма внутри страницы: без второй рамки и дублирующего заголовка */
.page__body .form-card,
.entry-content .form-card {
	margin-top: 20px;
	padding: 20px 0 0;
	background: transparent;
	box-shadow: none;
	border-top: 2px dotted rgba(59, 53, 48, 0.3);
	border-radius: 0;
}

.page__body .form-card::before,
.entry-content .form-card::before {
	display: none;
}

.page__body .form-card__title,
.entry-content .form-card__title {
	display: none;
}

.page__body .i38-form,
.entry-content .i38-form {
	max-width: 640px;
}

/* ---------- 16. Адаптивность ---------- */
@media (max-width: 1120px) {
	:root {
		--wrap: 100%;
	}

	.layout {
		grid-template-columns: minmax(0, 1fr) 296px;
	}

	.layout__cards {
		grid-template-columns: 1.5fr 1fr;
	}

	.archive-layout,
	.single-layout,
	.support-page__grid {
		grid-template-columns: minmax(0, 1fr) 296px;
		gap: 30px;
	}

	.masthead__inner {
		grid-template-columns: minmax(240px, 1fr) minmax(240px, 420px) auto;
		gap: 18px;
	}

	.ds-cards {
		grid-template-columns: 1fr 1fr;
	}

	.ds-notes {
		grid-column: 1 / -1;
	}
}

@media (max-width: 980px) {
	.topbar__right {
		display: none;
	}

	.topbar__inner {
		justify-content: flex-start;
	}

	.masthead__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"brand actions"
			"search search";
		row-gap: 12px;
	}

	.brand {
		grid-area: brand;
		min-width: 0;
	}

	.brand__text {
		min-width: 0;
	}

	.masthead__search {
		grid-area: search;
		justify-self: stretch;
	}

	.masthead__actions {
		grid-area: actions;
	}

	.burger {
		display: inline-flex;
	}

	.mainnav {
		display: none;
		margin-top: 10px;
		border-bottom-width: 2px;
	}

	.mainnav.is-open {
		display: block;
	}

	.mainnav__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding-block: 14px 18px;
		position: relative;
	}

	.mainnav__divider {
		display: none;
	}

	.mainnav__close {
		display: grid;
		place-items: center;
		position: absolute;
		top: 8px;
		right: 16px;
		width: 34px;
		height: 34px;
		border: 1.5px solid rgba(59, 53, 48, 0.4);
		border-radius: 50%;
		background: transparent;
		color: var(--ink-2);
		cursor: pointer;
	}

	.menu--primary,
	.menu--rubrics {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		width: 100%;
	}

	.menu--primary .menu-item > a {
		font-size: 24px;
		padding-block: 5px;
	}

	.menu--rubrics {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 4px 16px;
		margin-top: 6px;
		padding-top: 12px;
		border-top: 2px dotted rgba(59, 53, 48, 0.28);
	}

	.menu--rubrics .menu-item > a {
		font-size: 14px;
	}

	.cta-row {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-bottom: 30px;
	}

	.layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"head"
			"cards"
			"feed"
			"official"
			"calendar";
		row-gap: 30px;
	}

	.layout__cards {
		grid-template-columns: 1fr;
	}

	.home-side {
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}

	.card--hero .card__title {
		font-size: 30px;
	}

	.archive-layout,
	.single-layout,
	.support-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 22px;
	}

	.panel--popular,
	.panel--promo {
		margin-top: 0;
	}

	.opinions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.opinions .quote-card:last-child {
		grid-column: 1 / -1;
	}

	.card-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.card-grid--3 > :last-child {
		grid-column: 1 / -1;
	}

	.calendar-page {
		grid-template-columns: 1fr;
	}

	.calendar-page__calendar {
		position: static;
		max-width: 460px;
	}

	.footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.footer__brand {
		grid-column: 1 / -1;
	}

	.ds-cards {
		grid-template-columns: 1fr;
	}

	.ds-demo-card {
		max-width: none;
	}

	.support-cta {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 760px) {
	body {
		font-size: 16.5px;
	}

	.wrap {
		padding-inline: 18px;
	}

	.topbar {
		font-size: 11.5px;
	}

	.topbar__inner {
		padding-block: 7px;
	}

	.topbar__left {
		gap: 4px 6px;
	}

	.devbar__inner {
		padding-block: 7px;
	}

	.devbar__badge {
		font-size: 9px;
		padding: 5px 8px;
	}

	.devbar__text {
		width: 100%;
		font-size: 11.5px;
	}

	.brand__logo {
		width: 54px;
		height: 68px;
	}

	.brand__name {
		font-size: 36px;
	}

	.brand__tagline {
		display: none;
	}

	.masthead {
		padding-top: 12px;
	}

	.masthead__actions {
		gap: 7px;
		flex: none;
	}

	.masthead__actions .btn {
		padding: 8px 10px;
		font-size: 18px;
	}

	.masthead__actions .btn--login {
		display: none;
	}

	.burger__text {
		display: none;
	}

	.burger {
		padding: 8px;
	}

	.section-head {
		flex-wrap: wrap;
		align-items: center;
		gap: 4px 14px;
		margin-bottom: 14px;
	}

	.section-head__title {
		font-size: 35px;
		padding-bottom: 11px;
	}

	.section-head__kicker {
		font-size: 16px;
	}

	.section-head__more {
		font-size: 16px;
		margin-left: auto;
	}

	.card {
		padding: 9px;
	}

	.card--hero .card__title {
		font-size: 27px;
	}

	.card--standard .card__title,
	.card--small .card__title {
		font-size: 20px;
	}

	.card__excerpt {
		font-size: 14.5px;
	}

	.home-side {
		grid-template-columns: 1fr;
	}

	.panel {
		padding: 16px 14px 12px;
	}

	.panel__title {
		font-size: 26px;
	}

	.feed__link {
		grid-template-columns: 46px minmax(0, 1fr);
		gap: 8px;
	}

	.feed__time {
		font-size: 15.5px;
	}

	.official {
		padding: 18px 18px 8px;
	}

	.official__title {
		font-size: 20px;
	}

	.official__excerpt {
		font-size: 14.5px;
	}

	.official__stamp {
		right: -30px;
		top: 30px;
	}

	.official__stamp-svg {
		width: 170px;
		height: 170px;
	}

	.opinions {
		grid-template-columns: 1fr;
	}

	.opinions .quote-card:last-child {
		grid-column: auto;
	}

	.card-grid--2,
	.card-grid--3 {
		grid-template-columns: 1fr;
	}

	.card-grid--3 > :last-child {
		grid-column: auto;
	}

	.support {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 20px;
		text-align: left;
	}

	.support__stamp svg {
		width: 72px;
		height: 72px;
	}

	.support__title {
		font-size: 27px;
	}

	.support__btn {
		justify-self: start;
	}

	.single__title {
		font-size: 30px;
	}

	.single__lead {
		font-size: 17px;
	}

	.single__body,
	.page__body {
		padding: 22px 20px;
	}

	.entry-content {
		font-size: 16.5px;
		line-height: 1.7;
	}

	.entry-content h2 {
		font-size: 29px;
	}

	.entry-content h3 {
		font-size: 22px;
	}

	.archive-head__title {
		font-size: 40px;
	}

	.page__title {
		font-size: 42px;
	}

	.sidebar {
		grid-template-columns: 1fr;
	}

	.footer__grid {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-block: 28px 20px;
	}

	.footer__socials {
		margin-left: 0;
	}

	.footer__bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.support-tiers__row {
		grid-template-columns: 1fr;
	}

	.support-tier__sum {
		font-size: 26px;
	}

	.not-found {
		padding: 26px 20px;
	}

	.not-found__code {
		font-size: 74px;
	}

	.not-found__title {
		font-size: 32px;
	}

	.ds-palette {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}

	.ds-type__h1 {
		font-size: 46px;
	}

	.ds-type__h2 {
		font-size: 34px;
	}

	.ds-type__h3 {
		font-size: 25px;
	}

	.event-info {
		gap: 14px 20px;
		padding: 16px;
	}

	.event-info .btn {
		margin-left: 0;
		width: 100%;
	}

	.event-list__date {
		min-width: 100%;
	}

	.event-list__type {
		margin-left: 0;
	}

	.opinion-author {
		flex-wrap: wrap;
	}

	.opinion-author__date {
		margin-left: 0;
		width: 100%;
	}

	.single__quote {
		padding: 20px 20px 20px 52px;
		font-size: 18px;
	}

	.form-row--split {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.form-card {
		padding: 20px 18px;
	}

	.cal__day {
		height: 34px;
	}
}

@media (max-width: 420px) {
	.brand__logo {
		width: 48px;
		height: 60px;
	}

	.brand__name {
		font-size: 30px;
	}

	.brand__tagline {
		display: none;
	}

	.masthead__actions .btn--support {
		padding: 8px 9px;
	}

	.card--hero .card__title {
		font-size: 24px;
	}

	.section-head__title {
		font-size: 31px;
	}

	.masthead__actions .btn {
		font-size: 16.5px;
		padding: 7px 9px;
	}

	.cal__weekday {
		font-size: 13px;
	}

	.cal__day {
		height: 32px;
		font-size: 12px;
	}
}

@media (max-width: 345px) {
	.brand__name {
		font-size: 27px;
	}

	.masthead__actions .btn--support span {
		display: none;
	}

	.masthead__actions .btn--support {
		padding: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.topbar,
	.devbar,
	.mainnav,
	.masthead__search,
	.masthead__actions,
	.sidebar,
	.cta-row,
	.support,
	.site-footer,
	.share,
	.comments {
		display: none !important;
	}

	body {
		background: #fff;
	}

	.single__body,
	.card {
		box-shadow: none;
	}
}
