/*
Theme Name: dds_ridingwithscissors.com
Theme URI: https://ridingwithscissors.com/
Author: Кристина Макарова
Description: Тема для информационного сайта о конном спорте и любительских занятиях верховой ездой. Скандинавский минимализм с хвойной палитрой.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: nordride
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --bg: #F5F7F4;
    --bg-alt: #E9EDE6;
    --head: #1C2E24;
    --foot: #141F18;
    --side: #FFFFFF;
    --ink: #26352C;
    --accent: #A3C9A9;
    --gold: #D9B382;
    --muted: #7A8B7D;
    --line: #DCE3D9;
    --link: #4F7B5B;
    --font-head: "PT Sans Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.012em;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    text-decoration-color: var(--link);
}

a:hover,
a:focus {
    text-decoration-style: solid;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: 0.005em;
    margin: 0 0 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.6rem;
}

h2 {
    font-size: 2.1rem;
    margin-top: 2.4rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.8rem;
}

h4 {
    font-size: 1.22rem;
}

p {
    margin: 0 0 1.15em;
}

ul, ol {
    margin: 0 0 1.3em;
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.55em;
}

blockquote {
    margin: 1.8em 0;
    padding: 0.4rem 0 0.4rem 1.6rem;
    border-left: 4px solid var(--gold);
    color: var(--ink);
    font-size: 1.08rem;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

pre {
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    border-left: 3px solid var(--accent);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    letter-spacing: 0.03em;
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Маркер-тавро для списков */
.entry-content ul,
.brand-list {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li,
.brand-list li {
    position: relative;
    padding-left: 1.9rem;
}

.entry-content ul li::before,
.brand-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 0 2px, transparent 2.2px);
}

.entry-content ol {
    padding-left: 1.3em;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.78rem 1.9rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-on-dark {
    color: #F0F4EE;
}

.btn-on-dark:hover,
.btn-on-dark:focus {
    color: var(--head);
}

/* Декоративная «конная дорожка» между зонами */
.hoofline {
    height: 14px;
    background-image: repeating-linear-gradient(45deg, var(--line) 0 8px, transparent 8px 22px);
    opacity: 0.9;
}

/* =========================================================
   2. Шапка
   ========================================================= */

.site-head {
    background-color: var(--head);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M13 0L26 13L13 26L0 13Z' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.06'/%3E%3C/svg%3E");
    color: #E8EEE7;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(217, 179, 130, 0.35);
}

.head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem 2rem;
    justify-content: space-between;
}

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

.brand:hover {
    text-decoration: none;
}

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.22rem;
    line-height: 1.25;
    color: #F2F6F0;
    letter-spacing: 0.02em;
}

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #A9BCAC;
    max-width: 520px;
}

.nav-toggle {
    display: none;
    padding: 0.55rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: #E8EEE7;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    padding: 0.3rem 0;
    color: #E4EDE3;
    font-family: var(--font-head);
    font-size: 1.05rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--gold);
    text-decoration: none;
}

/* =========================================================
   3. Каркас страницы
   ========================================================= */

.site-main {
    display: block;
    padding: 0 0 4rem;
}

.page-head {
    padding-top: 2.6rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3.4rem;
    align-items: start;
    padding-top: 1.4rem;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1.4rem;
}

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

.crumbs {
    margin: 1.8rem 0 1.4rem;
    font-size: 0.88rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.crumbs a {
    color: var(--muted);
    text-decoration-style: dotted;
}

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

.crumbs .sep {
    margin: 0 0.45rem;
    color: var(--gold);
}

.page-title {
    margin-bottom: 1.6rem;
}

.sect-title {
    margin: 0 0 1.1rem;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sect-title::after {
    content: "";
    display: block;
    width: 58%;
    max-width: 480px;
    height: 1px;
    margin-top: 1.15rem;
    background: var(--gold);
}

.sect-lead {
    max-width: 760px;
    color: var(--ink);
}

/* =========================================================
   4. Карточки записей
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.card-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--side);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    filter: grayscale(1) sepia(0.28) hue-rotate(58deg) saturate(0.75) contrast(1.02);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.4rem 1.5rem 1.6rem;
}

.card-title {
    margin: 0 0 0.7rem;
    font-size: 1.32rem;
    line-height: 1.25;
}

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

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

.card-meta {
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--font-head);
}

.card-excerpt {
    color: var(--ink);
    font-size: 0.97rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-foot {
    margin-top: auto;
    padding-top: 1.1rem;
}

.card-more {
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px dotted var(--link);
}

.card-more:hover {
    border-bottom-style: solid;
    text-decoration: none;
}

/* =========================================================
   5. Главная страница
   ========================================================= */

.front-section {
    padding: 4.6rem 0;
}

.front-section.alt {
    background: var(--bg-alt);
}

.front-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1180px;
}

/* Блок 1 — Hero */
.fs-hero {
    position: relative;
    padding: 0;
    background: var(--head);
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

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

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(28, 46, 36, 0.92) 0%, rgba(28, 46, 36, 0.78) 45%, rgba(28, 46, 36, 0.42) 100%);
}

