/*
Theme Name: Krysha i Krovlya SPb
Theme URI: https://krysha-krovlya-spb.org/
Description: Петербургская тема для журнала о кровле: ночная Нева, мокрый гранит, латунь фонарей и тёплая бумага для чтения. Классическая антиква в заголовках, чугунная решётка вместо разделителей, боковая колонка перелинковки на всех внутренних страницах.
Author: Krysha i Krovlya SPb
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kks
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, dark
*/

/* ============================================================
   1. Tokens
   ============================================================ */

:root {
	--neva: #0a1723;
	--neva-2: #0f2233;
	--neva-3: #16324a;
	--granite: #24384e;
	--granite-2: #3b5471;
	--fog: #8ea6c0;
	--fog-2: #6b849e;
	--ice: #dbe8f5;
	--white-night: #f2f7fc;

	--paper: #f6f2e9;
	--paper-2: #ece5d6;
	--paper-line: #ddd3bf;
	--basalt: #16222e;
	--basalt-soft: #45566a;

	--brass: #d9b23c;
	--brass-2: #eccd68;
	--brass-dim: #a5851f;
	--terracotta: #c2643f;
	--cobalt: #3a7bb8;

	--wrap: 1300px;
	--gut: 26px;
	--rail: 340px;
	--gap: 44px;

	--radius: 3px;
	--radius-lg: 8px;

	--font-head: "Playfair Display", "Times New Roman", Georgia, serif;
	--font-body: "Manrope", "Segoe UI", Arial, sans-serif;
	--font-mono: "JetBrains Mono", Consolas, "Courier New", monospace;

	--edge: 1px solid rgba(142, 166, 192, .16);
	--edge-strong: 1px solid rgba(142, 166, 192, .3);

	--shadow: 0 18px 50px rgba(3, 10, 18, .5);
	--shadow-paper: 0 22px 60px rgba(3, 10, 18, .45);

	--grille-pattern:
		radial-gradient(circle at 12px 8px, var(--brass) 0 2px, transparent 2.4px),
		repeating-linear-gradient(90deg, rgba(59, 84, 113, .8) 0 1px, transparent 1px 12px);
}

/* ============================================================
   2. Reset and base
   ============================================================ */

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

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

body {
	margin: 0;
	background: var(--neva);
	background-image:
		radial-gradient(1100px 620px at 78% -12%, rgba(22, 50, 74, .85), transparent 70%),
		radial-gradient(760px 520px at 4% 6%, rgba(36, 56, 78, .5), transparent 72%);
	background-attachment: fixed;
	color: var(--ice);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.72;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	display: block;
}

img,
video {
	height: auto;
}

a {
	color: var(--brass-2);
	text-decoration: none;
	transition: color .16s ease;
}

a:hover {
	color: var(--white-night);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.14;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1.2em;
}

ul, ol {
	margin: 0 0 1.2em;
	padding-left: 1.25em;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--brass);
	outline-offset: 3px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

.meta {
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--fog-2);
}

.skip {
	position: absolute;
	left: -9999px;
	z-index: 999;
	padding: 12px 20px;
	background: var(--brass);
	color: var(--neva);
	font-weight: 700;
}

.skip:focus {
	left: 16px;
	top: 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.shell {
	overflow-x: clip;
}

.main {
	display: block;
	min-height: 40vh;
}

/* Cast iron railing divider. */

.grille {
	display: block;
	height: 16px;
	background-image: var(--grille-pattern);
	background-size: 24px 16px, 12px 16px;
	background-repeat: repeat-x;
	opacity: .65;
	border-bottom: 1px solid rgba(142, 166, 192, .2);
}

.grille--wide {
	opacity: .8;
}

/* ============================================================
   3. Ribbon and masthead
   ============================================================ */

.ribbon {
	background: rgba(6, 15, 24, .9);
	border-bottom: var(--edge);
}

.ribbon__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	min-height: 40px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .05em;
	color: var(--fog-2);
}

