/*
Theme Name: dds_karkadan.ru
Author: Мария Горохова
Description: Тема «Стальной ориентир» для информационного портала о грантах, стипендиях и конкурсах в сфере образования. Японский минимализм, холодная стальная палитра, медный акцент.
Version: 1.1
Text Domain: storient
*/

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

:root {
    --bg: #F4F6F9;
    --alt: #EBEEF3;
    --head: #FFFFFF;
    --foot: #1E2329;
    --ink: #1E2329;
    --accent: #4A7B9D;
    --accent-deep: #2C4C63;
    --copper: #C35A4A;
    --muted: #7B8794;
    --line: #D0D6DD;
    --shell: min(92%, 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:
        linear-gradient(rgba(74, 123, 157, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 123, 157, 0.055) 1px, transparent 1px);
    background-size: 40px 40px;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.012em;
    font-weight: 350;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin: 0 0 0.7em;
    color: var(--ink);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.18rem; }

p { margin: 0 0 1.15em; }

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

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

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.section-gap {
    padding: 3.2rem 0;
}

hr.chain {
    border: 0;
    border-top: 2px dashed var(--line);
    margin: 3.2rem 0;
}

/* Ссылка с подчёркиванием, растущим из центра */
.entry-content a,
.widget a,
.card-excerpt a,
.link-line {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0 2px;
    transition: background-size 0.28s ease, color 0.22s ease;
    padding-bottom: 2px;
}

.entry-content a:hover,
.widget a:hover,
.card-excerpt a:hover,
.link-line:hover {
    background-size: 100% 2px;
    color: var(--copper);
}

/* =========================================================
   2. Кнопки, чипы, маркеры
   ========================================================= */

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: 3px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    background: transparent;
    font-family: "Oswald", "Roboto Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 5px 0 rgba(30, 35, 41, 0.16);
    color: var(--accent-deep);
    border-color: var(--accent-deep);
}

.btn-filled {
    background: var(--copper);
    border-color: var(--copper);
    color: #FFFFFF;
}

.btn-filled:hover {
    color: #FFFFFF;
    border-color: #A9483A;
    background: #A9483A;
}

.btn-light {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.btn-light:hover {
    color: #FFFFFF;
    border-color: #FFFFFF;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25);
}

.chip {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border: 2px solid var(--accent);
    border-radius: 0;
    color: var(--accent);
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    line-height: 1.6;
}

.chip:hover {
    border-color: var(--copper);
    color: var(--copper);
}

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

.entry-content ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.4rem;
}

.entry-content ul li::before {
    content: "↗";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

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

/* Заголовок секции: вертикальная черта слева, текст смещён вправо */
.sec-title {
    position: relative;
    padding-left: 20px;
    margin-left: 8px;
    margin-bottom: 1.5rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: -0.22em;
    bottom: 0.12em;
    width: 3px;
    background: var(--accent);
}

.sec-title.on-dark::before {
    background: #FFFFFF;
}

.sec-sub {
    color: var(--muted);
    margin: -0.7rem 0 1.8rem 28px;
    max-width: 46em;
}

.sec-sub.on-dark {
    color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   3. Трекер «Ориентир»
   ========================================================= */

.orient-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(74, 123, 157, 0.12);
    z-index: 90;
}

.orient-track span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4A7B9D 0%, #6E7E90 55%, #C35A4A 100%);
}

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

.site-head {
    background: var(--head);
    border-bottom: 1px solid var(--line);
    box-shadow: inset 0 -4px 0 rgba(74, 123, 157, 0.08);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

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

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

.brand-name {
    display: block;
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.79rem;
    line-height: 1.5;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    padding: 0.5rem 0.9rem;
    border: 3px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

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

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

.main-nav a {
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
    color: var(--ink);
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0 2px;
    transition: background-size 0.28s ease, color 0.22s ease;
}

.main-nav a:hover {
    color: var(--copper);
    background-size: 100% 2px;
}

.main-nav .current-menu-item > a {
    color: var(--accent);
}

/* =========================================================
   5. Хлебные крошки, каркас страницы
   ========================================================= */

.breadcrumbs {
    margin: 1.6rem 0 1.4rem;
    font-size: 0.86rem;
    color: var(--muted);
}

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

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

.breadcrumbs .sep {
    margin: 0 0.35rem;
    color: var(--line);
}

.site-body {
    padding-bottom: 3.4rem;
}

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

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

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

.sidebar {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid rgba(74, 123, 157, 0.18);
    padding: 1.6rem 1.4rem;
}

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 1.4rem 1.2rem 1.4rem 1.5rem;
    transition: background 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 34%;
    background: var(--accent);
    transition: height 0.3s ease, background 0.3s ease;
}

.card:hover {
    background: #FFFFFF;
}

.card:hover::before {
    height: 100%;
}

.card-row {
    display: flex;
    gap: 1.4rem;
    align-items: stretch;
}

.card-thumb-wrap {
    flex: 0 0 240px;
    position: relative;
    overflow: hidden;
    background: var(--alt);
}

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

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) contrast(1.03);
    transition: filter 0.3s ease;
}

