/* ==========================================================================
   SMOKE BASIC BLOG — DESIGN SYSTEM
   Совместим с лендингом: те же токены, тот же тёмный мир.
   ========================================================================== */
:root {
    --bg-dark: #070509;
    --bg-card: rgba(18, 12, 20, 0.66);
    --bg-card-hover: rgba(28, 18, 32, 0.84);

    --primary: #ff9700;
    --primary-glow: rgba(255, 151, 0, 0.42);
    --secondary: #8c00ff;
    --secondary-glow: rgba(140, 0, 255, 0.36);
    --accent: #ffffff;

    --text-main: #ffffff;
    --text-muted: #b5a9c0;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 151, 0, 0.42);

    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --content-width: 1200px;
    --article-width: 800px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }

body {
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 151, 0, 0.22) 0%, transparent 44%),
        radial-gradient(circle at 80% 22%, rgba(140, 0, 255, 0.16) 0%, transparent 46%),
        radial-gradient(circle at 20% 55%, rgba(255, 151, 0, 0.10) 0%, transparent 36%),
        radial-gradient(circle at 84% 65%, rgba(140, 0, 255, 0.14) 0%, transparent 42%),
        #060309;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow { max-width: 960px; }

/* --------------------------------------------------------------------------
   ТИПОГРАФИКА
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.005em;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #ffffff 46%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: #ffb347; }

/* --------------------------------------------------------------------------
   ШАПКА
   -------------------------------------------------------------------------- */
.blog-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 5, 9, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.blog-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.blog-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.blog-header__logo img { height: 34px; width: auto; }

.blog-header__divider {
    width: 1px;
    height: 26px;
    background: var(--border-color);
    flex-shrink: 0;
}

.blog-header__section {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    white-space: nowrap;
}

.blog-header__nav { display: flex; align-items: center; gap: 10px; }

.blog-header__back {
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}

.blog-header__back:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 151, 0, 0.5);
    color: #fff;
}

.btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn--full { width: 100%; }
.btn--small { padding: 10px 18px; font-size: 13px; }

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn--tg {
    background: rgba(44, 165, 141, 0.16);
    border: 1px solid rgba(44, 165, 141, 0.45);
    color: #fff;
    text-transform: none;
    letter-spacing: 0.02em;
}

.btn--tg:hover {
    background: rgba(44, 165, 141, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.btn--tg svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   КАРТОЧКИ (GLASS)
   -------------------------------------------------------------------------- */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   ХЛЕБНЫЕ КРОШКИ
   -------------------------------------------------------------------------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 0 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { opacity: 0.45; }
.breadcrumbs .current { color: var(--text-main); }

/* --------------------------------------------------------------------------
   ХАБ: ГЕРОЙ
   -------------------------------------------------------------------------- */
.hub-hero { padding: 48px 0 20px; }

.hub-hero__badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid rgba(255, 151, 0, 0.4);
    background: rgba(255, 151, 0, 0.08);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    color: var(--primary);
    text-transform: uppercase;
}

.hub-hero h1 {
    font-size: clamp(30px, 5vw, 46px);
    margin: 18px 0 14px;
    max-width: 900px;
}

.hub-hero__lead {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 760px;
}

/* --------------------------------------------------------------------------
   ХАБ: ФИЛЬТР КАТЕГОРИЙ
   -------------------------------------------------------------------------- */
.hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 26px 0 6px;
}