.ribbon__city {
	padding: 3px 10px;
	background: var(--brass);
	color: var(--neva);
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: var(--radius);
}

.ribbon__phone {
	margin-left: auto;
	color: var(--ice);
	font-weight: 500;
	letter-spacing: .06em;
}

.ribbon__phone:hover {
	color: var(--brass-2);
}

.masthead {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(10, 23, 35, .82);
	backdrop-filter: blur(10px);
	transition: background .2s ease, box-shadow .2s ease;
}

.masthead.is-stuck {
	background: rgba(8, 18, 28, .96);
	box-shadow: 0 12px 30px rgba(3, 10, 18, .45);
}

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 88px;
}

.masthead.is-stuck .masthead__inner {
	min-height: 70px;
}

.brand__link,
.brand .custom-logo-link {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--ice);
}

.brand__mark {
	display: block;
	color: var(--granite-2);
	transition: color .2s ease;
}

.brand__link:hover .brand__mark {
	color: var(--fog);
}

.brand__text {
	display: block;
}

.brand__name {
	display: block;
	font-family: var(--font-head);
	font-size: 25px;
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: .005em;
	color: var(--white-night);
}

.brand__name em {
	font-style: italic;
	font-weight: 500;
	color: var(--brass);
}

.brand__city {
	display: block;
	margin-top: 3px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--fog-2);
}

.nav {
	margin-left: auto;
}

.nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav__list li {
	position: relative;
}

.nav__list a {
	display: block;
	padding: 9px 14px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ice);
	border-radius: var(--radius);
	transition: background .16s ease, color .16s ease;
}

.nav__list a:hover {
	background: rgba(59, 84, 113, .34);
	color: var(--white-night);
}

.nav__list .current-menu-item > a,
.nav__list .current-cat > a,
.nav__list .current_page_item > a {
	color: var(--neva);
	background: var(--brass);
}

.nav__list .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 5;
	min-width: 230px;
	margin: 0;
	padding: 8px;
	list-style: none;
	display: none;
	background: var(--neva-2);
	border: var(--edge-strong);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
	display: block;
}

.burger {
	display: none;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 9px 14px;
	background: transparent;
	color: var(--ice);
	border: var(--edge-strong);
	border-radius: var(--radius);
	cursor: pointer;
}

.burger__lines,
.burger__lines::before,
.burger__lines::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--brass);
	transition: transform .18s ease, opacity .18s ease;
}

.burger__lines {
	position: relative;
}

.burger__lines::before,
.burger__lines::after {
	content: "";
	position: absolute;
	left: 0;
}

.burger__lines::before {
	top: -6px;
}

.burger__lines::after {
	top: 6px;
}

.burger.is-active .burger__lines {
	background: transparent;
}

.burger.is-active .burger__lines::before {
	transform: translateY(6px) rotate(45deg);
}

.burger.is-active .burger__lines::after {
	transform: translateY(-6px) rotate(-45deg);
}

.burger__text {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ============================================================
   4. Hero
   ============================================================ */

.hero {
	position: relative;
	overflow: hidden;
	padding: 78px 0 84px;
	border-bottom: var(--edge);
}

.hero__glow {
	position: absolute;
	inset: -40% -10% auto auto;
	width: 780px;
	height: 780px;
	background: radial-gradient(circle, rgba(217, 178, 60, .17), transparent 62%);
	pointer-events: none;
}

.hero__skyline {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 130px;
	background:
		repeating-linear-gradient(90deg, transparent 0 46px, rgba(142, 166, 192, .08) 46px 47px),
		linear-gradient(180deg, transparent, rgba(6, 15, 24, .55));
	pointer-events: none;
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
	gap: 56px;
	align-items: start;
}

.hero__kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brass);
}

.hero__kicker-dot {
	display: block;
	width: 34px;
	height: 2px;
	background: var(--brass);
}

