/*
Theme Name: turkseriai-ru
Author: Игорь Фролов
Description: Тема сайта обзоров турецких фильмов и сериалов: ночной Стамбул и программа вечерних сеансов в духе изникских изразцов — золотые линии, тюльпаны и восьмиконечные звёзды, стрельчатые арки настроений, план пролива, таблица серий и словарь сериала.
Version: 1.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: turk
*/
/* ---------- Шрифты (OFL, файлы в /fonts) ---------- */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/fira-sans-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/fira-sans-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/forum-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Forum"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/forum-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
/* ---------- Палитра (HEX из задания) ---------- */
:root {
	--bg: #0F1D33;
	--pattern: #1B2E4A;
	--panel: #16263F;
	--footer: #0A1424;
	--gold: #C9A24B;
	--gold-light: #E2C276;
	--turquoise: #2E9C9C;
	--garnet: #B4243C;
	--rose: #E39AA0;
	--paper: #F2E9DA;
	--muted: #93A0B5;
	--font-head: "Forum", "Cormorant Garamond", "Times New Roman", serif;
	--font-body: "Fira Sans", "Segoe UI", Arial, sans-serif;
	/* Узор фона: тонкие тюльпаны и восьмиконечные звёзды */
	--tulips: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='170' viewBox='0 0 120 170'%3E%3Cg fill='none' stroke='%231B2E4A' stroke-width='1.6'%3E%3Cpath d='M30 20c-6 7-12 11-12 22 0 8 5 13 12 15 7-2 12-7 12-15 0-11-6-15-12-22zM30 57v38M30 85c-6-8-13-10-18-10 3 7 10 11 18 13M30 85c6-8 13-10 18-10-3 7-10 11-18 13'/%3E%3Cg transform='translate(90 125)'%3E%3Crect x='-11' y='-11' width='22' height='22'/%3E%3Crect x='-11' y='-11' width='22' height='22' transform='rotate(45)'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- База ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font-body);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.6;
	color: var(--paper);
	background: var(--bg) var(--tulips) repeat;
	overflow-wrap: break-word;
}

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

p {
	margin: 0 0 1em;
}

b,
strong {
	font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 400;
	line-height: 1.12;
	margin: 1.4em 0 0.5em;
	hyphens: auto;
	overflow-wrap: break-word;
}

a {
	color: var(--paper);
	text-decoration: underline solid var(--turquoise);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
	color: var(--gold-light);
	text-decoration-color: var(--gold);
}

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

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 1000;
	padding: 0.6em 1em;
	background: var(--gold);
	color: var(--bg);
}

.shell {
	width: min(92%, 1440px);
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 960px) {
	.shell {
		width: 80%;
	}
}

/* ---------- Кнопка: прямоугольник со срезанным углом ---------- */
.gold-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.5em 1.1em 0.45em;
	font-family: var(--font-body);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--bg);
	background: var(--gold);
	border: 0;
	border-radius: 0;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.gold-btn:hover,
.gold-btn:focus-visible,
.search-form button:hover,
.form-submit input[type="submit"]:hover,
.cookie-banner button:hover {
	color: var(--bg);
	background: var(--gold-light);
}

.gold-btn--line {
	color: var(--gold);
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--gold);
	clip-path: none;
}

.gold-btn--line:hover,
.gold-btn--line:focus-visible {
	color: var(--bg);
	background: var(--gold);
}

/* ---------- Шапка ---------- */
.site-header {
	background: var(--bg);
	border-bottom: 3px solid var(--gold);
}

.header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.3rem 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	text-decoration: none;
	color: var(--paper);
}

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

.brand-mark,
.brand-logo {
	flex: none;
	width: 64px;
	height: auto;
}

.brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	line-height: 1.05;
	color: var(--paper);
}

.brand-desc {
	margin-top: 0.2rem;
	font-size: 0.95rem;
	line-height: 1.25;
	color: var(--paper);
	opacity: 0.85;
}

.nav-toggle {
	display: none;
	padding: 0.45em 0.9em;
	font: inherit;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gold);
	background: transparent;
	border: 1px solid var(--gold);
	border-radius: 0;
	cursor: pointer;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: inline-block;
	padding: 0.2em 0;
	font-size: 1.05rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--gold);
	border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--gold-light);
	border-bottom-color: var(--turquoise);
}