.hero-mark {
    position: absolute;
    right: 3%;
    bottom: 6%;
    width: 260px;
    max-width: 40%;
    opacity: 0.16;
    pointer-events: none;
}

.hero-body {
    position: relative;
    width: 85%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 6.2rem 0 6.4rem;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.2rem;
    font-family: var(--font-head);
    font-size: 0.92rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.hero-body h1 {
    color: #F4F8F2;
    max-width: 16ch;
}

.hero-rule {
    width: 240px;
    height: 2px;
    background: var(--gold);
    margin: 0 0 1.6rem;
}

.hero-sub {
    max-width: 620px;
    color: #D5E1D4;
    font-size: 1.1rem;
}

.hero-actions {
    margin-top: 2rem;
}

/* Блок 2 — Чек-лист новичка */
.fs-check .check-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3.2rem;
    align-items: start;
}

.check-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 3.4rem;
    margin-bottom: 2rem;
    font-size: 1.16rem;
    line-height: 1.6;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 26px;
    height: 26px;
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 9px;
    top: calc(0.15em + 9px);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.check-list strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.28rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

.check-list span {
    display: block;
    font-size: 0.98rem;
    color: var(--muted);
}

.check-figure {
    border: 1px solid var(--line);
    padding: 1.6rem 1.6rem 1.2rem;
    background: var(--side);
}

.check-figure img {
    width: 100%;
    height: auto;
}

.check-figure figcaption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-head);
}

/* Блок «Последние записи» */
.fs-latest .latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

.fs-latest .latest-head .sect-title {
    margin-bottom: 0;
}

/* Блок 3 — Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2.6rem;
}

.stat-cell {
    padding: 1.4rem 2rem;
    border-left: 1px solid var(--line);
    min-width: 0;
}

.stat-cell:first-child {
    border-left: 0;
    padding-left: 0;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.4rem;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.stat-cap {
    display: block;
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.96rem;
}

/* Блок 4 — Рубрикатор */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 2.6rem;
}

.rubric-tile {
    display: block;
    min-width: 0;
    padding: 2.2rem 1.6rem 2rem;
    background: var(--side);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.3s ease;
}

.rubric-tile:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.rubric-icon {
    display: block;
    width: 52px;
    height: 52px;
    margin-bottom: 1.4rem;
    color: var(--head);
    transition: transform 0.3s ease;
}

.rubric-tile:hover .rubric-icon {
    transform: translateY(-6px);
}

.rubric-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.28rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.rubric-note {
    display: block;
    font-size: 0.93rem;
    color: var(--muted);
    line-height: 1.55;
}

/* CTA внутри рубрикатора */
.rubric-cta {
    margin-top: 2.6rem;
    padding: 2.5rem 2.2rem;
    background-color: var(--head);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M13 0L26 13L13 26L0 13Z' fill='none' stroke='%23D9B382' stroke-width='1' opacity='0.12'/%3E%3C/svg%3E");
    border-radius: 10px;
    color: #E9EFE7;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
}

.rubric-cta h3 {
    margin: 0 0 0.4rem;
    color: #F3F7F1;
    font-size: 1.7rem;
}

.rubric-cta p {
    margin: 0;
    color: #C6D4C6;
    max-width: 560px;
}

/* =========================================================
   6. Запись и страница
   ========================================================= */

.entry-header {
    margin-bottom: 1.8rem;
}

.entry-meta {
    font-family: var(--font-head);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-thumb {
    margin: 0 0 2rem;
}

.entry-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    filter: grayscale(1) sepia(0.28) hue-rotate(58deg) saturate(0.75) contrast(1.02);
}

.entry-content h2 {
    font-size: 1.9rem;
}

.entry-content img {
    height: auto;
}

.entry-tail {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--muted);
}

.entry-tail a {
    color: var(--link);
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.post-nav a {
    font-family: var(--font-head);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* =========================================================
   7. Сайдбар и виджеты
   ========================================================= */

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--side);
    border: 1px solid var(--line);
    padding: 1.5rem 1.6rem 1.7rem;
    margin-bottom: 1.8rem;
    color: var(--ink);
}

.sidebar .widget-title {
    margin: 0 0 1.1rem;
    font-size: 1.24rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
}

.sidebar .widget-title::after {
    content: "";
    display: block;
    width: 62%;
    height: 1px;
    margin-top: 0.8rem;
    background: var(--gold);
}

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

.sidebar .widget li {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.45;
}

.sidebar .widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar .widget a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

.sidebar .widget a:hover {
    color: var(--link);
    border-bottom-style: solid;
}

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
}

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

.site-foot {
    background-color: var(--foot);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M13 0L26 13L13 26L0 13Z' fill='none' stroke='%23D9B382' stroke-width='1' opacity='0.10'/%3E%3C/svg%3E");
    color: #C9D6C8;
    padding: 3.6rem 0 2rem;
    margin-top: 0;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem;
}

