/*
Theme Name: dds_maximum-web.ru
Author: Артём Звягинцев
Description: Тёмная контрастная тема для образовательного блога-путеводителя по самостоятельному изучению IT-специальностей.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: itmap
*/

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

:root {
    --bg: #0B0E14;
    --bg-alt: #131A24;
    --bg-foot: #080B10;
    --bg-side: #111820;
    --bg-plate: #05070A;
    --line: #2A3A4A;
    --ink: #E8EDF2;
    --ink-dim: #6A7A8A;
    --acc: #00E5C8;
    --acc2: #FFD700;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: "Inter", "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(30, 42, 54, 0.55) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(-45deg, rgba(30, 42, 54, 0.55) 0 1px, transparent 1px 28px);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: transparent;
}

body::after {
    content: "";
    position: fixed;
    right: -80px;
    bottom: -90px;
    width: 420px;
    height: 420px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    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 200 200'%3E%3Cpath d='M100 6a94 94 0 1 1-66 160' fill='none' stroke='%2300E5C8' stroke-width='16'/%3E%3Cpath d='M150 40a70 70 0 0 0-96 8' fill='none' stroke='%2300E5C8' stroke-width='10'/%3E%3C/svg%3E");
}

body.home::before {
    content: "";
    position: fixed;
    left: -70px;
    top: 40px;
    width: 300px;
    height: 300px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    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 200 200'%3E%3Cpath d='M40 100a60 60 0 1 1 120 0 60 60 0 0 1-120 0z' fill='none' stroke='%23FFD700' stroke-width='14' stroke-dasharray='120 40'/%3E%3C/svg%3E");
}

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

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

p {
    margin: 0 0 1.1em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.18;
    margin: 0 0 0.7em;
    color: var(--ink);
}

h1 { font-size: 4.2rem; text-transform: uppercase; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

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

.num {
    font-family: var(--mono);
    color: var(--acc2);
    background: var(--bg-plate);
    border: 1px solid rgba(0, 229, 200, 0.5);
    padding: 0.1em 0.45em;
    display: inline-block;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.35;
}

.num-big {
    font-size: 2.6rem;
    padding: 0.12em 0.32em;
}

.cap-letter {
    color: var(--acc2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.55);
}

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

.btn {
    position: relative;
    display: inline-block;
    padding: 0.9rem 1.7rem;
    background: var(--acc);
    color: #0B0E14;
    border: 0;
    border-radius: 0;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: background 0.18s ease, transform 0.18s ease;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid var(--acc2);
    pointer-events: none;
}

.btn:hover,
.btn:focus {
    background: var(--acc2);
    transform: translateY(2px);
    color: #0B0E14;
}

.btn:hover::after,
.btn:focus::after {
    border-color: var(--acc);
}

.btn-small {
    padding: 0.62rem 1.2rem;
    font-size: 0.72rem;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

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

.btn-ghost::after {
    border-color: rgba(255, 215, 0, 0.6);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--acc2);
    color: #0B0E14;
}

.entry-body a,
.card-excerpt a,
.widget a,
.crumbs a,
.foot-note a {
    color: var(--acc);
    text-decoration: none;
    background-image: radial-gradient(circle at 2px 1.5px, var(--acc2) 1.6px, transparent 1.8px);
    background-repeat: repeat-x;
    background-position: 0 100%;
    background-size: 9px 0;
    padding-bottom: 3px;
    transition: background-size 0.15s ease;
}

.entry-body a:hover,
.card-excerpt a:hover,
.widget a:hover,
.crumbs a:hover,
.foot-note a:hover {
    background-size: 9px 3px;
}

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

.site-top {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
    position: static;
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

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

.brand-mark {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

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

.brand-name {
    font-weight: 800;
    font-size: 0.86rem;
    line-height: 1.35;
    letter-spacing: 0.03em;
    color: var(--ink);
}

.brand-tag {
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--ink-dim);
    margin-top: 0.25rem;
}

.nav-switch {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--acc);
    border: 1px solid var(--acc);
    border-radius: 0;
    padding: 0.55rem 1rem;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

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

.site-nav {
    flex: 1 1 100%;
    min-width: 0;
}

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

.nav-list a {
    display: inline-block;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 3px solid transparent;
}

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

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

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

.layout-single,
.layout-with-sidebar {
    padding-bottom: 3.4rem;
}

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

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

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

.crumbs {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--ink-dim);
    padding: 1.4rem 0 1.8rem;
}

.crumbs .sep {
    color: var(--acc);
    margin: 0 0.35rem;
}

.page-head,
.entry-head {
    font-size: 4.2rem;
    margin-bottom: 1rem;
}

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

.fs {
    padding: 3rem 2.2rem;
    background: var(--bg);
    margin-bottom: 0;
}

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

.sec-title {
    position: relative;
    padding-left: 1.2rem;
    font-size: 2rem;
    text-transform: uppercase;
}

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

.sec-lead {
    color: var(--ink-dim);
    max-width: 62ch;
    margin-bottom: 2rem;
}

.zig-split {
    height: 14px;
    background-image: repeating-linear-gradient(135deg, var(--acc) 0 3px, transparent 3px 11px);
    opacity: 0.3;
}

.dash-split {
    height: 6px;
    width: 46%;
    margin-left: 0;
    background-image: repeating-linear-gradient(to right, var(--acc2) 0 10px, transparent 10px 20px);
    opacity: 0.55;
}

/* Блок 1 — hero */

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

.hero-image {
    display: block;
    width: 100%;
    height: clamp(360px, 54vh, 540px);
    object-fit: cover;
    filter: brightness(0.78) saturate(1.05);
}

.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.6rem 2.4rem 4.6rem;
    min-width: 0;
}