/* ---------- Заголовки секций ---------- */
.front section {
	padding: 3.2rem 0;
}

.section-title,
.hero-title {
	margin: 0 0 2rem;
	font-size: clamp(2rem, 3.6vw, 3.2rem);
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
	color: var(--paper);
}

.eyebrow {
	margin: 0 0 0.6rem;
	font-family: var(--font-head);
	font-size: clamp(1.3rem, 2vw, 1.9rem);
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	color: var(--gold);
}

.hero-title {
	margin-bottom: 1rem;
	font-size: clamp(2.4rem, 5.4vw, 4.8rem);
	line-height: 1.02;
}

.hero-sub {
	margin: 0 0 2.6rem;
	font-size: clamp(1.1rem, 1.6vw, 1.4rem);
	text-align: center;
}

/* ---------- Блок 1: арки настроений ---------- */
.moods {
	padding-top: 3.6rem;
}

.arches {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.arch {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 19rem;
	padding: 2rem 1.4rem 2.6rem;
	text-align: center;
}

.arch-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.arch-frame path {
	fill: rgba(15, 29, 51, 0.65);
	stroke: var(--arch);
	stroke-width: 9;
	vector-effect: non-scaling-stroke;
}

.arch--garnet { --arch: var(--garnet); }
.arch--gold { --arch: var(--gold); }
.arch--turquoise { --arch: var(--turquoise); }
.arch--rose { --arch: var(--rose); }

.arch-title,
.arch-note {
	position: relative;
}

.arch-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.8rem, 2.6vw, 2.5rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--paper);
}

.arch-note {
	margin: 0;
	font-size: clamp(1rem, 1.3vw, 1.2rem);
	font-weight: 400;
	line-height: 1.35;
}

/* ---------- Блок 2: Стамбул в кадре ---------- */
.city-row {
	display: grid;
	grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
	gap: 2rem 3rem;
	align-items: center;
}

.city-map {
	position: relative;
	margin: 0;
}

.city-map img {
	display: block;
	width: 100%;
	/* Неровный край бумаги */
	-webkit-mask-image: radial-gradient(ellipse 54% 56% at 50% 50%, #000 85%, transparent 100%);
	mask-image: radial-gradient(ellipse 54% 56% at 50% 50%, #000 85%, transparent 100%);
}

.pin {
	position: absolute;
	display: grid;
	place-items: center;
	width: 1.9rem;
	height: 1.9rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	color: var(--bg);
	background: var(--gold);
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--bg);
	transform: translate(-50%, calc(-100% - 7px));
}

.pin::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	border: 7px solid transparent;
	border-top: 9px solid var(--gold);
	border-bottom: 0;
	transform: translateX(-50%);
}

.legend {
	counter-reset: place;
	margin: 0;
	padding: 0;
	list-style: none;
}

.legend li {
	counter-increment: place;
	position: relative;
	padding: 0.45rem 0 0.45rem 3rem;
	font-size: clamp(1.02rem, 1.4vw, 1.25rem);
	font-weight: 400;
	line-height: 1.35;
}

.legend li::before {
	content: counter(place);
	position: absolute;
	left: 0;
	top: 50%;
	display: grid;
	place-items: center;
	width: 2.1rem;
	height: 2.1rem;
	font-weight: 600;
	color: var(--bg);
	background: var(--gold);
	border-radius: 50%;
	transform: translateY(-50%);
}

.legend b {
	font-weight: 400;
}

/* ---------- Последние обзоры ---------- */
.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1rem 1rem 1.1rem;
	background: var(--panel);
	border: 1.5px solid var(--gold);
}

.card-star {
	position: absolute;
	top: 0.45rem;
	z-index: 1;
	width: 0.9rem;
	height: 0.9rem;
	background: var(--gold);
	clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%);
}

.card-star--l {
	left: 0.45rem;
}

.card-star--r {
	right: 0.45rem;
}

