/*
Theme Name: stalingradpictures-ru
Author: Павел Луганченко
Description: Создание, разработка и продвижение сайтов в Волгограде. Разрабатываем лендинги, корпоративные сайты и интернет-магазины, занимаемся SEO-продвижением и помогаем бизнесу привлекать новых клиентов из интернета.
Version: 1.1
Text Domain: stalingradpictures-ru
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
    --c-asphalt: #141110;
    --c-concrete: #1F1B17;
    --c-red: #E5321B;
    --c-bone: #F1E7D6;
    --c-muted: #9A8E7E;
    --c-volga: #5B7C8D;
    --c-darkline: #3A322C;
    --c-bone-dim: #d8cdb8;

    --shell: min(92%, 1180px);
    --shell-wide: min(94%, 1380px);

    --font-head: "Oswald", "PT Sans Narrow", "Arial Narrow", "Noto Sans", sans-serif;
    --font-body: "PT Sans", "Helvetica Neue", Arial, sans-serif;

    --skew: 6deg;
    --cut: 14px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background-color: var(--c-asphalt);
    background-image: url("images/bg-grain.png");
    background-size: 256px 256px;
    color: var(--c-bone);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-bone); text-decoration: underline; text-decoration-color: var(--c-red); text-underline-offset: 3px; }
a:hover { color: var(--c-red); }
p { margin: 0 0 1em; background: none; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--c-bone);
    margin: 0 0 0.6em;
    overflow-wrap: break-word;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.2rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin: 0 0 0.3em; }
blockquote {
    margin: 1.5em 0;
    padding: 1rem 1.4rem;
    border-left: 4px solid var(--c-red);
    background: var(--c-concrete);
    color: var(--c-bone);
    font-style: normal;
}
blockquote p:last-child { margin: 0; }
code, pre {
    font-family: "Courier New", monospace;
    background: var(--c-concrete);
    color: var(--c-bone);
}
pre { padding: 1rem; overflow: auto; border: 1px solid var(--c-darkline); }
code { padding: 0.1em 0.3em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.95rem; }
th, td { border: 1px solid var(--c-darkline); padding: 0.6em 0.8em; text-align: left; }
th { background: var(--c-concrete); color: var(--c-bone); text-transform: uppercase; }
hr { border: 0; height: 2px; background: var(--c-red); margin: 2em 0; }

/* ============ LAYOUT SHELL ============ */
.shell { width: var(--shell); margin-inline: auto; }
.shell-wide { width: var(--shell-wide); margin-inline: auto; }
.content-area { min-width: 0; }
.layout-single .content-area { width: 85%; margin-inline: auto; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
}
.layout-with-sidebar .content-area { width: auto; }
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .layout-single .content-area { width: 92%; }
}

/* ============ BUTTONS ============ */
.btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    background: var(--c-red);
    color: var(--c-bone);
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    padding: 0.85em 1.6em;
    border: 0;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: #ff3d24;
    color: var(--c-bone);
    transform: translate(-2px, -2px);
}
.btn--ghost {
    background: transparent;
    border: 2px solid var(--c-red);
    color: var(--c-bone);
}
.btn--ghost:hover { background: var(--c-red); }

/* ============ HEADER ============ */
.site-header {
    background-color: var(--c-asphalt);
    border-bottom: 2px solid var(--c-darkline);
    position: relative;
}
.site-header::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--c-red) 0, var(--c-red) 14px,
        transparent 14px, transparent 22px
    );
    opacity: 0.85;
}
.header-inner {
    width: var(--shell);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.9rem 0;
    min-height: 84px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex: 0 0 auto;
    min-width: 0;
}
.brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: block;
}
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.25rem;
    color: var(--c-bone);
    line-height: 1.05;
    overflow-wrap: break-word;
}
.brand-desc {
    color: var(--c-muted);
    font-size: 0.78rem;
    line-height: 1.3;
    margin-top: 2px;
    max-width: 360px;
    overflow-wrap: break-word;
}

