/*
Theme Name: dds_mondaycareer.com
Theme URI: https://mondaycareer.com/
Author: Никита Романов
Author URI: https://mondaycareer.com/
Description: Forest Night — тёмная текстурированная тема для информационного сайта о новостях, моде, образе жизни и развлечениях.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: mondaycareer
*/

/* ===== 1. Переменные ==================================================== */

:root {
    --bg: #121212;
    --bg-alt: #1A1D1A;
    --bg-dark: #0B0C0B;
    --bg-side: #161816;
    --fg: #D4D9D4;
    --accent: #A3D9A5;
    --gold: #D4AF37;
    --muted: #6A706A;
    --line: #2A2F2A;
    --hex: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2752%27%20height%3D%2790%27%20viewBox%3D%270%200%2052%2090%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%232F3A2F%27%20stroke-width%3D%271%27%20stroke-opacity%3D%270.45%27%3E%3Cpath%20d%3D%27M26%200%20L52%2015%20L52%2045%20L26%2060%20L0%2045%20L0%2015%20Z%27%2F%3E%3Cpath%20d%3D%27M0%2045%20L26%2060%20L26%2090%20L0%20105%20L-26%2090%20L-26%2060%20Z%27%2F%3E%3Cpath%20d%3D%27M52%2045%20L78%2060%20L78%2090%20L52%20105%20L26%2090%20L26%2060%20Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --hex-strong: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2752%27%20height%3D%2790%27%20viewBox%3D%270%200%2052%2090%27%3E%3Cg%20fill%3D%27none%27%20stroke%3D%27%232F3A2F%27%20stroke-width%3D%271%27%20stroke-opacity%3D%270.9%27%3E%3Cpath%20d%3D%27M26%200%20L52%2015%20L52%2045%20L26%2060%20L0%2045%20L0%2015%20Z%27%2F%3E%3Cpath%20d%3D%27M0%2045%20L26%2060%20L26%2090%20L0%20105%20L-26%2090%20L-26%2060%20Z%27%2F%3E%3Cpath%20d%3D%27M52%2045%20L78%2060%20L78%2090%20L52%20105%20L26%2090%20L26%2060%20Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    --font-head: "Montserrat", "Geometria", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    --font-body: "Merriweather", "Literata", Georgia, "Times New Roman", serif;
}

/* ===== 2. База ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: var(--hex);
    background-repeat: repeat;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    -webkit-text-size-adjust: 100%;
}

body.home::after {
    content: "";
    position: fixed;
    right: -70px;
    bottom: -60px;
    width: 460px;
    height: 460px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20300%20300%27%3E%3Cg%20fill%3D%27%23A3D9A5%27%3E%3Cpath%20d%3D%27M150%2012%20L198%20108%20L172%20108%20L214%20182%20L182%20182%20L232%20262%20L68%20262%20L118%20182%20L86%20182%20L128%20108%20L102%20108%20Z%27%2F%3E%3Crect%20x%3D%27141%27%20y%3D%27258%27%20width%3D%2718%27%20height%3D%2734%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

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

figure {
    margin: 0 0 1.6rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.16;
    color: #E7EBE7;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.75rem; margin-top: 2.1rem; }
h3 { font-size: 1.32rem; margin-top: 1.7rem; }
h4 { font-size: 1.1rem; margin-top: 1.4rem; }

p {
    margin: 0 0 1.15rem;
}

ul, ol {
    margin: 0 0 1.15rem;
    padding-left: 1.3rem;
}

li {
    margin-bottom: 0.45rem;
}

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

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

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

.site-main {
    position: relative;
    z-index: 1;
    display: block;
    padding: 2.4rem 0 3.6rem;
}

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

/* ===== 3. Кнопки и ссылки ============================================== */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 3px var(--bg-dark);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 16px rgba(163, 217, 165, 0.45);
}