.card-thumb {
	display: block;
	aspect-ratio: 342 / 213;
	overflow: hidden;
	background: var(--bg);
	border: 1.5px solid var(--gold);
}

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

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1rem 0.1rem 0;
}

.card-title {
	margin: 0 0 0.45rem;
	font-size: 1.6rem;
	line-height: 1.1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.layout-with-sidebar .card-title {
	font-size: 1.3rem;
	letter-spacing: 0.01em;
}

.card-title a {
	color: var(--paper);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--gold-light);
}

.card-excerpt {
	font-size: 1.02rem;
	line-height: 1.4;
}

.card-excerpt p {
	margin: 0 0 0.6rem;
}

.card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin-top: auto;
	padding-top: 0.6rem;
}

.card-date {
	font-size: 0.95rem;
	color: var(--muted);
}

.feed-more {
	margin: 2.2rem 0 0;
	text-align: center;
}

.feed-empty {
	color: var(--muted);
	text-align: center;
}

/* ---------- Блок 3: таблица серий ---------- */
.time-panel {
	padding: 1.2rem clamp(1rem, 3vw, 2.6rem) 1.4rem;
	background: var(--panel);
	overflow-x: auto;
}

.time-table {
	width: 100%;
	border-collapse: collapse;
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	font-weight: 400;
}

.time-table th {
	padding: 0.4rem 0.8rem 0.5rem;
	font-family: var(--font-body);
	font-size: 0.95em;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-align: left;
	text-transform: uppercase;
	color: var(--gold);
	border-bottom: 3px solid var(--turquoise);
}

.time-table td {
	padding: 0.45rem 0.8rem;
	border-bottom: 1.5px solid var(--turquoise);
}

.time-table tbody tr:last-child td {
	border-bottom: 0;
}

.time-table th:nth-child(n + 3),
.time-table .num {
	text-align: center;
}

.time-table .num {
	color: var(--gold-light);
}

/* ---------- Блок 4: словарь ---------- */
.words-panel {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-flow: column;
	grid-template-rows: repeat(3, auto);
	gap: 0.5rem 3rem;
	margin: 0;
	padding: 1.6rem clamp(1.2rem, 4vw, 3.2rem);
	background: var(--garnet);
	border: 2px solid var(--gold);
	outline: 1px solid var(--garnet);
	outline-offset: 3px;
}

.word {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.4em;
	font-size: clamp(1.02rem, 1.45vw, 1.3rem);
	font-weight: 400;
	line-height: 1.4;
}

.word dt {
	font-weight: 600;
	color: #F6C463;
}

.word dt::after {
	content: " —";
	font-weight: 400;
	color: var(--paper);
}

.word dd {
	margin: 0;
}

/* ---------- Внутренние страницы ---------- */
.page-head {
	padding: 2.6rem 0 1.4rem;
}

.page-head h1 {
	margin: 0.8rem 0 0;
	font-size: clamp(2.2rem, 4.4vw, 3.6rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--paper);
}

.single .page-head h1 {
	font-size: clamp(2rem, 3.6vw, 3rem);
	letter-spacing: 0.02em;
}

.page-head .entry-meta {
	margin-top: 0.8rem;
	color: var(--muted);
}

.breadcrumbs {
	font-size: 0.92rem;
	color: var(--muted);
}

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

.breadcrumbs .sep {
	margin: 0 0.4em;
	color: var(--gold);
}

.site-main {
	padding: 0.6rem 0 4.5rem;
}

.layout-single {
	display: block;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
	column-gap: 5%;
	align-items: start;
}

.content-area {
	min-width: 0;
}

.sheet {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	background: var(--panel);
	border: 1.5px solid var(--gold);
}

.layout-single .sheet {
	max-width: 960px;
}

.entry-meta {
	font-size: 0.95rem;
	color: var(--muted);
}

.entry-meta a {
	color: inherit;
}

.entry-thumb {
	margin: 0 0 1.8rem;
	border: 1.5px solid var(--gold);
}

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

.entry-content {
	font-size: 1.1rem;
	line-height: 1.75;
	hyphens: auto;
}

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

.entry-content a {
	color: var(--gold-light);
}