.hero__title {
	margin: 0 0 24px;
	font-size: clamp(42px, 6vw, 76px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.012em;
	color: var(--white-night);
}

.hero__title-em {
	display: block;
	margin-top: 6px;
	font-style: italic;
	font-weight: 500;
	color: var(--brass);
}

.hero__lede {
	max-width: 60ch;
	margin: 0 0 30px;
	font-size: 18.5px;
	color: var(--fog);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__card {
	position: relative;
	padding: 30px 32px 26px;
	background: linear-gradient(165deg, rgba(22, 50, 74, .92), rgba(10, 23, 35, .92));
	border: var(--edge-strong);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.hero__card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--brass), transparent);
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero__card-key {
	display: block;
	margin-bottom: 18px;
	color: var(--brass);
}

.facts {
	margin: 0;
}

.facts__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
	padding: 13px 0;
	border-bottom: 1px dashed rgba(142, 166, 192, .22);
}

.facts__item:last-child {
	border-bottom: 0;
}

.facts__key {
	margin: 0;
	font-size: 14px;
	color: var(--fog);
}

.facts__val {
	margin: 0;
	font-family: var(--font-head);
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
	color: var(--brass-2);
}

.hero__card-note {
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--fog-2);
}

.hero__edge {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--brass-dim), transparent);
}

/* ============================================================
   5. Section heads and strips
   ============================================================ */

.head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 34px;
}

.head__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	background: rgba(59, 84, 113, .3);
	border: var(--edge);
	border-radius: var(--radius);
	color: var(--brass);
	letter-spacing: .04em;
}

.head__title {
	flex: none;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 600;
	color: var(--white-night);
}

.head__line {
	flex: 1 1 auto;
	height: 1px;
	min-width: 20px;
	background: linear-gradient(90deg, rgba(142, 166, 192, .38), rgba(142, 166, 192, .06));
}

.head__note {
	flex: none;
}

.strip {
	padding: 26px 0;
	background: rgba(6, 15, 24, .45);
	border-bottom: var(--edge);
}

.strip__inner {
	display: flex;
	align-items: center;
	gap: 20px;
}

.strip__key {
	flex: none;
	color: var(--brass);
}

.pick {
	padding: 72px 0 10px;
}

.listing {
	padding: 66px 0 86px;
}

.also {
	padding: 0 0 84px;
	margin-top: 76px;
}

.also .head {
	padding-top: 62px;
}

/* ============================================================
   6. Deck and cards
   ============================================================ */

.deck {
	display: grid;
	gap: 30px;
}

.deck--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deck--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(170deg, rgba(15, 34, 51, .96), rgba(10, 23, 35, .96));
	border: var(--edge);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
	transform: translateY(-4px);
	border-color: rgba(217, 178, 60, .45);
	box-shadow: var(--shadow);
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--neva-3);
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.card:hover .card__img {
	transform: scale(1.04);
}

.card__num {
	position: absolute;
	left: 0;
	top: 0;
	padding: 6px 12px;
	background: var(--brass);
	color: var(--neva);
	font-weight: 500;
	letter-spacing: .08em;
	border-radius: 0 0 var(--radius) 0;
}

.card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px 26px 22px;
}

.card__cat {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 4px 10px;
	background: rgba(59, 84, 113, .34);
	border: var(--edge);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fog);
}

.card__title {
	margin: 0 0 12px;
	font-size: 25px;
	font-weight: 600;
	line-height: 1.2;
}

.card__title a {
	color: var(--white-night);
}

.card__title a:hover {
	color: var(--brass-2);
}

.card__text {
	margin: 0 0 20px;
	font-size: 15.5px;
	line-height: 1.66;
	color: var(--fog);
}

.card__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px dashed rgba(142, 166, 192, .22);
}

.card__more {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--brass);
}

.card__more::after {
	content: " →";
}

.card--compact .card__title {
	font-size: 21px;
}

.card--compact .card__body {
	padding: 20px 22px 18px;
}

.card--compact .card__text {
	font-size: 14.5px;
}

