/*
Theme Name: Арсенал
Theme URI: https://arsenalprm.ru/
Author: Редакция arsenalprm.ru
Description: Тема для новых статей сайта arsenalprm.ru. Повторяет оформление страниц сайта: чёрная шапка и первый экран с заголовком, светло-серый фон, голубой акцент, шрифт Montserrat. Обслуживает статьи, ленту, рубрики, поиск и страницу 404; остальные адреса отдаёт архив сайта.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
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: arsenal
*/

/* ==========================================================================
   Шрифты (лежат в теме, лицензия SIL OFL 1.1)
   ========================================================================== */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-cyrillic-wght-italic.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Montserrat";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-wght-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("assets/fonts/open-sans-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Основа
   ========================================================================== */

:root {
	--accent: #3498db;
	--accent-dark: #2380c4;
	--bg: #f2f2f2;
	--text: #555;
	--muted: #7b7b7b;
	--light: #a3a3a3;
	--head: #2d2d2d;
	--dark: #1d1f21;
	--line: #e7e7e7;
	--white: #fff;
	--radius: 6px;
	--font: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
	--font-alt: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
	--header-h: 111px;
}

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

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

body {
	position: relative;
	margin: 0;
	background: var(--bg);
	color: var(--muted);
	font-family: var(--font);
	font-size: 14px;
	font-weight: 400;
	line-height: 28px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

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

img {
	height: auto;
	border: 0;
	vertical-align: middle;
}

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

a:hover,
a:focus {
	color: var(--accent-dark);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	color: var(--head);
	font-family: var(--font);
	font-weight: 600;
}

p {
	margin: 0 0 15px;
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 18px;
	clip: auto;
	background: var(--white);
	color: var(--head);
	border-radius: var(--radius);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}

.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 50px;
}

.container--narrow {
	max-width: 960px;
}

.site-wrap {
	position: relative;
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	color: var(--white);
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.header-top-panel {
	height: 40px;
	padding: 0 10px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	font-family: var(--font-alt);
	font-size: 12px;
	line-height: 39px;
}

.header-top-inner {
	padding: 0 34px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.header-tagline {
	display: inline-block;
	padding-right: 30px;
	border-right: 1px solid rgba(255, 255, 255, .1);
}

.header-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
	padding: 0 20px;
}

.site-logo {
	flex: 0 0 auto;
	line-height: 0;
}

.site-logo a {
	display: block;
}

.site-logo img {
	display: block;
}

.site-logo .logo-desktop {
	width: 230px;
	height: 54px;
}

.site-logo .logo-mobile {
	display: none;
	width: 150px;
	height: 35px;
}

.main-nav .nav-menu {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav .nav-menu > li {
	position: relative;
	padding: 0 18px;
	line-height: 70px;
}

.main-nav .nav-menu > li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .25s ease;
}

.main-nav .nav-menu > li:hover::before,
.main-nav .nav-menu > li:focus-within::before,
.main-nav .nav-menu > li.current-menu-item::before,
.main-nav .nav-menu > li.current-menu-ancestor::before,
.main-nav .nav-menu > li.current_page_parent::before {
	transform: scaleX(1);
}

.main-nav .nav-menu > li > a {
	display: inline-block;
	color: var(--white);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: -1px;
	white-space: nowrap;
}

.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 250px;
	margin: 0;
	padding: 20px 0;
	list-style: none;
	background: var(--white);
	border-radius: 6px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, .2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.main-nav .sub-menu li {
	line-height: 1.4;
}

.main-nav .sub-menu a {
	display: block;
	padding: 9px 30px;
	color: #5c5c5c;
	font-family: var(--font-alt);
	font-size: 13px;
	letter-spacing: -.2px;
	white-space: nowrap;
}

.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus,
.main-nav .sub-menu .current-menu-item > a {
	color: var(--accent);
}

.menu-toggle {
	display: none;
	flex: 0 0 auto;
	width: 76px;
	height: 70px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-left: 1px solid var(--line);
	cursor: pointer;
}

.menu-toggle-lines {
	position: relative;
	display: block;
	width: 24px;
	height: 14px;
	margin: 0 auto;
}

.menu-toggle-lines i {
	position: absolute;
	right: 0;
	height: 2px;
	background: #000;
}

.menu-toggle-lines i:nth-child(1) {
	top: 0;
	width: 20px;
}

.menu-toggle-lines i:nth-child(2) {
	top: 6px;
	width: 24px;
}

.menu-toggle-lines i:nth-child(3) {
	top: 12px;
	width: 20px;
	right: 4px;
}

/* Мобильная панель меню */

.mobile-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 1001;
	width: 260px;
	max-width: 85vw;
	padding: 50px 0 30px;
	overflow-y: auto;
	background: #1d1e20;
	color: var(--white);
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform .3s ease, visibility .3s;
	-webkit-overflow-scrolling: touch;
}

