/*
Theme Name: dds_chonluibichchy.com
Author: Евгений Рябов
Description: Тема для информационного сайта о комиксах и рисованных историях. Яркая поп-арт стилистика с комикс-графикой.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: bangpop
*/

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

:root {
    --bg-main: #F8F9FA;
    --bg-alt: #FFFFFF;
    --bg-head: #FFFFFF;
    --bg-foot: #1D3557;
    --bg-side: #F1F2F6;
    --ink: #1A1A1A;
    --red: #E63946;
    --red-dark: #C1121F;
    --yellow: #F4A261;
    --blue: #1D3557;
    --muted: #6C757D;
    --font-head: 'Oswald', 'PT Sans Narrow', 'Arial Narrow', 'Haettenschweiler', Impact, sans-serif;
    --font-body: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-main);
    background-image: radial-gradient(rgba(29, 53, 87, 0.30) 1.1px, transparent 1.2px);
    background-size: 12px 12px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
}

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

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

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

/* ==========================================================================
   2. Типографика
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 1.6em 0 0.6em;
}

h1 {
    font-size: 4rem;
    margin-top: 0;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1.1em;
}

.entry-body a,
.widget .textwidget a,
.comment-text a {
    font-weight: 700;
    position: relative;
    background-image: linear-gradient(var(--red), var(--red));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 3px;
    transition: background-size 0.25s ease;
}

.entry-body a:hover,
.widget .textwidget a:hover,
.comment-text a:hover {
    background-size: 100% 3px;
}

.term {
    font-weight: 700;
    border-bottom: 3px solid var(--yellow);
    box-shadow: inset 0 -6px 0 -3px var(--red);
}

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    border-left: 10px solid var(--red);
    background: var(--bg-alt);
}

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

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

.entry-body li {
    margin-bottom: 0.4em;
}

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

pre {
    overflow-x: auto;
    padding: 1rem;
    background: #EEF1F4;
    border-left: 6px solid var(--blue);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 3px solid var(--blue);
}

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

th {
    background: var(--blue);
    color: #FFFFFF;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   3. Кнопки, чипы, заголовки секций
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: 4px;
    background: var(--red);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 3px solid var(--red);
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: scale(1.02);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 3px solid var(--red);
}

.btn-ghost:hover {
    background: var(--red);
    color: #FFFFFF;
    border-color: var(--red);
}

.bubble {
    display: inline-block;
    padding: 0.2rem 0.85rem;
    border: 1px solid var(--ink);
    border-radius: 40px;
    background: #FFFFFF;
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bubble:hover {
    background: var(--yellow);
}

.sec-title {
    display: inline-block;
    margin: 0 0 1.6rem -1.4rem;
    padding: 0.35rem 1.4rem;
    background: var(--yellow);
    color: var(--ink);
    font-size: 2.1rem;
}

.sec-title-line {
    display: inline-block;
    margin: 0 0 1.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 8px solid var(--red);
    font-size: 2.1rem;
}

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

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

.cmyk-bar {
    display: flex;
    height: 6px;
}

.cmyk-bar span {
    flex: 1;
}

.cmyk-bar span:nth-child(1) { background: var(--yellow); }
.cmyk-bar span:nth-child(2) { background: var(--red); }
.cmyk-bar span:nth-child(3) { background: var(--blue); }
.cmyk-bar span:nth-child(4) { background: #FFFFFF; }

.site-head {
    background: var(--bg-head);
    border-bottom: 6px solid var(--red);
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    padding: 0.6rem 1rem;
    background: var(--blue);
    color: #FFFFFF;
    border: 3px solid var(--blue);
    border-radius: 4px;
    font-family: var(--font-head);
    text-transform: uppercase;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    padding: 0.3rem 0;
    font-family: var(--font-head);
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 4px solid transparent;
    transition: border-color 0.18s ease, color 0.18s ease;
}

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

/* ==========================================================================
   5. Раскладки
   ========================================================================== */

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

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

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

.sidebar {
    min-width: 0;
    padding: 1.4rem 1.3rem;
    background: var(--bg-side);
    border: 3px solid var(--blue);
}

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

