:root {
    --darker-bg: #0c0c0b;
    --text: #f4f4ee;
    --muted: #8b8d84;
    --dim: #b5b7ae;
    --line: rgba(255, 250, 205, 0.14);
    --line-strong: rgba(255, 250, 205, 0.28);
    --accent: #fffacd;
    --surface: #141412;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    background: var(--darker-bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.article-header {
    display: flex;
    width: min(calc(100% - 40px), 1328px);
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    margin: 18px auto 0;
    padding: 0 24px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: rgba(16, 16, 14, 0.82);
    backdrop-filter: blur(18px);
}

.brand {
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--accent);
}

.article-header nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 13px;
}

.article-header nav a:hover,
.article-header nav a.is-current { color: var(--text); }

.header-telegram {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
}

.journal-main { padding-bottom: 40px; }

.journal-state {
    width: min(calc(100% - 40px), 760px);
    margin: 80px auto;
    color: var(--muted);
}

.journal-index-hero,
.article-hero {
    position: relative;
    width: min(calc(100% - 40px), 1328px);
    margin: 24px auto 0;
    padding: clamp(40px, 7vw, 92px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 250, 205, 0.16), transparent 34%),
        linear-gradient(140deg, #1b1b16, #10100e 68%);
}

.article-hero { min-height: 620px; }

.article-hero__glow {
    position: absolute;
    width: 440px;
    height: 440px;
    right: -130px;
    bottom: -220px;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(120px);
    opacity: 0.12;
}

.article-breadcrumbs,
.article-hero__meta,
.journal-kicker {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.article-breadcrumbs a:hover { color: var(--text); }

.journal-kicker,
.eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.article-hero__meta { margin-top: 64px; gap: 8px; }

.article-hero__meta > span,
.article-hero__meta time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
}

.article-hero__meta > span:first-child {
    color: #11120f;
    border-color: var(--accent);
    background: var(--accent);
}

.journal-index-hero h1,
.article-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin-top: 28px;
    font-size: clamp(40px, 7vw, 88px);
    font-weight: 560;
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.journal-index-hero > p,
.article-hero > p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin-top: 28px;
    color: var(--dim);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.55;
}

.article-hero__visual {
    position: absolute;
    right: clamp(30px, 6vw, 88px);
    bottom: clamp(28px, 5vw, 70px);
    display: grid;
    width: min(330px, 34%);
    min-height: 145px;
    align-content: space-between;
    padding: 24px;
    border: 1px solid rgba(255, 250, 205, 0.32);
    border-radius: 22px;
    background: rgba(9, 10, 8, 0.62);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(15px);
}

.article-hero__visual span {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-hero__visual strong {
    max-width: 240px;
    font-size: 17px;
    line-height: 1.35;
}

.article-layout {
    display: grid;
    width: min(calc(100% - 40px), 1160px);
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: space-between;
    gap: 70px;
    margin: 88px auto;
}

.article-toc {
    position: sticky;
    top: 30px;
    height: max-content;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.article-toc > strong {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-toc ol {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    list-style: none;
}

.article-toc li {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.article-toc li.is-nested { padding-left: 12px; }
.article-toc a:hover { color: var(--text); }

.article-content {
    color: #d4d6cd;
    font-size: 18px;
    line-height: 1.75;
}

.article-content > p:first-child {
    color: var(--text);
    font-size: 23px;
    line-height: 1.55;
}

.article-content h2 {
    scroll-margin-top: 32px;
    margin: 72px 0 22px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 560;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.article-content h3 {
    scroll-margin-top: 32px;
    margin: 42px 0 16px;
    color: var(--text);
    font-size: 25px;
    font-weight: 560;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table {
    margin: 0 0 24px;
}

.article-content ul,
.article-content ol {
    display: grid;
    gap: 10px;
    padding-left: 24px;
}

.article-content li::marker { color: var(--accent); }
.article-content strong { color: var(--text); }

.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(255, 250, 205, 0.38);
    text-underline-offset: 4px;
}

.article-content blockquote {
    padding: 24px 26px;
    border: 1px solid rgba(255, 250, 205, 0.22);
    border-left: 4px solid var(--accent);
    border-radius: 0 18px 18px 0;
    background: rgba(255, 250, 205, 0.05);
    color: var(--text);
}

.article-content .table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0 0 24px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.article-content table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.article-content th {
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
}

.article-content tr:last-child td { border-bottom: 0; }

.results {
    margin: 72px 0 0;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
}

.results-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.results-head h2 {
    margin-top: 8px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 560;
    letter-spacing: -0.045em;
}

.results-nav { display: flex; gap: 8px; }

.results-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.results-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}

.results-card {
    min-width: 220px;
    max-width: 220px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #1a1a16;
}

.results-card img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
}

.results-card div { padding: 12px 14px 16px; }
.results-card p:first-child { color: var(--accent); }
.results-card .price { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

.article-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 28px;
    margin-top: 72px;
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 0, rgba(255, 250, 205, 0.14), transparent 40%),
        #181814;
}

.article-cta h2 {
    max-width: 620px;
    margin-top: 10px;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 560;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.article-cta p:not(.eyebrow) {
    max-width: 560px;
    margin-top: 16px;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    border: 1px solid var(--accent);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #11120f;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

.article-cta .article-actions,
.journal-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.journal-cats {
    width: min(calc(100% - 40px), 1328px);
    margin: 28px auto 0;
}

.journal-cats button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--dim);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.journal-cats button.is-active {
    background: var(--accent);
    color: #11120f;
    border-color: var(--accent);
}

.journal-grid,
.article-related__grid {
    display: grid;
    width: min(calc(100% - 40px), 1160px);
    margin: 28px auto 0;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journal-card,
.article-related__grid > a {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.journal-card:hover,
.article-related__grid > a:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.journal-card-cat,
.article-related__grid > a > span {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.journal-card h2,
.article-related__grid h3 {
    margin-top: 16px;
    font-size: 24px;
    font-weight: 560;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.journal-card p,
.article-related__grid p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.journal-card-meta,
.article-related__grid small {
    margin-top: auto;
    padding-top: 28px;
    color: var(--dim);
    font-size: 13px;
}

.article-related {
    width: min(calc(100% - 40px), 1160px);
    margin: 0 auto 40px;
    padding-top: 40px;
}

.article-related > h2 {
    max-width: 720px;
    margin-top: 10px;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 560;
    letter-spacing: -0.055em;
}

.article-footer {
    display: flex;
    width: min(calc(100% - 40px), 1328px);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto 28px;
    padding: 28px 4px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 900px) {
    .article-hero { min-height: 0; }

    .article-hero__visual {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 40px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        margin: 48px auto;
    }

    .article-toc { position: static; }

    .journal-grid,
    .article-related__grid { grid-template-columns: 1fr; }

    .article-cta { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .article-header {
        width: calc(100% - 24px);
        min-height: 64px;
        margin-top: 12px;
        padding: 0 16px;
    }

    .article-header nav > a:first-child { display: none; }

    .journal-index-hero,
    .article-hero,
    .article-layout,
    .journal-grid,
    .article-related,
    .article-footer,
    .journal-cats {
        width: calc(100% - 24px);
    }

    .journal-index-hero,
    .article-hero {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .article-hero__meta { margin-top: 36px; }

    .journal-card,
    .article-related__grid > a { min-height: 0; }
}