/* Placeholder when a post has no thumbnail. */

.blank {
	position: absolute;
	inset: 0;
	display: block;
	background:
		radial-gradient(circle at 50% 78%, rgba(217, 178, 60, .12), transparent 60%),
		linear-gradient(160deg, var(--neva-3), var(--neva));
}

.blank__roof {
	position: absolute;
	left: 50%;
	top: 58%;
	width: 88px;
	height: 88px;
	transform: translate(-50%, -50%) rotate(45deg);
	border-top: 2px solid rgba(217, 178, 60, .55);
	border-left: 2px solid rgba(217, 178, 60, .55);
}

.blank__spire {
	position: absolute;
	left: 50%;
	top: 16%;
	width: 2px;
	height: 34px;
	transform: translateX(-50%);
	background: linear-gradient(180deg, var(--brass), rgba(217, 178, 60, .2));
}

.blank__spire::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -8px;
	width: 7px;
	height: 7px;
	transform: translateX(-50%) rotate(45deg);
	background: var(--brass);
}

/* ============================================================
   7. Roll: the long compact listing
   ============================================================ */

.roll {
	border-top: 1px solid rgba(142, 166, 192, .2);
}

.row {
	border-bottom: 1px solid rgba(142, 166, 192, .14);
}

.row__link {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) 210px 34px;
	align-items: center;
	gap: 18px;
	padding: 18px 16px 18px 10px;
	color: var(--ice);
	border-left: 2px solid transparent;
	transition: background .16s ease, border-color .16s ease, padding-left .16s ease;
}

.row__link:hover {
	background: rgba(22, 50, 74, .55);
	border-left-color: var(--brass);
	padding-left: 18px;
	color: var(--ice);
}

.row__num {
	color: var(--granite-2);
	font-size: 13px;
	letter-spacing: .04em;
	transition: color .16s ease;
}

.row__link:hover .row__num {
	color: var(--brass);
}

.row__main {
	display: block;
	min-width: 0;
}

.row__title {
	display: block;
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.28;
	color: var(--white-night);
}

.row__link:hover .row__title {
	color: var(--brass-2);
}

.row__text {
	display: block;
	margin-top: 4px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--fog-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.row__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.row__cat {
	padding: 3px 9px;
	background: rgba(59, 84, 113, .3);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fog);
}

.row__facts {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
}

.row__arrow {
	justify-self: end;
	font-size: 17px;
	color: var(--granite-2);
	transition: color .16s ease, transform .16s ease;
}

.row__link:hover .row__arrow {
	color: var(--brass);
	transform: translateX(4px);
}

/* ============================================================
   8. Layout and rail
   ============================================================ */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rail);
	gap: var(--gap);
	align-items: start;
	padding-top: 46px;
}

.layout__main {
	min-width: 0;
}

.rail {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.widget {
	padding: 24px 24px 26px;
	background: rgba(15, 34, 51, .78);
	border: var(--edge);
	border-radius: var(--radius-lg);
}

.widget--sticky {
	position: sticky;
	top: 96px;
}

.widget--call {
	background: linear-gradient(170deg, rgba(22, 50, 74, .95), rgba(10, 23, 35, .95));
	border-color: rgba(217, 178, 60, .3);
}

.widget__title {
	margin: 0 0 18px;
	padding-bottom: 12px;
	font-size: 20px;
	font-weight: 600;
	color: var(--white-night);
	border-bottom: 1px solid rgba(142, 166, 192, .2);
}

.widget__text {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--fog);
}

.linklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.linklist__item + .linklist__item {
	border-top: 1px dashed rgba(142, 166, 192, .18);
}

.linklist__link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	color: var(--ice);
}

.linklist__num {
	flex: none;
	padding-top: 3px;
	font-size: 11px;
	color: var(--granite-2);
	transition: color .16s ease;
}

.linklist__link:hover .linklist__num {
	color: var(--brass);
}

.linklist__text {
	display: block;
	min-width: 0;
}

