/*
Theme Name: dds_fullmetalcrmc.com
Author: Сергеев Тихон
Description: Бизнес-консалтинг: стратегии и развитие компаний. Премиальная тема с индустриальной эстетикой и металлическими акцентами.
Version: 1.1
Text Domain: dds_fullmetalcrmc
*/

/* ======================== ОСНОВЫ ======================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: #1E1E1E;
    color: #E0E0E0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    background-image:
        linear-gradient(rgba(90, 108, 122, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(90, 108, 122, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(201, 160, 61, 0.04) 0, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(90, 108, 122, 0.04) 0, transparent 40%);
    background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: #C9A03D; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #E5BD63; text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 1.4em 0 0.6em;
    line-height: 1.25;
}
h1 { font-size: 2.4em; letter-spacing: 0.08em; }
h2 { font-size: 1.85em; }
h3 { font-size: 1.45em; }
h4 { font-size: 1.2em; }

p { margin: 0 0 1em; line-height: 1.7; }

code, pre, .stat-number {
    font-family: "JetBrains Mono", "Courier New", monospace;
}
code {
    background: #2A2A2A;
    color: #C9A03D;
    padding: 0.15em 0.4em;
    border: 1px solid #3A3A3A;
    font-size: 0.9em;
}
pre {
    background: #2A2A2A;
    border-left: 3px solid #C9A03D;
    padding: 1em 1.2em;
    overflow-x: auto;
    color: #E0E0E0;
}

blockquote {
    border-left: 4px solid #C9A03D;
    margin: 1.5em 0;
    padding: 0.6em 1.2em;
    background: rgba(90, 108, 122, 0.08);
    color: #D0D0D0;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #3A3A3A;
}
th, td {
    border: 1px solid #3A3A3A;
    padding: 0.7em 1em;
    text-align: left;
}
th {
    background: #2A2A2A;
    color: #C9A03D;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.05em;
}

ul, ol { padding-left: 1.5em; }
li { margin: 0.3em 0; }

hr {
    border: none;
    border-top: 1px solid #3A3A3A;
    margin: 2em 0;
}

::selection { background: #C9A03D; color: #1E1E1E; }

/* ======================== СЕТКА ======================== */
.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    padding: 40px 0 60px;
}

.layout {
    display: grid;
    gap: 40px;
}
.layout.has-sidebar { grid-template-columns: 67% 27%; gap: 6%; }
.layout.no-sidebar { grid-template-columns: 85%; justify-content: center; }
.layout.full-width { grid-template-columns: 85%; justify-content: center; }

@media (max-width: 960px) {
    .layout.has-sidebar { grid-template-columns: 1fr; gap: 32px; }
    .layout.no-sidebar, .layout.full-width { grid-template-columns: 1fr; }
}

/* ======================== ШАПКА ======================== */
.site-header {
    background: linear-gradient(180deg, #232323 0%, #1A1A1A 100%);
    border-bottom: 2px solid #2F2F2F;
    position: relative;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A03D 20%, #5A6C7A 50%, #C9A03D 80%, transparent);
    opacity: 0.6;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}
.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(201, 160, 61, 0.25));
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: "Oswald", "Arial Narrow", sans-serif;
    font-size: 1.15em;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-shadow: 0 1px 0 #000, 0 0 10px rgba(201, 160, 61, 0.15);
}
.brand-tagline {
    font-size: 0.82em;
    color: #9A9A9A;
    margin-top: 4px;
    line-height: 1.3;
    max-width: 480px;
}

/* ======================== НАВИГАЦИЯ ======================== */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #5A6C7A;
    color: #E0E0E0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #C9A03D;
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #C9A03D;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}
.main-nav li { margin: 0; }
.main-nav a {
    color: #E0E0E0;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.92em;
    position: relative;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #C9A03D;
    border-color: #5A6C7A;
    box-shadow: 0 0 12px rgba(90, 108, 122, 0.4), inset 0 0 8px rgba(90, 108, 122, 0.15);
    text-decoration: none;
}

/* Адаптив навигации */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 78%;
        max-width: 340px;
        height: 100vh;
        background: #1A1A1A;
        border-left: 1px solid #2F2F2F;
        background-image:
            radial-gradient(circle at 12px 12px, rgba(90, 108, 122, 0.12) 1.5px, transparent 2.5px);
        background-size: 24px 24px;
        padding: 80px 24px 24px;
        transition: right 0.35s ease;
        overflow-y: auto;
        z-index: 100;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    }
    .main-nav.is-open { right: 0; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a {
        border-bottom: 1px solid #2A2A2A;
        padding: 14px 12px;
    }
    .nav-close {
        position: absolute;
        top: 18px; right: 18px;
        background: transparent;
        border: 1px solid #5A6C7A;
        color: #C9A03D;
        width: 40px;
        height: 40px;
        font-size: 1.4em;
        cursor: pointer;
        line-height: 1;
    }
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 99;
    }
    .nav-overlay[hidden] { display: none !important; }
}

