/* Article page — Nexora Studio */

.article-hero {
    padding: 78px 0 44px;
}

.article-hero-card {
    border: 1px solid var(--line);
    border-radius: 44px 44px 90px 44px;
    padding: 44px;
    background:
        radial-gradient(circle at 82% 12%, rgba(34, 211, 238, .22), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
    box-shadow: var(--shadow);
}

.article-hero-card h1 {
    max-width: 980px;
}

.article-lead {
    max-width: 760px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.article-meta span {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    color: #d7dae7;
    font-size: 13px;
}

.article-author-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.article-author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    background: rgba(255, 255, 255, .045);
}

.article-author-info strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 4px;
}

.article-author-info span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.article-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 14px 34px rgba(34, 211, 238, .18);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.article-content {
    border: 1px solid var(--line);
    border-radius: 36px;
    padding: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035));
}

/* Защита, если случайно остался class="reveal" на большом контейнере */
.article-content.reveal,
.article-sidebar.reveal {
    opacity: 1;
    transform: none;
}

.article-content h2 {
    margin-top: 46px;
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.article-content p {
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 17px;
    line-height: 1.65;
}

.article-content strong {
    color: var(--text);
}

.article-content em {
    color: #d9dcff;
}

.article-content ul,
.article-content ol {
    margin: 16px 0 24px;
    padding-left: 22px;
    color: var(--muted);
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-content sup a {
    color: #67e8f9;
}

.article-news,
.article-note,
.article-summary,
.article-quick {
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 22px;
    margin: 26px 0;
    background: rgba(255, 255, 255, .05);
}

.article-news {
    border-color: rgba(34, 211, 238, .35);
    border-radius: 28px;
    padding: 24px;
    margin: 0 0 26px;
    background:
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, .14), transparent 30%),
        rgba(34, 211, 238, .06);
}

.article-quick {
    border-radius: 28px;
    padding: 24px;
    background:
        radial-gradient(circle at 90% 10%, rgba(34, 211, 238, .14), transparent 30%),
        rgba(255, 255, 255, .045);
}

.article-news h2,
.article-quick h2,
.article-summary h2,
.article-note h2 {
    font-size: 26px;
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -.04em;
}

.article-news-list {
    display: grid;
    gap: 14px;
}

.article-news-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .035);
}

.article-news-item>span {
    color: var(--accent-2);
    font-weight: 900;
}

.article-news-item h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.15;
}

.article-news-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.article-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.article-quick-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .035);
}

.article-quick-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.article-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(34, 211, 238, .16);
    color: #67e8f9;
    font-size: 13px;
    font-weight: 900;
}

.article-summary a {
    color: #d7dae7;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.article-summary a:hover {
    color: #fff;
}

.article-table-wrap {
    overflow-x: auto;
    margin: 24px 0 34px;
    border: 1px solid var(--line);
    border-radius: 22px;
    -webkit-overflow-scrolling: touch;
}

.article-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, .035);
}

.article-table th,
.article-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    color: var(--muted);
    vertical-align: top;
}

.article-table th {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-faq {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.article-faq-item {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, .04);
}

.article-faq-item h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.15;
}

.article-footer-cta {
    margin-top: 36px;
    border-radius: 32px;
    padding: 28px;
    background:
        radial-gradient(circle at 85% 15%, rgba(34, 211, 238, .22), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
    border: 1px solid var(--line);
}

.article-footer-cta h2 {
    margin-top: 0;
}

.article-footer-cta p {
    max-width: 640px;
}

.article-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.article-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 16px;
}

.article-side-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px;
    background: rgba(255, 255, 255, .045);
}

.article-side-card h3 {
    font-size: 20px;
    margin-bottom: 14px;
    letter-spacing: -.03em;
}

.article-toc {
    display: grid;
    gap: 10px;
}

.article-toc a {
    color: var(--muted);
    font-size: 14px;
    transition: .22s ease;
}

.article-toc a:hover {
    color: #fff;
}

.article-side-stats {
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.article-side-stats span {
    color: #fff;
    font-weight: 800;
}

.article-fresh {
    border-color: rgba(34, 211, 238, .35);
    background: rgba(34, 211, 238, .08);
}

.article-fresh p,
.article-side-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.article-related-list {
    display: grid;
    gap: 10px;
}

.article-related-link {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    font-weight: 700;
    transition: .22s ease;
}

.article-related-link:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, .45);
}

