/* =============================================
   Article page — Multilogin-inspired, site palette
   ============================================= */

.article-page {
    padding-top: 0;
}

/* ---- breadcrumb: moved to global breadcrumbs.css ---- */

/* ---- hero ---- */
.article-hero {
    padding: 60px 0 40px;
    border-bottom: 1px solid #e8e8ec;
    text-align: center;
}

.article-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-hero h1 {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1c1c1c;
    margin: 0 0 16px;
    max-width: 760px;
    text-align: center;
}

.article-hero-sub {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    color: #666;
    max-width: 680px;
    margin: 0 0 32px;
    text-align: center;
}

/* meta */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1c91f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-author-avatar span {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.article-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-author-name {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1c;
    text-decoration: none;
}

.article-author-name:hover {
    color: #1c91f8;
}

.article-meta-details {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccc;
}

/* ---- body grid ---- */
.article-body {
    padding: 50px 0 60px;
}

.article-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
}

/* ---- sidebar ---- */
.article-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
}

.article-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    width: 260px;
    transition: none;
}

/* ---- sidebar logo (visible only when fixed) ---- */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.88) translateY(-6px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.sidebar-logo-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: url("../website/images/logo.gif") center / 50px 50px no-repeat;
    box-shadow: 0 8px 24px rgba(8, 8, 8, 0.14);
}

.sidebar-logo-text {
    font: 800 15px/1.2 "Geometria", sans-serif;
    letter-spacing: 0.03em;
    color: #121212;
}

.article-sidebar-inner.is-fixed .sidebar-logo,
.article-sidebar-inner.is-bottom .sidebar-logo {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    height: auto;
    overflow: visible;
    margin-bottom: 4px;
}

.article-sidebar-inner.is-fixed {
    position: fixed;
    top: 120px !important;
}

.article-sidebar-inner.is-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
}

/* TOC */
.article-toc {
    border-left: 2px solid #e8e8ec;
    padding-left: 16px;
}

.article-toc-title {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 14px;
}

.article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc li {
    margin-bottom: 0;
}

.article-toc a {
    display: block;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #888;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
    border-left: 2px solid transparent;
    margin-left: -18px;
    padding-left: 16px;
}

.article-toc a:hover {
    color: #1c1c1c;
}

.article-toc a.active {
    color: #1c91f8;
    border-left-color: #1c91f8;
    font-weight: 500;
}

/* Sidebar CTA */
.article-sidebar-cta {
    background: #f4f5f9;
    border-radius: 12px;
    padding: 20px;
}

.article-sidebar-cta-title {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 10px;
}

.article-sidebar-cta p {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
    color: #666;
    margin: 0 0 16px;
}

.article-sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: #1c91f8;
    color: #fff;
    text-decoration: none;
    transition: background 0.25s;
}

.article-sidebar-cta-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.article-sidebar-cta-btn:hover {
    background: #0d7de8;
}

.article-sidebar-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ---- content ---- */
.article-content {
    max-width: 760px;
    min-width: 0;
}

.article-content h2 {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1c1c1c;
    margin: 0 0 20px;
    padding-top: 0;
    scroll-margin-top: 10rem;
    position: relative;
    transition: color 0.4s ease;
    width: fit-content;
}

.article-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #1c91f8 0%, #59b5ff 100%);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-content h2.is-heading-active {
    color: #1c91f8;
}

.article-content h2.is-heading-active::after {
    width: 100%;
}

@keyframes headingGlow {
    0%   { box-shadow: none; }
    30%  { box-shadow: -8px 0 20px -4px rgba(28, 145, 248, 0.25); }
    100% { box-shadow: none; }
}

.article-content h2.is-heading-flash {
    animation: headingGlow 1s ease-out;
}

