/*
Theme Name: dds_quikhop.com
Theme URI: https://quikhop.com
Author: Илья Корнеев
Author URI: https://quikhop.com
Description: Отраслевое медиа о будущем автономных систем с корнем в логистике, транспорте и прикладной автоматизации.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dds_quikhop_com
*/

/* ---------- Base reset & typography ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    color: #E0E0E0;
    background-color: #121212;
    background-image:
        radial-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 1px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #F5F5F5;
    line-height: 1.25;
    margin: 0 0 0.7em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1em;
    background: none;
}

a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: #FF6B35; }

code, pre, kbd, samp, .is-mono {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 0.92em;
    color: #A3E635;
}

code {
    background: #1A1A1A;
    padding: 0.15em 0.4em;
    border: 1px solid #2A2A2A;
}

pre {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    padding: 16px 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}

pre code {
    background: none;
    border: 0;
    padding: 0;
}

blockquote {
    margin: 1.5em 0;
    padding: 16px 20px 16px 24px;
    border-left: 3px solid #FF6B35;
    background: #1A1A1A;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95em;
    color: #CCCCCC;
    box-shadow: -3px 0 18px -6px rgba(255,107,53,0.35);
}

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

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

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

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid #2A2A2A;
    font-size: 0.95rem;
}

th, td {
    border: 1px solid #2A2A2A;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #1A1A1A;
    color: #F5F5F5;
    font-weight: 600;
}

/* ---------- Container & layout ---------- */

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-layout {
    display: flex;
    gap: 40px;
    padding: 40px 0 60px;
    align-items: flex-start;
}

.site-layout.has-sidebar .site-main { flex: 0 0 67%; max-width: 67%; }
.site-layout.has-sidebar .site-sidebar { flex: 0 0 27%; max-width: 27%; }
.site-layout.no-sidebar .site-main { flex: 0 0 85%; max-width: 85%; margin: 0 auto; }

