/*
Theme Name: Тетрадь
Theme URI: https://tatyana.shaya.website/
Author: Сайт преподавателя Минкиной Т. Ю.
Description: Тема для сайта преподавателя: «тетрадь в клетку», крупная типографика, плитки разделов. Главная собирается из меню сайта, тексты и фото меняются в «Внешний вид → Настроить → Тема «Тетрадь»».
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
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: tetrad
*/

/* ---------- Основа ---------- */
:root {
	--accent: #2B4FD8;
	--ink: #16213A;
	--text: #2D3748;
	--muted: #4A5568;
	--bg: #F3F5F9;
	--paper: #FFFFFF;
	--line: #DDE3EC;
	--grid: #E6ECF4;
	--yellow: #FFD54A;
	--tint: #E7ECFB;
	--green: #1E3B33;
	--font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 22px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--ink);
	text-decoration: none;
}

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

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.container {
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 10px;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

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

/* ---------- Кнопки ---------- */
.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 14px;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--accent {
	background: var(--accent);
	color: #fff;
}

.btn--accent:hover {
	color: #fff;
	box-shadow: 0 10px 24px rgba(22, 33, 58, .18);
}

.btn--outline {
	background: var(--paper);
	border: 2px solid var(--ink);
	color: var(--ink);
}

.btn--outline:hover {
	color: var(--ink);
	background: var(--yellow);
}

.btn--yellow {
	background: var(--yellow);
	color: var(--ink);
}

.btn--yellow:hover {
	color: var(--ink);
	background: #FFE07A;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--accent);
	min-height: 44px;
}

/* ---------- Шапка ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.4) blur(8px);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 80px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.brand:hover {
	color: var(--ink);
}

.brand__mark {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.brand__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
}

.brand__sub {
	font-size: 13px;
	color: var(--muted);
}

.site-nav .menu,
.site-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-nav .menu > .menu-item {
	position: relative;
	display: flex;
	align-items: center;
}

.site-nav .menu > .menu-item > a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0 10px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
}

.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a,
.site-nav .menu > .current_page_item > a,
.site-nav .menu > .current_page_ancestor > a {
	color: var(--accent);
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 44px;
	margin-left: -8px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
	border-radius: 8px;
}

.submenu-toggle svg {
	transition: transform .15s ease;
}

.menu-item.is-open > .submenu-toggle svg {
	transform: rotate(180deg);
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	padding: 8px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(22, 33, 58, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.site-nav .menu > .menu-item:hover > .sub-menu,
.site-nav .menu > .menu-item:focus-within > .sub-menu,
.site-nav .menu > .menu-item.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav .sub-menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 15px;
}

.site-nav .sub-menu a:hover {
	background: var(--bg);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	color: var(--ink);
	font: 600 15px/1 var(--font-body);
	cursor: pointer;
}

.nav-toggle__close {
	display: none;
}

@media (max-width: 1060px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-header.is-open .nav-toggle__open {
		display: none;
	}

	.site-header.is-open .nav-toggle__close {
		display: inline;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.site-nav {
		display: none;
		width: 100%;
		padding-bottom: 16px;
		max-height: calc(100vh - 100px);
		overflow-y: auto;
	}

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

	.site-nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.site-nav .menu > .menu-item {
		flex-wrap: wrap;
		border-top: 1px solid var(--line);
	}

	.site-nav .menu > .menu-item > a {
		flex: 1;
		min-height: 52px;
		padding: 0 4px;
		font-size: 17px;
	}

	.submenu-toggle {
		width: 52px;
		height: 52px;
		margin: 0;
	}

	.site-nav .sub-menu {
		position: static;
		width: 100%;
		min-width: 0;
		padding: 0 0 10px 12px;
		border: 0;
		box-shadow: none;
		background: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
	}

	.site-nav .menu > .menu-item:hover > .sub-menu,
	.site-nav .menu > .menu-item:focus-within > .sub-menu {
		display: none;
	}

	.site-nav .menu > .menu-item.is-open > .sub-menu {
		display: block;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
		position: relative;
	}
}

/* ---------- Первый экран ---------- */
.hero {
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 28px 28px;
	overflow: hidden;
}

.hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 56px;
	padding-top: 72px;
	padding-bottom: 96px;
}

.hero__text {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.pill {
	align-self: flex-start;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
}

.hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(34px, 5.2vw, 72px);
	line-height: 1.08;
	letter-spacing: -.02em;
	overflow-wrap: break-word;
}

