/* ==========================================================================
   Dacha Fazenda — основные стили темы
   Палитра: молочно-льняной фон, хвойный зелёный, шалфей, терракота.
   ========================================================================== */

:root {
	--color-canvas: #F9F8F3;
	--color-surface: #FFFFFF;
	--color-border: #E5E2D7;
	--color-primary: #2E5A36;
	--color-primary-hover: #224428;
	--color-secondary: #6B8E67;
	--color-accent: #C86D3B;
	--color-accent-hover: #AC5B2F;
	--color-text: #232622;
	--color-muted: #646961;
	--color-footer-bg: #1D3822;
	--color-footer-text: #E8ECE6;

	--font-head: 'Lora', 'Merriweather', Georgia, serif;
	--font-body: 'Inter', 'Golos Text', -apple-system, 'Segoe UI', sans-serif;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(35, 38, 34, 0.05), 0 6px 18px rgba(35, 38, 34, 0.06);
	--shadow-hover: 0 4px 8px rgba(35, 38, 34, 0.08), 0 14px 32px rgba(35, 38, 34, 0.10);

	--container: 1180px;
}

/* --------------------------------------------------------------------------
   База
   -------------------------------------------------------------------------- */

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--color-canvas);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.25;
	color: var(--color-text);
	margin: 0 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
	color: var(--color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.15s ease;
}

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

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

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

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

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 100;
	background: var(--color-primary);
	color: #fff;
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	transition: top 0.2s ease;
}

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

/* Кнопки */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

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

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

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

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

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

.btn--ghost {
	background: transparent;
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.btn--ghost:hover { background: var(--color-primary); color: #fff; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(249, 248, 243, 0.96);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

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

.site-logo__icon { flex-shrink: 0; }

.site-title {
	margin: 0;
	font-family: var(--font-head);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.1;
}

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

.site-title a:hover { color: var(--color-primary); }

.site-slogan {
	margin: 2px 0 0;
	font-size: 0.78rem;
	color: var(--color-muted);
	letter-spacing: 0.01em;
}

.site-nav { margin-left: auto; }

.nav-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--color-text);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.nav-menu a:hover {
	background: rgba(46, 90, 54, 0.08);
	color: var(--color-primary);
}

.nav-menu .current-menu-item > a,
.nav-menu .current-menu-parent > a {
	color: var(--color-primary);
	background: rgba(46, 90, 54, 0.1);
}

/* Выпадающие подменю */
.nav-menu .menu-item-has-children { position: relative; }

.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	display: none;
	flex-direction: column;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-hover);
	padding: 6px;
	z-index: 60;
}

.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu {
	display: flex;
}

.nav-menu .sub-menu a { white-space: normal; }

/* Кнопки шапки */
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.header-search-toggle,
.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.header-search-toggle:hover,
.nav-toggle:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Раскрывающаяся строка поиска */
.header-search {
	border-top: 1px solid var(--color-border);
	background: var(--color-canvas);
	padding: 14px 0;
}

.header-search__form {
	display: flex;
	gap: 10px;
	max-width: 720px;
	margin: 0 auto;
}

.header-search__form input[type="search"] {
	flex: 1;
	padding: 11px 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--color-text);
}

.header-search__form input[type="search"]:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(46, 90, 54, 0.12);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
	padding: 48px 0 0;
	background:
		radial-gradient(1200px 400px at 80% -10%, rgba(107, 142, 103, 0.14), transparent 60%),
		var(--color-canvas);
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 48px;
	align-items: center;
}

.hero__badge {
	display: inline-block;
	padding: 6px 14px;
	margin-bottom: 18px;
	background: rgba(200, 109, 59, 0.12);
	color: var(--color-accent);
	border: 1px solid rgba(200, 109, 59, 0.3);
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
}

.hero__title {
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	margin-bottom: 16px;
}

.hero__text {
	font-size: 1.08rem;
	color: var(--color-muted);
	max-width: 34em;
	margin-bottom: 26px;
}

.hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__media img {
	width: 100%;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow);
}

/* Сезонный навигатор */
.season-nav {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 40px;
	padding-bottom: 8px;
}

.season-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--color-text);
	font-weight: 600;
	font-size: 0.92rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.season-nav__item:hover {
	border-color: var(--color-primary);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
	color: var(--color-primary);
}