@media (max-width: 960px) {
    .site-layout { flex-direction: column; gap: 32px; }
    .site-layout.has-sidebar .site-main,
    .site-layout.has-sidebar .site-sidebar,
    .site-layout.no-sidebar .site-main {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

/* ---------- Top status bar ---------- */

.top-bar {
    background: #000000;
    border-bottom: 1px solid #2A2A2A;
    color: #AAAAAA;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    max-width: 1240px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left { display: flex; align-items: center; gap: 12px; }

.mode-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #A3E635;
}

.mode-dot {
    width: 8px;
    height: 8px;
    background: #A3E635;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(163,230,53,0.7);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.sim-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-track {
    width: 32px;
    height: 16px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    position: relative;
    transition: background 0.25s;
}

.toggle-knob {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 12px;
    height: 12px;
    background: #E0E0E0;
    transition: left 0.25s, background 0.25s;
}

.sim-toggle.active .toggle-track { background: #FF6B35; border-color: #FF6B35; }
.sim-toggle.active .toggle-knob { left: 17px; background: #FFFFFF; }

/* ---------- Site header ---------- */

.site-header {
    padding: 28px 0 20px;
    border-bottom: 1px solid #2A2A2A;
    background: #0D0D0D;
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.brand-logo-wrap {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

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

.brand-title {
    font-family: 'Rubik', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #F5F5F5;
    margin: 0;
    line-height: 1.3;
}

.brand-title a { color: inherit; }
.brand-title a:hover { color: #FF6B35; }

.brand-tagline {
    font-size: 0.8rem;
    color: #888888;
    margin-top: 4px;
    line-height: 1.4;
    max-width: 680px;
}

.status-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #A3E635;
    margin-top: 6px;
    letter-spacing: 0.04em;
}

.status-line::before {
    content: '●';
    margin-right: 6px;
    animation: pulseDot 2s ease-in-out infinite;
}

/* ---------- Nav ---------- */

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #2A2A2A;
    color: #E0E0E0;
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.nav-toggle:hover { border-color: #FF6B35; color: #FF6B35; }

.primary-nav {
    border-top: 1px solid #2A2A2A;
    background: #0D0D0D;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.primary-nav li { margin: 0; }

.primary-nav a {
    display: block;
    padding: 14px 20px;
    color: #E0E0E0;
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    border-right: 1px solid #2A2A2A;
    transition: background 0.2s, color 0.2s;
}

.primary-nav li:first-child a { border-left: 1px solid #2A2A2A; }

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    background: #1A1A1A;
    color: #FF6B35;
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .primary-nav ul { display: none; flex-direction: column; padding: 0; }
    .primary-nav ul.is-open { display: flex; }
    .primary-nav a { border-right: 0; border-bottom: 1px solid #2A2A2A; }
    .primary-nav li:first-child a { border-left: 0; }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888888;
    padding: 16px 0 8px;
    letter-spacing: 0.03em;
}

.breadcrumbs a { color: #888888; }
.breadcrumbs a:hover { color: #FF6B35; }

.breadcrumbs .sep {
    margin: 0 8px;
    color: #444444;
}

.breadcrumbs .current { color: #E0E0E0; }

/* ---------- Category chips ---------- */

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.category-chips li { margin: 0; }

.category-chips a {
    display: inline-block;
    padding: 7px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: #CCCCCC;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    transition: all 0.2s ease;
}

.category-chips a:hover,
.category-chips .is-active a {
    color: #FFFFFF;
    border-color: #FF6B35;
    background: rgba(255,107,53,0.08);
}

/* ---------- Cards (article listing) ---------- */

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 40px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    border-top: 1px solid #2A2A2A;
    background: transparent;
}

.card:last-child { border-bottom: 1px solid #2A2A2A; }

.card-row {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: stretch;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    min-height: 180px;
}

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

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-thumb-wrap:hover img { transform: scale(1.04); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: #888888;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.card-meta a { color: #888888; }
.card-meta a:hover { color: #FF6B35; }
.card-meta .dot { margin: 0 8px; color: #444444; }

.card-title {
    font-family: 'Rubik', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 0.015em;
    line-height: 1.3;
}

.card-title a { color: #F5F5F5; }
.card-title a:hover { color: #FF6B35; }

.card-excerpt {
    color: #BBBBBB;
    font-size: 0.97rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

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

.card-excerpt p:last-child { margin-bottom: 0; }

.card-readmore {
    align-self: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: #FF6B35;
    text-transform: lowercase;
    padding: 8px 14px;
    border: 1px solid #2A2A2A;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.card-readmore:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.card-readmore::after { content: ' →'; }

@media (max-width: 760px) {
    .card-row { flex-direction: column; gap: 18px; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-title { font-size: 1.15rem; }
}

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 40px 0 0;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: #CCCCCC;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    transition: all 0.2s ease;
}

.pagination a:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

.pagination .current {
    background: #FF6B35;
    color: #FFFFFF;
    border-color: #FF6B35;
}

.pagination .dots {
    background: transparent;
    border-color: transparent;
    color: #666666;
}

/* ---------- Single post / pages ---------- */

.entry-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #2A2A2A;
}

.entry-title {
    font-size: 2.2rem;
    margin: 0 0 14px;
    line-height: 1.2;
}

.entry-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888888;
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.entry-meta a { color: #888888; }
.entry-meta a:hover { color: #FF6B35; }

.entry-thumb {
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid #2A2A2A;
}

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

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

.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }

.entry-content img {
    display: block;
    margin: 1.5em 0;
    border: 1px solid #2A2A2A;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #2A2A2A;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #888888;
}

.entry-tags a {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    color: #CCCCCC;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.entry-tags a:hover { border-color: #FF6B35; color: #FF6B35; }

/* ---------- Sidebar ---------- */

.site-sidebar .widget {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #2A2A2A;
}

.site-sidebar .widget:last-child { border-bottom: 0; }

.site-sidebar .widget-title,
.site-sidebar .widgettitle {
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FF6B35;
    margin: 0 0 16px;
}

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

.site-sidebar li {
    padding: 8px 0;
    border-bottom: 1px dashed #2A2A2A;
    font-size: 0.95rem;
}

.site-sidebar li:last-child { border-bottom: 0; }

.site-sidebar a { color: #CCCCCC; }
.site-sidebar a:hover { color: #FF6B35; }

/* ---------- Search form ---------- */

.search-form {
    display: flex;
    gap: 0;
    margin: 16px 0;
    align-items: stretch;
}

.search-field {
    flex: 1;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #2A2A2A;
    padding: 10px 4px;
    color: #E0E0E0;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus {
    border-bottom-color: #FF6B35;
    box-shadow: 0 2px 10px -6px rgba(255,107,53,0.6);
}

.search-submit {
    background: transparent;
    border: 1px solid #2A2A2A;
    border-bottom: 1px solid #2A2A2A;
    color: #CCCCCC;
    padding: 0 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 8px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%);
}

.search-submit:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #FFFFFF;
}

/* ---------- Comments ---------- */

.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #2A2A2A;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.comment-list li { margin-bottom: 24px; }

.comment-body {
    padding: 18px 20px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
}

.comment-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 10px;
}

.comment-author { color: #F5F5F5; font-weight: 500; }

.comment-form p { margin-bottom: 14px; }

.comment-form label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #CCCCCC;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #2A2A2A;
    padding: 8px 4px;
    color: #E0E0E0;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea { min-height: 110px; resize: vertical; }

.comment-form input:focus,
.comment-form textarea:focus {
    border-bottom-color: #FF6B35;
    box-shadow: 0 2px 10px -6px rgba(255,107,53,0.6);
}

.comment-form .submit,
input[type="submit"].submit {
    background: transparent;
    border: 1px solid #FF6B35;
    color: #FF6B35;
    padding: 10px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.comment-form .submit:hover,
input[type="submit"].submit:hover {
    background: #FF6B35;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* ---------- Front page blocks ---------- */

.front-hero {
    padding: 60px 0 50px;
    border-bottom: 1px solid #2A2A2A;
    margin-bottom: 50px;
    position: relative;
}

.front-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF6B35 30%, #FF6B35 70%, transparent);
}

.front-hero-kicker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    color: #FF6B35;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.front-hero h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 0 18px;
}

.front-hero-sub {
    font-size: 1.08rem;
    color: #CCCCCC;
    max-width: 780px;
    line-height: 1.65;
}

.front-section {
    margin: 0 0 64px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid #2A2A2A;
}

.section-heading-index {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #FF6B35;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.section-heading-meta {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #666666;
    letter-spacing: 0.04em;
}

/* three-column feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    padding: 26px 24px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: #FF6B35;
    transform: translateY(-2px);
}

.feature-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: #FF6B35;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.feature-card p {
    color: #BBBBBB;
    margin: 0;
    font-size: 0.95rem;
}

/* steps row */
.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #2A2A2A;
    background: #1A1A1A;
}

@media (max-width: 960px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-row { grid-template-columns: 1fr; } }

.step {
    padding: 22px 20px;
    border-right: 1px solid #2A2A2A;
    position: relative;
}

.step:last-child { border-right: 0; }

@media (max-width: 960px) {
    .step:nth-child(2n) { border-right: 0; }
    .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid #2A2A2A; }
}

@media (max-width: 600px) {
    .step { border-right: 0; border-bottom: 1px solid #2A2A2A; }
    .step:last-child { border-bottom: 0; }
}

.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #FF6B35;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.step h4 {
    font-size: 1rem;
    margin: 0 0 8px;
}

.step p {
    color: #AAAAAA;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.55;
}

/* route map mock */
.route-map {
    background: #0D0D0D;
    border: 1px solid #2A2A2A;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}

.route-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #888888;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.route-map-header .status { color: #A3E635; }

.route-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
}

.route-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 12px;
    right: 12px;
    height: 1px;
    background: repeating-linear-gradient(90deg, #2A2A2A 0, #2A2A2A 6px, transparent 6px, transparent 12px);
}

.route-node {
    position: relative;
    z-index: 1;
    background: #0D0D0D;
    padding: 0 8px;
    text-align: center;
    flex: 1;
}

.route-dot {
    width: 14px;
    height: 14px;
    background: #1A1A1A;
    border: 2px solid #FF6B35;
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 0 0 4px rgba(255,107,53,0.08);
}

.route-node:first-child .route-dot,
.route-node:last-child .route-dot {
    background: #FF6B35;
}

.route-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    color: #CCCCCC;
    letter-spacing: 0.03em;
}

.route-sublabel {
    font-size: 0.7rem;
    color: #666666;
    margin-top: 2px;
}

@media (max-width: 760px) {
    .route-line { flex-direction: column; gap: 18px; }
    .route-line::before {
        top: 12px;
        bottom: 12px;
        left: 50%;
        right: auto;
        width: 1px;
        height: auto;
        background: repeating-linear-gradient(180deg, #2A2A2A 0, #2A2A2A 6px, transparent 6px, transparent 12px);
    }
}

/* cta band */
.cta-band {
    padding: 38px 32px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-band h3 { margin: 0 0 6px; font-size: 1.2rem; }
.cta-band p { margin: 0; color: #AAAAAA; }

.btn {
    display: inline-block;
    padding: 11px 22px;
    background: transparent;
    border: 1px solid #FF6B35;
    color: #FF6B35;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
    cursor: pointer;
}

.btn:hover {
    background: #FF6B35;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: #2A2A2A;
    color: #CCCCCC;
}

.btn-ghost:hover {
    background: #2A2A2A;
    color: #FFFFFF;
    border-color: #2A2A2A;
}

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

.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 .code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 5rem;
    color: #FF6B35;
    letter-spacing: 0.1em;
    line-height: 1;
    margin: 0 0 18px;
}

.error-404 h1 {
    font-size: 1.6rem;
    margin: 0 0 12px;
}

.error-404 p {
    color: #AAAAAA;
    margin-bottom: 28px;
}

.error-404 .search-form { max-width: 480px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */

.site-footer {
    background: #0A0A0A;
    border-top: 1px solid #2A2A2A;
    padding: 48px 0 0;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

@media (max-width: 960px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-widgets { grid-template-columns: 1fr; gap: 30px; } }

.footer-widgets .widget-title,
.footer-widgets .widgettitle {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FF6B35;
    margin: 0 0 16px;
}

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

.footer-widgets li {
    padding: 6px 0;
    font-size: 0.92rem;
}

.footer-widgets a { color: #AAAAAA; }
.footer-widgets a:hover { color: #FF6B35; }

.footer-widgets p { color: #AAAAAA; font-size: 0.92rem; }

.site-credit {
    border-top: 1px solid #1A1A1A;
    padding: 18px 24px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #666666;
    letter-spacing: 0.05em;
    max-width: 1240px;
    margin: 0 auto;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 700px;
    margin: 0 auto;
    background: #0D0D0D;
    border: 1px solid #FF6B35;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    z-index: 9999;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner.is-hidden {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: #CCCCCC;
    flex: 1;
    min-width: 220px;
}

.cookie-accept {
    background: #FF6B35;
    border: 1px solid #FF6B35;
    color: #FFFFFF;
    padding: 10px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.cookie-accept:hover {
    background: transparent;
    color: #FF6B35;
}

/* ---------- WordPress alignment classes ---------- */

.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.85rem; color: #888; text-align: center; margin-top: 6px; }
.sticky { }
.gallery-caption { }
.bypostauthor { }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px; width: 1px; overflow: hidden;
}

/* skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #FF6B35;
    color: #FFF;
    padding: 10px 16px;
    z-index: 10000;
}

.skip-link:focus { left: 10px; top: 10px; color: #FFF; }