.marker {
	background: linear-gradient(transparent 58%, var(--yellow) 58%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.hero__lead {
	margin: 0;
	font-size: 20px;
	max-width: 560px;
	color: var(--text);
}

.btn-row {
	margin-top: 8px;
}

.hero__media {
	flex: 1 1 340px;
	min-width: 0;
	max-width: 460px;
	margin: 0 auto;
	position: relative;
	padding-bottom: 40px;
}

.hero__photo {
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	overflow: hidden;
	background: #D9E2F2;
	transform: rotate(-2deg);
	box-shadow: 0 24px 50px rgba(22, 33, 58, .16);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.placeholder {
	padding: 24px;
	text-align: center;
	color: #3B4A66;
	font-weight: 600;
}

.quote-card {
	position: absolute;
	left: -28px;
	bottom: 0;
	margin: 0;
	max-width: 320px;
	background: var(--ink);
	color: #fff;
	border-radius: 20px;
	padding: 22px 24px;
	box-shadow: 0 18px 40px rgba(22, 33, 58, .25);
	transform: rotate(1.5deg);
}

.quote-card blockquote {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.quote-card figcaption {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--yellow);
}

@media (max-width: 600px) {
	.hero__inner {
		padding-top: 40px;
		padding-bottom: 56px;
		gap: 40px;
	}

	.hero__lead {
		font-size: 18px;
	}

	.btn-row .btn {
		flex: 1 1 100%;
	}

	.hero__media {
		padding-bottom: 0;
	}

	.quote-card {
		position: relative;
		left: auto;
		max-width: none;
		margin: -40px 12px 0;
	}
}

/* ---------- Ключевые даты ---------- */
.facts {
	background: var(--ink);
	color: #fff;
}

.facts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	padding-top: 36px;
	padding-bottom: 36px;
}

.fact__num {
	font-family: var(--font-display);
	font-size: 34px;
	line-height: 1.3;
	color: var(--yellow);
}

.fact__text {
	font-size: 15px;
	color: #D5DCE8;
}

/* ---------- Секции ---------- */
.section {
	padding-top: 88px;
	padding-bottom: 40px;
}

.section--tight {
	padding-top: 0;
	padding-bottom: 96px;
}

.section__head {
	margin-bottom: 36px;
}

.section__head--split {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}

.eyebrow {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent);
}

.eyebrow a {
	color: inherit;
}

.eyebrow--light {
	color: #A8D5BF;
}

.section__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(28px, 3.4vw, 44px);
	line-height: 1.15;
	overflow-wrap: break-word;
}

.section__title a {
	color: inherit;
}

.section__title--gap {
	margin-bottom: 36px;
}

.section__intro {
	margin: 0;
	max-width: 400px;
	color: var(--muted);
}

/* Плитки */
.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 20px;
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 180px;
	padding: 28px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.tile:hover {
	color: var(--ink);
	transform: translateY(-3px);
	border-color: transparent;
	box-shadow: 0 16px 36px rgba(22, 33, 58, .12);
}

.tile__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--tint);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tile__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 19px;
	line-height: 1.3;
}

.tile__text {
	font-size: 15px;
	color: var(--muted);
}

.tile--cta {
	background: var(--yellow);
	border-color: var(--yellow);
}

.tile--cta .tile__icon {
	background: var(--ink);
	color: var(--yellow);
}

.tile--cta .tile__text {
	color: #2D2A1A;
}

/* Обо мне */
.about {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.about__intro {
	flex: 1 1 340px;
	min-width: 0;
}

.about__intro .section__title {
	margin-bottom: 20px;
}

.about__intro .section__intro {
	margin-bottom: 16px;
}

.timeline {
	flex: 2 1 560px;
	min-width: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.timeline__item {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	padding: 22px 26px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 20px;
}

.timeline__label {
	min-width: 110px;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--accent);
}

.timeline__text {
	flex: 1 1 300px;
}

.timeline__item--now {
	background: var(--ink);
	border-color: var(--ink);
	color: #fff;
}

.timeline__item--now .timeline__label {
	color: var(--yellow);
}

/* Развитие */
.band {
	margin-top: 48px;
	background: var(--paper);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.band .section {
	padding-bottom: 88px;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	min-height: 240px;
	padding: 32px;
	border-radius: 24px;
	transition: transform .15s ease;
}

.card:hover {
	color: var(--ink);
	transform: translateY(-3px);
}

.card__num {
	font-family: var(--font-display);
	font-size: 56px;
	line-height: 1;
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.card__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 21px;
	line-height: 1.3;
}

.card__text {
	font-size: 15px;
	color: var(--muted);
}

.card--1 {
	background: var(--tint);
}

.card--1 .card__num {
	color: var(--accent);
}

.card--2 {
	background: #FFF3C4;
}

.card--2 .card__num {
	color: #8A6400;
}

.card--3 {
	background: #E3F1EA;
}

.card--3 .card__num {
	color: #1F6B4A;
}

/* Дорогами героев */
.heroes {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	padding: clamp(28px, 5vw, 64px);
	background: var(--green);
	color: #fff;
	border-radius: 32px;
}

.heroes__text {
	flex: 1 1 380px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.heroes__text .eyebrow {
	margin: 0;
}

.heroes__text p {
	margin: 0;
	max-width: 460px;
	color: #D4E6DD;
}

.heroes .section__title a:hover {
	color: var(--yellow);
}

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

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #6FA58B;
	border-radius: 999px;
	color: #fff;
	font-size: 15px;
	transition: background-color .15s ease, color .15s ease;
}

.chip:hover {
	background: var(--yellow);
	border-color: var(--yellow);
	color: var(--ink);
}

.gallery {
	flex: 1 1 380px;
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: 150px 150px auto;
	gap: 12px;
}

.gallery__item {
	border-radius: 20px;
	overflow: hidden;
	background: #2C5247;
}

.gallery__item--1 {
	grid-row: span 2;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery__btn {
	grid-column: span 2;
	align-self: end;
}

/* Методическая работа */
.cta-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 40px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 28px;
}

.cta-box > div {
	flex: 1 1 420px;
	min-width: 0;
}

.cta-box__title {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: clamp(24px, 2.6vw, 32px);
	line-height: 1.2;
}

.cta-box p {
	margin: 0;
	color: var(--muted);
}

@media (max-width: 600px) {
	.section {
		padding-top: 64px;
	}

	.cta-box {
		padding: 28px;
	}

	.cta-box .btn {
		width: 100%;
	}

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

/* ---------- Подвал ---------- */
.site-footer {
	background: var(--ink);
	color: #D5DCE8;
	font-size: 15px;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	padding-top: 48px;
	padding-bottom: 40px;
}

.site-footer__about {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 560px;
}

.site-footer__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 17px;
	color: #fff;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
}

.footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #D5DCE8;
}

.footer-menu a:hover {
	color: var(--yellow);
}

.site-footer__copy {
	width: 100%;
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 14px;
	color: #AEB8CB;
}

/* ---------- Внутренние страницы ---------- */
.page-head {
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 28px 28px;
	border-bottom: 1px solid var(--line);
	padding: 40px 0 48px;
}

.page-head__title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 52px);
	line-height: 1.12;
	letter-spacing: -.01em;
	overflow-wrap: break-word;
	max-width: 900px;
}