.crumbs {
    margin-bottom: 1.6rem;
    padding: 0.5rem 0.9rem;
    background: #FFFFFF;
    border-left: 6px solid var(--yellow);
    font-size: 0.83rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.crumbs a {
    color: var(--ink);
    font-weight: 700;
}

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

.crumbs-sep {
    color: var(--red);
    margin: 0 0.2rem;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 4px solid var(--blue);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
}

.card-thumb {
    display: block;
    border-bottom: 4px solid var(--blue);
}

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

.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 10;
    background: repeating-linear-gradient(45deg, #F4A261 0 14px, #FFFFFF 14px 28px);
    border-bottom: 4px solid var(--blue);
}

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

.card-title {
    margin: 0 0 0.7rem;
    font-size: 1.35rem;
    line-height: 1.15;
}

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

.card-excerpt {
    flex: 1;
    color: #333333;
    font-size: 0.95rem;
}

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-more {
    margin-top: 1rem;
    align-self: flex-start;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
}

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

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

.pager .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    background: #FFFFFF;
    border: 3px solid var(--blue);
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: uppercase;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ==========================================================================
   9. Главная — блоки
   ========================================================================== */

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

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

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

.flex-divider {
    height: 4px;
    background-image: repeating-linear-gradient(90deg, var(--yellow) 0 26px, transparent 26px 38px);
}

.dots-divider {
    height: 34px;
    background-color: var(--bg-main);
    background-image: radial-gradient(var(--yellow) 2.6px, transparent 2.8px);
    background-size: 18px 18px;
}

/* 9.1 Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 3.4rem 0 3.8rem;
    background: linear-gradient(112deg, #FFFFFF 0%, #FFFFFF 42%, #FDEBDD 100%);
    border-bottom: 6px solid var(--blue);
}

.hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -90px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.10);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -70px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(244, 162, 97, 0.22);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.4rem;
    align-items: center;
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

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

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    background: var(--blue);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: 6rem;
    line-height: 0.94;
}

.hero-title em {
    font-style: normal;
    color: var(--red);
}

.hero-lead {
    max-width: 46ch;
    margin-bottom: 1.6rem;
    font-size: 1.08rem;
}

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

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

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
    border: 5px solid var(--ink);
}

/* 9.2 Цитата */

.fs-shout {
    position: relative;
    overflow: hidden;
    padding: 3.4rem 2.4rem;
    background: var(--red);
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 2px, transparent 2.2px);
    background-size: 16px 16px;
    color: #FFFFFF;
    text-align: center;
}

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

.shout-word {
    margin: 0 0 1rem;
    font-size: 4.4rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 5px 5px 0 var(--blue);
}

.shout-sub {
    max-width: 62ch;
    margin: 0 auto;
    font-size: 1.1rem;
}

.fs-shout .spark {
    position: absolute;
    width: 190px;
    height: 190px;
    opacity: 0.55;
}

.fs-shout .spark-1 { top: -30px; left: -20px; }
.fs-shout .spark-2 { bottom: -40px; right: -20px; transform: rotate(180deg); }

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

.tl {
    position: relative;
    margin-top: 2.4rem;
    padding: 0;
    list-style: none;
}

.tl::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    margin-left: -3px;
    background: var(--ink);
}

.tl-item {
    position: relative;
    width: 50%;
    margin-bottom: 1.8rem;
    padding-right: 2.6rem;
    min-width: 0;
}

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

.tl-card {
    padding: 1.1rem 1.3rem;
    background: #FFFFFF;
    border: 2px solid var(--blue);
    border-left: 10px solid var(--blue);
    min-width: 0;
}

.tl-item:nth-child(3n+1) .tl-card { border-left-color: var(--blue); }
.tl-item:nth-child(3n+2) .tl-card { border-left-color: var(--yellow); }
.tl-item:nth-child(3n) .tl-card { border-left-color: var(--red); }

.tl-year {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--red);
}

.tl-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.tl-card p {
    margin: 0;
    font-size: 0.94rem;
}

.tl-item::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    right: -11px;
    width: 20px;
    height: 20px;
    background: var(--ink);
    border: 4px solid var(--bg-alt);
    border-radius: 50%;
}

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

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

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.4rem;
    margin-top: 2.2rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: #FFFFFF;
    border: 2px solid #E4E7EB;
    border-top: 10px solid var(--red);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.topic-tile:nth-child(3n+2) { border-top-color: var(--yellow); }
.topic-tile:nth-child(3n) { border-top-color: var(--blue); }

.topic-tile:hover {
    transform: rotate(-3deg);
    border-color: var(--ink);
}

.topic-tile svg {
    display: block;
    width: 52px;
    height: 52px;
    margin-bottom: 0.8rem;
}

.topic-tile h3 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
}

.topic-tile p {
    margin: 0;
    font-size: 0.9rem;
    color: #444444;
}

/* 9.5 Последние записи на главной */

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

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

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

.entry {
    background: #FFFFFF;
    border: 4px solid var(--blue);
    padding: 1.8rem 1.8rem 2.2rem;
}

.entry-title {
    margin: 0 0 0.8rem;
    font-size: 2.8rem;
}

.entry-thumb {
    margin: 1.2rem 0 1.6rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    border: 4px solid var(--ink);
}

.entry-body h2 {
    font-size: 1.9rem;
    border-bottom: 6px solid var(--yellow);
    display: inline-block;
    padding-bottom: 0.2rem;
}

.entry-body h3 {
    font-size: 1.4rem;
}

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

.entry-tags {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin-top: 1.8rem;
}

.post-nav a {
    display: block;
    padding: 1rem 1.2rem;
    background: #FFFFFF;
    border: 3px solid var(--blue);
    min-width: 0;
}

.post-nav a:hover {
    border-color: var(--red);
}

.post-nav span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-nav strong {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
}

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

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

.list-head h1 {
    font-size: 2.6rem;
    margin-bottom: 0.4rem;
}

.list-head p {
    color: var(--muted);
    margin: 0;
}

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

