/*
Theme Name: dds_boomreggae.com
Author: Михаил Артамонов
Description: Тема для информационного сайта о музыкальных фестивалях и живых событиях.
Version: 1.1
Text Domain: bmrg
*/

:root {
    --bg: #0B0D17;
    --bg-alt: #131B2B;
    --bg-foot: #07090F;
    --bg-side: #1A233A;
    --txt: #F0F2F8;
    --acc: #FF4B6A;
    --acc2: #FFD13B;
    --mut: #7A86A6;
    --line: #2E3A55;
    --font-head: "Anton", "Impact", "Haettenschweiler", "Arial Narrow", "PT Sans Narrow", sans-serif;
    --font-body: "Inter", "Work Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--txt);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 75, 106, .045) 0 1px, transparent 1px 15px),
        repeating-linear-gradient(-45deg, rgba(255, 209, 59, .035) 0 1px, transparent 1px 24px);
}

body::before {
    content: "";
    position: fixed;
    right: -8vw;
    top: -6vh;
    width: 46vw;
    height: 46vw;
    max-width: 720px;
    max-height: 720px;
    pointer-events: none;
    z-index: 0;
    opacity: .5;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cdefs%3E%3CradialGradient id='g' cx='45%25' cy='40%25'%3E%3Cstop offset='0' stop-color='%23FF4B6A' stop-opacity='.5'/%3E%3Cstop offset='.55' stop-color='%237B3FE4' stop-opacity='.22'/%3E%3Cstop offset='1' stop-color='%237B3FE4' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M300 30c96 0 190 62 232 156s16 213-58 277-201 74-286 21S54 341 86 245 204 30 300 30z'/%3E%3C/svg%3E");
}

.shell {
    position: relative;
    z-index: 1;
    width: min(92%, 1180px);
    margin-inline: auto;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .01em;
    color: var(--txt);
    margin: 0 0 .7em;
}

h1 { font-size: 4.2rem; text-transform: uppercase; }
h2 { font-size: 2.3rem; text-transform: uppercase; letter-spacing: .05em; }
h3 { font-size: 1.55rem; letter-spacing: .04em; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

.entry ul,
.entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }

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

.entry ul li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .55em;
}

.entry ul li::before {
    content: "\266A";
    position: absolute;
    left: 0;
    top: -.05em;
    color: var(--acc);
    font-size: 1.1em;
}

.entry ol li { margin-bottom: .55em; }

.entry a {
    position: relative;
    color: var(--acc);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 2px;
    text-underline-offset: .3em;
}

.entry a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -.34em;
    height: 2px;
    background: var(--acc2);
    transition: left .25s ease, right .25s ease;
}

.entry a:hover::after { left: 0; right: 0; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--acc2);
    background: rgba(255, 209, 59, .07);
    color: var(--txt);
    font-size: 1.1rem;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: #060810;
    color: var(--acc2);
}

pre { padding: 1rem 1.1rem; overflow: auto; border: 1px solid var(--line); border-radius: 4px; }

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

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

th { background: rgba(255, 75, 106, .12); font-weight: 600; }

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

.btn {
    display: inline-block;
    padding: .85rem 1.8rem;
    border: 0;
    border-radius: 6px;
    font-family: var(--font-head);
    font-size: 1.02rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.btn-main {
    background: var(--acc);
    color: #0B0D17;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(255, 75, 106, .65);
}

.btn-ghost {
    background: transparent;
    color: var(--acc2);
    box-shadow: inset 0 0 0 2px var(--acc2);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px var(--acc2), 0 0 26px rgba(255, 209, 59, .5);
}

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

.site-head {
    position: relative;
    z-index: 5;
    background: rgba(11, 13, 23, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    text-decoration: none;
    color: var(--txt);
}

.brand-logo { display: block; width: 52px; height: 52px; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.22rem;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--txt);
}

.brand-desc {
    display: block;
    margin-top: .28rem;
    font-size: .8rem;
    line-height: 1.4;
    color: var(--mut);
    max-width: 46ch;
}

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

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

.main-nav a {
    position: relative;
    display: inline-block;
    padding: .25rem 0;
    color: var(--txt);
    text-decoration: none;
    font-size: .93rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--acc), var(--acc2));
    transition: left .25s ease, right .25s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { left: 0; right: 0; }

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

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

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

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

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

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

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

