/*
Theme Name: dds_smoke-film.ru
Author: Илья Корнеев
Description: Образовательный сайт для начинающих в программировании с фокусом на веб-разработку, где обучение начинается с запуска собственного сайта и постепенно ведет к изучению кода, инструментов разработчика и практических проектов.
Version: 1.1
Text Domain: dds_smoke-film-ru
*/

/* === Font imports === */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400&family=Manrope:wght@400;600;800&display=swap');

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: #0f0f12;
    color: #e2e2e4;
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(255,92,53,0.06), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(59,130,246,0.05), transparent 55%);
    background-attachment: fixed;
}

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

a {
    color: #ff5c35;
    text-decoration: none;
    transition: color 0.35s cubic-bezier(.2,.7,.2,1);
}
a:hover { color: #ffb29a; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.18;
    color: #fff;
    background: linear-gradient(180deg, #ffffff 0%, #cfd0d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 1.4em 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

code, pre, kbd {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 300;
}
code {
    background: rgba(59,130,246,0.12);
    color: #93c5fd;
    padding: 0.12em 0.45em;
    border-radius: 3px;
    font-size: 0.92em;
    text-shadow: 0 0 6px rgba(147,197,253,0.25);
}
pre {
    background: #14141a;
    color: #cdd3df;
    padding: 1em 1.15em;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.55;
}
pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    text-shadow: none;
}

blockquote {
    margin: 1.4em 0;
    padding: 0.9em 1.2em;
    border-left: 3px solid #ff5c35;
    background: rgba(255,92,53,0.06);
    color: #d4d5d9;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid rgba(255,255,255,0.1);
}
th, td {
    padding: 0.7em 0.9em;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}
th {
    background: rgba(255,92,53,0.08);
    font-weight: 600;
    color: #fff;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    margin: 2em 0;
}

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

/* === Header === */
.site-header {
    padding: 1.4em 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(15,15,18,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.6em;
    flex-wrap: wrap;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.9em;
    min-width: 0;
}
.brand-logo {
    width: 44px;
    height: 44px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255,92,53,0.45));
}
.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.brand-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 38ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-desc {
    font-size: 0.78rem;
    color: #9ca3af;
    max-width: 52ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nav */
.main-nav { margin-left: auto; }
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: #e2e2e4;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}
.menu-toggle:hover { border-color: #ff5c35; color: #ff5c35; }

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4em;
    flex-wrap: wrap;
}
.main-nav li { margin: 0; }
.main-nav a {
    display: inline-block;
    padding: 0.55em 1em;
    color: #e2e2e4;
    font-weight: 600;
    font-size: 0.94rem;
    border-radius: 3px;
    position: relative;
    transition: color 0.3s cubic-bezier(.2,.7,.2,1), background 0.3s cubic-bezier(.2,.7,.2,1);
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 1em;
    right: 1em;
    bottom: 0.35em;
    height: 1px;
    background: #ff5c35;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #ff5c35;
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after { transform: scaleX(1); }

/* === Layout === */
.site-main { padding: 2.2em 0 3em; }

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

.layout-no-sidebar {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

/* === Breadcrumbs === */
.breadcrumbs {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0 0 1.6em;
    padding: 0.6em 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.breadcrumbs a { color: #9ca3af; }
.breadcrumbs a:hover { color: #ff5c35; }
.breadcrumbs .sep { margin: 0 0.45em; color: #5a5e69; }
.breadcrumbs span:last-child { color: #e2e2e4; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.85em 1.7em;
    background: #ff5c35;
    color: #0f0f12;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.2,.7,.2,1);
    box-shadow:
        0 0 0 1px rgba(255,92,53,0.25),
        0 8px 30px -8px rgba(255,92,53,0.55),
        0 0 50px -10px rgba(255,92,53,0.35);
    text-shadow: none;
}
.btn:hover {
    background: #14141a;
    color: #ff5c35;
    box-shadow:
        inset 0 0 0 1px #ff5c35,
        0 0 0 1px rgba(255,92,53,0.5),
        0 10px 40px -8px rgba(255,92,53,0.45);
}

.btn-secondary {
    background: transparent;
    color: #e2e2e4;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.35),
        0 0 30px -5px rgba(255,255,255,0.15);
}

/* === Hero & front sections === */
.hero {
    padding: 3.5em 0 3em;
    text-align: center;
    position: relative;
}
.hero-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #ff5c35;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.4em 0.9em;
    border: 1px solid rgba(255,92,53,0.4);
    border-radius: 2px;
    margin-bottom: 1.3em;
}
.hero h1 {
    margin-top: 0;
    margin-bottom: 0.6em;
}
.hero-lead {
    font-size: 1.1rem;
    color: #c8cad0;
    max-width: 56ch;
    margin: 0 auto 1.8em;
}
.hero-actions {
    display: flex;
    gap: 0.9em;
    justify-content: center;
    flex-wrap: wrap;
}

/* Terminal widget */
.terminal {
    background: #0a0a0d;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    margin: 2.4em auto 0;
    max-width: 720px;
    text-align: left;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,92,53,0.08),
        0 30px 80px -20px rgba(0,0,0,0.7),
        0 0 60px -10px rgba(255,92,53,0.15);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.7em 1em;
    background: #15151a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2a2a32;
}
.terminal-dot.red { background: #ff5c35; }
.terminal-dot.yel { background: #facc15; opacity: 0.8; }
.terminal-dot.grn { background: #3b82f6; opacity: 0.85; }
.terminal-title {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #6c707a;
}
.terminal-body {
    padding: 1.3em 1.4em 1.5em;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #cdd3df;
    min-height: 7em;
}
.terminal-line { display: block; }
.terminal-prompt { color: #ff5c35; margin-right: 0.6em; }
.terminal-comment { color: #6c707a; }
.terminal-out { color: #93c5fd; }
.terminal-cursor {
    display: inline-block;
    width: 0.55em;
    height: 1.05em;
    background: #ff5c35;
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* === Section blocks === */
.section-block {
    margin: 3.5em 0;
    padding: 2.4em 2.2em;
    background: linear-gradient(180deg, rgba(26,26,31,0.85), rgba(20,20,24,0.85));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    position: relative;
    transition: border-color 0.4s cubic-bezier(.2,.7,.2,1);
}
.section-block:hover {
    border-color: rgba(255,92,53,0.25);
}
.section-block::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(255,92,53,0.06), transparent 60%);
    pointer-events: none;
}
.section-block > * { position: relative; }
.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    color: #ff5c35;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.7em;
}
.section-block h2 { margin-top: 0; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4em;
    margin-top: 1.6em;
}
.step-card {
    padding: 1.3em 1.2em;
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.4s cubic-bezier(.2,.7,.2,1);
    min-width: 0;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,92,53,0.35);
}
.step-num {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    color: #ff5c35;
    font-size: 0.85rem;
    margin-bottom: 0.5em;
}
.step-card h3 {
    font-size: 1.08rem;
    margin: 0 0 0.4em;
}
.step-card p {
    margin: 0;
    font-size: 0.92rem;
    color: #b3b5bd;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.1em;
    margin-top: 1.6em;
}
.tool-tile {
    padding: 1.4em 1em;
    text-align: center;
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    cursor: default;
    transition: all 0.45s cubic-bezier(.2,.7,.2,1);
    min-width: 0;
}
.tool-tile:hover {
    background: rgba(255,92,53,0.08);
    border-color: rgba(255,92,53,0.4);
    box-shadow: 0 0 30px -5px rgba(255,92,53,0.3);
    transform: translateY(-3px);
}
.tool-icon {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    color: #ff5c35;
    margin-bottom: 0.5em;
    display: block;
}
.tool-tile h4 {
    margin: 0 0 0.35em;
    font-size: 1rem;
    color: #fff;
}
.tool-tile p {
    margin: 0;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Smoke progress bar */
.smoke-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-top: 0.6em;
}
.smoke-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #9ca3af 0%, #ff5c35 100%);
    border-radius: 5px;
    box-shadow: 0 0 14px rgba(255,92,53,0.5);
    transition: width 0.6s cubic-bezier(.2,.7,.2,1);
}

/* === Section heading === */
.section-heading {
    margin: 2.6em 0 1.2em;
    display: flex;
    align-items: baseline;
    gap: 0.7em;
    flex-wrap: wrap;
}
.section-heading h2 { margin: 0; }
.section-heading .more-link {
    margin-left: auto;
    font-size: 0.9rem;
    font-weight: 600;
}

/* === Post cards (grid on front + index) === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5em;
    margin: 1.2em 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: #1a1a1f;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(.2,.7,.2,1), border-color 0.45s cubic-bezier(.2,.7,.2,1), box-shadow 0.45s cubic-bezier(.2,.7,.2,1);
    min-width: 0;
}
.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,92,53,0.3);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5), 0 0 40px -10px rgba(255,92,53,0.2);
}
.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0a0a0d;
}
.card-body {
    flex: 1;
    padding: 1.2em 1.3em 1.4em;
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    min-width: 0;
}
.card-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #9ca3af;
}
.card-meta a { color: #9ca3af; }
.card-meta a:hover { color: #ff5c35; }
.card-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
}
.card-title a {
    color: #fff;
    background: linear-gradient(180deg, #ffffff 0%, #cfd0d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.card-title a:hover {
    background: linear-gradient(180deg, #ff5c35 0%, #ffb29a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.card-excerpt {
    font-size: 0.93rem;
    color: #b3b5bd;
    margin: 0.2em 0 0.4em;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #ff5c35;
    position: relative;
    padding-bottom: 2px;
}
.card-more::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #ff5c35;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.card-more:hover::after { transform: scaleX(1); }

.card img { display: block; }

/* === Single post === */
.entry-header {
    margin-bottom: 1.6em;
}
.entry-title { margin-top: 0.3em; }
.entry-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.83rem;
    color: #9ca3af;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.entry-meta a { color: #9ca3af; }
.entry-meta a:hover { color: #ff5c35; }

.featured-image {
    margin: 0 0 1.6em;
    border-radius: 8px;
    overflow: hidden;
}
.featured-image img { display: block; width: 100%; }

.entry-content {
    font-size: 1.02rem;
}
.entry-content img {
    border-radius: 6px;
    margin: 1em 0;
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.entry-footer {
    margin-top: 2em;
    padding-top: 1.2em;
    border-top: 1px dashed rgba(255,255,255,0.08);
    font-size: 0.9rem;
    color: #9ca3af;
}
.entry-tags a, .entry-cats a {
    display: inline-block;
    margin: 0 0.25em 0.4em 0;
    padding: 0.2em 0.65em;
    background: rgba(255,92,53,0.07);
    border: 1px solid rgba(255,92,53,0.15);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #ff5c35;
}
.entry-tags a:hover, .entry-cats a:hover { background: rgba(255,92,53,0.15); }

/* === Pagination === */
.pagination {
    margin: 2.4em 0 0.5em;
    display: flex;
    gap: 0.4em;
    flex-wrap: wrap;
    justify-content: center;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 0.55em 0.95em;
    background: #1a1a1f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 3px;
    color: #e2e2e4;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(.2,.7,.2,1);
}
.pagination a:hover {
    border-color: #ff5c35;
    color: #ff5c35;
    background: rgba(255,92,53,0.05);
}
.pagination .current {
    background: #ff5c35;
    color: #0f0f12;
    border-color: #ff5c35;
    font-weight: 700;
}

/* === Sidebar / widgets (general) === */
.widget {
    margin-bottom: 1.8em;
    padding: 1.3em 1.3em;
    background: #1a1a1f;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}
.widget-title {
    margin: 0 0 0.9em;
    font-size: 1.02rem;
    color: #fff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    padding-bottom: 0.55em;
    border-bottom: 1px solid rgba(255,92,53,0.25);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 0.45em 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.widget li:last-child { border-bottom: 0; }
.widget a {
    color: #e2e2e4;
    font-size: 0.94rem;
    transition: color 0.3s cubic-bezier(.2,.7,.2,1);
}
.widget a:hover { color: #ff5c35; }
.widget p { color: #b3b5bd; font-size: 0.94rem; margin: 0 0 0.7em; }
.widget p:last-child { margin-bottom: 0; }

.widget_recent_entries li {
    padding: 0.6em 0;
}
.widget_recent_entries .post-date {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.2em;
}

/* === Footer === */
.site-footer {
    margin-top: 4em;
    background: #08080a;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #c8cad0;
    padding: 3em 0 1.5em;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,92,53,0.5), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2em;
}
.footer-col {
    min-width: 0;
}
.footer-col .widget {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}
.footer-col .widget-title {
    color: #fff;
    border-bottom: 1px solid rgba(255,92,53,0.25);
    padding-bottom: 0.5em;
    margin-bottom: 0.9em;
}
.footer-col .widget a { color: #c8cad0; }
.footer-col .widget a:hover { color: #ff5c35; }
.footer-col .widget p { color: #9ca3af; }
.footer-col .widget li { border-bottom: 1px dashed rgba(255,255,255,0.05); }
.footer-col .widget_recent_entries .post-date { color: #7c8089; }

.site-copyright {
    margin-top: 2.4em;
    padding-top: 1.4em;
    border-top: 1px solid rgba(255,255,255,0.04);
    text-align: center;
    color: #7c8089;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

/* === Search form === */
.search-form {
    display: flex;
    gap: 0;
    width: 100%;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7em 0.9em;
    background: #0a0a0d;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e2e4;
    border-radius: 3px 0 0 3px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.search-form input[type="search"]:focus { border-color: #ff5c35; }
.search-form input[type="search"]::placeholder { color: #6c707a; }
.search-form button {
    padding: 0 1.2em;
    background: #ff5c35;
    color: #0f0f12;
    border: 0;
    border-radius: 0 3px 3px 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.search-form button:hover { background: #ffb29a; }

/* === Comments === */
.comments-area { margin-top: 2.5em; }
.comments-title {
    font-size: 1.3rem;
    margin-bottom: 1em;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 2em; }
.comment-list .children { list-style: none; padding-left: 1.3em; border-left: 1px solid rgba(255,255,255,0.05); }
.comment {
    padding: 1.1em 1.2em;
    margin-bottom: 0.9em;
    background: #1a1a1f;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 5px;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.7em;
    margin-bottom: 0.6em;
    font-size: 0.85rem;
    color: #9ca3af;
}
.comment-meta .avatar { border-radius: 50%; }
.comment-author { font-weight: 700; color: #fff; }
.comment-date { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-reply-link {
    display: inline-block;
    font-size: 0.83rem;
    margin-top: 0.5em;
    color: #ff5c35;
    font-family: 'JetBrains Mono', monospace;
}

.comment-respond {
    padding: 1.4em 1.4em;
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 5px;
}
.comment-reply-title { margin: 0 0 0.7em; font-size: 1.1rem; }
.comment-form label { display: block; font-size: 0.86rem; color: #c8cad0; margin: 0.6em 0 0.25em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    background: #0a0a0d;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e2e4;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: #ff5c35; }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .form-submit { margin-top: 1em; }
.comment-form .submit {
    padding: 0.85em 1.7em;
    background: #ff5c35;
    color: #0f0f12;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(.2,.7,.2,1);
}
.comment-form .submit:hover { background: #14141a; color: #ff5c35; box-shadow: inset 0 0 0 1px #ff5c35; }

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 3em 0;
}
.error-404 .big-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    color: #ff5c35;
    text-shadow: 0 0 40px rgba(255,92,53,0.4);
    margin: 0 0 0.2em;
}
.error-404 .search-form { max-width: 480px; margin: 1.8em auto 1.5em; }

/* === Contact strip === */
.contact-strip {
    margin: 1.6em 0;
    padding: 1.2em 1.4em;
    background: #14141a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    display: flex;
    gap: 1.4em;
    flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
}
.contact-strip a { color: #e2e2e4; }
.contact-strip a:hover { color: #ff5c35; }
.contact-strip .label { color: #9ca3af; margin-right: 0.4em; }

/* === Cookie banner (A11 — hidden rule FIRST) === */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    bottom: 1em;
    left: 1em;
    right: 1em;
    z-index: 999;
    background: rgba(20,20,26,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,92,53,0.25);
    border-radius: 6px;
    padding: 1em 1.2em;
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6);
    max-width: 720px;
    margin-inline: auto;
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
    font-size: 0.88rem;
    color: #c8cad0;
}
.cookie-banner button {
    padding: 0.6em 1.3em;
    background: #ff5c35;
    color: #0f0f12;
    border: 0;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    font-size: 0.88rem;
    transition: background 0.3s;
}
.cookie-banner button:hover { background: #ffb29a; }

/* === Responsive === */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    .layout-no-sidebar { width: 92%; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6em; }
    .section-block { padding: 2em 1.6em; }
}

@media (max-width: 600px) {
    .menu-toggle { display: block; order: 3; margin-left: auto; }
    .main-nav { width: 100%; margin-left: 0; order: 4; }
    .main-nav ul { display: none; flex-direction: column; gap: 0; padding-top: 0.5em; }
    .main-nav.is-open ul { display: flex; }
    .main-nav a {
        display: block;
        padding: 0.7em 0.6em;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .main-nav a::after { display: none; }

    .header-inner { gap: 0.9em; }
    .brand-name { font-size: 0.95rem; max-width: 22ch; }
    .brand-desc { display: none; }

    .hero { padding: 2.2em 0 1.6em; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { text-align: center; }

    .section-block { padding: 1.6em 1.2em; }
    .cards-grid { grid-template-columns: 1fr; }

    .terminal-body { font-size: 0.82rem; padding: 1em 1.1em 1.2em; }
}