.linklist__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ice);
	transition: color .16s ease;
}

.linklist__link:hover .linklist__title {
	color: var(--brass-2);
}

.linklist__meta {
	display: block;
	margin-top: 4px;
	font-size: 10.5px;
	letter-spacing: .08em;
}

/* ============================================================
   9. Post: heads, paper, prose, cross links
   ============================================================ */

.progress {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 60;
	width: 100%;
	height: 3px;
	background: rgba(142, 166, 192, .14);
}

.progress__bar {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, var(--brass-dim), var(--brass-2));
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.post__head,
.page-head {
	position: relative;
	overflow: hidden;
	padding: 54px 0 46px;
	border-bottom: var(--edge);
}

.post__head-glow,
.page-head__glow {
	position: absolute;
	inset: -60% -20% auto 40%;
	width: 720px;
	height: 720px;
	background: radial-gradient(circle, rgba(217, 178, 60, .14), transparent 62%);
	pointer-events: none;
}

.post__head-inner,
.page-head__inner {
	position: relative;
	z-index: 1;
	max-width: 900px;
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	margin-bottom: 22px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .08em;
	color: var(--fog-2);
}

.crumbs a {
	color: var(--fog);
}

.crumbs a:hover {
	color: var(--brass-2);
}

.crumbs__sep {
	color: var(--granite-2);
}

.crumbs__now {
	color: var(--fog-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 46ch;
}

.post__cat {
	display: inline-block;
	margin-bottom: 16px;
	padding: 5px 13px;
	background: var(--brass);
	color: var(--neva);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: 999px;
}

.post__title,
.page-head__title {
	margin: 0 0 18px;
	font-size: clamp(32px, 4.4vw, 54px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.01em;
	color: var(--white-night);
}

.post__lede,
.page-head__text {
	max-width: 68ch;
	margin: 0 0 24px;
	font-size: 18px;
	color: var(--fog);
}

.post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	background: rgba(59, 84, 113, .26);
	border: var(--edge);
	border-radius: var(--radius);
	color: var(--ice);
	font-size: 11px;
}

.post__meta-key {
	color: var(--fog-2);
}

.page-head__code {
	display: block;
	margin-bottom: 14px;
	color: var(--brass);
}

.page-head__count {
	margin: 0;
}

.page-head__form {
	max-width: 520px;
	margin-top: 24px;
}

.post__cover {
	margin: 0;
	padding-top: 40px;
}

.post__cover-img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	border: var(--edge-strong);
}

.post__cover-cap {
	display: block;
	margin-top: 12px;
	text-align: right;
}

/* Warm reading surface on the cold ground. */

.paper {
	padding: 52px 58px 44px;
	background: var(--paper);
	color: var(--basalt);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-paper);
}

.paper::selection,
.prose ::selection {
	background: var(--brass);
	color: var(--neva);
}

.prose {
	font-size: 17.5px;
	line-height: 1.78;
	color: var(--basalt);
}

.prose > *:first-child {
	margin-top: 0;
}

.prose > *:last-child {
	margin-bottom: 0;
}

.prose h2,
.prose h3,
.prose h4 {
	color: var(--basalt);
	letter-spacing: -.005em;
}

.prose h2 {
	margin: 2em 0 .7em;
	padding-top: .55em;
	font-size: 32px;
	border-top: 2px solid var(--paper-line);
}

.prose h3 {
	margin: 1.7em 0 .55em;
	font-size: 25px;
}

.prose h4 {
	margin: 1.5em 0 .5em;
	font-size: 20px;
}

.prose a {
	color: var(--terracotta);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.prose a:hover {
	color: var(--cobalt);
}

.prose strong {
	font-weight: 700;
}

.prose ul,
.prose ol {
	padding-left: 1.35em;
}

.prose li {
	margin-bottom: .5em;
}

.prose li::marker {
	color: var(--terracotta);
}

.prose blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 26px;
	border-left: 3px solid var(--brass-dim);
	font-family: var(--font-head);
	font-size: 21px;
	font-style: italic;
	line-height: 1.5;
	color: var(--basalt-soft);
}