.menu-open .mobile-panel {
	transform: none;
	visibility: visible;
}

.mobile-panel-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--white);
	font-size: 28px;
	line-height: 40px;
	cursor: pointer;
	opacity: .7;
}

.mobile-panel-close:hover,
.mobile-panel-close:focus {
	opacity: 1;
}

.mobile-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-nav .nav-menu > li {
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.mobile-nav .nav-menu > li > a {
	display: block;
	padding: 15px 25px;
	color: var(--white);
	font-size: 10px;
	font-weight: 700;
	line-height: 14px;
	letter-spacing: .8px;
	text-transform: uppercase;
}

.mobile-nav .nav-menu > li.current-menu-item > a {
	color: var(--accent);
}

.mobile-nav .sub-menu {
	padding-bottom: 10px;
}

.mobile-nav .sub-menu a {
	display: block;
	padding: 8px 35px;
	color: #999;
	font-family: var(--font-alt);
	font-size: 13px;
	line-height: 18px;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
	color: var(--accent);
}

.mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, .5);
}

.menu-open {
	overflow: hidden;
}

/* ==========================================================================
   Первый экран с заголовком
   ========================================================================== */

.page-hero {
	padding-top: var(--header-h);
	background: #000;
	color: var(--white);
	text-align: center;
}

.page-hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 1280px;
	min-height: 400px;
	margin: 0 auto;
	padding: 50px;
}

.page-title {
	max-width: min(1000px, 100%);
	margin: 0;
	overflow-wrap: anywhere;
	color: var(--white);
	font-size: 42.5px;
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: -.06em;
}

.breadcrumbs {
	margin-bottom: 14px;
	color: #c3c3c3;
	font-size: 12px;
	line-height: 18px;
}

.breadcrumbs a {
	color: #c3c3c3;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus,
.breadcrumbs .current {
	color: var(--white);
}

.crumb-sep {
	display: inline-block;
	width: 3px;
	height: 3px;
	margin: 0 9px;
	background: #c3c3c3;
	border-radius: 50%;
	vertical-align: middle;
}

.cat-badge {
	display: inline-block;
	padding: 10px 20px;
	background: var(--accent);
	border-radius: 3px;
	color: var(--white);
	font-size: 10px;
	font-weight: 400;
	line-height: 10px;
	letter-spacing: .5px;
	text-transform: uppercase;
	transition: background-color .2s ease;
}

.cat-badge:hover,
.cat-badge:focus {
	background: var(--accent-dark);
	color: var(--white);
}

.page-hero .cat-badge {
	margin: 6px 0 20px;
}

.page-hero-meta {
	margin-top: 20px;
	color: #c3c3c3;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: .3px;
}

.page-hero-text {
	max-width: 760px;
	margin-top: 18px;
	color: rgba(255, 255, 255, .7);
	font-size: 15px;
	line-height: 1.7;
}

.page-hero-text p:last-child {
	margin-bottom: 0;
}

.page-hero--article.has-cover .page-hero-inner {
	padding-bottom: 150px;
}

/* ==========================================================================
   Основная область
   ========================================================================== */

.site-main {
	flex: 1 0 auto;
	padding: 40px 0 70px;
}

.site-main--article,
.site-main--page {
	padding-top: 60px;
}

.section-title {
	margin: 0 0 34px;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -1px;
	text-align: center;
}

.section-title::after {
	content: "";
	display: block;
	width: 80px;
	height: 3px;
	margin: 16px auto 0;
	background: var(--accent);
}

/* Кнопки — «таблетки», как на главной */

.button {
	display: inline-block;
	padding: 13px 34px;
	background: var(--accent);
	border: 2px solid var(--accent);
	border-radius: 25px;
	color: var(--white);
	font-size: 11px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.button:hover,
.button:focus {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
	color: var(--white);
}

.button--ghost {
	background: transparent;
	color: var(--accent);
}

.button--ghost:hover,
.button--ghost:focus {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--white);
}

/* ==========================================================================
   Карточки ленты
   ========================================================================== */

.cards {
	display: grid;
	gap: 20px;
}

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

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

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: var(--white);
	border-radius: var(--radius);
	transition: box-shadow .3s ease, transform .3s ease;
}

.card:hover {
	box-shadow: 0 15px 45px rgba(0, 0, 0, .12);
	transform: translateY(-3px);
}

