/*
Theme Name: dds_jardinedesign.com
Theme URI: https://jardinedesign.com/
Author: Андрей Селиванов
Description: Тема для информационного сайта о мужской одежде и аксессуарах. Яркий поп с элементами брутализма.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: jardsty
*/

/* ============================================================
   1. Переменные и базовые правила
   ============================================================ */

:root {
    --bg: #F9F6F0;
    --bg-alt: #EBE3D5;
    --ink: #1E1E1E;
    --dark: #1A1A1A;
    --accent: #FF4B4B;
    --gold: #FFD700;
    --muted: #7A7A7A;
    --line: #1E1E1E;
    --shell: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(90deg, rgba(30, 30, 30, 0.05) 0 1px, transparent 1px 30px);
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -40px;
    width: 420px;
    height: 460px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 460'%3E%3Cpath d='M164 60 L110 92 L84 300 L124 314 L138 440 L282 440 L296 314 L336 300 L310 92 L256 60 L210 130 Z' fill='%23FF4B4B'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 0.6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: 0.45em;
}

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

.entry-content ul li {
    position: relative;
    padding-left: 1.5em;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 9px;
    height: 9px;
    background: var(--accent);
}

blockquote {
    margin: 1.8em 0;
    padding: 1.6rem 1.8rem;
    background: var(--dark);
    color: #F9F6F0;
    border-left: 8px solid var(--accent);
}

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