.entry-content h2 {
	font-size: 2.1rem;
	letter-spacing: 0.02em;
	color: var(--gold);
}

.entry-content h3 {
	font-size: 1.65rem;
	color: var(--gold);
}

.entry-content h4 {
	font-size: 1.35rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.6em;
}

.entry-content ul {
	list-style: none;
	padding-left: 1.5em;
}

.entry-content ul > li {
	position: relative;
	margin-bottom: 0.35em;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.25em;
	top: 0.6em;
	width: 0.6em;
	height: 0.6em;
	background: var(--gold);
	clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%);
}

.entry-content ol > li::marker {
	font-weight: 600;
	color: var(--gold);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1.2rem 1.5rem;
	font-family: var(--font-head);
	font-size: 1.5rem;
	line-height: 1.35;
	background: var(--bg);
	border-left: 4px solid var(--turquoise);
}

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

.entry-content table {
	width: 100%;
	margin: 1.4em 0;
	border-collapse: collapse;
	font-size: 1rem;
}

.entry-content th,
.entry-content td {
	padding: 0.55rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--turquoise);
}

.entry-content th {
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--gold);
}

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

.entry-content figcaption {
	margin-top: 0.4rem;
	font-size: 0.9rem;
	color: var(--muted);
}

.entry-content img {
	display: block;
}

.entry-content pre,
.entry-content code {
	font-family: Consolas, "DejaVu Sans Mono", "Courier New", monospace;
	font-size: 0.88em;
	background: rgba(0, 0, 0, 0.25);
}

.entry-content pre {
	padding: 1rem 1.2rem;
	overflow-x: auto;
}

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

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.95rem;
	border-top: 1px solid rgba(201, 162, 75, 0.4);
}

.post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.2rem;
	margin-top: 2.2rem;
	max-width: 960px;
}

.layout-with-sidebar .post-nav {
	max-width: none;
}

.post-nav a {
	display: block;
	padding: 1rem 1.2rem;
	text-decoration: none;
	background: var(--panel);
	border: 1px solid var(--gold);
}

.post-nav a:hover {
	background: #1C3050;
}

.post-nav .nav-next {
	text-align: right;
}

.post-nav small {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
}

.post-nav strong {
	font-family: var(--font-head);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--paper);
}

/* ---------- Пагинация (type => plain) ---------- */
.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.6rem;
}

.pager .page-numbers {
	display: inline-block;
	min-width: 2.6em;
	padding: 0.45em 0.8em;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--gold);
	background: var(--panel);
	border: 1px solid var(--gold);
}

.pager a.page-numbers:hover {
	color: var(--gold-light);
}

.pager .page-numbers.current {
	color: var(--bg);
	background: var(--gold);
}

.pager .page-numbers.dots {
	min-width: 0;
	background: none;
	border-color: transparent;
}

/* ---------- Сайдбар ---------- */
.sidebar {
	min-width: 0;
	padding: 1.6rem 1.5rem;
	background: var(--panel);
	border: 1px solid var(--gold);
}

.sidebar .widget + .widget {
	margin-top: 2rem;
}

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	font-size: 1.6rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--gold);
}

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

.sidebar li {
	padding: 0.55rem 0;
	font-size: 1rem;
	line-height: 1.45;
	border-bottom: 1px solid rgba(46, 156, 156, 0.45);
}

.sidebar a {
	text-decoration: none;
}

.sidebar a:hover {
	color: var(--gold-light);
}

.sidebar .post-date,
.sidebar .wp-block-latest-posts__post-date {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
}

/* ---------- Комментарии ---------- */
.comments {
	margin-top: 2.6rem;
	max-width: 960px;
}

.comments-title,
.comment-reply-title {
	font-size: 1.9rem;
	margin: 0 0 1rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--gold);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 1.6rem;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1rem 1.2rem;
	background: var(--panel);
	border-left: 3px solid var(--turquoise);
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--muted);
}

.comment-head b {
	color: var(--paper);
}

.comment-wait {
	font-size: 0.92rem;
	color: var(--rose);
}

.comment-reply-link {
	font-size: 0.9rem;
	color: var(--gold-light);
}