.page-head h1 { font-size: 3rem; }

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
    margin: 0 0 1.5rem;
    font-size: .84rem;
    color: var(--mut);
    letter-spacing: .03em;
}

.breadcrumbs a { color: var(--mut); text-decoration: none; }
.breadcrumbs a:hover { color: var(--acc); }
.breadcrumbs .sep { margin: 0 .4rem; color: var(--acc); }

/* ---------- Заголовки секций ---------- */

.sec-title {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .07em;
}

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

.sec-title::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: .55rem;
    background: linear-gradient(90deg, var(--acc), var(--acc2), transparent);
}

.sec-title.alt::before { background: var(--acc2); }

/* ---------- Разделители ---------- */

.wave-sep {
    height: 34px;
    margin: 0;
    border: 0;
    opacity: .2;
    background-repeat: repeat-x;
    background-position: center;
    background-size: 220px 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 34'%3E%3Cpath d='M0 17c18-17 37-17 55 0s37 17 55 0 37-17 55 0 37 17 55 0' fill='none' stroke='%23FF4B6A' stroke-width='3'/%3E%3C/svg%3E");
}

.dot-sep {
    position: relative;
    height: 1px;
    margin: 2.6rem 0;
    background: linear-gradient(90deg, transparent, var(--acc), transparent);
    border: 0;
}

.dot-sep::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--acc2);
    box-shadow: 0 0 14px rgba(255, 209, 59, .8);
}

/* ---------- Карточки записей ---------- */

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 6px 6px 0 rgba(255, 75, 106, .32);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--acc);
    box-shadow: 10px 10px 0 rgba(255, 75, 106, .55);
}

.card-thumb-wrap { display: block; }

.card-thumb-wrap a { display: block; }

.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: saturate(1.15) contrast(1.06) hue-rotate(-8deg);
}

.card-thumb-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        repeating-linear-gradient(135deg, rgba(255, 209, 59, .16) 0 8px, transparent 8px 20px),
        linear-gradient(140deg, #1B2338, #2A1730);
}

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

.card-title {
    font-size: 1.24rem;
    line-height: 1.15;
    margin: 0 0 .55rem;
    text-transform: none;
}

.card-title a { color: var(--txt); text-decoration: none; }
.card-title a:hover { color: var(--acc); }

.card-meta {
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mut);
    margin-bottom: .7rem;
}

.card-excerpt { color: #C8CFE2; font-size: .96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    margin-top: auto;
    padding-top: .9rem;
    align-self: flex-start;
    color: var(--acc2);
    font-family: var(--font-head);
    letter-spacing: .09em;
    text-transform: uppercase;
    font-size: .88rem;
    text-decoration: none;
}

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

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

.card-list .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    min-height: 190px;
}

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

.card-list .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.card-list .card-thumb-fallback { height: 100%; aspect-ratio: auto; }

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

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

.pager .page-numbers {
    display: inline-block;
    padding: .5rem .95rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--txt);
    text-decoration: none;
    font-size: .95rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

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

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

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

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

.front-wrap {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs { margin-bottom: 3rem; }

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--line);
    padding: 5rem 3rem;
    background-color: #0B0D17;
    background-position: center;
    background-size: cover;
}

.hero-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.fs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 22% 0%, rgba(255, 209, 59, .28), transparent 55%),
        linear-gradient(100deg, rgba(11, 13, 23, .92) 12%, rgba(11, 13, 23, .55) 62%, rgba(11, 13, 23, .8) 100%);
}

