/*
Theme Name: dds_cs-lite.ru
Author: Валентин Гордеев
Description: Тёмная брутальная тема для информационного сайта о командных шутерах, игровых серверах и модах.
Version: 1.1
Text Domain: servergrid
*/

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

:root {
    --bg: #0B0F19;
    --bg-alt: #131C2B;
    --bg-deep: #070A10;
    --text: #E8EDF5;
    --accent: #E6423C;
    --accent-dark: #A31F1A;
    --accent-2: #3A7BD5;
    --muted: #7A889B;
    --line: #2A3A4D;
    --term: #4FD1C5;
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Consolas, "Courier New", monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%23E8EDF5' stroke-width='1.5' opacity='0.05'%3E%3Cpath d='M28 0 L56 16 L56 48 L28 64 L0 48 L0 16 Z'/%3E%3Cpath d='M28 50 L56 66 L56 98 L28 114 L0 98 L0 66 Z'/%3E%3Cpath d='M28 -50 L56 -34 L56 -2 L28 14 L0 -2 L0 -34 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mono);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin: 0 0 1rem;
    color: var(--text);
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
}

h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.1em;
}

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

.entry-content a,
.widget .textwidget a,
.comment-text a {
    position: relative;
    color: var(--accent-2);
}

.entry-content a::after,
.widget .textwidget a::after,
.comment-text a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.entry-content a:hover::after,
.widget .textwidget a:hover::after,
.comment-text a:hover::after {
    transform: scaleX(1);
}

/* =========================================================
   2. Контейнеры и раскладки
   ========================================================= */

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

.site-main {
    padding: 2.6rem 0 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: 3.2rem;
    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.4rem;
}

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

.site-header {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    position: static;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
}

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

.nav-toggle {
    display: none;
    font-family: var(--mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 0;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

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

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

.main-nav a {
    font-family: var(--mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}

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

/* =========================================================
   4. Заголовки секций и общие элементы
   ========================================================= */

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

.section-head::before {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 0.9rem;
}

.section-title {
    margin: 0;
    text-transform: uppercase;
}

.section-sub {
    margin: 0.6rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 62ch;
}

.divider-dashed {
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 0;
    width: 100%;
}

.status-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background: var(--line);
    transition: background 0.18s ease;
}

.btn {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.btn:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(2px);
}

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

.btn-ghost:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(2px);
}

.breadcrumbs {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--muted);
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 2rem;
    word-wrap: break-word;
}

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

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

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

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

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    margin-top: -1px;
    padding: 1.7rem 1.6rem 1.7rem 1.6rem;
    background: transparent;
    transition: background 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    bottom: -1px;
    width: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover {
    background: var(--bg-alt);
}

.card:hover::before {
    opacity: 1;
}

.card:hover .status-dot {
    background: var(--accent);
}

.card-thumb {
    display: block;
    width: 100%;
    margin-bottom: 1.1rem;
    overflow: hidden;
}

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

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

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

.card-title a {
    color: var(--text);
    transition: color 0.18s ease;
}

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

.card-excerpt {
    color: #C3CDDC;
    font-size: 0.96rem;
}

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

.post-meta {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.post-meta .meta-sep {
    margin: 0 0.45rem;
    color: var(--line);
}

.post-meta .meta-cat {
    color: var(--accent-2);
}

.card-more {
    margin-top: 1rem;
}

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

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

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

/* --- Блок 1. Hero --- */

.hero {
    position: relative;
    background: var(--bg-deep);
    padding: 4rem 0 4.2rem;
    overflow: hidden;
    border-bottom: 1px dashed var(--line);
}

.hero-watermark {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.4rem;
    font-family: var(--mono);
    font-size: 6vw;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.04;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
}

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

.hero-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.3rem 0.7rem;
    margin-bottom: 1.4rem;
}

.hero-title {
    margin: 0 0 1.1rem;
    font-size: 3.5rem;
}

.hero-text {
    color: #C3CDDC;
    max-width: 54ch;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-figure img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Блок 2. Чек-лист --- */

.checklist-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.35fr);
    gap: 2.8rem;
    align-items: start;
}

.checklist-intro {
    min-width: 0;
    font-size: 0.9rem;
    color: var(--muted);
    border-left: 2px solid var(--line);
    padding-left: 1.1rem;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.checklist li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.95rem 2rem 0.95rem 1.1rem;
    border: 1px solid var(--line);
    margin-bottom: -1px;
    background: rgba(19, 28, 43, 0.55);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.checklist li:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
}

.checklist li:hover .status-dot {
    background: var(--accent);
}

.check-box {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 0.2rem;
    border: 2px solid var(--term);
    color: var(--term);
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 16px;
    text-align: center;
}

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

.check-text b {
    display: block;
    font-family: var(--mono);
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.2rem;
}