/* Primary nav */
.main-nav { margin-left: auto; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.main-nav li { margin: 0; }
.main-nav a {
    display: block;
    color: var(--c-bone);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.92rem;
    padding: 0.5em 0.9em;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.12s ease, color 0.12s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--c-red);
    border-bottom-color: var(--c-red);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    background: var(--c-red);
    color: var(--c-bone);
    border: 0;
    font-family: var(--font-head);
    text-transform: uppercase;
    padding: 0.6em 1em;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.main-nav[hidden] { display: none !important; }

@media (max-width: 960px) {
    .header-inner { flex-wrap: wrap; min-height: 0; }
    .brand { flex: 1 1 auto; }
    .menu-toggle { display: inline-block; }
    .main-nav {
        margin-left: 0;
        flex-basis: 100%;
        order: 3;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav li { width: 100%; }
    .main-nav a { padding: 0.8em 0.6em; border-bottom: 1px solid var(--c-darkline); }
}

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: var(--c-muted);
    padding: 1rem 0 0.4rem;
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-red); }
.breadcrumbs .sep { color: var(--c-red); margin: 0 0.4em; }
.breadcrumbs span:last-child { color: var(--c-bone); }

/* ============ FILM STRIP ============ */
.filmstrip {
    height: 22px;
    background: var(--c-concrete);
    border-top: 2px solid var(--c-darkline);
    border-bottom: 2px solid var(--c-darkline);
    position: relative;
    overflow: hidden;
}
.filmstrip::before,
.filmstrip::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 5px;
    background-image: radial-gradient(circle, var(--c-asphalt) 1.6px, transparent 2px);
    background-size: 22px 5px;
    background-repeat: repeat-x;
}
.filmstrip::before { top: 3px; }
.filmstrip::after { bottom: 3px; }

/* ============ SECTION HEADINGS ============ */
.section-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.section-num {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    background: var(--c-red);
    color: var(--c-bone);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.5rem;
    display: grid;
    place-items: center;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.section-title-block { min-width: 0; }
.section-title-block h2 { margin-bottom: 0.2em; }
.section-title-block .section-sub {
    color: var(--c-muted);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
}

/* ============ FRONT PAGE SECTIONS ============ */
.front-section { padding: 3rem 0; position: relative; }
.front-section--dark { background: var(--c-asphalt); color: var(--c-bone); }
.front-section--concrete { background: var(--c-concrete); color: var(--c-bone); }
.front-section--bone { background: var(--c-bone); color: var(--c-asphalt); }
.front-section--bone h1,
.front-section--bone h2,
.front-section--bone h3,
.front-section--bone h4 { color: var(--c-asphalt); }

.front-section .shell { width: var(--shell); }

/* diagonal red beam decoration */
.beam {
    position: absolute;
    left: 0; right: 0;
    height: 14px;
    background: var(--c-red);
    transform: skewY(-3deg);
    pointer-events: none;
    opacity: 0.9;
}

/* Block 1 — tiles mosaic */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}
.tile {
    grid-column: span 3;
    background: var(--c-concrete);
    border: 1px solid var(--c-darkline);
    padding: 1.4rem 1.2rem 1.6rem;
    position: relative;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.tile-num {
    background: var(--c-red);
    color: var(--c-bone);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.2em 0.55em;
    display: inline-block;
    margin-bottom: 0.9rem;
    align-self: flex-start;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.tile-title {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.4rem;
    color: var(--c-bone);
    margin: 0 0 0.5em;
    line-height: 1.05;
}
.tile-desc { color: var(--c-muted); font-size: 0.92rem; line-height: 1.45; margin: 0; }
.tile:nth-child(1) { grid-column: span 4; transform: translateY(0); }
.tile:nth-child(2) { grid-column: span 4; transform: translateY(1.5rem); }
.tile:nth-child(3) { grid-column: span 4; }
.tile:nth-child(4) { grid-column: span 6; transform: translateY(1.2rem); }
.tile:nth-child(4) .tile-title { font-size: 1.7rem; }
@media (max-width: 960px) {
    .tiles-grid { gap: 0.8rem; }
    .tile,
    .tile:nth-child(n) { grid-column: span 6; transform: none; min-height: 160px; }
}
@media (max-width: 600px) {
    .tile,
    .tile:nth-child(n) { grid-column: span 12; transform: none; }
}

/* Block 2 — chart on graph paper */
.chart-wrap {
    background: var(--c-bone-dim);
    background-image:
        linear-gradient(var(--c-muted) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-muted) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: -1px -1px;
    padding: 2rem 1.6rem 1.6rem;
    border: 2px solid var(--c-darkline);
    position: relative;
    color: var(--c-asphalt);
    min-height: 320px;
}
.chart-wrap h3,
.chart-wrap .chart-label { color: var(--c-asphalt); }
.chart-svg { width: 100%; height: 240px; display: block; }
.chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.4rem;
}
.chart-stat {
    background: var(--c-asphalt);
    color: var(--c-bone);
    padding: 1rem 1.1rem;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.chart-stat .stat-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--c-red);
    display: block;
    line-height: 1;
    margin-bottom: 0.3em;
}
.chart-stat .stat-text {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: var(--c-bone);
}
@media (max-width: 600px) {
    .chart-stats { grid-template-columns: 1fr; }
}