code, pre {
    font-family: "Courier New", monospace;
    background: var(--bg-alt);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

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

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

th {
    background: var(--bg-alt);
    font-weight: 800;
}

/* ============================================================
   2. Ссылки и кнопки
   ============================================================ */

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

.entry-content a,
.card-excerpt a,
.widget a {
    position: relative;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size 0.22s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget a:hover {
    background-size: 100% 2px;
}

.btn {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: 0;
    padding: 0.85rem 1.7rem;
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    background: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
}

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

.btn-ghost:hover {
    background: var(--gold);
    transform: scale(1.03);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

/* ============================================================
   3. Портновская лента и шапка
   ============================================================ */

.tailor-tape {
    position: relative;
    z-index: 3;
    height: 4px;
    background: linear-gradient(90deg,
        var(--accent) 0 34%,
        var(--gold) 34% 67%,
        var(--dark) 67% 100%);
}

.site-top {
    position: relative;
    z-index: 3;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

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

.top-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.4rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    margin-right: auto;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
}

.brand-logo {
    max-height: 60px;
    width: auto;
}

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

.brand-name {
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 1.15rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.brand-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: transparent;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 3px;
    background: var(--ink);
    margin-bottom: 3px;
}

.nav-toggle-bar:last-of-type {
    margin-bottom: 0;
}

.nav-toggle-label {
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-left: 4px;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
    position: relative;
}

.nav-list a {
    display: inline-block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 3px;
    border-bottom: 3px solid transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    border-bottom-color: var(--accent);
}

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.6rem 0.9rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

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

.site-body {
    position: relative;
    z-index: 1;
    display: block;
    padding-bottom: 3rem;
}

.page-wrap {
    padding: 2.2rem 0 1rem;
}

.layout-single {
    display: block;
    width: min(85%, var(--shell));
    margin-left: auto;
    margin-right: auto;
}

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

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

.sidebar {
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.6rem 1.5rem;
}

.page-title {
    font-size: 2.4rem;
    margin-bottom: 0.5em;
}

.breadcrumbs {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}

.breadcrumbs a {
    color: var(--ink);
    border-bottom: 2px solid transparent;
}

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

.breadcrumbs .sep {
    color: var(--accent);
    font-weight: 900;
    margin: 0 0.25rem;
}

.empty-note {
    padding: 1.4rem 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.archive-desc {
    margin-bottom: 1.8rem;
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border-left: 8px solid var(--gold);
}

/* ============================================================
   5. Заголовки секций и разделители
   ============================================================ */

.section-title {
    position: relative;
    font-size: 2.1rem;
    padding-left: 1.15rem;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 12px;
    height: 0.85em;
    background: var(--accent);
}

.dot-divider {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 2.2rem 0;
}

.dot-divider span {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
}

/* ============================================================
   6. Секции главной
   ============================================================ */

.fs {
    position: relative;
    overflow: hidden;
    padding: 3.4rem 0;
}

.fs-inner {
    position: relative;
    z-index: 2;
    width: min(85%, var(--shell));
    margin-left: auto;
    margin-right: auto;
}

.fs-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.corner-cut {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 120px;
    height: 120px;
    background: var(--gold);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.6;
    pointer-events: none;
}

/* Блок 1. Hero */

.fs-hero {
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 78% 26%, rgba(255, 215, 0, 0.28) 0, rgba(255, 215, 0, 0) 58%),
        repeating-linear-gradient(90deg, rgba(30, 30, 30, 0.06) 0 1px, transparent 1px 30px);
    padding-top: 3.6rem;
    padding-bottom: 3.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    background: var(--ink);
    color: var(--bg);
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 0.96;
    margin-bottom: 0.4em;
}

.hero-sub {
    max-width: 52ch;
    font-size: 1.05rem;
    margin-bottom: 1.8em;
}

.hero-art {
    min-width: 0;
}

.hero-art svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Блок 2. Статистика */

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

.stat-cell {
    min-width: 0;
    padding: 0.6rem 1.1rem;
    border-left: 3px solid var(--ink);
    text-align: left;
}

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

.stat-num {
    display: block;
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 4.4rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ink);
}

/* Блок 3. Пошаговый блок */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    left: 33px;
    top: 34px;
    bottom: 96px;
    width: 2px;
    background: var(--ink);
}

.step {
    position: relative;
    display: flex;
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-num {
    position: relative;
    z-index: 2;
    flex: 0 0 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 3px solid var(--ink);
    border-radius: 0;
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 2rem;
    color: var(--accent);
}

.step-body {
    min-width: 0;
    padding-top: 0.2rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.4em;
    text-transform: uppercase;
}

.step-body p {
    margin-bottom: 0;
    max-width: 68ch;
}

/* Блок 4. Рубрикатор */

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

.rubric {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.rubric:hover {
    transform: translateY(4px);
    box-shadow: 8px 8px 0 var(--accent);
}

.rubric-icon {
    flex: 0 0 auto;
    line-height: 0;
}

.rubric-icon svg {
    display: block;
}

.rubric-name {
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 1.15rem;
    line-height: 1.2;
    text-transform: uppercase;
    min-width: 0;
}

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(6px);
    box-shadow: 4px 2px 0 rgba(0, 0, 0, 0.16);
}

.card-thumb-wrap {
    flex: 0 0 auto;
    width: 100%;
    position: static;
    overflow: hidden;
}

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

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

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

.post-meta {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

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

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

.dot-sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    vertical-align: middle;
    margin: 0 0.35rem 0.15rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

.card-title a {
    border-bottom: 3px solid transparent;
}

.card-title a:hover {
    border-bottom-color: var(--accent);
}

.card-excerpt {
    margin-bottom: 1.2rem;
}

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

.card-more {
    padding: 0.6rem 1.2rem;
    font-size: 0.82rem;
}

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

.single-post,
.single-page {
    margin-bottom: 2.5rem;
}

.single-thumb {
    margin: 0 0 1.8rem;
    border: 1px solid var(--line);
}

.single-thumb img {
    width: 100%;
    display: block;
}

.entry-content {
    font-size: 1.03rem;
}

.entry-content h2 {
    position: relative;
    margin-top: 1.8em;
    padding-left: 1rem;
    font-size: 1.7rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 10px;
    height: 0.8em;
    background: var(--accent);
}

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

.entry-content img {
    border: 1px solid var(--line);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2rem 0;
}

.tag-chip {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.tag-chip:hover {
    background: var(--gold);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.post-nav-item {
    min-width: 0;
    padding: 1.1rem 1.3rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.post-nav-item:hover {
    transform: scale(1.02);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
}

.post-nav-item span {
    display: block;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

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

/* ============================================================
   9. Виджеты
   ============================================================ */

.widget {
    margin-bottom: 1.9rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 0.9em;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent);
}

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

.widget li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.7em;
    line-height: 1.5;
}

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.sidebar .widget-title,
.sidebar .widget,
.sidebar .widget a,
.sidebar .widget li,
.sidebar .widget p {
    color: var(--ink);
}

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

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

.site-bottom {
    position: relative;
    z-index: 2;
    background-color: var(--dark);
    background-image: radial-gradient(rgba(249, 246, 240, 0.09) 1.4px, transparent 1.5px);
    background-size: 18px 18px;
    color: #E8E4DC;
    padding: 3rem 0 2rem;
    border-top: 4px solid var(--accent);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    margin-bottom: 2.4rem;
}

.footer-col {
    min-width: 0;
}

.site-bottom .widget-title {
    color: #FFFFFF;
    border-bottom-color: var(--gold);
}

.site-bottom .widget,
.site-bottom .widget p,
.site-bottom .widget li,
.site-bottom .textwidget {
    color: #E8E4DC;
}

.site-bottom .widget a {
    color: #FFFFFF;
}

.site-bottom .widget a:hover {
    color: var(--gold);
}

.site-bottom .widget li::before {
    background: var(--gold);
}

.site-bottom .widget .post-date {
    color: #B7B1A6;
}

.footer-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(249, 246, 240, 0.18);
}

.footer-sq {
    width: 12px;
    height: 12px;
    background: var(--accent);
    flex: 0 0 auto;
}

.copyright {
    margin: 0;
    font-size: 0.85rem;
    color: #C9C3B8;
}

/* ============================================================
   11. Пагинация
   ============================================================ */

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

.pager .page-numbers {
    display: inline-block;
    min-width: 46px;
    padding: 0.55rem 0.85rem;
    text-align: center;
    background: var(--bg);
    border: 2px solid var(--ink);
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 0.9rem;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.pager a.page-numbers:hover {
    background: var(--gold);
    transform: scale(1.03);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
}

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

.pager .page-numbers.dots {
    border: none;
    background: none;
    min-width: 24px;
}

/* ============================================================
   12. Комментарии
   ============================================================ */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px solid var(--ink);
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    text-transform: uppercase;
}

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

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

.comment-body {
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.comment-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.comment-author .avatar {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.6rem;
    border: 1px solid var(--line);
}

.comment-form label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--bg);
    font-family: inherit;
    font-size: 0.95rem;
}

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

.comment-form .form-submit input[type="submit"],
.comment-form .submit {
    display: inline-block;
    border: 2px solid var(--accent);
    border-radius: 0;
    padding: 0.85rem 1.7rem;
    background: var(--accent);
    color: #FFFFFF;
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
}

.no-comments {
    color: var(--muted);
}

/* ============================================================
   13. Поиск и 404
   ============================================================ */

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.8rem;
    margin: 1.4rem 0;
}

.search-label {
    display: block;
    flex: 1 1 220px;
    min-width: 0;
}

.search-label-text {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.search-input {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--bg);
    font-family: inherit;
    font-size: 0.95rem;
}

.search-submit {
    padding: 0.72rem 1.4rem;
    font-size: 0.85rem;
}

.err-block {
    padding: 2.4rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), calc(100% - 38px) 100%, 0 100%);
}

