/* ══════════════════════════════════════════════════════
   SINGLE ARTICLE — single-article.css
   Типошкала: только переменные из :root (style.css)
   Брейкпоинты: 1280, 1024, 768, 480px
══════════════════════════════════════════════════════ */

/* ── PROGRESS BAR ─────────────────────────────────── */
.reading-progress {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gray-200);
    z-index: 9999;
}
.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--blue-light));
    width: 0%;
    transition: width 0.1s linear;
}

/* ── ARTICLE HERO ──────────────────────────────────── */
.article-hero {
    position: relative;
    background: var(--dark);
    overflow: hidden;
}
.article-hero-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center 35%;
}
.article-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(13,30,58,0.55) 0%,
            rgba(13,30,58,0.7) 40%,
            rgba(13,30,58,0.97) 100%
    );
}
.article-hero-grid {
    position: absolute; inset: 0;
    background-image:
            linear-gradient(rgba(26,111,212,0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(26,111,212,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}
.article-hero-content {
    position: relative; z-index: 2;
    padding: 72px 0 56px;
    max-width: 820px;
}

/* Пилюля-eyebrow */
.article-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,111,212,0.18);
    border: 1px solid rgba(61,143,232,0.35);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

/* Заголовок героя */
.article-hero-title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-black);
    color: white;
    line-height: 1.08;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}
.article-hero-title span { color: var(--blue-light); }

/* Мета */
.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
    font-weight: var(--fw-medium);
}
.meta-item i { color: var(--blue-light); font-size: var(--text-xs); }
.meta-item strong { color: rgba(255,255,255,0.9); }
.meta-divider {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

/* Автор в герое */
.article-hero-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    width: fit-content;
    backdrop-filter: blur(8px);
}
.hero-author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--blue-light);
    flex-shrink: 0;
}
.hero-author-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-author-name {
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    color: white;
}
.hero-author-role {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.hero-author-badge {
    margin-left: auto;
    background: rgba(26,111,212,0.25);
    border: 1px solid rgba(61,143,232,0.3);
    color: var(--blue-light);
    font-size: 10px;
    font-weight: var(--fw-bold);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── ARTICLE LAYOUT ────────────────────────────────── */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 48px 0 80px;
    align-items: start;
}

/* ── ARTICLE CONTENT ───────────────────────────────── */
.article-content { min-width: 0; }

/* Блок ключевых данных */
.article-keyinfo {
    background: linear-gradient(135deg, rgba(26,111,212,0.06), rgba(61,143,232,0.04));
    border: 1px solid rgba(26,111,212,0.15);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
    margin-bottom: 40px;
}
.keyinfo-title {
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.keyinfo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.keyinfo-label {
    font-size: 10px;
    color: var(--gray-400);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.keyinfo-val {
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: var(--dark);
}

/* ── ТЕЛО СТАТЬИ (типография) ─────────────────────── */
.article-body {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.8;
}
.article-body p { margin-bottom: 22px; }

.article-body h2 {
    font-size: var(--text-xl);
    font-weight: var(--fw-black);
    color: var(--dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 48px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}
.article-body h2::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 48px; height: 2px;
    background: var(--blue);
}

.article-body h3 {
    font-size: var(--text-md);
    font-weight: var(--fw-black);
    color: var(--dark);
    letter-spacing: -0.3px;
    margin: 32px 0 14px;
}

/* Highlight-box */
.highlight-box {
    background: rgba(26,111,212,0.05);
    border: 1px solid rgba(26,111,212,0.15);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 32px 0;
}
.highlight-box-icon {
    width: 36px; height: 36px;
    background: rgba(26,111,212,0.12);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: var(--text-base);
    margin-bottom: 12px;
}
.highlight-box-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    color: var(--dark);
    margin-bottom: 8px;
}
.highlight-box p { margin-bottom: 0; font-size: var(--text-sm); }

/* Warning-box */
.warning-box {
    background: rgba(255,107,0,0.05);
    border: 1px solid rgba(255,107,0,0.2);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 20px 24px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.warning-box-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    background: rgba(255,107,0,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: var(--text-sm);
}
.warning-box-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    color: var(--accent);
    margin-bottom: 5px;
}
.warning-box p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* Data table */
.data-table-wrap {
    margin: 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.data-table-head {
    background: var(--dark);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.data-table-head-icon { color: var(--blue-light); font-size: var(--text-sm); }
.data-table-head-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: white;
}
.data-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.data-table-wrap thead tr { background: rgba(26,111,212,0.06); }
.data-table-wrap thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
}
.data-table-wrap tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}
.data-table-wrap tbody tr:last-child { border-bottom: none; }
.data-table-wrap tbody tr:hover { background: rgba(26,111,212,0.03); }
.data-table-wrap tbody td {
    padding: 12px 16px;
    font-size: var(--text-sm);
    color: var(--gray-600);
}
.data-table-wrap tbody td:first-child {
    font-weight: var(--fw-bold);
    color: var(--dark);
}
.td-good { color: #00a861; font-weight: var(--fw-bold); }
.td-bad  { color: #e03131; font-weight: var(--fw-bold); }
.td-mid  { color: var(--accent); font-weight: var(--fw-bold); }

/* Step list */
.steps-list {
    list-style: none;
    margin: 24px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}
.step-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
    align-items: start;
}
.step-num {
    width: 40px; height: 40px;
    flex-shrink: 0;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    font-weight: var(--fw-black);
    color: white;
}
.step-title {
    font-size: var(--text-base);
    font-weight: var(--fw-black);
    color: var(--dark);
    margin-bottom: 5px;
}
.step-desc {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.65;
}

/* Bullet list */
.article-body ul.article-list {
    padding-left: 0;
    margin: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}
.article-body ul.article-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.6;
}
.article-body ul.article-list li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    margin-top: 8px;
}

