/*
Theme Name: dds_jaguarstandoff2.ru
Theme URI: https://jaguarstandoff2.ru/
Author: Дмитрий Савельев
Description: Тема для информационно-образовательного портала о карьере в киберспорте и геймдеве. Дизайн-концепция Lavender Tech.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: jgcareer
*/

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

:root {
    --bg: #F5F3F7;
    --bg-alt: #EBE4F0;
    --ink: #221E2B;
    --dark: #1A1625;
    --dark-2: #2A1F3D;
    --sidebar-bg: #F0ECF5;
    --accent: #6C4EF5;
    --accent-2: #00C2FF;
    --muted: #9A8EB0;
    --line: #C9BDD9;
    --shadow: #D6CBE3;
    --shadow-deep: #B8A8D0;
    --accent-soft: #E6DEF5;
    --font-head: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --bevel: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(201, 189, 217, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
}

.page-glow {
    position: fixed;
    right: -160px;
    bottom: -180px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C4EF5, #00C2FF);
    opacity: 0.05;
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
}

.site-top,
.site-main,
.site-bottom {
    position: relative;
    z-index: 1;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size 0.25s ease, color 0.2s ease;
}

a:hover,
a:focus {
    background-size: 100% 1px;
}

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.15em;
}

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

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.5rem 1.8rem;
    background: linear-gradient(135deg, var(--accent-soft), var(--bg));
    border-left: 4px solid var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--line);
    background: #fff;
}

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

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-weight: 700;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
}

pre {
    background: var(--dark);
    color: #EDE9F7;
    padding: 1.1rem 1.2rem;
    overflow-x: auto;
    border-radius: 4px;
}

/* ==================================================================
   2. Сетка и контейнеры
   ================================================================== */

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

.site-main {
    padding: 2.6rem 0 3.5rem;
}

.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: 3%;
    align-items: start;
}

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

/* ==================================================================
   3. Кнопки
   ================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    padding: 0.78rem 1.7rem;
    border: none;
    border-radius: 4px;
    clip-path: var(--bevel);
    cursor: pointer;
    background-image: none;
    transition: transform 0.15s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(90deg, #4A2FCC, #0091C2);
    color: #fff;
    transform: translateY(2px);
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.7rem 1.6rem;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

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

.site-top {
    background: var(--dark);
    color: #fff;
    border-bottom: 1px solid rgba(108, 78, 245, 0.35);
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    color: #fff;
    background: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-name:hover {
    color: var(--accent-2);
}

.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #B7ACCB;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    border-radius: 4px;
    clip-path: var(--bevel);
    cursor: pointer;
}

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

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: #EDE9F7;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.2rem 0;
}

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

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

.sec-title {
    position: relative;
    display: block;
    margin: 0 0 1.6rem;
    padding-left: 76px;
    font-size: 2rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 76px;
    bottom: -8px;
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(108, 78, 245, 0));
}

.entry-content h2,
.entry-content h3,
.widget-title,
.card-title {
    position: relative;
}

.entry-content h2,
.entry-content h3 {
    padding-left: 20px;
    margin-top: 2rem;
}

.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.sec-divider {
    position: relative;
    height: 46px;
    margin: 0;
    border-top: 1px dashed var(--line);
}

.sec-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -13px;
    width: 26px;
    height: 26px;
    transform: translateX(-50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M20 2 L37 12 L37 32 L20 42 L3 32 L3 12 Z' fill='%23D6CBE3'/%3E%3C/svg%3E");
}

/* ==================================================================
   6. Хлебные крошки
   ================================================================== */

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

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

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

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

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

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
    border-radius: 0;
    margin: 2px 2px 2.6rem;
    box-shadow: 8px 8px 0 var(--shadow);
    transition: box-shadow 0.22s ease;
}

.card:hover {
    box-shadow: 12px 12px 0 var(--shadow-deep);
}

.card-row {
    flex-direction: row;
    align-items: stretch;
}

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

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

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

.thumb-stub {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.7rem;
    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);
}

.post-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

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

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

.dot-sep {
    margin: 0 0.35rem;
}

.card-excerpt {
    color: #4B4457;
    font-size: 0.97rem;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
}

/* карточки-сетка (свежие записи на главной, миниатюра сверху) */

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

.card-top .card-thumb-wrap {
    flex: none;
    width: 100%;
    position: static;
    aspect-ratio: 16 / 10;
}

.card-top .card-thumb-wrap a {
    position: static;
    display: block;
    height: 100%;
}

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

.card-top {
    margin-bottom: 0;
}

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

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

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