.err-code {
    display: block;
    font-family: "Arial Black", "Segoe UI", Impact, sans-serif;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--accent);
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--dark);
    border-top: 4px solid var(--gold);
    padding: 1.1rem 0;
    color: #F1EDE4;
}

.cookie-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: space-between;
}

.cookie-text {
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

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

@media (min-width: 601px) {

    .card {
        flex-direction: row;
    }

    .card-thumb-wrap {
        flex: 0 0 280px;
        width: auto;
        position: relative;
    }

    .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

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

}

@media (max-width: 960px) {

    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        flex: 1 1 100%;
        display: none;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        border-top: 2px solid var(--ink);
        padding-top: 0.9rem;
        margin-top: 0.4rem;
    }

    .nav-list a {
        padding: 0.5rem 0;
    }

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

    .layout-single {
        width: min(100%, var(--shell));
    }

    .fs-inner {
        width: min(92%, var(--shell));
    }

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

    .hero-art {
        max-width: 340px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.8rem;
    }

    .stat-cell:nth-child(3) {
        border-left: none;
        padding-left: 0;
    }

    .stat-num {
        font-size: 3.4rem;
    }

}

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }

    .fs {
        padding: 2.4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    h1,
    .page-title {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 1.55rem;
    }

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

    .stat-cell,
    .stat-cell:nth-child(3) {
        border-left: none;
        border-top: 3px solid var(--ink);
        padding: 0.9rem 0 0;
    }

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

    .steps::before {
        left: 25px;
    }

    .step {
        gap: 1rem;
    }

    .step-num {
        flex: 0 0 52px;
        height: 52px;
        font-size: 1.5rem;
    }

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

    .rubric {
        padding: 1.3rem 1.2rem;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .card-body {
        padding: 1.2rem 1.2rem;
    }

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

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

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

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

    .err-block {
        padding: 1.8rem 1.4rem;
    }

    .err-code {
        font-size: 4rem;
    }

    .cookie-inner {
        gap: 0.9rem;
    }

    .corner-cut {
        width: 70px;
        height: 70px;
    }

    body::after {
        width: 240px;
        height: 260px;
    }

}