.entry-content a,
.card-excerpt a,
.widget .textwidget a,
.comment-text a {
    color: var(--accent);
    font-style: italic;
    border-bottom: 3px dotted transparent;
    transition: border-color 0.2s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget .textwidget a:hover,
.comment-text a:hover {
    border-bottom-color: var(--accent);
}

/* ===== 4. Топ-бар «свет костра» ======================================== */

.ember {
    height: 3px;
    width: 30%;
    background-image: linear-gradient(90deg, var(--gold), var(--accent));
    -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 16px, transparent 16px 24px);
    mask-image: repeating-linear-gradient(90deg, #000 0 16px, transparent 16px 24px);
    animation: ember-glow 3.4s ease-in-out infinite;
}

@keyframes ember-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ember { animation: none; }
    html { scroll-behavior: auto; }
}

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

.site-header {
    position: relative;
    z-index: 2;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 0;
}

.header-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

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

.brand-link {
    display: block;
    flex: none;
    line-height: 0;
}

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

.brand-mark {
    display: block;
}

.brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.3;
    color: #E7EBE7;
}

.site-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: 0.2rem;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 5px 0 var(--accent), 0 -5px 0 var(--accent);
}

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

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

.nav-list {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}

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

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

.layout-single {
    display: block;
    width: 100%;
}

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

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

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

.breadcrumbs {
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.7rem;
    line-height: 1.9;
}

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

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

.breadcrumbs .sep {
    color: var(--line);
    margin: 0 0.2rem;
}

.breadcrumbs span:last-child {
    color: var(--fg);
}

/* ===== 8. Заголовки страниц и секций =================================== */

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

.page-title,
.entry-title {
    font-size: 2.1rem;
    margin: 0 0 0.6rem;
}

.sec-title {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    text-align: left;
    font-size: 1.75rem;
    margin: 0 0 1.7rem;
}

.sec-title::before {
    content: "";
    flex: none;
    width: 0.8em;
    height: 0.8em;
    background-image: linear-gradient(135deg, var(--gold), var(--accent));
}

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-side);
    border-radius: 0;
    box-shadow: inset 0 0 26px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    padding: 0;
    transition: transform 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 80%;
    background: var(--accent);
    z-index: 2;
    transition: background-color 0.25s ease;
}

.card:hover {
    transform: translateX(-4px);
}

.card:hover::before {
    background: var(--gold);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    background: #0F110F;
}

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

.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(1) brightness(0.62) contrast(1.05);
    transition: filter 0.35s ease;
}

.card:hover .card-thumb-wrap img {
    filter: none;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.6rem 1.6rem;
}

.card-title {
    font-size: 1.28rem;
    margin: 0 0 0.5rem;
}

.card-title a {
    color: #E7EBE7;
}

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

.card-meta {
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.card-excerpt {
    color: var(--fg);
    font-size: 0.95rem;
}

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

.card-more {
    margin: 1.1rem 0 0;
}

.card-btn {
    font-size: 0.72rem;
    padding: 0.55rem 1.1rem;
}

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

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

.pagination .page-numbers,
.comments-area .nav-links .page-numbers {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--fg);
    background: transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.pagination a.page-numbers:hover,
.comments-area .nav-links a.page-numbers:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.pagination .page-numbers.current,
.comments-area .nav-links .page-numbers.current {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

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

.comments-area .nav-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1.2rem 0;
}

/* ===== 11. Секции главной ============================================= */

.fs {
    position: relative;
    width: 100%;
    padding: 3.2rem 0;
}

.fs-hero {
    background-color: var(--bg);
    background-image: var(--hex-strong);
    padding: 3.8rem 0 3.6rem;
}

.fs-steps {
    background-color: var(--bg-alt);
}

.fs-latest {
    background-color: var(--bg);
}

.fs-quote {
    background-color: var(--bg-alt);
    background-image: var(--hex-strong), linear-gradient(135deg, #121212, #1A2A1A);
}

.fs-topics {
    background-color: var(--bg);
}

.fs + .fs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    pointer-events: none;
}

.fs + .fs::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 6%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--line);
    pointer-events: none;
}

