/*
Theme Name: dds_unicycleherounblocked.com
Author: Артём Белов
Description: Тёмная контрастная тема «Неоновый пульт» для информационного сайта-гида по первому жилью, игровой зоне и детской комнате.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: npult
*/

:root {
    --bg: #0d0f14;
    --bg-alt: #141922;
    --bg-foot: #07090c;
    --bg-side: #11161e;
    --text: #e8f0f2;
    --acc: #00e5c7;
    --acc2: #f5e642;
    --mute: #6b7a85;
    --line: #1e2a36;
    --grid: #1a2230;
    --head-font: "Trebuchet MS", "Segoe UI Semibold", "Franklin Gothic Medium", system-ui, sans-serif;
    --body-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
}

body::before {
    top: 40px;
    left: 0;
    width: 320px;
    height: 320px;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23e8f0f2' stroke-width='3'%3E%3Cpath d='M20 170 L20 40 L120 40 L120 170 Z'/%3E%3Cpath d='M120 90 L180 90 L180 170 L120 170'/%3E%3Cpath d='M55 170 L55 130 L90 130 L90 170'/%3E%3Cpath d='M135 110 L165 110 L165 140 L135 140 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
}

body::after {
    right: 0;
    bottom: 0;
    width: 380px;
    height: 250px;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 150'%3E%3Cg fill='none' stroke='%2300e5c7' stroke-width='4'%3E%3Crect x='10' y='45' width='220' height='80' rx='34'/%3E%3Cpath d='M50 75 L80 75 M65 60 L65 90'/%3E%3Ccircle cx='165' cy='72' r='9'/%3E%3Ccircle cx='190' cy='95' r='9'/%3E%3Cpath d='M30 40 L70 12 L170 12 L210 40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-position: right bottom;
}

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

.topline {
    height: 3px;
    background: linear-gradient(90deg, var(--acc) 0%, var(--acc2) 100%);
    position: relative;
    z-index: 3;
}

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

.site-wrap { position: relative; z-index: 1; }

/* ---------- Типографика ---------- */

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

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

.entry-content a,
.widget a,
.trail a {
    background-image: linear-gradient(90deg, var(--acc2), var(--acc2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.entry-content a:hover,
.widget a:hover,
.trail a:hover {
    background-size: 100% 1px;
    color: var(--acc2);
}

.section-title {
    position: relative;
    border-left: 4px solid var(--acc);
    padding-left: 1rem;
    text-shadow: 0 0 14px rgba(0, 229, 199, 0.35);
    margin-bottom: 1.4rem;
}

.entry-content h2 {
    position: relative;
    padding-left: 1.4rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    background: var(--acc);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(0, 229, 199, 0.8);
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.8rem 1.6rem;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    background: var(--acc);
    color: #06090c;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translate(3px, 3px);
    box-shadow: -4px -4px 18px rgba(245, 230, 66, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--acc);
    border: 2px solid var(--acc);
}

.btn-ghost:hover {
    color: var(--acc2);
    border-color: var(--acc2);
}

.btn-accent {
    background: var(--acc2);
    color: #0b0b06;
}

.btn-accent:hover {
    box-shadow: -4px -4px 18px rgba(0, 229, 199, 0.45);
}

/* ---------- Шапка ---------- */

.site-head {
    background: var(--bg);
    border-bottom: 1px solid var(--acc);
    position: relative;
    z-index: 2;
}

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

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

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

.brand-logo {
    max-width: 210px;
    height: auto;
    display: block;
}

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

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    line-height: 1.35;
    text-shadow: 0 0 12px rgba(0, 229, 199, 0.25);
}

.brand-tagline {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--mute);
}

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

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

.main-nav a {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ---------- Каркас страницы ---------- */

.site-main {
    padding: 2.4rem 0 3rem;
}

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

.layout-single { display: block; }

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

.trail {
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 1.4rem;
    word-wrap: break-word;
}

.trail a { color: var(--acc); }

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

/* ---------- Карточки ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(0, 229, 199, 0.15);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--acc2);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--acc);
    box-shadow: 0 0 22px rgba(0, 229, 199, 0.32);
}

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

.card-thumb {
    display: block;
    border-bottom: 2px solid var(--acc);
    position: relative;
    background: #0a0d12;
}

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: brightness(0.82);
    transition: filter 0.22s ease;
}

.card:hover .card-thumb img { filter: brightness(1); }

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

.card-title {
    font-size: 1.18rem;
    margin: 0 0 0.6rem;
}

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

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

.card-excerpt {
    color: #b9c6cc;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.card-foot { margin-top: auto; }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    font-size: 0.8rem;
    color: var(--mute);
    margin-bottom: 0.8rem;
}

.chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip {
    display: inline-block;
    font-size: 0.72rem;
    font-family: var(--head-font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.7rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
}

.chip-a { background: var(--acc); color: #06090c; }
.chip-b { background: var(--acc2); color: #0b0b06; }

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

/* ---------- Главная ---------- */

.front-main {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.2rem 0 3rem;
}

.fs {
    padding: 2.8rem 0;
    min-width: 0;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-top: 1px dashed var(--line);
    padding-top: 1.2rem;
}

.divider span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 8px rgba(0, 229, 199, 0.7);
}

.divider span:nth-child(2) { opacity: 0.6; }
.divider span:nth-child(3) { opacity: 0.3; }

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.hero-media::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 15, 20, 0.8);
}