.card-thumb {
	position: relative;
	aspect-ratio: 3 / 2;
	background: #2b2f36;
	overflow: hidden;
}

.card-thumb-link {
	display: block;
	width: 100%;
	height: 100%;
}

.card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.card:hover .card-thumb img {
	transform: scale(1.04);
}

.card-thumb .cat-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	max-width: calc(100% - 30px);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.card-body {
	flex: 1 1 auto;
	padding: 28px 25px 22px;
}

.card-meta {
	margin-bottom: 14px;
	color: var(--light);
	font-size: 11px;
	line-height: 16px;
}

.card-meta a {
	color: var(--light);
}

.card-meta a:hover,
.card-meta a:focus {
	color: var(--accent);
}

.card-meta-cat {
	margin-left: 6px;
}

.card-title {
	margin: 0 0 14px;
	overflow-wrap: anywhere;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.8px;
}

.card-title a {
	color: var(--head);
}

.card-title a:hover,
.card-title a:focus {
	color: var(--accent);
}

.card-excerpt {
	color: var(--muted);
	font-size: 14px;
	line-height: 26px;
}

.card-excerpt p {
	margin: 0;
}

/* Лента с боковой колонкой */

.blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 60px;
	align-items: start;
}

.blog-main {
	min-width: 0;
}

.posts-pagination {
	margin-top: 40px;
}

.posts-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.posts-pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	background: var(--white);
	border-radius: 21px;
	color: var(--head);
	font-size: 13px;
	font-weight: 600;
	line-height: 42px;
	text-align: center;
	transition: background-color .2s ease, color .2s ease;
}

.posts-pagination a.page-numbers:hover,
.posts-pagination a.page-numbers:focus,
.posts-pagination .page-numbers.current {
	background: var(--accent);
	color: var(--white);
}

.posts-pagination .page-numbers.dots {
	background: none;
}

.no-results {
	padding: 40px;
	background: var(--white);
	border-radius: var(--radius);
	font-size: 15px;
}

/* Боковая колонка */

.sidebar {
	min-width: 0;
	padding-top: 12px;
}

.widget {
	margin-bottom: 50px;
}

.widget-title {
	margin: 0 0 26px;
	color: #1b1b1b;
	font-size: 12px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: .6px;
	text-transform: uppercase;
}

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

.widget li {
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	line-height: 22px;
}

.widget li:first-child {
	padding-top: 0;
}

.widget li a {
	color: var(--head);
	font-weight: 600;
	letter-spacing: -.3px;
}

.widget li a:hover,
.widget li a:focus,
.widget li.current-cat > a {
	color: var(--accent);
}

.widget .count {
	color: var(--light);
}

.widget .post-date {
	display: block;
	margin-top: 2px;
	color: var(--light);
	font-size: 11px;
	line-height: 18px;
}

/* Форма поиска */

.search-form {
	position: relative;
	display: flex;
	max-width: 520px;
}

.search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	padding: 0 54px 0 22px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 23px;
	color: var(--head);
	font-size: 13px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease;
}

.search-field:focus {
	border-color: var(--accent);
}

.search-field::placeholder {
	color: var(--light);
	opacity: 1;
}

.search-submit {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	background: var(--accent);
	border: 0;
	border-radius: 50%;
	color: var(--white);
	cursor: pointer;
	transition: background-color .2s ease;
}

.search-submit:hover,
.search-submit:focus {
	background: var(--accent-dark);
}

/* ==========================================================================
   Статья
   ========================================================================== */

.entry-cover {
	position: relative;
	z-index: 2;
	margin: -170px 0 50px;
	overflow: hidden;
	background: #2b2f36;
	border-radius: var(--radius);
	box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.entry-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.entry-content {
	color: var(--text);
	font-size: 16px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 20px;
}

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

.entry-content h2 {
	margin: 52px 0 18px;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -1.4px;
}

.entry-content h3 {
	margin: 38px 0 14px;
	font-size: 23px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.8px;
}

.entry-content h4 {
	margin: 30px 0 12px;
	font-size: 18px;
	line-height: 1.35;
	letter-spacing: -.4px;
}

.entry-content > h2:first-child,
.entry-content > h3:first-child {
	margin-top: 0;
}

.entry-content strong,
.entry-content b {
	color: var(--head);
	font-weight: 600;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	padding: 0;
	list-style: none;
}

.entry-content li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 30px;
}

.entry-content li > ul,
.entry-content li > ol {
	margin: 10px 0 0;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	top: .72em;
	left: 6px;
	width: 7px;
	height: 7px;
	background: var(--accent);
	border-radius: 50%;
}

