/* ============================================================
   PORTFOLIO UI // Dark corporate aesthetic
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&display=swap');

:root {
    --bg: #0b0b0b;
    --panel: #161616;
    --panel-2: #1d1d1d;
    --line: #333333;
    --text: #c9c9c9;
    --muted: #8a8a8a;
    --white: #f2f2f2;
    --red: #c62828;
    --red-bright: #ff5252;
    --red-dim: #7a1414;
    --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body: Verdana, Geneva, Tahoma, 'Segoe UI', sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    font: 15px/1.65 var(--font-body);
    background:
        radial-gradient(1100px 500px at 50% -10%, rgba(198, 40, 40, .07), transparent 60%),
        var(--bg);
}

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

a { color: #d05252; text-decoration: none; }
a:hover { color: var(--red-bright); text-decoration: underline; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ========== ШАПКА ========== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #000;
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 8px;
    min-height: 60px; padding-top: 8px; padding-bottom: 8px;
}
.site-logo {
    font-family: var(--font-head);
    font-weight: 700; font-size: 1.45rem;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--white); text-decoration: none;
}
.site-logo:hover { color: var(--white); text-decoration: none; }

.site-nav { display: flex; flex-wrap: wrap; }
.site-nav a {
    font-family: var(--font-head);
    font-size: .95rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
    padding: 8px 16px;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); background: var(--panel); text-decoration: none; }
.site-nav a.active {
    color: var(--white);
    border-bottom-color: var(--red);
    background: var(--panel);
}

/* ========== КОНТЕНТ ========== */
main.container { padding: 44px 20px 70px; }

h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; margin: 1.5em 0 .5em; }
h1 {
    font-size: 2.4rem; font-weight: 700; letter-spacing: .02em;
    margin-top: 0; color: var(--red);
    border-bottom: 2px solid var(--line); padding-bottom: .25em;
}
h2 {
    font-size: 1.5rem; color: var(--white);
    border-left: 4px solid var(--red); padding-left: 12px;
}
h3 { font-size: 1.2rem; color: #dddddd; }

p { margin: 0 0 1.1em; }
img { max-width: 100%; height: auto; border: 1px solid var(--line); padding: 4px; background: #000; }
hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }

blockquote {
    margin: 1.4em 0; padding: .9em 1.3em;
    background: var(--panel);
    border: 1px solid var(--line); border-left: 4px solid var(--red);
    color: #b5b5b5;
}
blockquote p:last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
th {
    background: #1e1e1e; color: var(--white);
    font-family: var(--font-head); text-transform: uppercase;
    letter-spacing: .1em; font-size: .85rem;
}

code {
    font-family: Consolas, 'Cascadia Mono', monospace; font-size: .88em;
    background: #202020; color: #e0e0e0;
    border: 1px solid var(--line); padding: .15em .45em;
}
pre {
    background: #111; border: 1px solid var(--line);
    padding: 16px 18px; overflow-x: auto; line-height: 1.55; margin: 1.4em 0;
}
pre code { background: none; border: none; padding: 0; font-size: .88rem; }

/* ========== ПРОЕКТЫ ========== */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 14px 18px;
    margin-bottom: 10px;
    transition: border-color .15s, background .15s;
}
.post-list li:hover { border-color: var(--red); background: var(--panel-2); }
.post-list li a {
    font-family: var(--font-head);
    font-size: 1.25rem; font-weight: 600; letter-spacing: .03em;
    text-transform: uppercase; color: var(--white);
}
.post-list li a:hover { color: var(--red-bright); text-decoration: none; }
.date, .post-meta {
    color: var(--muted);
    font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.post-list .date { margin-left: 10px; }

.tags { margin-top: 2em; }
.tags a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .82rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); background: #101010;
    border: 1px solid var(--line); border-radius: 2px;
    padding: 3px 12px; margin: 0 6px 6px 0;
}
.tags a:hover { background: var(--red); border-color: var(--red); color: #0b0b0b; text-decoration: none; }

article {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 30px 34px;
}
article::before {
    content: "CONFIDENTIAL";
    position: absolute; top: 14px; right: 18px;
    transform: rotate(-6deg);
    font-family: var(--font-head); font-weight: 700;
    font-size: 1rem; letter-spacing: .25em;
    color: var(--red); border: 2px solid var(--red);
    background: rgba(0, 0, 0, .35);
    padding: 2px 12px; opacity: .85;
    pointer-events: none;
}

.site-footer {
    background: #000;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--font-head);
    font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
}
.site-footer .container { padding-top: 22px; padding-bottom: 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--white); }

::-webkit-scrollbar { width: 10px; background: #0b0b0b; }
::-webkit-scrollbar-thumb { background: #333; border: 2px solid #0b0b0b; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dim); }

/* ========== ПОРТФОЛИО ========== */
.hero {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    padding: 36px 38px; margin-bottom: 44px;
}
.hero-kicker {
    font-family: var(--font-head); font-size: .8rem;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--red); margin: 0 0 10px;
}
.hero h1 { border: none; padding: 0; margin: 0 0 8px; font-size: 3rem; color: var(--white); }
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
.hero-actions { margin: 24px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    font-family: var(--font-head); font-size: .9rem;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 10px 22px; border: 1px solid var(--red);
    background: var(--red-dim); color: var(--white); text-decoration: none;
    transition: .15s;
}
.btn:hover { background: var(--red); color: #0b0b0b; text-decoration: none; box-shadow: 0 0 12px rgba(198, 40, 40, .5); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--muted); }
.btn-ghost:hover { border-color: var(--white); background: var(--panel-2); color: var(--white); box-shadow: none; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.project-card {
    display: block; position: relative;
    border: 1px solid var(--line); background: var(--panel);
    padding: 18px; text-decoration: none; transition: .15s;
}
.project-card:hover { border-color: var(--red); background: var(--panel-2); transform: translateY(-2px); text-decoration: none; }
.project-id { font-family: var(--font-head); font-size: .8rem; letter-spacing: .2em; color: var(--red); }
.project-card h2 { border: none; padding: 0; margin: 6px 0 8px; font-size: 1.3rem; color: var(--white); }
.project-card p { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.project-status {
    font-family: var(--font-head); font-size: .75rem;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--line); padding: 2px 8px;
}
.project-card:hover .project-status { color: var(--red-bright); border-color: var(--red); }

.dossier-id { font-family: var(--font-head); font-size: 1rem; letter-spacing: .2em; color: var(--red); margin: 0 0 6px; }
.dossier-meta { margin: 0 0 24px; }
.dossier-meta th { width: 170px; }
.dossier-links { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
/* ========== СОЦСЕТИ ========== */
.social-links {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 10px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    transition: .15s;
}
.social-btn:hover {
    border-color: var(--red);
    background: var(--panel-2);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, .2);
}
.social-icon {
    font-size: 1.2rem;
}
