/* ===== СТРАНИЦА СТАТЕЙ (articles.html) ===== */
body.articles-page-body {
    --articles-gold: #FFD700;
    --articles-gold-soft: rgba(255, 215, 0, 0.3);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 20%, #171717 0%, #050505 72%);
    color: #fff;
    font-family: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
}

.articles-aura {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.articles-aura::before {
    content: "";
    position: absolute;
    width: 60vmax;
    height: 60vmax;
    top: -30vmax;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--articles-gold-soft), transparent 68%);
    filter: blur(70px);
    opacity: 0.3;
}

.articles-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 72px 20px 32px;
}

.articles-back {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--articles-gold);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.articles-back:hover {
    border-color: var(--articles-gold);
    background: rgba(255, 215, 0, 0.08);
}

.articles-frame {
    position: relative;
    width: min(100%, 900px);
    box-sizing: border-box;
    padding: 44px 52px 52px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015) 42%, rgba(10, 10, 14, 0.4)), rgba(14, 14, 18, 0.76);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 215, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.articles-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--articles-gold), transparent);
}

.articles-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.04) 72%);
    color: var(--articles-gold);
    box-shadow: 0 0 26px rgba(255, 215, 0, 0.18), inset 0 0 14px rgba(255, 215, 0, 0.1);
}

.articles-eyebrow {
    margin: 0 0 8px;
    color: var(--articles-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.articles-frame h1 {
    margin: 0 auto;
    max-width: 760px;
    color: #fff;
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.25;
    text-align: center;
}

.article-card {
    max-width: 780px;
    margin: 30px auto 0;
}

.article-title-button {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(255, 215, 0, 0.09), rgba(255, 255, 255, 0.025) 48%, rgba(0, 0, 0, 0.22));
    color: #fff;
    font-family: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.article-title-button:hover,
.article-title-button[aria-expanded="true"] {
    border-color: var(--articles-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.12);
}

.article-title-chevron {
    flex: 0 0 auto;
    color: var(--articles-gold);
    transition: transform 0.2s;
}

.article-title-button[aria-expanded="true"] .article-title-chevron {
    transform: rotate(180deg);
}

.articles-content {
    max-width: 740px;
    margin: 34px auto 0;
    color: #e5e5e5;
    font-size: 19px;
    line-height: 1.75;
}

.articles-frame > .articles-eyebrow {
    text-align: center;
}

.article-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 26px 24px 4px;
    color: #e5e5e5;
    font-size: 19px;
    line-height: 1.75;
}

.article-content[hidden] {
    display: none;
}

.article-content p {
    margin: 0 0 18px;
}

.article-content h2 {
    margin: 42px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.24);
    color: #fff;
    font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif;
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.45;
}

.article-content h3 {
    margin: 28px 0 12px;
    color: var(--articles-gold);
    font-size: 22px;
    line-height: 1.4;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px;
    padding-left: 28px;
}

.article-content li {
    margin: 5px 0;
    padding-left: 4px;
}

.article-content li::marker {
    color: var(--articles-gold);
}

.article-table-wrap {
    margin: 0 0 22px;
    overflow-x: auto;
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 12px;
}

.article-phrase-table {
    width: 100%;
    border-collapse: collapse;
    color: #e5e5e5;
    font-size: 17px;
    line-height: 1.5;
}

.article-phrase-table th,
.article-phrase-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.article-phrase-table th {
    background: rgba(255, 215, 0, 0.08);
    color: var(--articles-gold);
    font-weight: 700;
}

.article-phrase-table tr:last-child td {
    border-bottom: 0;
}

.article-quiz {
    display: grid;
    gap: 14px;
    margin: 20px 0 28px;
}

.quiz-question {
    min-width: 0;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid rgba(255, 215, 0, 0.16);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.quiz-question legend {
    padding: 0 6px;
    color: #fff;
    font-weight: 700;
}

.quiz-question label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 10px 0 0;
    color: #e5e5e5;
    cursor: pointer;
}

.quiz-question input {
    accent-color: var(--articles-gold);
}

.quiz-question.quiz-correct {
    border-color: rgba(74, 222, 128, 0.55);
}

.quiz-question.quiz-incorrect {
    border-color: rgba(248, 113, 113, 0.5);
}

.quiz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quiz-check-button,
.quiz-reset-button {
    padding: 11px 17px;
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.1);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.quiz-check-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.quiz-reset-button {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
}

.quiz-result {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 215, 0, 0.08);
    color: #fff;
    font-weight: 700;
}

.article-content strong {
    color: #fff;
}

@media (max-width: 520px) {
    .articles-page {
        justify-content: flex-start;
        padding: 92px 16px 28px;
    }

    .articles-back {
        top: 20px;
        left: 16px;
    }

    .articles-frame {
        padding: 36px 22px 30px;
    }

    .article-title-button {
        gap: 10px;
        padding: 16px;
        font-size: 18px;
    }

    .article-content {
        padding: 22px 2px 0;
        font-size: 17px;
        line-height: 1.7;
    }

    .article-content h2 {
        margin-top: 34px;
    }

    .article-phrase-table {
        font-size: 15px;
    }

    .article-phrase-table th,
    .article-phrase-table td {
        padding: 9px 10px;
    }
}