.season-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(46, 90, 54, 0.08);
	color: var(--color-primary);
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Секции и сетки карточек
   -------------------------------------------------------------------------- */

.section { margin: 48px auto; }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	border-bottom: 2px solid var(--color-border);
	padding-bottom: 12px;
}

.section__title {
	margin: 0;
	font-size: 1.5rem;
}

.section__title::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--color-accent);
	margin-right: 10px;
}

.section__more {
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

/* Карточка */
.card {
	display: flex;
	flex-direction: column;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-3px);
	border-color: rgba(46, 90, 54, 0.35);
}

.card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #EDEFE4;
}

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

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

.card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
	flex: 1;
}

.card__title {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

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

.card__excerpt {
	margin: 0;
	font-size: 0.9rem;
	color: var(--color-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.8rem;
	color: var(--color-muted);
}

.card__reading-time::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--color-secondary);
	margin-right: 12px;
	vertical-align: middle;
}

/* Бейдж рубрики */
.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(107, 142, 103, 0.16);
	color: var(--color-primary);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.badge:hover { background: var(--color-primary); color: #fff; }

.badge--stroyka { background: rgba(200, 109, 59, 0.14); color: var(--color-accent); }
.badge--stroyka:hover { background: var(--color-accent); color: #fff; }
.badge--zagotovki { background: rgba(242, 193, 78, 0.28); color: #8a5a18; }
.badge--zagotovki:hover { background: #D9A03C; color: #fff; }
.badge--kalendar { background: rgba(46, 90, 54, 0.12); }

/* Блок «Актуальное сейчас» */
.featured-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 22px;
}

.featured-grid .card--featured { grid-row: span 3; }

.featured-grid .card--featured .card__title { font-size: 1.4rem; }
.featured-grid .card--featured .card__excerpt { -webkit-line-clamp: 4; }

.featured-grid .card--compact {
	flex-direction: row;
}

.featured-grid .card--compact .card__media {
	width: 42%;
	aspect-ratio: auto;
	flex-shrink: 0;
}

.featured-grid .card--compact .card__body { padding: 14px 16px; }
.featured-grid .card--compact .card__title { font-size: 0.98rem; -webkit-line-clamp: 2; }

/* --------------------------------------------------------------------------
   Хлебные крошки, шапки архивов
   -------------------------------------------------------------------------- */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 22px 0 6px;
	font-size: 0.85rem;
	color: var(--color-muted);
}

.breadcrumbs a {
	color: var(--color-muted);
	text-decoration: none;
}

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

.breadcrumbs__sep { color: var(--color-border); }
.breadcrumbs span:last-child { color: var(--color-text); }

.archive-head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 18px 0 28px;
	padding: 26px 28px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.archive-head__icon img {
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
}

.archive-head__title { margin: 0; }

.archive-head__desc {
	color: var(--color-muted);
	max-width: 62em;
}

.archive-head__desc p:last-child { margin: 0; }

/* --------------------------------------------------------------------------
   Раскладка с сайдбаром
   -------------------------------------------------------------------------- */

.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
	margin: 18px auto 56px;
}

.page-layout:not(:has(.page-layout__sidebar)) {
	grid-template-columns: minmax(0, 1fr);
}

.page-layout__sidebar {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* Виджеты */
.widget {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 20px;
}

.widget__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--color-border);
}

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

.widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--color-border); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul a { text-decoration: none; }
.widget ul a:hover { text-decoration: underline; }

.advice-widget {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.advice-widget__icon { flex-shrink: 0; }
.advice-widget__text { margin: 0; font-size: 0.92rem; color: var(--color-text); }

.cat-counter-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.cat-counter-list__count {
	background: rgba(46, 90, 54, 0.1);
	color: var(--color-primary);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 2px 10px;
}

/* Зоны виджетов на главной */
.home-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
	margin-top: 40px;
	margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Статья
   -------------------------------------------------------------------------- */

.post__header { margin-bottom: 22px; }

.post__badge { margin-bottom: 12px; }

.post__title { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	color: var(--color-muted);
	font-size: 0.88rem;
}

.post__reading-time::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--color-secondary);
	margin-right: 14px;
	vertical-align: middle;
}