.breadcrumbs ol {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 14px;
	color: var(--muted);
}

.breadcrumbs li + li::before {
	content: "›";
	margin-right: 6px;
	color: #8A96AB;
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: #B8C2D3;
	text-underline-offset: 3px;
}

.breadcrumbs a:hover {
	color: var(--accent);
}

.page-body {
	padding-top: 48px;
	padding-bottom: 96px;
}

.entry-content {
	max-width: 820px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 28px;
	padding: clamp(24px, 5vw, 56px);
	color: var(--text);
	font-size: 18px;
	line-height: 1.7;
	overflow-wrap: break-word;
}

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

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.25;
	margin: 1.8em 0 .6em;
}

.entry-content h2 {
	font-size: 28px;
}

.entry-content h3 {
	font-size: 22px;
}

.entry-content h4 {
	font-size: 18px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.1em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li {
	margin-bottom: .4em;
}

.entry-content li::marker {
	color: var(--accent);
}

.entry-content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.entry-content a:hover {
	text-decoration-thickness: 2px;
}

.entry-content strong {
	color: var(--ink);
}

.entry-content img {
	border-radius: 16px;
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
	text-align: center;
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 22px 26px;
	background: var(--bg);
	border-radius: 18px;
	font-size: 19px;
	color: var(--ink);
}

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

.entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	color: var(--muted);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	display: block;
	overflow-x: auto;
}

.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--bg);
	color: var(--ink);
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2em 0;
}

.entry-content iframe,
.entry-content video {
	max-width: 100%;
	border-radius: 16px;
}

.entry-content .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	background: var(--bg);
	border-radius: 16px;
}

.entry-content .wp-block-file .wp-block-file__button,
.entry-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
}

.entry-content .wp-block-gallery {
	gap: 12px;
}

.entry-content .alignleft {
	float: left;
	margin: .3em 1.4em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: .3em 0 1em 1.4em;
}

.entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

@media (max-width: 600px) {
	.entry-content {
		font-size: 17px;
		border-radius: 20px;
	}

	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		margin: 1em 0;
	}
}

.page-links {
	margin-top: 1.5em;
	font-weight: 600;
}

.subpages {
	margin-top: 56px;
}

.subpages__title {
	margin: 0 0 20px;
	font-family: var(--font-display);
	font-size: 24px;
}

.subpages .tile {
	min-height: 0;
}

.entry-date {
	font-size: 15px;
	color: var(--muted);
}

/* Список записей */
.post-list {
	display: grid;
	gap: 16px;
	max-width: 820px;
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 26px 28px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.post-card__date {
	font-size: 14px;
	color: var(--muted);
}

.post-card__title {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 500;
}

.post-card__text {
	color: var(--muted);
}

.navigation.pagination {
	margin-top: 32px;
}

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

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 12px;
	background: var(--paper);
	border: 1px solid var(--line);
}

.nav-links .current {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

/* 404 */
.notfound {
	padding-bottom: 120px;
}

.notfound__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(80px, 14vw, 160px);
	line-height: 1;
	color: var(--accent);
}

.notfound .section__title {
	margin: 16px 0 12px;
}

.notfound .btn-row {
	margin-top: 28px;
}

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

	* {
		transition: none !important;
	}
}