/* Блок 1 — hero */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    align-items: center;
}

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

.hero-title {
    font-size: clamp(2.1rem, 8vw, 4.5rem);
    line-height: 1.04;
    margin: 0 0 1.2rem;
}

.hero-lead {
    font-size: 1.02rem;
    color: var(--fg);
    max-width: 34em;
}

.hero-btn {
    margin-top: 0.6rem;
}

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

.hero-shape {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 26px rgba(163, 217, 165, 0.16));
}

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

.steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.steps-line {
    display: none;
}

.step {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border: 2px solid var(--gold);
    border-radius: 0;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2rem;
    color: var(--gold);
    background: rgba(11, 12, 11, 0.6);
    justify-self: start;
}

.step-body {
    min-width: 0;
    background: rgba(11, 12, 11, 0.45);
    border-left: 3px solid var(--line);
    padding: 1.2rem 1.3rem;
}

.step-title {
    margin: 0 0 0.4rem;
    font-size: 1.14rem;
}

.step-body p {
    margin: 0;
    font-size: 0.95rem;
}

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

.latest-more {
    margin: 1.8rem 0 0;
}

.empty-note {
    color: var(--muted);
}

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

.quote {
    position: relative;
    margin: 0;
    padding: 2.2rem 2rem 2rem 2.4rem;
    background: rgba(11, 12, 11, 0.55);
    border: 1px solid var(--line);
    border-radius: 0;
}

.quote::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 2.4rem;
    width: 6px;
    height: 2.4em;
    background: var(--gold);
}

.quote-text {
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 3.6vw, 3rem);
    line-height: 1.35;
    margin: 0 0 1rem;
    padding-left: 1.4rem;
    color: #E7EBE7;
}

.quote-author {
    display: block;
    padding-left: 1.4rem;
    font-family: var(--font-head);
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

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

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

.topic {
    display: block;
    min-width: 0;
    height: 168px;
    perspective: 900px;
}

.topic-inner {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.topic:hover .topic-inner,
.topic:focus .topic-inner {
    transform: rotateX(180deg);
}

.topic-face {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.3rem 1.4rem;
    border-bottom: 5px solid var(--accent);
    background: rgba(11, 12, 11, 0.5);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.topic-back {
    transform: rotateX(180deg);
    background: var(--bg-alt);
    justify-content: center;
    border-bottom-color: var(--gold);
}

.topic-icon {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    width: 26px;
    height: 26px;
}

.topic-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    color: #E7EBE7;
}

.topic-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--fg);
}

/* ===== 12. Контент записи ============================================= */

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

.entry-meta {
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

.entry-meta a {
    color: var(--gold);
}

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

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

.entry-content {
    font-size: 1.02rem;
}

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

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--gold);
    color: #E7EBE7;
}

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

.entry-content code,
.entry-content pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.88rem;
    background: var(--bg-dark);
    color: var(--accent);
}

.entry-content pre {
    display: block;
    padding: 1.1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6rem;
    border: 1px solid var(--line);
    font-size: 0.94rem;
}

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

th {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--bg-alt);
    color: #E7EBE7;
}

.page-links {
    margin: 1.4rem 0;
    font-family: var(--font-head);
    font-size: 0.82rem;
}

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

.entry-tags a {
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--line);
    color: var(--muted);
}

.entry-tags a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin: 2.4rem 0 0;
    padding: 1.4rem 1.4rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.post-nav-link {
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    max-width: 46%;
    min-width: 0;
}

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

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    box-shadow: inset 0 0 46px rgba(0, 0, 0, 0.7);
    padding: 1.6rem 1.5rem;
    align-self: start;
}

.widget {
    margin-bottom: 1.9rem;
}

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