.hub-filter {
    padding: 9px 18px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hub-filter:hover { border-color: var(--border-hover); color: #fff; }

.hub-filter.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: #fff;
    font-weight: 600;
}

.hub-filter .cnt { opacity: 0.65; font-size: 12.5px; margin-left: 5px; }

/* --------------------------------------------------------------------------
   ХАБ: СЕТКА КАРТОЧЕК
   -------------------------------------------------------------------------- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 22px 0 30px;
}

.post-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
}

.post-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.post-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.post-card__cat {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 151, 0, 0.35);
    background: rgba(255, 151, 0, 0.07);
    white-space: nowrap;
}

.post-card__date {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.post-card h3 {
    font-size: 19px;
    line-height: 1.32;
    margin-bottom: 10px;
}

.post-card h3 a { color: var(--text-main); }
.post-card h3 a:hover { color: var(--primary); }

.post-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 16px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.hub-empty {
    display: none;
    text-align: center;
    padding: 50px 0;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   СТАТЬЯ: ШАПКА
   -------------------------------------------------------------------------- */
.article-header { padding: 34px 0 10px; }

.article-header__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.article-header__cat {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(255, 151, 0, 0.35);
    background: rgba(255, 151, 0, 0.07);
}

.article-header__dot::before { content: "·"; opacity: 0.6; }

.article-header h1 {
    font-size: clamp(28px, 4.6vw, 42px);
    line-height: 1.18;
    margin-bottom: 16px;
    max-width: 900px;
}

.article-header__lead {
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 820px;
}

.article-figure { margin: 30px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-color); }
.article-figure img { width: 100%; }
.article-figure figcaption {
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   СТАТЬЯ: ТЕЛО
   -------------------------------------------------------------------------- */
.article-body {
    padding: 26px 0 10px;
}

.article-content {
    font-size: 16.5px;
    line-height: 1.72;
}

.article-content > * + * { margin-top: 18px; }

.article-content h2 {
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.25;
    margin-top: 44px;
    scroll-margin-top: 90px;
}

.article-content h3 {
    font-size: 19.5px;
    margin-top: 32px;
    scroll-margin-top: 90px;
}

.article-content p strong { color: #fff; }

.article-content ul, .article-content ol {
    padding-left: 22px;
    display: grid;
    gap: 8px;
}

.article-content li::marker { color: var(--primary); }

.article-content blockquote {
    border-left: 3px solid var(--primary);
    background: rgba(255, 151, 0, 0.06);
    padding: 14px 20px;
    border-radius: 0 12px 12px 0;
    color: var(--text-muted);
    font-size: 15.5px;
}

/* Таблицы */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 520px;
}

.article-content th {
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 151, 0, 0.35);
    background: rgba(255, 151, 0, 0.05);
}

.article-content td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.article-content tr:last-child td { border-bottom: none; }

/* Callout-блоки */
.callout {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 15.5px;
}

.callout__icon { font-size: 22px; line-height: 1.4; flex-shrink: 0; }
.callout--warn { border-color: rgba(255, 90, 90, 0.35); background: rgba(255, 90, 90, 0.05); }
.callout--ok { border-color: rgba(0, 166, 81, 0.4); background: rgba(0, 166, 81, 0.06); }
.callout strong { color: #fff; }

/* Оглавление */
.toc {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    padding: 18px 22px;
    margin: 26px 0;
}

.toc__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--text-muted); font-size: 14.5px; }
.toc a:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-sec { padding: 40px 0 10px; }

.faq-sec h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 20px; }

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
}

.faq-item__header h3 {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-primary);
    line-height: 1.4;
}

.faq-item__icon {
    font-size: 22px;
    font-weight: 300;
    color: var(--primary);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.faq-item.open .faq-item__icon { transform: rotate(45deg); }

.faq-item__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__content p {
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   CTA-БЛОК
   -------------------------------------------------------------------------- */
.article-cta {
    margin: 44px 0;
    border: 1px solid rgba(255, 151, 0, 0.35);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 151, 0, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 88% 80%, rgba(140, 0, 255, 0.12) 0%, transparent 50%),
        var(--bg-card);
    padding: 30px;
}

.article-cta h2 { font-size: 24px; margin-bottom: 10px; }

.article-cta p {
    color: var(--text-muted);
    font-size: 15.5px;
    margin-bottom: 20px;
}

.article-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.article-cta__note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
    margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   ЧИТАЙТЕ ТАКЖЕ
   -------------------------------------------------------------------------- */
.related-sec { padding: 30px 0 50px; }

.related-sec h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 20px; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* --------------------------------------------------------------------------
   ФУТЕР
   -------------------------------------------------------------------------- */
.blog-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0 30px;
    margin-top: 20px;
}

.blog-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.blog-footer__brand { display: flex; align-items: center; gap: 12px; }
.blog-footer__brand img { height: 34px; width: auto; }

.blog-footer__links { display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.blog-footer__links a { color: var(--text-muted); }
.blog-footer__links a:hover { color: var(--primary); }

.blog-footer__legal {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-footer__legal p { margin-bottom: 4px; }

.blog-footer__disclaimer {
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    text-align: center;
}

.warning-text {
    font-weight: 800;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.legal-text {
    font-size: 11.5px;
    color: rgba(181, 169, 192, 0.75);
    line-height: 1.6;
    max-width: 980px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   АДАПТИВ
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .hub-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hub-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .article-cta { padding: 22px; }
    .article-cta__actions .btn { width: 100%; }
    .blog-header__section { display: none; }
    .blog-header__divider { display: none; }
    .blog-header__back { display: none; }
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