.prose blockquote p:last-child {
	margin-bottom: 0;
}

.prose img,
.prose figure img {
	border-radius: var(--radius);
}

.prose figure {
	margin: 1.9em 0;
}

.prose figcaption,
.prose .wp-caption-text {
	margin-top: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.5;
	color: var(--basalt-soft);
}

.prose code {
	padding: 2px 6px;
	background: var(--paper-2);
	border: 1px solid var(--paper-line);
	border-radius: var(--radius);
	font-family: var(--font-mono);
	font-size: 14px;
}

.prose pre {
	overflow-x: auto;
	margin: 1.6em 0;
	padding: 20px 22px;
	background: var(--neva-2);
	color: var(--ice);
	border-radius: var(--radius);
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.6;
}

.prose pre code {
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
}

.prose table {
	width: 100%;
	margin: 1.8em 0;
	border-collapse: collapse;
	font-size: 15.5px;
}

.prose th,
.prose td {
	padding: 11px 14px;
	text-align: left;
	border: 1px solid var(--paper-line);
}

.prose th {
	background: var(--paper-2);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.prose hr {
	height: 1px;
	margin: 2.2em 0;
	background: var(--paper-line);
	border: 0;
}

/* Inline cross links injected into the article body. */

.inset {
	margin: 2.2em 0;
	padding: 22px 26px 20px;
	background: var(--paper-2);
	border-left: 3px solid var(--brass-dim);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.inset__key {
	display: block;
	margin-bottom: 12px;
	color: var(--brass-dim);
}

.inset__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
}

.inset__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	margin: 0;
	border-top: 1px solid var(--paper-line);
	line-height: 1.45;
}

.inset__item:first-child {
	border-top: 0;
}

.inset__item a {
	color: var(--basalt);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(194, 100, 63, .45);
}

.inset__item a:hover {
	color: var(--terracotta);
	border-bottom-color: var(--terracotta);
}

.inset__meta {
	flex: none;
	color: var(--basalt-soft);
	font-size: 10.5px;
}

.post__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
}

.post__tags-key {
	flex: none;
	color: var(--brass);
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 34px;
}

.post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 20px 22px;
	background: rgba(15, 34, 51, .78);
	border: var(--edge);
	border-radius: var(--radius-lg);
	color: var(--ice);
	transition: border-color .18s ease, transform .18s ease;
}

.post-nav__item:hover {
	border-color: rgba(217, 178, 60, .45);
	transform: translateY(-3px);
	color: var(--ice);
}

.post-nav__item--next {
	text-align: right;
	grid-column: 2;
}

.post-nav__key {
	color: var(--brass);
}

.post-nav__title {
	font-family: var(--font-head);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.32;
	color: var(--white-night);
}