.hero-body {
    position: relative;
    z-index: 1;
    padding: 4.2rem 2.4rem;
    max-width: 780px;
}

.hero-kicker {
    font-family: var(--head-font);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--acc2);
    margin-bottom: 0.9rem;
}

.hero-body h1 {
    text-shadow: 0 0 24px rgba(0, 229, 199, 0.55);
    margin-bottom: 1rem;
}

.hero-body p {
    color: #c9d6da;
    font-size: 1.05rem;
    max-width: 620px;
}

/* Блок 2 — таймлайн */

.tl {
    position: relative;
    padding: 0.5rem 0;
}

.tl::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--acc);
    box-shadow: 0 0 10px rgba(0, 229, 199, 0.5);
}

.tl-item {
    position: relative;
    width: 50%;
    padding: 0 2.6rem 2.2rem 0;
    min-width: 0;
}

.tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.2rem 2.6rem;
}

.tl-item::after {
    content: "";
    position: absolute;
    top: 1.6rem;
    right: -7px;
    width: 12px;
    height: 12px;
    background: var(--acc2);
    transform: rotate(45deg);
    box-shadow: 0 0 12px rgba(245, 230, 66, 0.8);
}

.tl-item:nth-child(even)::after {
    right: auto;
    left: -7px;
}

.tl-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 0 12px rgba(0, 229, 199, 0.12);
    min-width: 0;
}

.tl-num {
    font-family: var(--head-font);
    font-size: 2rem;
    color: var(--acc2);
    line-height: 1;
    display: block;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 14px rgba(245, 230, 66, 0.5);
}

.tl-card h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tl-card p {
    margin: 0;
    color: #b9c6cc;
    font-size: 0.95rem;
}

.ico {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    stroke: var(--acc);
    fill: none;
    stroke-width: 2;
}

/* Последние записи */

.fs-latest .cards { margin-top: 0.4rem; }

.latest-more {
    margin-top: 1.8rem;
    text-align: center;
}

/* Блок 3 — статистика */