/* --- scroll reveal --- */
.article-content section {
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-content section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.article-content blockquote {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.article-content blockquote.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.article-levels-diagram .article-level-card {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-levels-diagram .article-level-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.article-inline-cta {
    opacity: 0;
    transform: scale(0.82) translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-inline-cta.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

@keyframes ctaShine {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.article-inline-cta.is-visible .article-inline-cta-inner {
    animation: ctaPulse 0.6s 0.7s ease-out both;
}

@keyframes ctaPulse {
    0%   { box-shadow: 0 0 0 0 rgba(28, 145, 248, 0.4); }
    70%  { box-shadow: 0 0 0 14px rgba(28, 145, 248, 0); }
    100% { box-shadow: 0 8px 32px rgba(28, 145, 248, 0.15); }
}

.article-inline-cta.is-visible .article-inline-cta-btn {
    animation: ctaBtnAppear 0.5s 0.9s ease-out both;
}

@keyframes ctaBtnAppear {
    0%   { opacity: 0; transform: scale(0.8) translateY(6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.article-related-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-related-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.article-content h3 {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #1c1c1c;
    margin: 28px 0 14px;
    padding-top: 0;
}

.article-content p {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: #333;
    margin: 0 0 16px;
}

.article-content ul,
.article-content ol {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    color: #333;
    margin: 0 0 16px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    font-weight: 600;
    color: #1c1c1c;
}

/* article figures (illustrations) */
.article-figure {
    margin: 28px 0;
    padding: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.article-figure.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.article-figure img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: box-shadow 0.3s ease;
}
.article-figure a.article-lightbox:hover img {
    box-shadow: 0 8px 40px rgba(28, 145, 248, 0.2);
}

.article-figure figcaption {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #999;
    margin-top: 10px;
    line-height: 1.4;
}

/* blockquote */
.article-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    border-left: 4px solid #1c91f8;
    background: rgba(28, 145, 248, 0.04);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    font-size: 16px;
    font-style: italic;
    color: #333;
    margin-bottom: 8px;
}

.article-content blockquote cite {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    color: #888;
}

/* tables */
.article-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0 32px;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8ec;
}

.article-table th {
    background: linear-gradient(135deg, #f4f5f9 0%, #eef0f6 100%);
    font-weight: 600;
    color: #1c1c1c;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid #dfe1e8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    position: relative;
}

.article-table th:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #dfe1e8;
}

.article-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f1f4;
    color: #444;
    font-weight: 300;
    line-height: 1.55;
    vertical-align: top;
    transition: background 0.2s ease;
}

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

.article-table tbody tr:hover td {
    background: rgba(28, 145, 248, 0.03);
}

.article-table td strong {
    font-weight: 500;
    color: #1c1c1c;
}

.article-table td code {
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 12px;
    background: #f4f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1c91f8;
    white-space: nowrap;
}

/* comparison table: 3rd column highlighted */
.article-table--comparison td:nth-child(3) {
    color: #1c91f8;
    font-weight: 400;
}

.article-table--comparison td:first-child {
    font-weight: 500;
    color: #1c1c1c;
}

/* reference/summary table with status indicators */
.article-table--summary td:nth-child(1) {
    font-weight: 500;
    color: #1c1c1c;
    white-space: nowrap;
}

.article-table--summary td:nth-child(2) {
    font-weight: 400;
}

/* Color-coded layer badges */
.article-table .badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.article-table .badge--hw {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.article-table .badge--os {
    background: rgba(20, 184, 166, 0.1);
    color: #0d9488;
}

.article-table .badge--browser {
    background: rgba(28, 145, 248, 0.1);
    color: #1c91f8;
}

.article-table .badge--network {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.article-table .badge--mixed {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

/* Entropy indicators */
.article-table .entropy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-table .entropy::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.article-table .entropy--high::before {
    background: #ef4444;
}

.article-table .entropy--medium::before {
    background: #f59e0b;
}

.article-table .entropy--low::before {
    background: #22c55e;
}

/* Status icons in tables */
.article-table .status-yes {
    color: #16a34a;
    font-weight: 500;
}

.article-table .status-no {
    color: #dc2626;
    font-weight: 500;
}

.article-table .status-partial {
    color: #d97706;
    font-weight: 500;
}

/* three-level diagram */
.article-levels-diagram {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.article-level-card {
    flex: 1;
    background: #f4f5f9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e8e8ec;
}

.article-level-num {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1c91f8;
    line-height: 1;
    margin-bottom: 8px;
}

.article-level-label {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1c;
    margin-bottom: 6px;
}

.article-level-desc {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.5;
    color: #888;
}

/* inline CTA */
.article-inline-cta {
    margin: 48px 0;
}

.article-inline-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #1c91f8 0%, #0d6ecc 100%);
    border-radius: 16px;
    padding: 32px 36px;
}

.article-inline-cta-text strong {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.article-inline-cta-text p {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin: 6px 0 0;
}

.article-inline-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #1c91f8;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.article-inline-cta-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.article-inline-cta-btn:hover {
    background: #f0f7ff;
    transform: translateY(-1px);
}

.article-inline-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ---- author bio ---- */
.article-author-bio {
    border-top: 1px solid #e8e8ec;
    border-bottom: 1px solid #e8e8ec;
    padding: 40px 0;
}

.article-author-bio-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-author-bio-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1c91f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-author-bio-avatar span {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.article-author-bio-label {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 2px;
}

.article-author-bio-name {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1c1c1c;
    text-decoration: none;
}

.article-author-bio-name:hover {
    color: #1c91f8;
}

.article-author-bio-role {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #888;
    margin-top: 2px;
}

/* ---- related articles ---- */
.article-related {
    padding: 60px 0 80px;
}

.article-related h2 {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1c1c1c;
    margin: 0 0 30px;
}

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

.article-related-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e8e8ec;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.2s;
}

.article-related-card:hover {
    box-shadow: 0 8px 28px rgba(28, 145, 248, 0.08);
    transform: translateY(-2px);
}

.article-related-card h3 {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #1c1c1c;
    margin: 0 0 10px;
    padding: 0;
}

.article-related-card p {
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: #888;
    margin: 0;
}

.article-related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    font-family: "HelveticaNeueCyr", sans-serif;
    font-size: 13px;
    color: #999;
}

.article-related-card-footer svg {
    color: #1c91f8;
    transition: transform 0.2s;
}

.article-related-card:hover .article-related-card-footer svg {
    transform: translateX(3px);
}

/* ---- responsive ---- */

/* --- Tablet (max-width: 991px) --- */
@media (max-width: 991px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .article-sidebar {
        position: static;
        margin-bottom: 40px;
        padding-bottom: 30px;
        border-bottom: 1px solid #e8e8ec;
    }
    .article-sidebar-inner {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        overflow: visible !important;
        flex-direction: row;
        gap: 20px;
    }
    .article-sidebar-inner.is-fixed,
    .article-sidebar-inner.is-bottom {
        position: static !important;
    }
    .sidebar-logo {
        display: none;
    }
    .article-toc {
        flex: 1;
    }
    .article-sidebar-cta {
        flex: 1;
    }
    .article-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile (max-width: 767px) --- */
@media (max-width: 767px) {
    .article-hero {
        padding: 40px 0 30px;
    }
    .article-hero h1 {
        font-size: 28px;
    }
    .article-hero-sub {
        font-size: 16px;
    }
    .article-sidebar {
        flex-direction: column;
    }
    .article-content h2 {
        font-size: 22px;
    }
    .article-content h3 {
        font-size: 18px;
    }
    .article-levels-diagram {
        flex-direction: column;
    }
    .article-inline-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .article-related-grid {
        grid-template-columns: 1fr;
    }
    .article-table {
        font-size: 13px;
    }
    .article-table th,
    .article-table td {
        padding: 8px 10px;
    }
}

/* --- Small mobile (max-width: 575px) --- */
@media (max-width: 575px) {
    /* Side padding for container */
    .article-page .container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    /* Hero */
    .article-hero { padding: 30px 0 24px; }
    .article-hero h1 { font-size: 24px; margin-bottom: 12px; }
    .article-hero-sub { font-size: 14px; line-height: 1.55; margin-bottom: 24px; }

    /* Body */
    .article-body { padding: 30px 0 40px; }

    /* Sidebar: hide TOC, keep CTA compact */
    .article-toc { display: none; }
    .article-sidebar {
        margin-bottom: 24px;
        padding-bottom: 0;
        border-bottom: none;
    }
    .article-sidebar-inner {
        flex-direction: column;
        gap: 0;
    }
    .article-sidebar-cta {
        padding: 16px;
        border-radius: 10px;
    }
    .article-sidebar-cta-title { font-size: 15px; }
    .article-sidebar-cta p { font-size: 13px; margin-bottom: 12px; }
    .article-sidebar-cta-btn { font-size: 13px; padding: 8px 16px; }

    /* Content typography */
    .article-content p,
    .article-content ul,
    .article-content ol { font-size: 15px; line-height: 1.7; }
    .article-content h2 { font-size: 20px; margin-bottom: 14px; }
    .article-content h3 { font-size: 17px; margin: 20px 0 10px; }
    .article-content section { margin-bottom: 32px; }
    .article-content blockquote { padding: 16px 18px; margin: 18px 0; }
    .article-content blockquote p { font-size: 14px; }

    /* Figures */
    .article-figure { margin: 20px 0; }
    .article-figure img { border-radius: 8px; }
    .article-figure figcaption { font-size: 12px; }

    /* Tables — horizontal scroll */
    .article-content .article-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    /* Level cards */
    .article-level-card { padding: 16px; }
    .article-level-num { font-size: 26px; }
    .article-level-label { font-size: 14px; }
    .article-level-desc { font-size: 12px; }

    /* Inline CTA */
    .article-inline-cta { margin: 30px 0; }
    .article-inline-cta-inner { padding: 20px 16px; border-radius: 12px; gap: 16px; }
    .article-inline-cta-text strong { font-size: 17px; }
    .article-inline-cta-text p { font-size: 13px; }
    .article-inline-cta-btn { padding: 10px 20px; font-size: 13px; }

    /* Author bio */
    .article-author-bio { padding: 28px 0; }
    .article-author-bio-avatar { width: 44px; height: 44px; }
    .article-author-bio-avatar span { font-size: 15px; }
    .article-author-bio-name { font-size: 16px; }
    .article-author-bio-role { font-size: 13px; }

    /* Related */
    .article-related { padding: 40px 0 50px; }
    .article-related h2 { font-size: 22px; margin-bottom: 20px; }
    .article-related-card { padding: 18px; }
    .article-related-card h3 { font-size: 15px; }
    .article-related-card p { font-size: 13px; }

    /* Meta */
    .article-meta-details { font-size: 12px; }
}

/* Lightbox (Magnific Popup) — article gallery */
.mfp-article-lightbox.mfp-bg {
    background: #0a0a0a;
    opacity: 0.92;
    z-index: 100000;
}
.mfp-article-lightbox.mfp-wrap {
    z-index: 100001;
}
.mfp-article-lightbox .mfp-container {
    padding: 20px;
}
.mfp-article-lightbox .mfp-img {
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
/* Fade transition between gallery images */
.mfp-article-lightbox .mfp-image-holder .mfp-content {
    animation: mfp-fade-in 0.3s ease;
}
@keyframes mfp-fade-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.mfp-article-lightbox .mfp-title {
    font-family: 'HelveticaNeueCyr', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 0 0;
    text-align: center;
}
.mfp-article-lightbox .mfp-counter {
    font-family: 'Geometria', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    right: 0;
    width: 100%;
    text-align: center;
}
.mfp-article-lightbox .mfp-close {
    color: #fff;
    font-size: 28px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.mfp-article-lightbox .mfp-close:hover {
    opacity: 1;
}
.mfp-article-lightbox .mfp-arrow {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.mfp-article-lightbox .mfp-arrow:hover {
    opacity: 1;
}
.mfp-article-lightbox .mfp-arrow-left::before,
.mfp-article-lightbox .mfp-arrow-left::after {
    border-right-color: #fff;
}
.mfp-article-lightbox .mfp-arrow-right::before,
.mfp-article-lightbox .mfp-arrow-right::after {
    border-left-color: #fff;
}
/* Fade open/close animation */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.92;
}
.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}
.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
    opacity: 1;
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
}