.widget-title {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 1.02rem;
    margin: 0 0 0.9rem;
    color: #E7EBE7;
}

.widget-title::before {
    content: "";
    flex: none;
    width: 0.72em;
    height: 0.72em;
    background-image: linear-gradient(135deg, var(--gold), var(--accent));
}

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

.widget li {
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

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

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

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

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

.widget .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

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

.site-footer {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    border-top: 1px solid var(--line);
    padding: 2.8rem 0 1.6rem;
    color: var(--fg);
}

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

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

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li,
.site-footer .widget .textwidget {
    color: var(--fg);
}

.site-footer .widget-title {
    color: #E7EBE7;
}

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

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

.site-footer .widget .post-date {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

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

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

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

textarea {
    width: 100%;
    resize: vertical;
}

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

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

.comments-title {
    font-size: 1.3rem;
}

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

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

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

.comment-body {
    background: var(--bg-alt);
    border-left: 3px solid var(--line);
    padding: 1.1rem 1.3rem;
}

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

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

.comment-date {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

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

.comment-actions,
.comment-hold {
    font-family: var(--font-head);
    font-size: 0.76rem;
    color: var(--muted);
}

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

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

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

.comment-notes,
.comment-form .comment-form-cookies-consent label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
}

.comment-form input[type="submit"] {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 0;
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 3px var(--bg-dark);
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 16px rgba(163, 217, 165, 0.45);
}

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

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--accent);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
}

.cookie-text {
    margin: 0;
    min-width: 0;
    flex: 1 1 260px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--fg);
}

.cookie-accept {
    flex: none;
    font-size: 0.72rem;
    padding: 0.55rem 1.2rem;
}

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

@media (max-width: 600px) {
    .shell {
        width: 90%;
    }

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

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

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

    .fs {
        padding: 2.4rem 0;
    }

    .quote {
        padding: 1.8rem 1.4rem 1.6rem 1.6rem;
    }

    .quote-text,
    .quote-author {
        padding-left: 1rem;
    }

    .quote::before {
        left: 0.5rem;
    }

    .step-body {
        padding: 1.1rem 1.2rem;
    }

    .topic-face {
        padding: 1.2rem 1.2rem;
    }

    .post-nav {
        padding: 1.2rem 1.2rem;
    }

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

    .card-body {
        padding: 1.3rem 1.3rem 1.4rem;
    }

    .sidebar {
        padding: 1.4rem 1.3rem;
    }

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

@media (min-width: 601px) {
    .card {
        flex-direction: row;
    }

    .card-thumb-wrap {
        flex: 0 0 260px;
        width: auto;
    }

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

    .card-thumb-wrap img {
        height: 100%;
        aspect-ratio: auto;
    }

    .card-body {
        padding: 1.6rem 1.8rem;
    }

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

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

@media (min-width: 961px) {
    body {
        font-size: 18px;
    }

    .header-in {
        flex-wrap: nowrap;
        gap: 2rem;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: block;
        flex-basis: auto;
        margin-left: auto;
    }

    .nav-list {
        flex-direction: row;
        gap: 1.6rem;
        margin: 0;
    }

    .nav-list a {
        border-bottom: 2px solid transparent;
        padding: 0.3rem 0;
    }

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

    .site-title {
        font-size: 1.05rem;
        max-width: 34em;
    }

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

    .page-title,
    .entry-title {
        font-size: 2.5rem;
    }

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

    .steps-line {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 40px;
        height: 100%;
        margin-left: -20px;
        pointer-events: none;
    }

    .steps {
        gap: 2.4rem;
    }

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

    .step .step-num {
        grid-column: 1;
        justify-self: end;
    }

    .step .step-body {
        grid-column: 3;
    }

    .step-mirror .step-num {
        grid-column: 3;
        justify-self: start;
    }

    .step-mirror .step-body {
        grid-column: 1;
        border-left: none;
        border-right: 3px solid var(--line);
        text-align: right;
    }

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

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