/* Image block */
.article-img-block {
    margin: 36px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}
.article-img-block img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}
.article-img-caption {
    padding: 12px 18px;
    background: var(--off-white);
    font-size: var(--text-xs);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 7px;
}
.article-img-caption i {
    color: var(--blue-light);
    font-size: var(--text-xs);
}

/* Quote */
.article-quote {
    margin: 36px 0;
    padding: 28px 32px;
    background: var(--dark);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.article-quote::before {
    content: '"';
    position: absolute;
    top: -10px; left: 20px;
    font-size: 120px;
    font-weight: var(--fw-black);
    color: rgba(26,111,212,0.15);
    line-height: 1;
    font-family: Georgia, serif;
}
.article-quote-text {
    position: relative; z-index: 2;
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: white;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 16px;
}
.article-quote-author {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative; z-index: 2;
}
.quote-author-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--blue-light);
}
.quote-author-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.quote-author-name {
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: rgba(255,255,255,0.9);
}
.quote-author-role {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.45);
}

/* ── ARTICLE FOOTER BAR ────────────────────────────── */
.article-footer-bar {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px solid var(--gray-100);
}

/* Теги */
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.article-tags-label {
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: var(--fw-semi);
    color: var(--blue);
    border: 1.5px solid rgba(26,111,212,0.25);
    background: rgba(26,111,212,0.06);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.article-tag:hover {
    background: rgba(26,111,212,0.12);
    border-color: var(--blue);
}

/* Поделиться */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.share-label {
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    background: white;
    text-decoration: none;
    font-family: inherit;
}
.share-btn.vk  { --c: #4680C2; }
.share-btn.tg  { --c: #2AABEE; }
.share-btn:hover {
    border-color: var(--c, var(--blue));
    color: var(--c, var(--blue));
}

/* Блок автора */
.author-box {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 40px;
}
.author-box-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--blue-light);
}
.author-box-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.author-box-badge {
    font-size: 10px;
    font-weight: var(--fw-black);
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.author-box-name {
    font-size: var(--text-lg);
    font-weight: var(--fw-black);
    color: var(--dark);
    margin-bottom: 4px;
}
.author-box-role {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-bottom: 10px;
}
.author-box-bio {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.65;
}

/* ── RELATED ARTICLES ──────────────────────────────── */
.related-section { margin-top: 8px; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.section-eyebrow::before {
    content: '';
    width: 20px; height: 2px;
    background: var(--blue);
    border-radius: 2px;
}
.section-title {
    font-size: 28px;
    font-weight: var(--fw-black);
    color: var(--dark);
    letter-spacing: -0.6px;
    margin-bottom: 24px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue-light);
}
.related-card-img {
    height: 160px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}
.related-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-cat {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(13,30,58,0.8);
    color: white;
    font-size: 10px;
    font-weight: var(--fw-black);
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.related-card-body { padding: 16px 18px; }
.related-card-meta {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-card-meta i { color: var(--blue-light); font-size: 9px; }
.related-card-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    color: var(--dark);
    line-height: 1.35;
    transition: var(--transition);
}
.related-card:hover .related-card-title { color: var(--blue); }

/* ── SIDEBAR ───────────────────────────────────────── */
.sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* TOC */
.toc-widget {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    overflow: hidden;
}
.toc-head {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
}
.toc-head-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(26,111,212,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: var(--text-sm);
}
.toc-head-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    color: var(--dark);
}
.toc-list {
    padding: 14px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: var(--fw-medium);
    border-left: 2px solid transparent;
}
.toc-item:hover {
    background: var(--off-white);
    color: var(--blue);
    border-left-color: var(--blue-light);
}
.toc-item.active {
    background: rgba(26,111,212,0.07);
    color: var(--blue);
    font-weight: var(--fw-bold);
    border-left-color: var(--blue);
}
.toc-num {
    font-size: var(--text-xs);
    color: var(--blue-light);
    font-weight: var(--fw-bold);
    min-width: 18px;
}

/* Expert CTA */
.expert-cta {
    background: linear-gradient(135deg, var(--dark), var(--gray-800));
    border-radius: 18px;
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
}
.expert-cta::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
            linear-gradient(rgba(26,111,212,0.07) 1px, transparent 1px),
            linear-gradient(90deg, rgba(26,111,212,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}
.expert-cta-inner { position: relative; z-index: 2; }
.expert-cta-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(26, 212, 79, 0.2);
    border: 1px solid rgba(61, 232, 75, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: var(--text-lg);
    margin-bottom: 14px;
}
.expert-cta-title {
    font-size: var(--text-md);
    font-weight: var(--fw-black);
    color: white;
    line-height: 1.3;
    margin-bottom: 8px;
}
.expert-cta-desc {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin-bottom: 18px;
}
.expert-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--green);
    color: white;
    border-radius: 10px;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}
.expert-cta-btn:hover { background: var(--green); }
.expert-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.45);
}
.expert-cta-phone i { font-size: 10px; color: var(--green); }
.expert-cta-phone a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color var(--transition);
}
.expert-cta-phone a:hover { color: white; }