/* Block 3 — stages timeline (bone bg) */
.stages {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    position: relative;
    padding: 2rem 0 1rem;
}
.stages::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    height: 6px;
    background: var(--c-red);
    transform: skewY(-3deg);
    z-index: 0;
}
.stage {
    flex: 1 1 18%;
    min-width: 150px;
    background: var(--c-bone);
    border: 2px solid var(--c-asphalt);
    padding: 1rem 0.9rem;
    margin: 0 0.4rem;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.stage-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--c-red);
    display: block;
    margin-bottom: 0.2em;
}
.stage-name {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--c-asphalt);
    margin: 0 0 0.4em;
    line-height: 1.05;
}
.stage-days {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    color: var(--c-muted);
}

/* Block 4 — Volgograd map (dark) */
.map-wrap {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
.map-stats { display: flex; flex-direction: column; gap: 1.4rem; }
.map-stat .num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--c-red);
    line-height: 1;
    display: block;
}
.map-stat .lbl {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    color: var(--c-bone);
}
.map-svg { width: 100%; height: auto; display: block; }
@media (max-width: 960px) {
    .map-wrap { grid-template-columns: 1fr; }
}

/* ============ LATEST POSTS / CARDS ============ */
.latest-posts { padding: 3rem 0; background: var(--c-asphalt); }
.latest-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
}
.latest-head h2 { margin: 0; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
@media (max-width: 960px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
    display: flex;
    flex-direction: column;
    background: var(--c-concrete);
    border: 1px solid var(--c-darkline);
    overflow: hidden;
    position: relative;
}
.card::before,
.card::after {
    content: "";
    display: block;
    height: 16px;
    background: var(--c-asphalt);
    background-image: radial-gradient(circle, var(--c-bone) 1.4px, transparent 1.8px);
    background-size: 18px 16px;
    background-repeat: repeat-x;
    background-position: center;
    flex: 0 0 auto;
}
.card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--c-asphalt);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { flex: 1; padding: 1.2rem 1.2rem 1.4rem; display: flex; flex-direction: column; min-width: 0; }
.card-title {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1.15rem;
    color: var(--c-bone);
    margin: 0 0 0.5em;
    line-height: 1.1;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--c-red); }
.card-excerpt { color: var(--c-muted); font-size: 0.92rem; margin: 0 0 1em; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-meta {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: var(--c-muted);
    margin-bottom: 0.9em;
}
.card-more {
    align-self: flex-start;
    color: var(--c-bone);
    text-decoration: none;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.82rem;
    border-bottom: 2px solid var(--c-red);
    padding-bottom: 2px;
}
.card-more:hover { color: var(--c-red); }

.latest-cta { margin-top: 2rem; }

/* ============ SINGLE / PAGE / ARCHIVE ============ */
.page-head {
    padding: 2.4rem 0 1rem;
    background: var(--c-asphalt);
    border-bottom: 2px solid var(--c-darkline);
}
.page-head h1 { margin: 0; }
.entry { padding: 2rem 0 3rem; }
.entry-meta {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    color: var(--c-muted);
    margin-bottom: 1.4rem;
    border-bottom: 1px solid var(--c-darkline);
    padding-bottom: 0.6rem;
}
.entry-content { min-width: 0; }
.entry-content h2,
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { margin: 1.4em 0; border: 1px solid var(--c-darkline); }

/* ============ SIDEBAR ============ */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--c-concrete);
    border: 1px solid var(--c-darkline);
    padding: 1.2rem 1.1rem;
    margin-bottom: 1.4rem;
    color: var(--c-bone);
}
.sidebar .widget-title {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--c-red);
    margin: 0 0 0.9em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--c-darkline);
}
.sidebar .widget a { color: var(--c-bone); text-decoration-color: var(--c-red); }
.sidebar .widget a:hover { color: var(--c-red); }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { padding: 0.4em 0; border-bottom: 1px dotted var(--c-darkline); }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar .widget_recent_entries .post-date {
    display: block;
    color: var(--c-muted);
    font-family: var(--font-head);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2em;
}
.sidebar p { color: var(--c-bone); }