.hero-title {
    font-size: 4.2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-sub {
    max-width: 46ch;
    font-size: 1.05rem;
    color: #FFFFFF;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

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

.hero-owner {
    position: absolute;
    left: 2.4rem;
    bottom: 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(5, 7, 10, 0.78);
    border: 1px solid var(--line);
    padding: 0.45rem 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-dim);
}

.hero-owner-arrow {
    color: var(--acc);
    font-size: 0.95rem;
}

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

.path-line {
    list-style: none;
    margin: 0;
    padding: 0;
}

.path-step {
    display: grid;
    grid-template-columns: minmax(0, 92px) minmax(0, 1fr);
    align-items: center;
    border: 1px solid transparent;
    padding: 0.55rem 0.9rem 0.55rem 0;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.path-step:hover {
    border-color: var(--acc2);
    background: rgba(255, 215, 0, 0.05);
}

.path-year {
    text-align: right;
    padding-right: 1.1rem;
    font-size: 0.9rem;
}

.path-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem 0 0.85rem 1.7rem;
    border-left: 2px dashed rgba(0, 229, 200, 0.65);
}

.path-body::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--bg-alt);
    border: 2px solid var(--acc);
}

.path-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.path-text {
    font-weight: 700;
    letter-spacing: 0.03em;
    min-width: 0;
}

/* Блок «Свежие материалы» */

.feed-more {
    margin: 2rem 0 0;
}

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

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

.fs-stats {
    background:
        repeating-linear-gradient(45deg, rgba(0, 229, 200, 0.06) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(0, 229, 200, 0.06) 0 1px, transparent 1px 24px),
        linear-gradient(150deg, #0B0E14 0%, #1A2A30 100%);
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.stat-plate {
    flex: 1 1 180px;
    min-width: 0;
    background: var(--bg-plate);
    border: 1px solid rgba(0, 229, 200, 0.55);
    padding: 1.6rem 1.3rem;
    text-align: center;
}

.stat-plate .num-big {
    margin-bottom: 0.6rem;
}

.stat-cap {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--ink);
}

.stat-slash {
    align-self: center;
    color: var(--acc);
    font-size: 2rem;
    font-weight: 800;
}

.stats-note {
    color: var(--ink-dim);
    font-size: 0.88rem;
    margin: 0;
    max-width: 70ch;
}

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

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

.map-cell {
    min-width: 0;
    transition: filter 0.2s ease;
}

.map-tile {
    display: flex;
    align-items: center;
    min-height: 130px;
    padding: 1.9rem 1.7rem;
    color: #0B0E14;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    transition: transform 0.2s ease;
}

.tile-cyan { background: var(--acc); }
.tile-gold { background: var(--acc2); }

.map-cell:hover {
    filter: drop-shadow(0 10px 0 rgba(255, 215, 0, 0.45));
}

.map-cell:hover .map-tile {
    transform: translateX(10px);
}

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

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #0F141C;
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.card::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 1px solid rgba(0, 229, 200, 0.45);
    pointer-events: none;
    z-index: 1;
}