.check-text span {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

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

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

.rubric-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    min-width: 0;
    padding: 1.6rem 1.3rem;
    border: 2px solid var(--line);
    border-radius: 0;
    text-align: center;
    color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rubric-tile b {
    font-family: var(--mono);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rubric-tile span {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    transition: max-height 0.28s ease, opacity 0.28s ease, margin 0.28s ease;
}

.rubric-tile:hover {
    border-color: var(--accent);
    background: var(--bg-deep);
}

.rubric-tile:hover span {
    max-height: 120px;
    opacity: 1;
    margin-top: 0.7rem;
}

.rubric-tile:hover .status-dot {
    background: var(--accent);
}

/* --- Блок 4. Цитата --- */

.quote-block {
    position: relative;
    width: 66%;
    background: var(--bg-alt);
    border-left: 5px solid var(--accent);
    padding: 2.4rem 2.2rem;
}

.quote-block p {
    font-family: var(--sans);
    font-style: italic;
    font-size: 1.55rem;
    line-height: 1.45;
    margin: 0 0 1.1rem;
}

.quote-author {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-style: normal;
}

/* --- Блок последних записей --- */

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

.latest-list .card {
    border: 1px solid var(--line);
    margin-top: 0;
    padding: 1.4rem;
}

.latest-more {
    margin-top: 2rem;
}

/* =========================================================
   7. Одиночная запись, страницы
   ========================================================= */

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

.entry-header::before {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 2.4rem;
    text-transform: none;
}

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

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

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

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

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

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

.entry-content ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--mono);
    color: var(--term);
}

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

.entry-content ol li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 5px solid var(--accent);
    font-style: italic;
}

.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;
    border: 1px solid var(--line);
}

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

.entry-content th {
    background: var(--bg-alt);
    font-family: var(--mono);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.entry-content code,
.entry-content pre {
    font-family: var(--mono);
    background: var(--bg-deep);
    border: 1px solid var(--line);
}

.entry-content code {
    padding: 0.1rem 0.35rem;
    font-size: 0.9rem;
}

.entry-content pre {
    display: block;
    padding: 1rem;
    overflow-x: auto;
    max-width: 100%;
}

.entry-footer {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted);
}

.entry-footer a {
    color: var(--accent-2);
}

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

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

.pager .page-numbers {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.7rem 1rem;
    border: 2px solid var(--line);
    border-radius: 0;
    color: var(--text);
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

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

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

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

/* =========================================================
   9. Виджеты, сайдбар, подвал
   ========================================================= */

.widget {
    margin-bottom: 2rem;
}

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

.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    padding-top: 0.7rem;
    border-top: 2px solid var(--accent);
}

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

.widget li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.3rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.92rem;
}

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

.widget li::before {
    content: ">";
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-family: var(--mono);
    color: var(--term);
}

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

.sidebar .widget-title {
    color: var(--text);
}

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

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

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    color: var(--text);
}

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

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

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li,
.site-footer .textwidget {
    color: #C3CDDC;
    font-size: 0.9rem;
}

.site-footer .widget-title {
    color: var(--text);
}

.site-footer .widget a {
    color: #C3CDDC;
}

.site-footer .widget a:hover {
    color: var(--accent);
}

.site-footer .widget .post-date {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-align: center;
}

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

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

.search-form input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    background: var(--bg-deep);
    border: 2px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.92rem;
    padding: 0.6rem 0.8rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-2);
}

.search-form button {
    font-family: var(--mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--accent);
    border-radius: 0;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

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

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

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

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

.comment-list ol.children {
    list-style: none;
    margin: 1rem 0 0 1.2rem;
    padding-left: 1rem;
    border-left: 1px dashed var(--line);
}

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

.comment-head {
    display: flex;
    gap: 0.9rem;
    align-items: baseline;
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.comment-author {
    color: var(--accent);
}

.comment-date {
    color: var(--muted);
}

.comment-text {
    font-size: 0.95rem;
}

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

.comment-actions {
    margin-top: 0.5rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.comment-form label {
    display: block;
    font-family: var(--mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 85%;
    max-width: 640px;
    background: var(--bg-deep);
    border: 2px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
}

.comment-form textarea {
    width: 100%;
    max-width: none;
}

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

.comment-form .submit {
    font-family: var(--mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.comment-form .submit:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(2px);
}

.no-comments {
    color: var(--muted);
    font-size: 0.9rem;
}

/* =========================================================
   11. Страница 404 и поиск
   ========================================================= */

.error-block {
    padding: 2.4rem 2rem;
    border: 2px solid var(--line);
    background: var(--bg-alt);
}

.error-code {
    font-family: var(--mono);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 0.8rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

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

.archive-head::before {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 0.9rem;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: var(--bg-deep);
    border-top: 2px solid var(--accent);
    padding: 1rem 1.6rem;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: #C3CDDC;
    min-width: 0;
}

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

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

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

    .layout-single {
        width: 100%;
    }

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

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

    .checklist-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }

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

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

    .quote-block {
        width: 100%;
    }

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

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

    h1, .hero-title { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

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

    .main-nav {
        width: 100%;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px dashed var(--line);
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 0;
    }

    .hero {
        padding: 2.6rem 0 3rem;
    }

    .hero-watermark {
        font-size: 13vw;
    }

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

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

    .rubric-tile span {
        max-height: 120px;
        opacity: 1;
        margin-top: 0.7rem;
    }

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

    .quote-block p {
        font-size: 1.2rem;
    }

    .card {
        padding: 1.3rem 1.1rem;
    }

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

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

    .sidebar {
        padding: 1.4rem 1.2rem;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"] {
        width: 100%;
    }
}