/* ============================================================
   10. Forms, buttons, chips, pagination, states
   ============================================================ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 26px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	border: 1px solid transparent;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.btn--brass {
	background: var(--brass);
	color: var(--neva);
}

.btn--brass:hover {
	background: var(--brass-2);
	color: var(--neva);
	transform: translateY(-2px);
}

.btn--ghost {
	background: transparent;
	color: var(--ice);
	border-color: rgba(142, 166, 192, .38);
}

.btn--ghost:hover {
	color: var(--white-night);
	border-color: var(--brass);
	transform: translateY(-2px);
}

.btn--full {
	width: 100%;
	margin-top: 16px;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 13px;
	background: rgba(59, 84, 113, .3);
	border: var(--edge);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ice);
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.chip:hover {
	background: rgba(217, 178, 60, .18);
	border-color: rgba(217, 178, 60, .5);
	color: var(--white-night);
}

.chip--cat {
	background: rgba(22, 50, 74, .8);
}

.chip__count {
	font-family: var(--font-mono);
	font-size: 10.5px;
	color: var(--brass);
}

.post__tags .chip,
.paper .chip {
	color: var(--ice);
}

.sform {
	display: flex;
	gap: 8px;
}

.sform__field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 15px;
	background: rgba(6, 15, 24, .6);
	color: var(--ice);
	border: var(--edge-strong);
	border-radius: var(--radius);
	font-size: 15px;
}

.sform__field::placeholder {
	color: var(--fog-2);
}

.sform__field:focus {
	border-color: var(--brass);
	outline: none;
}

.sform__btn {
	flex: none;
	padding: 12px 20px;
	background: var(--brass);
	color: var(--neva);
	border: 0;
	border-radius: var(--radius);
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background .16s ease;
}

.sform__btn:hover {
	background: var(--brass-2);
}

.widget .sform,
.foot .sform {
	margin-top: 16px;
}

.paper .sform__field {
	background: #fff;
	color: var(--basalt);
	border-color: var(--paper-line);
}

.paper .sform__field::placeholder {
	color: var(--basalt-soft);
}

.empty {
	padding: 18px 0 8px;
}

.paper .empty {
	color: var(--basalt);
}

.empty__title {
	margin: 0 0 12px;
	font-size: 28px;
	color: inherit;
}

.empty__text {
	max-width: 60ch;
	margin: 0 0 22px;
	color: var(--basalt-soft);
}

.listing .empty__title,
.listing .empty__text {
	color: var(--fog);
}

.empty .btn {
	margin-top: 18px;
}

.pagination {
	margin-top: 44px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	background: rgba(15, 34, 51, .8);
	border: var(--edge);
	border-radius: var(--radius);
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--ice);
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.pagination .page-numbers:hover {
	border-color: var(--brass);
	color: var(--brass-2);
}

.pagination .page-numbers.current {
	background: var(--brass);
	border-color: var(--brass);
	color: var(--neva);
	font-weight: 500;
}

.pagination .page-numbers.dots {
	background: none;
	border-color: transparent;
}

.page-links {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--basalt-soft);
}

.page-links a {
	padding: 4px 10px;
	background: var(--paper-2);
	border: 1px solid var(--paper-line);
	border-radius: var(--radius);
	color: var(--basalt);
	text-decoration: none;
}

.page-links a:hover {
	background: var(--brass);
}

/* ============================================================
   11. Footer
   ============================================================ */

.foot {
	margin-top: 0;
	background: rgba(5, 12, 20, .82);
	border-top: var(--edge);
}

.foot .grille {
	margin-bottom: 54px;
}

.foot__grid {
	display: grid;
	grid-template-columns: 1.5fr 1.2fr .9fr 1.3fr;
	gap: 44px;
	padding-bottom: 48px;
}

.foot__col {
	min-width: 0;
}

.foot__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	color: var(--granite-2);
}

.foot__name {
	font-family: var(--font-head);
	font-size: 22px;
	font-weight: 700;
	color: var(--white-night);
}

.foot__text {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--fog);
}

.foot__note {
	margin: 0;
	font-size: 10.5px;
	line-height: 1.6;
	text-transform: none;
	letter-spacing: .04em;
}

.foot__title {
	margin: 0 0 18px;
	padding-bottom: 12px;
	font-size: 18px;
	font-weight: 600;
	color: var(--white-night);
	border-bottom: 1px solid rgba(142, 166, 192, .2);
}

.facts-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.facts-list__row {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed rgba(142, 166, 192, .16);
	font-size: 14px;
}

.facts-list__row:last-child {
	border-bottom: 0;
}

.facts-list__key {
	padding-top: 3px;
	font-size: 10.5px;
}

.facts-list__val {
	color: var(--ice);
	line-height: 1.5;
}

.facts-list__val a {
	color: var(--ice);
}

.facts-list__val a:hover {
	color: var(--brass-2);
}

.foot__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.foot__links li {
	border-bottom: 1px dashed rgba(142, 166, 192, .16);
}