@media (min-width: 961px) {
    .nav-close { display: none; }
}

/* ======================== ОСНОВНОЙ КОНТЕНТ ======================== */
.content-main { min-width: 0; }

article.post,
article.page,
.content-block {
    background: #2A2A2A;
    border: 1px solid #353535;
    padding: 32px 36px;
    margin-bottom: 28px;
    position: relative;
}
article.post::before,
article.page::before,
.content-block::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 60px;
    height: 2px;
    background: #C9A03D;
}

.entry-title {
    margin-top: 0;
    font-size: 2em;
}
.entry-meta {
    color: #9A9A9A;
    font-size: 0.88em;
    margin-bottom: 1.2em;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
}
.entry-meta a { color: #C9A03D; }
.entry-meta span + span::before {
    content: "·";
    margin: 0 8px;
    color: #5A6C7A;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child  { margin-bottom: 0; }

@media (max-width: 600px) {
    article.post, article.page, .content-block { padding: 22px 18px; }
}

/* ======================== КАРТОЧКИ ЗАПИСЕЙ ======================== */
.posts-list {
    display: grid;
    gap: 28px;
}

.card {
    background: #2A2A2A;
    border: 1px solid #353535;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}
.card:hover {
    border-color: #5A6C7A;
    box-shadow: 0 0 0 1px rgba(90, 108, 122, 0.2), 0 14px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}
.card::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #C9A03D 0%, transparent 60%);
    pointer-events: none;
}

.card-thumb-wrap {
    flex: 0 0 auto;
    overflow: hidden;
    position: relative;
    background: #1E1E1E;
}
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    padding: 22px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-title {
    margin: 0 0 10px;
    font-size: 1.25em;
}
.card-title a { color: #FFFFFF; text-decoration: none; }
.card-title a:hover { color: #C9A03D; }

.card-meta {
    color: #8E8E8E;
    font-size: 0.8em;
    margin-bottom: 12px;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
}

.card-excerpt { color: #C8C8C8; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    margin-top: 16px;
    align-self: flex-start;
}

/* Горизонтальные карточки на главной */
.featured-posts .card {
    flex-direction: row;
}
.featured-posts .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.featured-posts .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.featured-posts .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .featured-posts .card { flex-direction: column; }
    .featured-posts .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .featured-posts .card-thumb-wrap a { position: static; }
    .featured-posts .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ======================== КНОПКИ ======================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(180deg, #3A3A3A 0%, #232323 100%);
    color: #FFFFFF;
    border: 1px solid #5A6C7A;
    text-decoration: none;
    font-family: "Oswald", "Arial Narrow", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9em;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: all 0.25s ease;
    box-shadow: 0 2px 0 #0E0E0E, 0 4px 14px rgba(0, 0, 0, 0.4);
    position: relative;
}
.btn:hover {
    color: #C9A03D;
    transform: translateY(-2px);
    box-shadow: 0 4px 0 #0E0E0E, 0 10px 22px rgba(0, 0, 0, 0.5),
                inset 0 -2px 0 0 rgba(201, 160, 61, 0.55);
    text-decoration: none;
}
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 #0E0E0E; }

.btn-primary {
    background: linear-gradient(180deg, #C9A03D 0%, #A5822C 100%);
    color: #1E1E1E;
    border-color: #C9A03D;
}
.btn-primary:hover {
    color: #1E1E1E;
    background: linear-gradient(180deg, #E5BD63 0%, #C9A03D 100%);
    box-shadow: 0 4px 0 #0E0E0E, 0 12px 24px rgba(201, 160, 61, 0.35),
                inset 0 -2px 0 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
    background: transparent;
    border-color: #C9A03D;
    color: #C9A03D;
}
.btn-ghost:hover { background: rgba(201, 160, 61, 0.1); color: #E5BD63; }

/* ======================== САЙДБАР ======================== */
.sidebar { min-width: 0; }
.widget {
    background: #2A2A2A;
    border: 1px solid #353535;
    padding: 22px 24px;
    margin-bottom: 24px;
    position: relative;
}
.widget::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 40px;
    height: 2px;
    background: #5A6C7A;
}
.widget-title,
.widget h2 {
    margin: 0 0 14px;
    font-size: 1.1em;
    color: #C9A03D;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #3A3A3A;
    padding-bottom: 10px;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px dashed #353535;
}
.widget li:last-child { border-bottom: none; }
.widget li a { color: #E0E0E0; }
.widget li a:hover { color: #C9A03D; text-decoration: none; }
.widget li::before {
    content: "▸";
    color: #5A6C7A;
    margin-right: 8px;
    font-size: 0.85em;
}

/* ======================== ХЛЕБНЫЕ КРОШКИ ======================== */
.breadcrumbs {
    padding: 14px 0 18px;
    color: #8E8E8E;
    font-size: 0.88em;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.03em;
}
.breadcrumbs a {
    color: #B5B5B5;
}
.breadcrumbs a:hover { color: #C9A03D; text-decoration: none; }
.breadcrumbs .sep {
    margin: 0 8px;
    color: #5A6C7A;
}
.breadcrumbs .current { color: #C9A03D; }

/* ======================== ПАГИНАЦИЯ ======================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 32px 0 12px;
    justify-content: center;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: #2A2A2A;
    color: #E0E0E0;
    border: 1px solid #3A3A3A;
    text-decoration: none;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9em;
    transition: all 0.2s ease;
}
.pagination a:hover {
    color: #C9A03D;
    border-color: #5A6C7A;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(90, 108, 122, 0.25);
}
.pagination .current {
    background: linear-gradient(180deg, #C9A03D 0%, #A5822C 100%);
    color: #1E1E1E;
    border-color: #C9A03D;
    font-weight: 700;
}

/* ======================== ПОДВАЛ ======================== */
.site-footer {
    background: #161616;
    border-top: 2px solid #2F2F2F;
    padding: 50px 0 26px;
    margin-top: 60px;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -2px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5A6C7A 30%, #C9A03D 50%, #5A6C7A 70%, transparent);
    opacity: 0.6;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 30px;
}
@media (max-width: 960px) {
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.footer-col .widget::before { display: none; }
.footer-col .widget-title,
.footer-col .widget h2 {
    color: #C9A03D;
    border-bottom: 1px solid #2F2F2F;
}
.footer-col .widget li::before { color: #5A6C7A; }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #2A2A2A;
    text-align: center;
    color: #8E8E8E;
    font-size: 0.88em;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
}

/* ======================== ГЛАВНАЯ — БЛОКИ ======================== */
.hero {
    background: linear-gradient(160deg, #232323 0%, #181818 100%);
    border: 1px solid #353535;
    padding: 56px 48px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(90, 108, 122, 0.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(90, 108, 122, 0.06) 25%, transparent 25%);
    background-size: 30px 30px;
    pointer-events: none;
    opacity: 0.5;
}
.hero > * { position: relative; }

.hero-eyebrow {
    color: #C9A03D;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 16px;
}
.hero h1 {
    margin: 0 0 18px;
    font-size: 2.6em;
    line-height: 1.15;
}
.hero p {
    font-size: 1.1em;
    color: #C5C5C5;
    max-width: 720px;
    margin-bottom: 26px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 600px) {
    .hero { padding: 36px 22px; }
    .hero h1 { font-size: 1.85em; }
}

/* Тематический блок — 3 услуги */
.section {
    margin: 36px 0;
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
    border-bottom: 1px solid #2F2F2F;
    padding-bottom: 12px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .section-tag {
    color: #5A6C7A;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85em;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
    background: #232323;
    border: 1px solid #353535;
    padding: 28px 26px;
    position: relative;
    transition: all 0.25s ease;
}
.feature:hover {
    border-color: #5A6C7A;
    box-shadow: 0 0 0 1px rgba(90, 108, 122, 0.2), 0 12px 28px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}
.feature-icon {
    width: 48px;
    height: 48px;
    border: 1px solid #C9A03D;
    color: #C9A03D;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.2em;
    font-weight: 700;
}
.feature h3 { margin: 0 0 10px; font-size: 1.15em; color: #FFFFFF; }
.feature p { margin: 0; color: #C0C0C0; font-size: 0.95em; }

/* Шаги / методология */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.step {
    background: #232323;
    border: 1px solid #353535;
    padding: 24px 22px;
    position: relative;
    counter-increment: step;
}
.step::before {
    content: "0" counter(step);
    display: block;
    font-family: "JetBrains Mono", monospace;
    color: #C9A03D;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.step h4 { margin: 0 0 8px; font-size: 1em; }
.step p { margin: 0; color: #B5B5B5; font-size: 0.92em; }

/* Цифры — статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: #1A1A1A;
    border: 1px solid #2F2F2F;
    padding: 30px;
}
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; }
.stat-number {
    display: block;
    font-size: 2.4em;
    color: #C9A03D;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;
}
.stat-label {
    display: block;
    color: #9A9A9A;
    font-size: 0.85em;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* CTA блок */
.cta-block {
    background: linear-gradient(135deg, #2A2A2A 0%, #1F1F1F 100%);
    border: 1px solid #5A6C7A;
    padding: 42px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(201, 160, 61, 0.08), transparent 70%);
}
.cta-block > * { position: relative; }
.cta-block h2 { margin: 0 0 12px; }
.cta-block p { color: #C5C5C5; max-width: 640px; margin: 0 auto 22px; }

@media (max-width: 600px) { .cta-block { padding: 30px 22px; } }

/* ======================== ФОРМЫ ======================== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    background: #1A1A1A;
    border: 1px solid #3A3A3A;
    color: #E0E0E0;
    font-family: inherit;
    font-size: 1em;
    border-radius: 0;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #C9A03D;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(201, 160, 61, 0.25);
}
label {
    display: block;
    margin-bottom: 6px;
    color: #C0C0C0;
    font-size: 0.92em;
    letter-spacing: 0.03em;
}

input[type="submit"], button[type="submit"] {
    width: auto;
    padding: 12px 28px;
    background: linear-gradient(180deg, #C9A03D 0%, #A5822C 100%);
    color: #1E1E1E;
    border: 1px solid #C9A03D;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
}
input[type="submit"]:hover, button[type="submit"]:hover {
    background: linear-gradient(180deg, #E5BD63 0%, #C9A03D 100%);
    box-shadow: 0 4px 14px rgba(201, 160, 61, 0.3);
}

/* Поиск */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form input[type="search"] { flex: 1; }

/* ======================== КОММЕНТАРИИ ======================== */
.comments-area { margin-top: 36px; }
.comments-title {
    font-size: 1.4em;
    border-bottom: 1px solid #2F2F2F;
    padding-bottom: 12px;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { margin: 0 0 18px; }
.comment-list .children { padding-left: 28px; margin-top: 18px; list-style: none; }
.comment-body {
    background: #232323;
    border: 1px solid #353535;
    padding: 18px 22px;
    position: relative;
}
.comment-body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 30px;
    height: 2px;
    background: #5A6C7A;
}
.comment-author { font-weight: 600; color: #FFFFFF; }
.comment-author a { color: #FFFFFF; }
.comment-meta {
    color: #8E8E8E;
    font-size: 0.85em;
    margin-bottom: 8px;
    font-family: "JetBrains Mono", monospace;
}
.comment-content p:last-child { margin-bottom: 0; }
.reply { margin-top: 10px; font-size: 0.9em; }
.reply a { color: #C9A03D; }

#respond {
    background: #232323;
    border: 1px solid #353535;
    padding: 24px;
    margin-top: 24px;
}
#respond h3 { margin: 0 0 16px; font-size: 1.2em; }
.comment-form p { margin: 0 0 14px; }

/* ======================== COOKIE-БАННЕР ======================== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #161616;
    border-top: 1px solid #C9A03D;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    z-index: 200;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.6);
    flex-wrap: wrap;
}
.cookie-banner p {
    margin: 0;
    color: #D0D0D0;
    font-size: 0.92em;
    flex: 1;
    min-width: 240px;
}
.cookie-banner .btn { padding: 10px 22px; }

/* ======================== 404 ======================== */
.error-404 {
    text-align: center;
    padding: 50px 0;
}
.error-404 .error-code {
    font-family: "JetBrains Mono", monospace;
    font-size: 6em;
    color: #C9A03D;
    line-height: 1;
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 0 30px rgba(201, 160, 61, 0.2);
}
.error-404 h1 { margin: 12px 0 18px; }
.error-404 .search-form { max-width: 480px; margin: 24px auto; }
.error-404 .actions { margin-top: 24px; }

/* ======================== УТИЛИТЫ ======================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.alignleft  { float: left;  margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { color: #9A9A9A; font-size: 0.88em; text-align: center; padding: 6px 0; }

/* ======================== ПЛАВНОЕ ПРОЯВЛЕНИЕ ======================== */
.fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================== АДАПТИВ ОБЩЕЕ ======================== */
@media (max-width: 600px) {
    body { font-size: 15px; }
    h1 { font-size: 1.85em; }
    h2 { font-size: 1.45em; }
    h3 { font-size: 1.2em; }
    .header-inner { padding: 16px 0; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name { font-size: 1em; }
    .brand-tagline { font-size: 0.75em; }
    .site-main { padding: 24px 0 36px; }
    .wrap { padding: 0 16px; }
}