.front-inner {
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

/* 8.1 Hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1A1625 0%, #2A1F3D 100%);
    color: #fff;
    padding: 4.4rem 0 4.6rem;
}

.fs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 520'%3E%3Cg fill='none' stroke='%2300C2FF' stroke-width='1.4' opacity='0.22'%3E%3Cpath d='M110 60 L146 81 L146 123 L110 144 L74 123 L74 81 Z'/%3E%3Cpath d='M300 300 L322 313 L322 339 L300 352 L278 339 L278 313 Z'/%3E%3Cpath d='M980 90 L1024 115 L1024 165 L980 190 L936 165 L936 115 Z'/%3E%3Cpath d='M1120 330 L1148 346 L1148 378 L1120 394 L1092 378 L1092 346 Z'/%3E%3Cpath d='M760 420 L784 434 L784 462 L760 476 L736 462 L736 434 Z'/%3E%3Cpath d='M560 90 L578 100 L578 120 L560 130 L542 120 L542 100 Z'/%3E%3C/g%3E%3Cg fill='%236C4EF5' opacity='0.16'%3E%3Cpath d='M430 200 L456 215 L456 245 L430 260 L404 245 L404 215 Z'/%3E%3Cpath d='M880 250 L898 260 L898 280 L880 290 L862 280 L862 260 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(85%, 900px);
    margin-left: auto;
    margin-right: auto;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid rgba(0, 194, 255, 0.4);
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    clip-path: var(--bevel);
    margin-bottom: 1.3rem;
}

.fs-hero h1 {
    color: #fff;
    font-size: 3.2rem;
    margin-bottom: 1rem;
}

.fs-hero h1 span {
    background: linear-gradient(90deg, #8E76FF, #00C2FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    color: #CFC6E2;
    font-size: 1.08rem;
    max-width: 640px;
    margin-bottom: 1.9rem;
}

/* 8.2 Статистика */

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

.stat-cell {
    min-width: 0;
    padding: 0.6rem 1.4rem;
    text-align: center;
    border-right: 1px dashed var(--line);
}

.stat-cell:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* 8.3 Рубрикатор */

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

.topic-tile {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.6rem;
    background: var(--dark);
    color: #fff;
    border-radius: 0;
    background-image: none;
    overflow: hidden;
    transition: background 0.22s ease, box-shadow 0.22s ease;
}

.topic-tile svg {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.6;
}

.topic-tile span {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    min-width: 0;
}

.topic-tile:hover,
.topic-tile:focus {
    background: var(--accent);
    color: #fff;
    box-shadow: inset 0 0 42px rgba(0, 194, 255, 0.45), 0 0 18px rgba(108, 78, 245, 0.35);
}

/* 8.4 Таймлайн */

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

.tl::before {
    content: "";
    position: absolute;
    left: 168px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(108, 78, 245, 0.45);
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 0 54px;
    margin-bottom: 2.1rem;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-stage {
    text-align: right;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    min-width: 0;
}

.tl-body {
    min-width: 0;
}

.tl-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.tl-body p {
    margin: 0;
    color: #4B4457;
    font-size: 0.97rem;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: 163px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(0, 194, 255, 0.7);
}

/* 8.5 Акцентная плашка / CTA */

.accent-plate {
    background: linear-gradient(135deg, var(--accent-soft), var(--bg));
    padding: 2.4rem 2.2rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.latest-head .btn {
    flex: 0 0 auto;
}

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

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

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

.entry-thumb {
    margin: 0 0 1.8rem;
    box-shadow: 8px 8px 0 var(--shadow);
}

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

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

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-tags {
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.25rem 0.7rem;
    background: var(--bg-alt);
    color: var(--ink);
    border-radius: 4px;
    clip-path: var(--bevel);
}

.entry-tags a:hover {
    background: var(--accent);
    color: #fff;
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px dashed var(--line);
    font-size: 0.92rem;
}

.post-nav a {
    max-width: 46%;
}

.page-body,
.single-body {
    background: #fff;
    padding: 2.2rem 2.4rem;
    box-shadow: 8px 8px 0 var(--shadow);
}

.archive-head {
    margin-bottom: 1.8rem;
}

.archive-head h1 {
    font-size: 2.3rem;
}

.archive-desc {
    color: var(--muted);
    margin: 0;
}

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

.sidebar {
    min-width: 0;
    background: var(--sidebar-bg);
    padding: 1.6rem 1.5rem;
    border-top: 3px solid var(--accent);
}

.sidebar .widget {
    margin-bottom: 2rem;
}

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

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    padding-left: 18px;
    margin-bottom: 1rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

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

.sidebar .widget li {
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

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

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

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

.sidebar .post-date,
.sidebar .rss-date {
    display: block;
    color: #6F6580;
    font-size: 0.8rem;
}

/* ==================================================================
   11. Формы и поиск
   ================================================================== */

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

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

.search-field {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--accent);
}

.search-submit {
    flex: 0 0 auto;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    clip-path: var(--bevel);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    background-image: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pager .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(2px);
}

.pager .page-numbers.current {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: #fff;
}

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

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

.comments-area {
    margin-top: 2.8rem;
    background: #fff;
    padding: 2rem 2.2rem;
    box-shadow: 8px 8px 0 var(--shadow);
}

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

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

.comment-list ul.children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.6rem;
    border-left: 2px solid var(--bg-alt);
}

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

.comment-body {
    background: var(--bg);
    padding: 1.2rem 1.4rem;
    border-left: 3px solid var(--accent);
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
}

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

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

.comment-actions {
    margin-top: 0.6rem;
    font-size: 0.88rem;
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

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

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.78rem 1.7rem;
    border: none;
    border-radius: 4px;
    clip-path: var(--bevel);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: linear-gradient(90deg, #4A2FCC, #0091C2);
    transform: translateY(2px);
}

/* ==================================================================
   14. 404
   ================================================================== */

.err-box {
    background: #fff;
    padding: 2.6rem 2.4rem;
    box-shadow: 8px 8px 0 var(--shadow);
    text-align: left;
}

.err-code {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
}

.err-box .search-form {
    margin: 1.6rem 0;
}

/* ==================================================================
   15. 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: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--dark);
    color: #DDD5EC;
    border-top: 2px solid var(--accent);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

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

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

.site-bottom {
    background: var(--dark);
    color: #C9C0DC;
    padding: 3rem 0 1.6rem;
    margin-top: 3rem;
}

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

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

.site-bottom .widget-title {
    color: #fff;
    font-size: 1.05rem;
    padding-left: 18px;
    margin-bottom: 1rem;
}

.site-bottom .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.site-bottom p,
.site-bottom li,
.site-bottom .widget {
    color: #C9C0DC;
    font-size: 0.93rem;
}

.site-bottom a {
    color: #DDD5EC;
}

.site-bottom a:hover {
    color: var(--accent-2);
}

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

.site-bottom li {
    margin-bottom: 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed rgba(201, 189, 217, 0.18);
}

.site-bottom li:last-child {
    border-bottom: none;
}

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.3rem;
    border-top: 1px dashed rgba(201, 189, 217, 0.22);
    font-size: 0.82rem;
    color: #9A8EB0;
    line-height: 1.6;
}

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

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .fs-hero h1 { font-size: 2.4rem; }
    .entry-title { font-size: 2rem; }

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

    .layout-single {
        width: 100%;
    }

    .front-inner,
    .hero-inner {
        width: 92%;
    }

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

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

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

    .stat-cell:nth-child(2n) {
        border-right: none;
    }

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

    .brand-desc {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .main-nav li {
        border-bottom: 1px dashed rgba(201, 189, 217, 0.2);
    }

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

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

    h1,
    .fs-hero h1 { font-size: 2rem; }
    h2, .sec-title { font-size: 1.6rem; }
    .entry-title { font-size: 1.7rem; }

    .sec-title {
        padding-left: 46px;
    }

    .sec-title::before {
        width: 32px;
    }

    .sec-title::after {
        left: 46px;
    }

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

    .fs-hero {
        padding: 3rem 0 3.2rem;
    }

    .accent-plate {
        padding: 1.8rem 1.4rem;
    }

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

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

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

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

    .stat-cell {
        border-right: none;
        border-bottom: 1px dashed var(--line);
        padding-bottom: 1.2rem;
    }

    .stat-cell:last-child {
        border-bottom: none;
    }

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

    .tl::before {
        left: 5px;
    }

    .tl-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.3rem;
        padding-left: 30px;
    }

    .tl-item::before {
        left: 0;
    }

    .tl-stage {
        text-align: left;
        color: var(--accent);
    }

    .page-body,
    .single-body,
    .comments-area,
    .err-box {
        padding: 1.5rem 1.3rem;
        box-shadow: 6px 6px 0 var(--shadow);
    }

    .sidebar {
        padding: 1.4rem 1.2rem;
    }

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

    .post-nav a {
        max-width: 100%;
    }
}