.fs-hero > *:not(.hero-img) { position: relative; z-index: 2; }

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .35rem .8rem;
    border: 1px solid var(--acc2);
    border-radius: 4px;
    color: var(--acc2);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 1rem;
    font-size: 4.2rem;
    letter-spacing: .02em;
    color: #FFF;
    text-shadow:
        0 0 12px rgba(255, 75, 106, .85),
        0 0 34px rgba(255, 75, 106, .55),
        0 0 68px rgba(255, 75, 106, .32);
}

.hero-text {
    max-width: 54ch;
    margin-bottom: 1.9rem;
    font-size: 1.08rem;
    color: #DCE1EE;
}

/* Блок 2 — шаги */

.fs-steps {
    padding: 2.8rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
}

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

.step {
    position: relative;
    min-width: 0;
    padding: 1.4rem 1.5rem 1.5rem 1.5rem;
    background: #101726;
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color .22s ease, transform .22s ease;
}

.step:nth-child(even) { margin-top: 2.6rem; }

.step:hover { border-color: var(--acc); transform: translateY(-4px); }

.step-num {
    display: inline-block;
    margin-bottom: .9rem;
    padding: .3rem .95rem;
    background: var(--acc);
    color: #0B0D17;
    font-family: var(--font-head);
    font-size: 1.55rem;
    line-height: 1.2;
    border-radius: 4px;
    box-shadow: 5px 5px 0 rgba(255, 209, 59, .55);
}

.step:nth-child(even) .step-num {
    background: var(--acc2);
    box-shadow: 5px 5px 0 rgba(255, 75, 106, .55);
}

.step h3 { font-size: 1.2rem; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }

.step p { margin: 0; font-size: .96rem; color: #C4CBDE; }

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

.fs-quote {
    position: relative;
    overflow: hidden;
    padding: 3.6rem 3rem 4.2rem;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 78% -20%, rgba(255, 255, 255, .16), transparent 45%),
        linear-gradient(115deg, rgba(255, 75, 106, .30), rgba(255, 209, 59, .22));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), calc(100% - 42px) 100%, 0 100%);
}

.fs-quote::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.fs-quote > * { position: relative; }

.fs-quote .quote-text {
    margin: 0 0 1.4rem;
    font-family: var(--font-head);
    font-size: 6rem;
    line-height: .96;
    text-transform: uppercase;
    color: #FFF;
    text-shadow: 0 6px 26px rgba(11, 13, 23, .55);
}

.quote-sign {
    display: block;
    text-align: right;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0B0D17;
    font-weight: 700;
}

.quote-sign small { display: block; font-size: .78rem; letter-spacing: .05em; text-transform: none; opacity: .75; }

/* Блок 4 — карта тем */

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

.topic-plate {
    display: block;
    min-width: 0;
    padding: 1.6rem 1.4rem;
    text-decoration: none;
    color: var(--txt);
    border: 3px solid var(--line);
    border-radius: 4px;
    background: linear-gradient(160deg, #18202F, #0E1420);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.topic-plate:nth-child(even) { border-color: #384668; }

.topic-plate svg { display: block; margin-bottom: .9rem; }

.topic-plate .tp-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.22rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.topic-plate .tp-desc { font-size: .88rem; color: var(--mut); }

.topic-plate:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--acc);
    box-shadow: 0 0 26px rgba(255, 75, 106, .35);
}

.topic-plate:nth-child(even):hover {
    border-color: var(--acc2);
    box-shadow: 0 0 26px rgba(255, 209, 59, .32);
}

.fs-latest { padding: 2.8rem 2.2rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; }

.fs-latest .card { background: #101726; }

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

/* ---------- Сайдбар ---------- */

.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--txt);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 12px);
}

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

.sidebar .widget-title {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--txt);
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--acc);
}

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

.sidebar li {
    position: relative;
    padding: .45rem 0 .45rem 1.3rem;
    border-bottom: 1px solid rgba(46, 58, 85, .8);
    font-size: .95rem;
    color: var(--txt);
}

.sidebar li::before {
    content: "\266A";
    position: absolute;
    left: 0;
    top: .45rem;
    color: var(--acc2);
}