.entry-content ol {
	counter-reset: arsenal-ol;
}

.entry-content ol > li {
	counter-increment: arsenal-ol;
	padding-left: 36px;
}

.entry-content ol > li::before {
	content: counter(arsenal-ol) ".";
	position: absolute;
	top: 0;
	left: 0;
	min-width: 26px;
	color: var(--accent);
	font-weight: 700;
	text-align: right;
}

/* Цитата — как в оригинале: крупный текст по центру и серые кавычки */

.entry-content blockquote,
.entry-content .wp-block-quote {
	position: relative;
	margin: 44px 0;
	padding: 34px 40px;
	border: 0;
	color: #2e2e2e;
	font-size: 21px;
	line-height: 1.65;
	letter-spacing: -.5px;
	text-align: center;
}

.entry-content blockquote::before {
	content: "\201C";
	position: absolute;
	top: 6px;
	left: -10px;
	z-index: 0;
	color: #e1e1e1;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 150px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.entry-content blockquote > * {
	position: relative;
	z-index: 1;
}

.entry-content blockquote p {
	margin: 0 0 14px;
}

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

.entry-content blockquote cite,
.entry-content blockquote footer {
	display: block;
	margin-top: 16px;
	color: var(--muted);
	font-size: 13px;
	font-style: normal;
	letter-spacing: 0;
}

/* Картинки */

.entry-content figure {
	margin: 36px 0;
}

.entry-content .wp-block-image img {
	display: block;
	margin: 0 auto;
	border-radius: var(--radius);
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.55;
	text-align: center;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* Таблицы */

.entry-content .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	font-size: 14px;
	line-height: 1.55;
}

.entry-content .wp-block-table table {
	margin: 0;
}

.entry-content th,
.entry-content td,
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
	padding: 14px 18px;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th,
.entry-content .wp-block-table thead th {
	background: var(--dark);
	border-bottom: 3px solid var(--accent);
	color: var(--white);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .4px;
	text-transform: uppercase;
}

.entry-content .wp-block-table thead {
	border-bottom: 0;
}

.entry-content tbody tr:last-child td {
	border-bottom: 0;
}

.entry-content tbody tr:nth-child(even) td {
	background: #fafafa;
}

/* Видео */

.entry-content .wp-block-embed {
	margin: 36px 0;
}

.entry-content .wp-block-embed__wrapper {
	position: relative;
	overflow: hidden;
	background: #000;
	border-radius: var(--radius);
}

.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.entry-content .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
	aspect-ratio: 4 / 3;
}

.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper::before,
.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
	content: none;
}

.entry-content .wp-block-embed.is-type-video iframe,
.entry-content .wp-block-embed.wp-has-aspect-ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.entry-content hr,
.entry-content .wp-block-separator {
	height: 1px;
	margin: 40px 0;
	background: var(--line);
	border: 0;
}

.entry-content pre,
.entry-content code {
	font-family: Consolas, Menlo, monospace;
	font-size: 14px;
}

.entry-content pre {
	padding: 18px 22px;
	overflow-x: auto;
	background: var(--white);
	border-radius: var(--radius);
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 50px;
	padding-top: 28px;
	border-top: 1px solid #dedede;
	font-size: 13px;
}

.entry-footer-cat a {
	margin-left: 4px;
	font-weight: 600;
}

.page-links {
	margin-top: 30px;
	font-weight: 600;
}

/* «Читайте также» */

.related {
	margin-top: 80px;
}

/* 404 */

.not-found {
	text-align: center;
}

.not-found-lead {
	margin-bottom: 30px;
	color: var(--text);
	font-size: 16px;
	line-height: 1.8;
}

.not-found .search-form {
	margin: 0 auto 30px;
}

.not-found-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
}

/* ==========================================================================
   Подвал
   ========================================================================== */

#sub-footer {
	padding: 20px 50px;
	background: var(--dark);
	text-align: center;
}

.subfooter-copyright {
	color: rgba(255, 255, 255, .6);
	font-size: 13px;
	line-height: 28px;
}