.post__thumb {
	margin: 0 0 26px;
}

.post__thumb img {
	width: 100%;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
}

/* Оглавление */
.post-toc {
	margin: 0 0 28px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-left: 4px solid var(--color-primary);
	border-radius: var(--radius-sm);
	padding: 14px 20px;
}

.post-toc__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
	list-style: none;
	color: var(--color-primary);
}

.post-toc__title::-webkit-details-marker { display: none; }

.post-toc__list {
	margin: 12px 0 4px;
	padding-left: 22px;
}

.post-toc__item { margin: 5px 0; }
.post-toc__item--h3 { margin-left: 18px; font-size: 0.92rem; }
.post-toc__item a { text-decoration: none; }
.post-toc__item a:hover { text-decoration: underline; }

/* Типографика контента */
.entry-content {
	font-size: 1.02rem;
}

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

.entry-content h2 {
	margin-top: 1.8em;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-border);
}

.entry-content h3 { margin-top: 1.5em; }

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

.entry-content li { margin-bottom: 6px; }
.entry-content li::marker { color: var(--color-primary); font-weight: 700; }

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 24px;
	background: rgba(107, 142, 103, 0.1);
	border-left: 4px solid var(--color-secondary);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-family: var(--font-head);
	font-style: italic;
	font-size: 1.08rem;
}

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

/* Таблицы с адаптивным скроллом */
.entry-content table {
	width: 100%;
	margin: 1.6em 0;
	border-collapse: collapse;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	font-size: 0.92rem;
	display: block;
	overflow-x: auto;
}

.entry-content table thead,
.entry-content table tbody {
	display: table;
	width: 100%;
	min-width: 520px;
}

.entry-content th {
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
	text-align: left;
	padding: 10px 14px;
}

.entry-content td {
	padding: 10px 14px;
	border-top: 1px solid var(--color-border);
}

.entry-content tbody tr:nth-child(even) { background: rgba(46, 90, 54, 0.04); }

/* Врезки */
.callout {
	margin: 1.6em 0;
	padding: 18px 22px 14px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	position: relative;
}

.callout__label {
	display: inline-block;
	margin: -32px 0 8px;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

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

.callout--tip {
	border-color: rgba(46, 90, 54, 0.4);
	background: rgba(107, 142, 103, 0.08);
}

.callout--tip .callout__label { background: var(--color-primary); color: #fff; }

.callout--important {
	border-color: rgba(200, 109, 59, 0.5);
	background: rgba(200, 109, 59, 0.08);
}

.callout--important .callout__label { background: var(--color-accent); color: #fff; }

/* Метки, страницы поста */
.post__tags {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 0.88rem;
}

.post__tags a {
	padding: 4px 12px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.82rem;
}

.post__tags a:hover { border-color: var(--color-primary); }

.post-pages { margin: 24px 0; }

.related-posts { margin-top: 52px; }

/* --------------------------------------------------------------------------
   Пагинация
   -------------------------------------------------------------------------- */

.pagination {
	margin: 36px 0 8px;
}

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

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--color-text);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }

.page-numbers.current {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

.page-numbers.dots { border: 0; background: transparent; }

/* --------------------------------------------------------------------------
   Поиск, 404, пустые состояния
   -------------------------------------------------------------------------- */

.search-page-form { margin-bottom: 22px; }
.search-page-form .header-search__form { margin: 0; max-width: 640px; }

.search-results-count { color: var(--color-muted); margin-bottom: 18px; }

.empty-state,
.error-page {
	text-align: center;
	padding: 40px 20px 56px;
}

.error-page__img {
	max-width: 480px;
	margin: 0 auto 24px;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
}

.error-page__title { margin-bottom: 10px; }
.error-page__text { color: var(--color-muted); max-width: 34em; margin: 0 auto 22px; }

.error-page__search {
	max-width: 520px;
	margin: 0 auto 18px;
}

/* --------------------------------------------------------------------------
   Комментарии
   -------------------------------------------------------------------------- */

.comments-area {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 2px solid var(--color-border);
}

.comments-title { font-size: 1.35rem; }

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
}

.comment-list .comment {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 16px 20px;
	margin-bottom: 14px;
}

.comment-list .children {
	list-style: none;
	margin: 14px 0 0;
	padding-left: 26px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.comment-author .avatar { border-radius: 50%; }

.comment-metadata { font-size: 0.8rem; color: var(--color-muted); }
.comment-metadata a { color: var(--color-muted); text-decoration: none; }

.comment-content { margin-top: 10px; font-size: 0.95rem; }
.comment-content p:last-child { margin-bottom: 0; }

.reply { margin-top: 10px; font-size: 0.85rem; }

.comment-respond {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 22px 24px;
}

.comment-reply-title { font-size: 1.2rem; }

.comment-form label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 5px;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-canvas);
	font-family: var(--font-body);
	font-size: 0.95rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(46, 90, 54, 0.12);
}