.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--txt); text-decoration: none; }
.sidebar a:hover { color: var(--acc); }
.sidebar .post-date { display: block; font-size: .78rem; color: var(--mut); }

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

.site-foot {
    position: relative;
    z-index: 1;
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    color: var(--txt);
    padding: 3rem 0 1.6rem;
}

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

.foot-col { min-width: 0; color: var(--txt); }

.foot-col .widget-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--acc2);
    margin-bottom: .9rem;
}

.foot-col,
.foot-col p,
.foot-col li { color: #D6DBE9; font-size: .93rem; }

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

.foot-col li { padding: .35rem 0; }

.foot-col a { color: #D6DBE9; text-decoration: none; }
.foot-col a:hover { color: var(--acc); }
.foot-col .post-date { color: var(--mut); font-size: .78rem; }

.foot-bottom {
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    color: var(--mut);
    text-align: center;
}

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

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

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

.search-form input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    flex: 1 1 200px;
    min-width: 0;
    padding: .7rem .9rem;
    background: #0E1421;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--txt);
    font-family: var(--font-body);
    font-size: .95rem;
}

textarea { width: 100%; }

.search-form input[type="search"]:focus,
input:focus,
textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }

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

.comments-area { margin-top: 3rem; }

.comments-area .comments-title,
.comments-area .comment-reply-title {
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

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

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

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

.comment-meta-line { font-size: .8rem; color: var(--mut); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }

.comment-author-name { color: var(--acc2); font-weight: 600; }

.comment-form .submit,
.comment-form input[type="submit"] {
    background: var(--acc);
    color: #0B0D17;
    border: 0;
    border-radius: 6px;
    padding: .8rem 1.7rem;
    font-family: var(--font-head);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover { box-shadow: 0 0 22px rgba(255, 75, 106, .6); }

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

.entry-header { margin-bottom: 1.5rem; }
.entry-header h1 { font-size: 3rem; }

.entry-meta {
    font-size: .82rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--mut);
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.entry img { border-radius: 4px; }

.entry h2 { font-size: 1.9rem; margin-top: 1.8em; }
.entry h3 { font-size: 1.4rem; margin-top: 1.5em; }

.entry-tail {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .88rem;
    color: var(--mut);
}

.entry-tail a { color: var(--acc2); text-decoration: none; }

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

.err-code {
    font-family: var(--font-head);
    font-size: 7rem;
    line-height: 1;
    color: var(--acc);
    text-shadow: 0 0 30px rgba(255, 75, 106, .6);
    margin-bottom: .4rem;
}

.err-box { max-width: 640px; }
.err-box .search-form { margin: 1.6rem 0; }

/* ---------- 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;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: rgba(7, 9, 15, .96);
    border-top: 2px solid var(--acc);
    color: var(--txt);
    font-size: .9rem;
}

.cookie-banner p { margin: 0; max-width: 78ch; }

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

@media (max-width: 960px) {
    h1 { font-size: 3rem; }
    .hero-title { font-size: 3rem; }
    .fs-quote .quote-text { font-size: 3.4rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single,
    .front-wrap { width: 100%; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.7rem; }
    .page-head h1,
    .entry-header h1 { font-size: 2rem; }
    .hero-title { font-size: 2.4rem; }

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

    .main-nav { flex-basis: 100%; }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: .4rem; padding-top: .8rem; }

    .fs-hero { padding: 2.6rem 1.4rem; }
    .fs-steps,
    .fs-latest { padding: 1.9rem 1.3rem; }
    .fs-quote { padding: 2.2rem 1.4rem 2.8rem; }
    .fs-quote .quote-text { font-size: 2.3rem; }
    .steps-grid { grid-template-columns: minmax(0, 1fr); }
    .step:nth-child(even) { margin-top: 0; }
    .card-grid,
    .topics-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }

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

    .card-list .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }

    .card-list .card-thumb-wrap a { position: static; }

    .card-list .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

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