.card::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 0;
    height: 0;
    border-top: 13px solid var(--acc);
    border-right: 13px solid transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 2;
}

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

.card:hover::after {
    border-color: rgba(255, 215, 0, 0.55);
}

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

.card-thumb {
    padding: 6px 6px 0;
}

.card-thumb a {
    display: block;
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    clip-path: polygon(0 16px, 16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

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

.card-meta {
    margin: 0 0 0.8rem;
    font-size: 0.74rem;
}

.card-title {
    font-size: 1.22rem;
    margin: 0 0 0.7rem;
    letter-spacing: 0.03em;
}

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

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

.card-excerpt {
    color: #C3CCD6;
    font-size: 0.94rem;
    flex: 1;
    min-width: 0;
}

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

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

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

.entry {
    min-width: 0;
}

.entry-meta {
    font-size: 0.76rem;
    margin-bottom: 1.6rem;
}

.entry-cover {
    margin: 0 0 1.8rem;
    border: 1px solid var(--line);
}

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

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

.entry-body h2,
.entry-body h3,
.entry-body h4 {
    margin-top: 2rem;
}

.entry-body img {
    display: block;
    height: auto;
    border: 1px solid var(--line);
}

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

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

.entry-body ul li::marker {
    color: var(--acc);
}

.entry-body ol li::marker {
    color: var(--acc2);
    font-family: var(--mono);
}

.entry-body blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.6rem 1.8rem 1.6rem 2.8rem;
    background: linear-gradient(140deg, #0B0E14, #1A2A30);
    border: 1px solid var(--line);
    font-size: 1.08rem;
}

.entry-body blockquote::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 1.8rem;
    width: 16px;
    height: 56px;
    background: repeating-linear-gradient(to bottom, var(--acc) 0 4px, transparent 4px 16px);
}

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

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

.entry-body th,
.entry-body td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-body th {
    background: var(--bg-alt);
    color: var(--acc);
    font-weight: 700;
}

.entry-body code,
.entry-body pre {
    font-family: var(--mono);
    background: var(--bg-plate);
    color: var(--acc2);
    border: 1px solid rgba(0, 229, 200, 0.4);
}

.entry-body code {
    padding: 0.1em 0.4em;
    font-size: 0.9em;
}

.entry-body pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    min-width: 0;
}

.entry-tags {
    margin: 2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-chip {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--acc2);
    background: var(--bg-plate);
    border: 1px solid rgba(0, 229, 200, 0.5);
    text-decoration: none;
}

.tag-chip:hover {
    border-color: var(--acc2);
}

.entry-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.4rem 0 0;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--line);
}

.entry-nav-link {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    max-width: 46%;
    min-width: 0;
}

.entry-nav-next {
    text-align: right;
    margin-left: auto;
}

.entry-nav-link:hover {
    color: var(--acc);
}

.arch-note {
    color: var(--ink-dim);
    margin-bottom: 1.8rem;
}

.lost-text {
    max-width: 60ch;
    color: #C3CCD6;
}

.lost-back {
    margin-top: 1.6rem;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.85rem;
    background: transparent;
}

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

.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #0B0E14;
    font-weight: 700;
}

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

.comments-zone .navigation .page-numbers {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-family: var(--mono);
    margin-right: 0.4rem;
}

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

.widget {
    margin-bottom: 1.8rem;
}

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