.fs-stats {
    background-color: var(--bg-alt);
    background-image:
        radial-gradient(var(--line) 1px, transparent 1px),
        radial-gradient(var(--line) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0, 11px 11px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.6rem 2.2rem;
}

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

.stat {
    min-width: 0;
    text-align: center;
    padding: 0 0.8rem;
    border-left: 1px dashed var(--line);
}

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

.stat-num {
    display: block;
    font-family: var(--head-font);
    font-size: 3rem;
    line-height: 1;
    color: var(--acc2);
    text-shadow: 0 0 18px rgba(245, 230, 66, 0.45);
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.92rem;
    color: var(--acc);
}

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

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

.topic {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
    padding: 1.5rem 1.4rem;
    border: 2px solid var(--acc);
    border-radius: 4px;
    background: var(--bg-alt);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.topic .ico { width: 34px; height: 34px; }

.topic-name {
    font-family: var(--head-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s ease;
}

.topic-note {
    font-size: 0.9rem;
    color: var(--mute);
    transition: color 0.2s ease;
}

.topic:hover {
    background: var(--acc);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 229, 199, 0.35);
}

.topic:hover .ico { stroke: #06090c; }
.topic:hover .topic-name { color: var(--acc2); }
.topic:hover .topic-note { color: #0a1a1a; }

/* ---------- Запись и страницы ---------- */

.entry-head { margin-bottom: 1.4rem; }
.entry-head h1 { font-size: 2.4rem; }

.entry-thumb {
    margin: 0 0 1.6rem;
    border-bottom: 2px solid var(--acc);
}

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

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

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

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

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

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.4rem;
    background: var(--bg-side);
    border-left: 3px solid var(--acc);
    box-shadow: 0 0 16px rgba(0, 229, 199, 0.15);
    color: #cfdde1;
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    margin-bottom: 1.4rem;
}

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

.entry-content th {
    background: var(--bg-alt);
    color: var(--acc);
    font-family: var(--head-font);
}

.entry-content pre,
.entry-content code {
    background: var(--bg-side);
    color: var(--acc);
    border-radius: 3px;
}

.entry-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.table-scroll { overflow-x: auto; }

/* ---------- Сайдбар и виджеты ---------- */

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.4rem 1.4rem 0.6rem;
}

.widget {
    margin-bottom: 1.6rem;
    min-width: 0;
}

.widget-title {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-left: 4px solid var(--acc);
    padding-left: 0.7rem;
    margin-bottom: 0.9rem;
}

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

.widget li {
    padding: 0.42rem 0 0.42rem 1rem;
    position: relative;
    border-bottom: 1px dashed var(--line);
}

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 6px;
    background: var(--acc);
    transform: rotate(45deg);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: #cbd7dc; }

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

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

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

.sidebar .widget .post-date { color: var(--mute); }

/* ---------- Подвал ---------- */

.site-foot {
    background: var(--bg-foot);
    border-top: 1px solid var(--acc);
    padding: 2.6rem 0 1.4rem;
    position: relative;
    z-index: 1;
}

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

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

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

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

.site-foot .widget a { color: var(--acc); }

.site-foot .widget a:hover { color: var(--acc2); }

.site-foot .widget .post-date { color: var(--mute); }

.copyright {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-size: 0.85rem;
    color: var(--mute);
    text-align: center;
}

/* ---------- Пагинация ---------- */

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

.pager .page-numbers {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.95rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--bg-alt);
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pager .page-numbers:hover {
    border-color: var(--acc);
    color: var(--acc);
    box-shadow: 0 0 12px rgba(0, 229, 199, 0.25);
}

.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #06090c;
}

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

/* ---------- Формы ---------- */

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

.search-form input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    flex: 1 1 180px;
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font-family: var(--body-font);
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem;
}

.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(--acc);
    box-shadow: 0 0 12px rgba(0, 229, 199, 0.25);
}

textarea { width: 100%; }

/* ---------- Комментарии ---------- */

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

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

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

.comment-body {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-meta { font-size: 0.82rem; color: var(--mute); }
.comment-author .fn { color: var(--acc); font-style: normal; }
.comment-reply-link { font-size: 0.85rem; }

.comment-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 0.25rem;
}

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

.comment-form input[type="submit"],
.search-form button {
    background: var(--acc);
    color: #06090c;
    border: 0;
    font-family: var(--head-font);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.7rem 1.4rem;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input[type="submit"]:hover,
.search-form button:hover {
    transform: translate(3px, 3px);
    box-shadow: -4px -4px 16px rgba(245, 230, 66, 0.45);
}

/* ---------- 404 ---------- */

.err-code {
    font-family: var(--head-font);
    font-size: 5rem;
    line-height: 1;
    color: var(--acc2);
    text-shadow: 0 0 24px rgba(245, 230, 66, 0.4);
    margin-bottom: 0.4rem;
}

.err-box {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.2rem 2rem;
    max-width: 640px;
}

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

/* ---------- Cookie-баннер ---------- */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-side);
    border-top: 2px solid var(--acc);
    padding: 1rem 1.4rem;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.6);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #cbd7dc;
    max-width: 760px;
}

.cookie-banner .btn { font-size: 0.8rem; padding: 0.55rem 1.2rem; }

/* ---------- Адаптив ---------- */

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

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

    .layout-single .content-area,
    .front-main { width: 100%; }

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

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

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

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

    body::before, body::after { display: none; }
}

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

    h1 { font-size: 2rem; }
    .hero-body h1 { font-size: 2rem; }
    .entry-head h1 { font-size: 1.8rem; }

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px dashed var(--line);
        margin-top: 0.8rem;
        padding-top: 0.5rem;
    }

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

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

    .fs { padding: 2rem 0; }

    .hero-body { padding: 2.4rem 1.4rem; }

    .fs-stats { padding: 1.8rem 1.4rem; }

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

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

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

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

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

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

    .tl-item,
    .tl-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 1.6rem 1.9rem;
    }

    .tl-item::after,
    .tl-item:nth-child(even)::after {
        left: 1px;
        right: auto;
    }

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

    .err-box { padding: 1.8rem 1.3rem; }

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

    .entry-content blockquote { padding: 1rem 1.1rem; }
}