/* Sidebar widget */
.sidebar-widget {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    overflow: hidden;
}
.widget-head {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget-head-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: rgba(26,111,212,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: var(--text-sm);
}
.widget-title {
    font-size: var(--text-sm);
    font-weight: var(--fw-black);
    color: var(--dark);
}
.widget-body { padding: 14px 20px 18px; }

.sidebar-article {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-article:hover .sidebar-article-title { color: var(--blue); }
.sidebar-article-thumb {
    width: 56px; height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.sidebar-article-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.sidebar-article-cat {
    font-size: 10px;
    font-weight: var(--fw-bold);
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 3px;
}
.sidebar-article-title {
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--dark);
    line-height: 1.35;
    transition: var(--transition);
}
.sidebar-article-time {
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 3px;
}

/* ── CTA STRIP ─────────────────────────────────────── */
.cta-strip {
    background: var(--blue);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
            linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.cta-strip .container {
    position: relative; z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cta-strip-text h2 {
    font-size: var(--text-2xl);
    font-weight: var(--fw-black);
    color: white;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}
.cta-strip-text p {
    font-size: var(--text-base);
    color: rgba(255,255,255,0.75);
}
.cta-strip-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}
.btn-cta-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--blue);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-cta-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-cta-outline-w {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 14px 24px;
    border-radius: 30px;
    font-size: var(--text-sm);
    font-weight: var(--fw-semi);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}
.btn-cta-outline-w:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ══════════════════════════════════════════════════════
   АДАПТИВ
══════════════════════════════════════════════════════ */

/* ── 1280px ─────────────────────────────────────────── */
@media (max-width: 1280px) {
    .article-layout {
        grid-template-columns: 1fr 290px;
        gap: 36px;
    }
}

/* ── 1024px — сайдбар уезжает вниз ──────────────────── */
@media (max-width: 1024px) {
    .article-hero-title {
        font-size: var(--text-2xl);
        letter-spacing: -0.8px;
    }

    /* Контент на всю ширину, сайдбар снизу */
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .sidebar {
        position: static;
        top: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        align-items: start;
    }
    /* TOC на планшете не нужен */
    .toc-widget { display: none; }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-strip .container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .cta-strip-text h2 { font-size: var(--text-xl); }
    .cta-strip-actions { justify-content: center; }

    .keyinfo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── 768px ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .article-hero-content {
        padding: 40px 0 36px;
    }
    .article-hero-title {
        font-size: var(--text-xl);
        letter-spacing: -0.5px;
    }
    .article-hero-meta {
        gap: 10px 14px;
    }
    .article-hero-author {
        width: 100%;
    }
    .hero-author-badge { display: none; }

    .article-layout {
        gap: 36px;
        padding: 32px 0 60px;
    }

    /* Сайдбар в одну колонку */
    .sidebar {
        grid-template-columns: 1fr;
    }

    .keyinfo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .article-keyinfo { padding: 18px 20px; }

    .article-body h2 {
        font-size: var(--text-lg);
        margin: 36px 0 14px;
    }
    .article-body h3 {
        font-size: var(--text-base);
    }
    .article-quote-text {
        font-size: var(--text-base);
    }
    .article-img-block img { height: 240px; }

    /* Таблица — горизонтальный скролл только при нехватке места */
    .data-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .data-table-wrap table { min-width: 520px; }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .related-card-img { height: 200px; }

    .cta-strip { padding: 40px 0; }
    .cta-strip-text h2 { font-size: var(--text-lg); }

    .article-share { flex-wrap: wrap; }
}

/* ── 600px — телефоны покрупнее ─────────────────────── */
@media (max-width: 600px) {
    .article-hero-content { padding: 32px 0 30px; }
    .article-hero-title { font-size: var(--text-lg); }

    .article-hero-meta {
        gap: 8px 12px;
    }
    /* Разделители-точки прячем, чтобы мета не сыпалась криво */
    .meta-divider { display: none; }

    .article-quote {
        padding: 24px 22px;
    }
    .article-quote::before { font-size: 90px; }

    .author-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
    .author-box-avatar { width: 60px; height: 60px; }

    .cta-strip-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .btn-cta-white,
    .btn-cta-outline-w {
        width: 100%;
        justify-content: center;
    }
}

/* ── 480px ──────────────────────────────────────────── */
@media (max-width: 480px) {
    .article-hero-content { padding: 24px 0 24px; }
    .article-hero-eyebrow {
        font-size: 10px;
        padding: 5px 12px;
        letter-spacing: 1.5px;
    }

    /* На самых узких — key-info в одну колонку, иначе значения мнутся */
    .keyinfo-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .keyinfo-val { font-size: var(--text-sm); }

    .article-body { font-size: var(--text-sm); }
    .article-body h2 { font-size: var(--text-base); }

    .step-item { grid-template-columns: 34px 1fr; gap: 12px; }
    .step-num { width: 34px; height: 34px; font-size: var(--text-sm); }

    .article-img-block img { height: 180px; }

    .section-title { font-size: var(--text-lg); }
    .related-card-img { height: 180px; }

    .author-box-name { font-size: var(--text-base); }

    .share-btn { padding: 8px 14px; font-size: 11px; }
    .article-tags { gap: 6px; }
    .article-tag { padding: 4px 10px; }

    .cta-strip { padding: 32px 0; }
    .cta-strip-text h2 { font-size: var(--text-base); }
    .cta-strip-text p { font-size: var(--text-sm); }
}