/* ============ PAGINATION ============ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin: 2rem 0;
    font-family: var(--font-head);
}
.pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.6em;
    background: var(--c-concrete);
    color: var(--c-bone);
    border: 1px solid var(--c-darkline);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.12s ease, color 0.12s ease;
}
.pagination .page-numbers:hover { background: var(--c-red); color: var(--c-bone); }
.pagination .page-numbers.current { background: var(--c-red); color: var(--c-bone); border-color: var(--c-red); }
.pagination .page-numbers.dots { border: 0; background: transparent; color: var(--c-muted); }

/* ============ 404 ============ */
.error-404 { padding: 4rem 0; text-align: center; }
.error-404 .big-num {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 12rem);
    color: var(--c-red);
    line-height: 0.9;
    margin: 0 0 0.4em;
}
.search-form-inline {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    max-width: 520px;
    margin: 1.5rem auto;
}
.search-form-inline input[type="search"] {
    flex: 1;
    background: var(--c-concrete);
    border: 1px solid var(--c-darkline);
    color: var(--c-bone);
    padding: 0.7em 0.9em;
    font-family: var(--font-body);
    min-width: 0;
}
.search-form-inline input[type="search"]::placeholder { color: var(--c-muted); }
.search-form-inline button,
.search-form-inline input[type="submit"] {
    padding: 0.7em 1.2em;
}

/* ============ COMMENTS ============ */
.comments-area { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--c-darkline); }
.comments-title { font-size: 1.4rem; margin-bottom: 1em; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2em; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--c-darkline); }
.comment-list .children { list-style: none; padding-left: 1.5rem; margin: 0.5em 0 0; border-left: 2px solid var(--c-red); }
.comment-author { font-family: var(--font-head); text-transform: uppercase; color: var(--c-bone); }
.comment-author .says { color: var(--c-muted); font-family: var(--font-body); text-transform: none; }
.comment-metadata { font-family: var(--font-head); font-size: 0.75rem; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.6em; }
.comment-metadata a { color: var(--c-muted); }
.comment-body { color: var(--c-bone); }
.reply a {
    display: inline-block;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--c-bone);
    border-bottom: 2px solid var(--c-red);
    text-decoration: none;
    padding-bottom: 1px;
}
.comment-respond { margin-top: 2em; }
.comment-reply-title { font-size: 1.2rem; }
.comment-form { display: grid; gap: 0.9rem; }
.comment-form p { margin: 0; }
.comment-form label {
    display: block;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--c-muted);
    margin-bottom: 0.3em;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--c-concrete);
    border: 1px solid var(--c-darkline);
    color: var(--c-bone);
    padding: 0.7em 0.9em;
    font-family: var(--font-body);
    font-size: 1rem;
}
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5em; }
.comment-form .comment-form-cookies-consent label { margin: 0; text-transform: none; font-family: var(--font-body); font-size: 0.9rem; }
.comment-form .submit { align-self: start; }
.comment-notes { color: var(--c-muted); font-size: 0.88rem; }
.logged-in-as { color: var(--c-muted); font-size: 0.88rem; }
.must-log-in { color: var(--c-muted); }

/* ============ FOOTER ============ */
.site-footer {
    background: var(--c-asphalt);
    border-top: 4px solid var(--c-red);
    padding: 3rem 0 0;
    color: var(--c-bone);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: var(--shell);
    margin-inline: auto;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h3,
.footer-col .widget-title {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--c-red);
    margin: 0 0 0.9em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--c-darkline);
}
.footer-col { color: var(--c-bone); }
.footer-col p { color: var(--c-bone); }
.footer-col a { color: var(--c-bone); text-decoration: underline; text-decoration-color: var(--c-red); }
.footer-col a:hover { color: var(--c-red); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 0.35em 0; border-bottom: 1px dotted var(--c-darkline); }
.footer-col ul li:last-child { border-bottom: 0; }

.footer-bottom {
    width: var(--shell);
    margin-inline: auto;
    padding: 1.4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--c-darkline);
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    color: var(--c-muted);
    text-align: center;
}

/* ============ COOKIE BANNER ============ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--c-concrete);
    border-top: 3px solid var(--c-red);
    color: var(--c-bone);
    padding: 1rem 1.2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; color: var(--c-bone); }
.cookie-banner .btn { flex: 0 0 auto; }
@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
    .cookie-banner p { flex: none; }
}

/* ============ SKIP LINK & A11Y ============ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-red);
    color: var(--c-bone);
    padding: 0.6em 1em;
    font-family: var(--font-head);
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2000;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--c-red);
    outline-offset: 2px;
}

/* ============ BLOCK EDITOR ALIGNMENT ============ */
.alignleft { float: left; margin: 0 1.2em 0.8em 0; }
.alignright { float: right; margin: 0 0 0.8em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* small util */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