.card:hover .card-thumb-wrap img {
    filter: grayscale(0.55);
}

.thumb-fallback {
    position: absolute;
    inset: 0;
    display: block;
}

.thumb-fallback svg {
    width: 100%;
    height: 100%;
    display: block;
}

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
}

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

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

.card-excerpt {
    color: #3C4650;
}

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.card-more {
    margin-top: auto;
    padding-top: 0.8rem;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    color: var(--accent);
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #FFFFFF;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(30, 35, 41, 0.14);
    border-color: var(--accent);
    color: var(--copper);
}

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* =========================================================
   8. Главная
   ========================================================= */

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

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

.front-section.tinted {
    background: var(--alt);
    padding: 3.4rem 0;
}

.front-section.plain-white {
    background: #FFFFFF;
    padding: 3.4rem 0;
}

/* 8.1 Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 3.6rem 0 3.2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    display: block;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 2.6rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.25rem 0.7rem;
    border: 2px solid var(--copper);
    color: var(--copper);
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero-lead {
    max-width: 34em;
    color: #35414D;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.hero-boards {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-width: 0;
}

.board {
    background: #FFFFFF;
    border: 3px solid var(--accent);
    border-radius: 4px;
    padding: 1.3rem 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(74, 123, 157, 0.18);
}

.board-num {
    display: block;
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-deep);
}

.board-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.83rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.board-note {
    border: 2px dashed var(--line);
    border-radius: 4px;
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.75);
}

.board-note strong {
    color: var(--copper);
}

.hero-compass {
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 320px;
    max-width: 45%;
    opacity: 0.22;
    pointer-events: none;
}

/* 8.2 Чек-лист */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-item {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 2px dashed var(--line);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.check-item:last-child {
    border-bottom: 0;
}

.check-item.is-visible {
    opacity: 1;
    transform: none;
}

.check-box {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent);
    border-radius: 4px;
    background: #FFFFFF;
    overflow: hidden;
}

.check-box::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0;
    background: var(--accent);
    transition: height 0.6s ease;
}

.check-item.is-visible .check-box::after {
    height: 100%;
}

.check-box svg {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
}

.check-copy {
    min-width: 0;
}

.check-copy h3 {
    margin-bottom: 0.35rem;
}

.check-copy h3 span {
    color: var(--copper);
}

.check-copy p {
    margin: 0;
    color: #3C4650;
}

/* 8.3 Zigzag */
.zig-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
    padding: 1.6rem 0;
}

.zig-row + .zig-row {
    border-top: 2px dashed var(--line);
    margin-top: 1rem;
}

.zig-row.reverse .zig-media {
    order: -1;
}

.zig-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 1.2rem;
}

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

/* 8.4 Статистика */
.stats-plate {
    color: #FFFFFF;
    padding: 2.8rem 2.2rem;
    border-radius: 0;
    background-color: var(--accent-deep);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, #4A7B9D 0%, #2C4C63 100%);
}

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

.stat-cell {
    min-width: 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.35);
}

.stat-num {
    display: block;
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.05;
    color: #FFFFFF;
}

.stat-cell:nth-child(2) .stat-num,
.stat-cell:nth-child(4) .stat-num {
    color: #F0B4A8;
}

.stat-label {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.82);
}

/* Цитата с диагональной полосой */
.quote-plate {
    position: relative;
    overflow: hidden;
    padding: 2.2rem 2.2rem;
    border-left: 4px solid var(--copper);
    background-color: #FFFFFF;
    background-image: repeating-linear-gradient(120deg, rgba(74, 123, 157, 0.08) 0 3px, transparent 3px 22px);
    font-size: 1.15rem;
}

.quote-plate p {
    margin: 0;
}

.quote-author {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* =========================================================
   9. Записи и страницы
   ========================================================= */

.entry-head {
    margin-bottom: 1.6rem;
}

.entry-title {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    filter: grayscale(1);
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.9rem;
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--copper);
    background-color: #FFFFFF;
    background-image: repeating-linear-gradient(120deg, rgba(74, 123, 157, 0.08) 0 3px, transparent 3px 22px);
}

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

.entry-content img {
    display: block;
    height: auto;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    background: #FFFFFF;
}

.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
}