.back-to-top {
	position: fixed;
	right: 42px;
	bottom: 42px;
	z-index: 90;
	width: 42px;
	height: 42px;
	background: rgba(0, 0, 0, .25);
	border-radius: 50%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity .4s ease, transform .4s ease, visibility .4s, background-color .2s ease;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.back-to-top:hover,
.back-to-top:focus {
	background: var(--accent);
}

.back-to-top span {
	position: absolute;
	top: 18px;
	left: 16px;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--white);
	border-left: 2px solid var(--white);
	transform: rotate(45deg);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1100px) {
	:root {
		--header-h: 0px;
	}

	.site-header {
		position: relative;
		background: var(--white);
		color: #000;
		border-bottom: 1px solid var(--line);
	}

	.header-top-panel {
		padding: 0;
		border-bottom-color: var(--line);
	}

	.header-top-inner {
		padding: 0 20px;
	}

	.header-tagline {
		display: inline;
		padding: 0;
		border: 0;
		color: #313131;
	}

	.header-wrap {
		padding: 0 0 0 20px;
	}

	.site-logo .logo-desktop,
	.main-nav {
		display: none;
	}

	.site-logo .logo-mobile,
	.menu-toggle {
		display: block;
	}

	.blog-layout {
		grid-template-columns: minmax(0, 1fr) 240px;
		gap: 40px;
	}

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

	.cards-3 > .card:nth-child(3):last-child {
		display: none;
	}
}

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

	.sidebar {
		padding-top: 0;
	}

	.back-to-top {
		display: none;
	}
}

@media (max-width: 799px) {
	.container {
		padding: 0 20px;
	}

	.page-hero-inner {
		min-height: 170px;
		padding: 34px 20px;
	}

	.page-title {
		font-size: 30px;
		line-height: 1.15;
	}

	.page-hero--article .page-title {
		font-size: 26px;
		line-height: 1.2;
		letter-spacing: -.05em;
	}

	.page-hero--article.has-cover .page-hero-inner {
		padding-bottom: 96px;
	}

	.entry-cover {
		margin: -98px 0 34px;
		box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
	}

	.site-main {
		padding: 30px 0 50px;
	}

	.site-main--article,
	.site-main--page {
		padding-top: 36px;
	}

	.entry-content {
		font-size: 16px;
		line-height: 1.75;
	}

	.entry-content h2 {
		margin-top: 42px;
		font-size: 25px;
		letter-spacing: -1px;
	}

	.entry-content h3 {
		margin-top: 32px;
		font-size: 20px;
		letter-spacing: -.6px;
	}

	.entry-content blockquote,
	.entry-content .wp-block-quote {
		margin: 34px 0;
		padding: 30px 6px 10px;
		font-size: 18px;
		line-height: 1.6;
		letter-spacing: -.3px;
	}

	.entry-content blockquote::before {
		top: -6px;
		font-size: 110px;
	}

	.entry-content figure,
	.entry-content .wp-block-embed {
		margin: 28px 0;
	}

	.entry-content .wp-block-table table {
		min-width: 520px;
	}

	.entry-content th,
	.entry-content td,
	.entry-content .wp-block-table th,
	.entry-content .wp-block-table td {
		padding: 12px 14px;
	}

	.section-title {
		font-size: 25px;
	}

	.related {
		margin-top: 60px;
	}

	#sub-footer {
		padding: 20px;
	}
}

@media (max-width: 640px) {
	.header-top-panel {
		font-size: 11px;
	}

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

	.cards-3 > .card:nth-child(3):last-child {
		display: flex;
	}

	.entry-footer {
		flex-direction: column;
		align-items: flex-start;
	}
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

@media print {
	.site-header,
	.mobile-panel,
	.mobile-overlay,
	.back-to-top,
	.related,
	.sidebar {
		display: none !important;
	}

	.page-hero {
		padding-top: 0;
		background: none;
		color: #000;
	}

	.page-title {
		color: #000;
	}

	.entry-cover {
		margin-top: 0;
		box-shadow: none;
	}
}

/* ---------- Главная страница ---------- */
.page-hero--home .page-hero-text { max-width: 720px; margin: 14px auto 0; color: #c9c9c9; font-size: 16px; line-height: 1.6; }
.site-main--home { padding-top: 40px; }
.home-block { margin-bottom: 56px; }
.home-title { margin: 0 0 22px; font-size: 28px; font-weight: 700; color: #2d2d2d; }
.home-title::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 12px; background: var(--accent); }
.cards.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-more { margin: 22px 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.home-empty { color: #7b7b7b; }
.home-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.home-section { display: block; padding: 18px 20px; background: #fff; border-left: 4px solid var(--accent); color: #2d2d2d; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.home-section:hover, .home-section:focus { background: #000; color: #fff; }
.home-links { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.home-links li { margin: 0; }
.home-links a { display: block; padding: 18px 20px; background: #fff; border-top: 3px solid var(--accent); color: #2d2d2d; font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.home-links a:hover, .home-links a:focus { color: var(--accent-dark); }
@media (max-width: 900px) { .cards.cards-3, .home-sections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards.cards-3, .home-sections, .home-links { grid-template-columns: 1fr; } }