.widget-title {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 0.9rem;
}

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

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

.widget li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(42, 58, 74, 0.9);
}

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

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

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

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

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

.sidebar .post-date,
.sidebar .rss-date {
    display: block;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-dim);
    margin-top: 0.25rem;
}

.site-bottom {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.8rem;
    margin-top: 0;
}

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

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

.site-bottom .widget,
.site-bottom .widget p,
.site-bottom .widget li,
.site-bottom .textwidget {
    color: #D3DBE3;
    font-size: 0.92rem;
}

.site-bottom .widget-title {
    color: var(--ink);
}

.site-bottom .widget a {
    color: var(--acc);
    text-decoration: none;
}

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

.site-bottom .post-date {
    display: block;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--ink-dim);
}

.foot-note {
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--ink-dim);
}

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

.search-box {
    margin: 1.6rem 0 0;
}

.search-label {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 0.5rem;
}

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

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

.search-field:focus,
.comments-zone input:focus,
.comments-zone textarea:focus {
    outline: none;
    border-color: var(--acc);
}

.comments-zone {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comments-head {
    font-size: 1.4rem;
    text-transform: uppercase;
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    padding-left: 1.4rem;
    border-left: 1px dashed rgba(0, 229, 200, 0.4);
    margin-top: 1rem;
}

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

.comment-inner {
    background: var(--bg-side);
    border: 1px solid var(--line);
    padding: 1.2rem 1.4rem;
}

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

.comment-author {
    font-weight: 800;
    letter-spacing: 0.05em;
}

.comment-date {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--ink-dim);
}

.comment-hold {
    color: var(--acc2);
    font-size: 0.85rem;
}

.comment-actions a {
    color: var(--acc);
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comment-respond {
    margin-top: 2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.6rem 1.6rem 1.2rem;
}

.comment-reply-title {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.comments-zone label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim);
    margin-bottom: 0.35rem;
}

.comments-zone textarea {
    width: 100%;
    display: block;
}

.comments-zone .comment-form-author,
.comments-zone .comment-form-email,
.comments-zone .comment-form-url {
    margin-bottom: 1rem;
}

.comments-zone .comment-form-author input,
.comments-zone .comment-form-email input,
.comments-zone .comment-form-url input {
    width: 100%;
}

.comments-zone .form-submit {
    margin: 1.2rem 0 0;
}

.comments-closed {
    color: var(--ink-dim);
    font-size: 0.9rem;
}

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

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

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

.cookie-text {
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
    font-size: 0.86rem;
    color: #D3DBE3;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.8rem; }
    .page-head,
    .entry-head,
    .hero-title { font-size: 2.8rem; }

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

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

    .nav-switch {
        display: inline-flex;
    }

    .site-nav {
        display: none;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 1rem;
    }

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

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

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.5rem; }
    .page-head,
    .entry-head,
    .hero-title { font-size: 2.1rem; }
    .sec-title { font-size: 1.5rem; }
    .num-big { font-size: 2rem; }

    .fs {
        padding: 2.2rem 1.3rem;
    }

    .fs-hero {
        padding: 0;
    }

    .hero-inner {
        padding: 1.8rem 1.3rem 4.2rem;
    }

    .hero-image {
        height: clamp(400px, 70vh, 560px);
    }

    .hero-owner {
        left: 1.3rem;
        bottom: 1.1rem;
    }

    .path-step {
        grid-template-columns: minmax(0, 1fr);
        padding: 0.4rem 0.8rem;
    }

    .path-year {
        text-align: left;
        padding-right: 0;
        padding-bottom: 0.4rem;
    }

    .path-body {
        padding-left: 1.3rem;
    }

    .stat-slash {
        display: none;
    }

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

    .map-tile {
        min-height: 100px;
        font-size: 1.1rem;
        padding: 1.4rem 1.2rem;
    }

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

    .sidebar {
        padding: 1.3rem 1.1rem;
    }

    .comments-zone .children {
        padding-left: 0.8rem;
    }

    .cookie-bar {
        padding: 1rem 1.1rem;
    }
}