.nothing {
    padding: 1.6rem;
    background: #FFFFFF;
    border: 4px dashed var(--blue);
}

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

.comments-area {
    margin-top: 2.4rem;
    padding: 1.6rem 1.6rem 2rem;
    background: var(--bg-side);
    border: 4px solid var(--blue);
}

.comments-area h2 {
    margin-top: 0;
    font-size: 1.7rem;
}

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

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

.comment-inner {
    padding: 1rem 1.2rem;
    background: #FFFFFF;
    border-left: 8px solid var(--yellow);
    margin-bottom: 1rem;
}

.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-size: 1.1rem;
    text-transform: uppercase;
}

.comment-head time {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.comment-actions a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
}

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 3px solid var(--blue);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 1rem;
}

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

.comment-form .form-submit input {
    padding: 0.85rem 1.7rem;
    background: var(--red);
    border: 3px solid var(--red);
    border-radius: 4px;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 1.05rem;
    text-transform: uppercase;
    cursor: pointer;
}

.comment-form .form-submit input:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

/* ==========================================================================
   12. Форма поиска
   ========================================================================== */

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

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

.search-form label {
    flex: 1;
    min-width: 0;
    display: block;
    margin: 0;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 3px solid var(--blue);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-form button {
    padding: 0.65rem 1.2rem;
    background: var(--blue);
    border: 3px solid var(--blue);
    border-radius: 4px;
    color: #FFFFFF;
    font-family: var(--font-head);
    text-transform: uppercase;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--red);
    border-color: var(--red);
}

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

.widget {
    margin-bottom: 1.8rem;
}

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

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(29, 53, 87, 0.35);
}

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

/* сайдбар — светлый фон, тёмный текст */
.sidebar .widget-title {
    margin: 0 0 0.9rem;
    padding: 0.25rem 0.8rem;
    background: var(--yellow);
    color: #1A1A1A;
    font-size: 1.15rem;
}

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

.sidebar .widget a {
    color: #1A1A1A;
    font-weight: 600;
}

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

.sidebar .widget .post-date {
    display: block;
    color: #55606B;
    font-size: 0.76rem;
    text-transform: uppercase;
}

/* подвал — тёмный фон, светлый текст */
.site-foot {
    background: var(--bg-foot);
    color: #E7ECF3;
    border-top: 6px solid var(--yellow);
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    padding: 2.8rem 0 2.2rem;
}

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

.site-foot .widget-title {
    margin: 0 0 0.9rem;
    color: #FFFFFF;
    font-size: 1.15rem;
    border-bottom: 5px solid var(--red);
    display: inline-block;
    padding-bottom: 0.2rem;
}

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

.site-foot .widget a {
    color: #FFFFFF;
    font-weight: 600;
}

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

.site-foot .widget li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
}

.site-foot .widget .post-date {
    display: block;
    color: #B9C6D8;
    font-size: 0.76rem;
}

.foot-bottom {
    padding: 1rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #C3CFDE;
    font-size: 0.85rem;
}

/* ==========================================================================
   14. 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: 1rem;
    padding: 1rem 1.4rem;
    background: var(--blue);
    border-top: 6px solid var(--yellow);
    color: #FFFFFF;
}

.cookie-banner p {
    margin: 0;
    max-width: 78ch;
    font-size: 0.9rem;
}

.cookie-banner button {
    padding: 0.6rem 1.5rem;
    background: var(--red);
    border: 3px solid var(--red);
    border-radius: 4px;
    color: #FFFFFF;
    font-family: var(--font-head);
    text-transform: uppercase;
    cursor: pointer;
}

.cookie-banner button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}

/* ==========================================================================
   15. 404
   ========================================================================== */

.err-block {
    padding: 2.4rem 2rem;
    background: #FFFFFF;
    border: 4px solid var(--blue);
    text-align: center;
}

.err-code {
    margin: 0;
    font-family: var(--font-head);
    font-size: 7rem;
    line-height: 1;
    color: var(--red);
    text-shadow: 6px 6px 0 var(--blue);
}

.err-block .search-form {
    max-width: 480px;
    margin: 1.6rem auto 1.4rem;
}

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

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

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

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        width: min(92%, 1180px);
    }

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

    .layout-single {
        width: 100%;
    }

    .front-wrap,
    .fs-shout-inner {
        width: min(92%, 1180px);
    }

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

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

    h1 {
        font-size: 2.3rem;
    }

    h2 {
        font-size: 1.7rem;
    }

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

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

    .nav-toggle {
        display: block;
    }

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 2px solid #E4E7EB;
    }

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

    .sec-title {
        margin-left: 0;
        font-size: 1.6rem;
    }

    .sec-title-line {
        font-size: 1.6rem;
    }

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

    .fs-shout {
        padding: 2.2rem 1.4rem;
    }

    .shout-word {
        font-size: 2.6rem;
    }

    .entry {
        padding: 1.2rem 1.1rem 1.6rem;
    }

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

    .comments-area {
        padding: 1.2rem 1.1rem 1.6rem;
    }

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

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

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

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

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

    .cookie-banner p {
        font-size: 0.84rem;
    }
}