.site-foot .widget {
    min-width: 0;
    color: #C9D6C8;
}

.site-foot .widget-title {
    margin: 0 0 1.1rem;
    font-size: 1.2rem;
    color: #F1F5EF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-foot .widget-title::after {
    content: "";
    display: block;
    width: 52%;
    height: 1px;
    margin-top: 0.8rem;
    background: var(--gold);
}

.site-foot .widget p,
.site-foot .widget li,
.site-foot .textwidget {
    color: #C9D6C8;
}

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

.site-foot .widget li {
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.site-foot .widget a {
    color: #DCE7DA;
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

.site-foot .widget a:hover {
    color: var(--accent);
    border-bottom-style: solid;
}

.site-foot .widget .post-date {
    display: block;
    font-size: 0.82rem;
    color: #97A896;
}

.foot-bottom {
    margin-top: 2.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(217, 179, 130, 0.28);
    font-size: 0.88rem;
    color: #9FB09E;
}

/* =========================================================
   9. Пагинация, поиск, комментарии
   ========================================================= */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2.8rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 46px;
    padding: 0.6rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--side);
    color: var(--ink);
    font-family: var(--font-head);
    letter-spacing: 0.05em;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.pager .page-numbers.current {
    background: var(--head);
    border-color: var(--head);
    color: #F2F6F0;
}

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

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

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

.search-form .search-field {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--side);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-form .search-field:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.search-form .search-submit {
    padding: 0.72rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search-form .search-submit:hover {
    background: var(--accent);
    color: #FFFFFF;
}

.talk {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.talk-title {
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.talk-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.talk-list .children {
    list-style: none;
    margin: 1.2rem 0 0 1.6rem;
    padding: 0;
}

.talk-item {
    margin-bottom: 1.4rem;
}

.talk-body {
    background: var(--side);
    border: 1px solid var(--line);
    padding: 1.3rem 1.5rem;
}

.talk-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    align-items: baseline;
    margin-bottom: 0.7rem;
}

.talk-author {
    font-family: var(--font-head);
    font-size: 1.12rem;
    letter-spacing: 0.03em;
}

.talk-date {
    font-size: 0.82rem;
    color: var(--muted);
}

.talk-reply {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.comment-respond {
    background: var(--side);
    border: 1px solid var(--line);
    padding: 1.8rem 1.8rem 1.6rem;
}

.comment-respond .comment-reply-title {
    margin-top: 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
}

.comment-form textarea {
    min-height: 160px;
}

.comment-form .submit {
    padding: 0.78rem 1.9rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.comment-form .submit:hover {
    background: var(--accent);
    color: #FFFFFF;
}

/* =========================================================
   10. Cookie-баннер
   ========================================================= */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.8rem;
    padding: 1.1rem 1.6rem;
    background: var(--head);
    border-top: 2px solid var(--gold);
    color: #DDE7DB;
    font-size: 0.94rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 820px;
}

.cookie-banner a {
    color: var(--accent);
}

.cookie-accept {
    padding: 0.6rem 1.6rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: #E9F0E7;
    font-family: var(--font-head);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cookie-accept:hover {
    background: var(--accent);
    color: var(--head);
}

/* =========================================================
   11. 404 и служебные блоки
   ========================================================= */

.empty-box {
    padding: 2.2rem 2.2rem;
    background: var(--side);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.err-num {
    font-family: var(--font-head);
    font-size: 6rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 1rem;
}

.err-actions {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

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

@media (max-width: 960px) {
    h1 {
        font-size: 2.6rem;
    }

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

    .layout-single,
    .front-inner,
    .hero-body {
        width: 100%;
    }

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

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

    .fs-check .check-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

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

    .hero-body {
        padding: 4.4rem 0 4.6rem;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .sect-title {
        font-size: 1.7rem;
    }

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

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

    .main-nav[hidden] {
        display: none !important;
    }

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

    .main-nav li {
        border-bottom: 1px solid rgba(217, 179, 130, 0.22);
    }

    .main-nav a {
        display: block;
        padding: 0.7rem 0;
    }

    .head-inner {
        gap: 1rem;
    }

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

    .front-section {
        padding: 3rem 0;
    }

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

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

    .stat-cell {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 1.2rem 0;
    }

    .stat-cell:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero-body {
        padding: 3.4rem 0 3.6rem;
    }

    .hero-mark {
        display: none;
    }

    .rubric-cta {
        padding: 1.8rem 1.4rem;
    }

    .empty-box {
        padding: 1.6rem 1.4rem;
    }

    .cookie-banner {
        padding: 1rem 1.2rem;
    }

    .check-list li {
        padding-left: 2.8rem;
        font-size: 1.05rem;
    }

    .check-figure {
        padding: 1.2rem 1.2rem 1rem;
    }
}