.comment-respond {
	margin-top: 1.8rem;
	padding: 1.6rem;
	background: var(--panel);
	border: 1px solid var(--gold);
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.92rem;
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.6rem 0.8rem;
	font: inherit;
	font-size: 1rem;
	color: var(--paper);
	background: var(--bg);
	border: 1px solid var(--turquoise);
	border-radius: 0;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
}

.comment-notes,
.logged-in-as,
.must-log-in {
	font-size: 0.92rem;
	color: var(--muted);
}

/* ---------- Поиск и 404 ---------- */
.search-form {
	display: flex;
	gap: 0.6rem;
	max-width: 560px;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.lost {
	padding: 1rem 0 2rem;
}

.lost-code {
	margin: 0 0 1.4rem;
	font-family: var(--font-head);
	font-size: clamp(6rem, 18vw, 12rem);
	line-height: 0.9;
	color: var(--gold);
}

.lost-code span {
	color: var(--turquoise);
}

.lost p {
	max-width: 620px;
}

.lost .gold-btn {
	margin-top: 1.4rem;
}

/* ---------- Подвал ---------- */
.site-footer {
	color: var(--paper);
	background: var(--footer);
	border-top: 3px solid var(--gold);
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3.5rem;
	padding: 2.6rem 0 1.6rem;
}

.footer-col {
	min-width: 0;
	font-size: 1.1rem;
	line-height: 1.45;
}

.footer-col:nth-child(2) {
	text-align: center;
}

.footer-col .widget-title {
	margin: 0 0 0.6rem;
	font-size: 2rem;
	color: var(--paper);
}

.footer-col p {
	margin: 0 0 0.6em;
}

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

.footer-col li {
	margin-bottom: 0.15rem;
}

.footer-col a {
	color: var(--paper);
	text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--gold-light);
	text-decoration: underline;
}

.copyright {
	margin: 0;
	padding: 0.6rem 0 2rem;
	font-size: 1rem;
	text-align: center;
	color: var(--paper);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] {
	display: none !important;
}

.cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem 1.5rem;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem 1.3rem;
	font-size: 0.95rem;
	line-height: 1.5;
	background: var(--panel);
	border: 1px solid var(--gold);
}

.cookie-banner p {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
	.arches {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

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

	.legend {
		max-width: 40rem;
	}

	.main-nav ul {
		gap: 0.4rem 1.4rem;
	}

	.main-nav a {
		font-size: 0.95rem;
	}
}

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

	.main-nav {
		flex-basis: 100%;
	}

	.main-nav[data-open="false"] {
		display: none;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.main-nav li + li {
		border-top: 1px solid var(--pattern);
	}

	.main-nav a {
		display: block;
		padding: 0.5em 0;
	}

	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2.5rem;
	}

	.words-panel {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-flow: row;
		grid-template-rows: none;
	}

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

	.footer-col:nth-child(2) {
		text-align: left;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 17px;
	}

	.brand-mark,
	.brand-logo {
		width: 52px;
	}

	.brand-desc {
		font-size: 0.85rem;
	}

	.front section {
		padding: 2.2rem 0;
	}

	.arches {
		gap: 1.2rem;
	}

	.arch {
		min-height: 13rem;
		padding: 1.4rem 0.7rem 1.6rem;
	}

	.arch-title {
		font-size: 1.45rem;
	}

	.arch-note {
		font-size: 0.92rem;
	}

	.pin {
		width: 1.5rem;
		height: 1.5rem;
		font-size: 0.85rem;
	}

	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: minmax(0, 1fr);
	}

	.time-table {
		font-size: 0.92rem;
	}

	.time-table th,
	.time-table td {
		padding-left: 0.4rem;
		padding-right: 0.4rem;
	}

	.sheet {
		padding: 1.6rem 1.2rem 1.8rem;
	}

	.sidebar {
		padding: 1.3rem 1.2rem;
	}

	.comment-respond {
		padding: 1.2rem 1.1rem;
	}

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

	.search-form {
		flex-direction: column;
	}

	.cookie-banner {
		left: 0.6rem;
		right: 0.6rem;
		bottom: 0.6rem;
	}
}

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

	* {
		transition: none !important;
	}
}