.article-related-link span {
    color: var(--accent-2);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.article-related,
.article-sources,
.article-footnotes {
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.article-sources a,
.article-footnotes a {
    color: #67e8f9;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.article-related-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, .04);
    transition: .22s ease;
}

.article-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, .45);
}

.article-related-card span {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #d9dcff;
    font-size: 12px;
}

.article-related-card strong {
    color: #fff;
    line-height: 1.15;
}

/* Tablet */
@media (max-width: 1050px) {
    .article-hero {
        padding: 64px 0 36px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-sidebar {
        position: static;
        top: auto;
        order: 2;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .article-side-card:first-child {
        grid-column: 1 / -1;
    }

    .article-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-toc a {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(255, 255, 255, .035);
    }
}

/* Small tablet */
@media (max-width: 900px) {

    .article-author-row,
    .article-quick-grid,
    .article-related-grid {
        grid-template-columns: 1fr;
    }

    .article-news-item {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-toc {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .article-hero {
        padding: 42px 0 28px;
    }

    .article-hero-card {
        padding: 24px;
        border-radius: 28px 28px 44px 28px;
    }

    .article-hero-card h1 {
        font-size: clamp(34px, 11vw, 52px);
        line-height: .98;
        letter-spacing: -.065em;
    }

    .article-lead {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.55;
    }

    .article-meta {
        gap: 8px;
        margin-top: 22px;
    }

    .article-meta span {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .article-author-row {
        margin-top: 20px;
        gap: 10px;
    }

    .article-author-card {
        align-items: flex-start;
        padding: 14px;
        border-radius: 18px;
    }

    .article-avatar {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 13px;
    }

    .article-author-info strong {
        font-size: 14px;
    }

    .article-author-info span {
        font-size: 12px;
    }

    .article-content {
        padding: 22px;
        border-radius: 26px;
    }

    .article-content h2 {
        margin-top: 38px;
        margin-bottom: 14px;
        font-size: clamp(26px, 8vw, 36px);
        line-height: 1.05;
    }

    .article-content h3 {
        margin-top: 24px;
        font-size: 22px;
        line-height: 1.1;
    }

    .article-content p {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: 16px;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 20px;
        margin: 14px 0 22px;
    }

    .article-content li {
        margin-bottom: 10px;
        line-height: 1.55;
    }

    .article-news,
    .article-note,
    .article-summary,
    .article-quick {
        padding: 18px;
        border-radius: 22px;
        margin: 20px 0;
    }

    .article-news {
        margin-top: 0;
    }

    .article-news h2,
    .article-quick h2,
    .article-summary h2,
    .article-note h2 {
        font-size: 23px;
        line-height: 1.1;
        margin-bottom: 14px;
    }

    .article-news-list,
    .article-quick-grid,
    .article-faq,
    .article-related-grid {
        gap: 10px;
    }

    .article-news-item,
    .article-quick-item {
        padding: 14px;
        border-radius: 16px;
    }

    .article-news-item>span {
        font-size: 13px;
    }

    .article-news-item h3 {
        font-size: 18px;
        line-height: 1.18;
    }

    .article-news-item p,
    .article-quick-item p {
        font-size: 14px;
        line-height: 1.5;
    }

    .article-check {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .article-table-wrap {
        margin: 20px 0 28px;
        border-radius: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-table-wrap::after {
        content: "← прокрутите таблицу →";
        display: block;
        padding: 10px 14px;
        color: var(--muted-2);
        font-size: 12px;
        border-top: 1px solid var(--line);
        background: rgba(255, 255, 255, .025);
    }

    .article-table {
        min-width: 620px;
    }

    .article-table th,
    .article-table td {
        padding: 13px;
        font-size: 14px;
    }

    .article-faq-item {
        padding: 16px;
        border-radius: 18px;
    }

    .article-faq-item h3 {
        font-size: 20px;
        line-height: 1.15;
    }

    .article-footer-cta {
        padding: 22px;
        border-radius: 24px;
        margin-top: 30px;
    }

    .article-footer-actions {
        display: grid;
        gap: 10px;
    }

    .article-footer-actions .btn {
        width: 100%;
    }

    .article-related,
    .article-sources,
    .article-footnotes {
        margin-top: 34px;
        padding-top: 20px;
    }

    .article-related-card {
        min-height: auto;
        padding: 16px;
        border-radius: 18px;
    }

    .article-sidebar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .article-side-card {
        padding: 18px;
        border-radius: 22px;
    }

    .article-side-card h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .article-toc {
        gap: 8px;
    }

    .article-toc a {
        min-height: 42px;
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 14px;
    }
}

/* Very small mobile */
@media (max-width: 420px) {

    .article-hero-card,
    .article-content {
        padding: 18px;
    }

    .article-hero-card h1 {
        font-size: 34px;
    }

    .article-meta span {
        width: 100%;
        justify-content: center;
    }

    .article-author-card {
        gap: 10px;
    }

    .article-avatar {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .article-news,
    .article-note,
    .article-summary,
    .article-quick {
        padding: 16px;
    }

    .article-table {
        min-width: 560px;
    }
}

/* ==========================================
   Article mobile hard fix — Nexora Studio
   Убирает горизонтальный скролл и добивает мобилку
========================================== */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.article-hero,
.article-layout,
.article-content,
.article-sidebar,
.article-hero-card,
.article-news,
.article-quick,
.article-summary,
.article-note,
.article-footer-cta,
.article-related,
.article-sources,
.article-footnotes {
    min-width: 0;
    max-width: 100%;
}

.article-content,
.article-sidebar {
    overflow-wrap: break-word;
    word-break: normal;
}

.article-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.article-table {
    width: 100%;
}

/* Мобилка */
@media (max-width: 760px) {
    .article-hero {
        padding: 38px 0 24px !important;
    }

    .article-hero-card {
        padding: 22px !important;
        border-radius: 26px !important;
    }

    .article-hero-card h1 {
        font-size: clamp(32px, 10.5vw, 48px) !important;
        line-height: 1 !important;
        letter-spacing: -.055em !important;
        max-width: 100% !important;
    }

    .article-lead {
        margin-top: 16px !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    .article-meta {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-top: 20px !important;
    }

    .article-meta span {
        width: 100% !important;
        min-height: 36px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 12px !important;
    }

    .article-author-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }

    .article-author-card {
        align-items: flex-start !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .article-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .article-content {
        padding: 20px !important;
        border-radius: 24px !important;
    }

    .article-content h2 {
        margin-top: 34px !important;
        margin-bottom: 14px !important;
        font-size: clamp(25px, 7.8vw, 34px) !important;
        line-height: 1.08 !important;
        letter-spacing: -.045em !important;
    }

    .article-content h3 {
        font-size: 21px !important;
        line-height: 1.15 !important;
    }

    .article-content p {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 20px !important;
    }

    .article-news,
    .article-quick,
    .article-summary,
    .article-note {
        padding: 16px !important;
        border-radius: 20px !important;
        margin: 18px 0 !important;
    }

    .article-news {
        margin-top: 0 !important;
    }

    .article-news h2,
    .article-quick h2,
    .article-summary h2,
    .article-note h2 {
        font-size: 22px !important;
        line-height: 1.12 !important;
    }

    .article-news-item {
        grid-template-columns: 1fr !important;
        padding: 14px !important;
    }

    .article-quick-grid,
    .article-related-grid {
        grid-template-columns: 1fr !important;
    }

    .article-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin: 18px 0 26px !important;
        border-radius: 18px !important;
    }

    .article-table {
        min-width: 640px !important;
    }

    .article-table th,
    .article-table td {
        padding: 12px !important;
        font-size: 14px !important;
    }

    .article-sidebar {
        position: static !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        order: 2 !important;
    }

    .article-side-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    .article-toc {
        grid-template-columns: 1fr !important;
    }

    .article-toc a {
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        padding: 10px 12px !important;
        border: 1px solid var(--line) !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, .035) !important;
        font-size: 13px !important;
    }

    .article-footer-cta {
        padding: 20px !important;
        border-radius: 22px !important;
    }

    .article-footer-actions {
        display: grid !important;
        gap: 10px !important;
    }

    .article-footer-actions .btn {
        width: 100% !important;
    }

    .article-related-card {
        min-height: auto !important;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 420px) {

    .article-hero-card,
    .article-content {
        padding: 16px !important;
    }

    .article-hero-card h1 {
        font-size: 32px !important;
    }

    .article-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 12px !important;
    }

    .article-table {
        min-width: 580px !important;
    }
}