.entry-content th,
.entry-content td {
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.entry-content th {
    background: var(--alt);
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    letter-spacing: 0.04em;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 2px dashed var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

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

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

.widget {
    margin-bottom: 1.8rem;
}

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

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

.widget li {
    position: relative;
    padding: 0.42rem 0 0.42rem 1.4rem;
    border-bottom: 1px solid rgba(208, 214, 221, 0.7);
}

.widget li::before {
    content: "↗";
    position: absolute;
    left: 0;
    top: 0.42rem;
    font-size: 0.85rem;
}

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

.sidebar .widget-title {
    position: relative;
    padding-left: 16px;
    font-size: 1.1rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: -0.15em;
    bottom: 0.1em;
    width: 3px;
    background: var(--accent);
}

.sidebar,
.sidebar p,
.sidebar li {
    color: #33404C;
}

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

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

.sidebar li::before {
    color: var(--accent);
}

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

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

.site-foot {
    background: var(--foot);
    color: #C6CED6;
    padding: 3rem 0 1.6rem;
    border-top: 4px solid var(--accent);
}

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

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

.site-foot .widget-title {
    position: relative;
    padding-left: 16px;
    font-size: 1.05rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: -0.15em;
    bottom: 0.1em;
    width: 3px;
    background: var(--copper);
}

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

.site-foot a {
    color: #E4EAF0;
}

.site-foot a:hover {
    color: #F0B4A8;
}

.site-foot li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.site-foot li::before {
    color: var(--copper);
}

.site-foot .post-date,
.site-foot .rss-date {
    color: #97A2AD;
}

.foot-bottom {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
    color: #97A2AD;
}

/* =========================================================
   12. Формы, комментарии, поиск
   ========================================================= */

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

.search-form input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button {
    padding: 0.6rem 1.2rem;
    border: 3px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search-form button:hover {
    transform: translateY(2px);
    box-shadow: 0 4px 0 rgba(30, 35, 41, 0.14);
}

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 2px dashed var(--line);
}

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

.comment-list ul.children {
    list-style: none;
    margin: 0;
    padding-left: 1.6rem;
}

.comment-item {
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
    background: #FFFFFF;
    border-top: 1px solid var(--line);
    border-left: 4px solid var(--accent);
}

.comment-head {
    display: flex;
    gap: 0.9rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.comment-author {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.comment-actions a {
    font-size: 0.85rem;
    color: var(--accent);
}

.comment-form .submit,
.comment-form input[type="submit"] {
    padding: 0.7rem 1.5rem;
    border: 3px solid var(--copper);
    border-radius: 4px;
    background: var(--copper);
    color: #FFFFFF;
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
    transform: translateY(2px);
    box-shadow: 0 5px 0 rgba(30, 35, 41, 0.16);
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.comment-hold {
    color: var(--copper);
    font-size: 0.85rem;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: var(--foot);
    color: #D6DDE4;
    border-top: 4px solid var(--copper);
    font-size: 0.88rem;
}

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

.cookie-banner a {
    color: #F0B4A8;
}

/* =========================================================
   14. 404 и служебные
   ========================================================= */

.notfound {
    width: 85%;
    margin-inline: auto;
    padding: 2.4rem 0 3rem;
}

.notfound-code {
    font-family: "Oswald", "Roboto Condensed", sans-serif;
    font-size: 6rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.notfound-tools {
    margin-top: 1.6rem;
    max-width: 34em;
}

.notfound-links {
    margin-top: 1.6rem;
}

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

.no-posts {
    padding: 1.6rem 1.4rem;
    background: #FFFFFF;
    border-left: 4px solid var(--copper);
    border-top: 1px solid var(--line);
}

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

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

    .layout-with-sidebar {
        display: block;
    }

    .sidebar {
        margin-top: 2.4rem;
    }

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

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

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

    .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.2rem;
    }

    .main-nav li {
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 0;
    }
}

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

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.55rem; }

    .entry-title { font-size: 1.9rem; }

    .card-row {
        flex-direction: column;
    }

    .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;
    }

    .thumb-fallback {
        position: static;
    }

    .thumb-fallback svg {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .zig-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    .zig-row.reverse .zig-media {
        order: 0;
    }

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

    .stats-plate {
        padding: 1.9rem 1.4rem;
    }

    .quote-plate {
        padding: 1.6rem 1.3rem;
    }

    .board {
        padding: 1.1rem 1.2rem;
    }

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

    .hero-compass {
        width: 200px;
        opacity: 0.16;
    }

    .front-section,
    .front-section.tinted,
    .front-section.plain-white {
        padding: 2.4rem 0;
    }

    .cookie-banner {
        padding: 0.9rem 1.1rem;
    }
}