.comment-form .form-submit .submit {
	padding: 12px 28px;
	background: var(--color-primary);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.15s ease;
}

.comment-form .form-submit .submit:hover { background: var(--color-primary-hover); }

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

.site-footer {
	margin-top: 64px;
	background: var(--color-footer-bg);
	color: var(--color-footer-text);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 36px;
	padding-top: 44px;
	padding-bottom: 36px;
}

.site-footer__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.site-footer__title {
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 700;
}

.site-footer__text {
	font-size: 0.9rem;
	color: rgba(232, 236, 230, 0.78);
}

.site-footer__heading {
	color: #fff;
	font-size: 1rem;
	margin-bottom: 14px;
}

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

.site-footer__menu li { margin-bottom: 8px; }

.site-footer__menu a {
	color: var(--color-footer-text);
	text-decoration: none;
	font-size: 0.92rem;
	opacity: 0.85;
	transition: opacity 0.15s ease, color 0.15s ease;
}

.site-footer__menu a:hover { opacity: 1; color: #F2C14E; }

.site-footer__widgets .widget {
	background: transparent;
	border: 0;
	padding: 0;
}

.site-footer__widgets .widget__title { color: #fff; border-color: rgba(232, 236, 230, 0.2); }
.site-footer__widgets .widget ul li { border-color: rgba(232, 236, 230, 0.16); }
.site-footer__widgets .widget a { color: var(--color-footer-text); }

.site-footer__bottom {
	border-top: 1px solid rgba(232, 236, 230, 0.16);
	padding: 16px 0;
}

.site-footer__bottom-inner p {
	margin: 0;
	font-size: 0.84rem;
	color: rgba(232, 236, 230, 0.7);
}

/* --------------------------------------------------------------------------
   WordPress-служебное
   -------------------------------------------------------------------------- */

.alignwide { max-width: 960px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.alignleft { float: left; margin: 6px 24px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text {
	font-size: 0.82rem;
	color: var(--color-muted);
	padding-top: 8px;
}

.sticky { border-left: 4px solid var(--color-accent); }
.bypostauthor { font-weight: inherit; }

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

@media (max-width: 1024px) {
	.cards-grid { grid-template-columns: repeat(2, 1fr); }

	.featured-grid { grid-template-columns: 1fr; }
	.featured-grid .card--featured { grid-row: auto; }
	.featured-grid .card--compact { flex-direction: column; }
	.featured-grid .card--compact .card__media { width: 100%; aspect-ratio: 16 / 9; }

	.hero__inner { grid-template-columns: 1fr; gap: 28px; }
	.hero__media { order: -1; }

	.page-layout { grid-template-columns: 1fr; }
	.page-layout__sidebar { position: static; }

	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.site-header__inner { flex-wrap: wrap; gap: 12px; }

	.nav-toggle { display: inline-flex; }

	.site-nav {
		display: none;
		order: 3;
		width: 100%;
		margin-left: 0;
	}

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

	.site-nav .nav-menu {
		flex-direction: column;
		background: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius);
		padding: 8px;
		box-shadow: var(--shadow);
	}

	.site-nav .sub-menu {
		position: static;
		display: flex;
		border: 0;
		box-shadow: none;
		padding-left: 16px;
	}

	.season-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
	.cards-grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero { padding-top: 28px; }
	.hero__buttons .btn { width: 100%; }
	.header-search__form { flex-direction: column; }
	.site-title { font-size: 1.15rem; }
	h1 { font-size: 1.7rem; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