.foot__links li:last-child {
	border-bottom: 0;
}

.foot__links a {
	display: block;
	padding: 9px 0;
	font-size: 14.5px;
	color: var(--fog);
}

.foot__links a:hover {
	color: var(--brass-2);
}

.foot__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
	padding-bottom: 30px;
	border-top: var(--edge);
}

.foot__up {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--brass);
}

/* ============================================================
   12. Responsive
   ============================================================ */

@media (max-width: 1240px) {
	:root {
		--rail: 310px;
		--gap: 34px;
	}

	.foot__grid {
		grid-template-columns: 1.4fr 1.2fr 1fr;
		gap: 36px;
	}

	.foot__col--brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1080px) {
	.layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.widget--sticky {
		position: static;
	}

	.rail {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 38px;
	}

	.hero__card {
		max-width: 560px;
	}

	.paper {
		padding: 44px 40px 38px;
	}
}

@media (max-width: 980px) {
	.burger {
		display: inline-flex;
	}

	.nav {
		display: none;
		order: 3;
		width: 100%;
		margin: 0 0 18px;
		padding-top: 8px;
		border-top: var(--edge);
	}

	.nav.is-open {
		display: block;
	}

	.masthead__inner {
		flex-wrap: wrap;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.nav__list a {
		padding: 11px 12px;
	}

	.nav__list .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 14px;
		background: none;
	}

	.deck--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.row__link {
		grid-template-columns: 50px minmax(0, 1fr) 26px;
	}

	.row__side {
		display: none;
	}
}

@media (max-width: 860px) {
	.ribbon__item--addr {
		display: none;
	}

	.hero {
		padding: 54px 0 60px;
	}

	.pick {
		padding-top: 52px;
	}

	.listing {
		padding: 48px 0 64px;
	}

	.also {
		margin-top: 54px;
	}

	.also .head {
		padding-top: 44px;
	}

	.head {
		flex-wrap: wrap;
		gap: 12px;
	}

	.head__note {
		width: 100%;
	}

	.post__head,
	.page-head {
		padding: 40px 0 34px;
	}
}

@media (max-width: 700px) {
	:root {
		--gut: 18px;
	}

	.deck--2,
	.deck--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.rail {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-nav__item--next {
		grid-column: 1;
		text-align: left;
	}

	.paper {
		padding: 32px 24px 28px;
	}

	.prose {
		font-size: 16.5px;
	}

	.prose h2 {
		font-size: 27px;
	}

	.prose h3 {
		font-size: 22px;
	}

	.foot__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.ribbon__item--hours {
		display: none;
	}

	.row__text {
		white-space: normal;
	}
}

@media (max-width: 520px) {
	.brand__name {
		font-size: 21px;
	}

	.hero__actions .btn {
		width: 100%;
	}

	.card__body {
		padding: 20px 20px 18px;
	}

	.card__title {
		font-size: 22px;
	}

	.row__link {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 12px;
	}

	.row__arrow {
		display: none;
	}

	.inset {
		padding: 18px 18px 16px;
	}

	.paper {
		padding: 26px 18px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* ============================================================
   13. WordPress core classes
   ============================================================ */

.alignleft {
	float: left;
	margin: .4em 1.6em 1.2em 0;
}

.alignright {
	float: right;
	margin: .4em 0 1.2em 1.6em;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	width: calc(100% + 60px);
	max-width: calc(100% + 60px);
	margin-left: -30px;
}

.alignfull {
	width: calc(100% + 116px);
	max-width: calc(100% + 116px);
	margin-left: -58px;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption img {
	width: 100%;
}

.sticky .card__cat::after {
	content: " · закреплено";
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin: 1.8em 0;
}

.gallery-item {
	margin: 0;
}

.wp-block-embed iframe,
.wp-block-embed video {
	width: 100%;
}

.bypostauthor {
	display: block;
}

@media (max-width: 700px) {
	.alignwide,
	.alignfull {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
	}
}
