*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

:root {
    --color-brand: #FF6B35;
    --color-cta: #3D5AFE;
    --color-bg: #0D0F12;
    --color-bg-card: #13161A;
    --color-bg-card2: #1A1E24;
    --color-text: #F7F9FA;
    --color-muted: #AAB1B7;
    --color-border: #2A2F35;
    --font-display: Haettenschweiler, 'Arial Narrow Bold', 'Noto Sans SC', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --line-height: 1.65;
}

.article-reading-bar-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-border);
    z-index: 999;
}

.article-reading-bar {
    height: 100%;
    width: 0%;
    background: var(--color-brand);
    transition: width 0.1s;
}

.article-main {
    background: var(--color-bg);
    min-height: 100vh;
    padding: 0 0 80px 0;
}

.article-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 90%;
}

.article-body {
    padding: 64px 0 0 0;
}

.timeline-container {
    position: relative;
    padding-left: 80px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 12px;
    bottom: 40px;
    width: 2px;
    background: var(--color-border);
}

.timeline-step {
    position: relative;
    margin-bottom: 80px;
}

.timeline-marker {
    position: absolute;
    left: -68px;
    top: 4px;
    width: 44px;
    height: 44px;
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.timeline-number {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-brand);
    line-height: var(--line-height);
}

.timeline-content h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 48px);
    font-weight: 700;
    color: var(--color-text);
    line-height: var(--line-height);
    margin: 0 0 24px 0;
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 700;
    color: var(--color-text);
    line-height: var(--line-height);
    margin: 40px 0 16px 0;
}

.timeline-content p {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    line-height: var(--line-height);
    margin-bottom: 24px;
    max-width: 820px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.timeline-content ul,
.timeline-content ol {
    margin: 0 0 32px 0;
    padding: 0;
}

.expert-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.expert-list li {
    font-size: 17px;
    font-weight: 400;
    color: var(--color-text);
    line-height: var(--line-height);
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
    max-width: 820px;
}

.expert-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--color-cta);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.expert-list li:last-child {
    border-bottom: none;
}

.checklist-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 28px 32px;
    margin: 32px 0;
    max-width: 820px;
}

.checklist-block p {
    margin-bottom: 16px;
}

.data-exergue {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 40px 0;
    max-width: 600px;
    padding: 24px 32px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.exergue-value {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: var(--line-height);
    letter-spacing: -0.02em;
    display: block;
}

.exergue-label {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-muted);
    line-height: var(--line-height);
    margin-top: 8px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--color-bg-card);
    color: var(--color-text);
    border-radius: 6px;
    overflow: hidden;
    margin: 32px 0;
}

.data-table th {
    background: var(--color-bg-card2);
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
    padding: 14px 18px;
    text-align: left;
    border-bottom: 2px solid var(--color-border);
}

.data-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    line-height: var(--line-height);
    vertical-align: top;
}

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

.data-table tr:nth-child(even) td {
    background: var(--color-bg-card2);
}

.data-table tr td,
.data-table tr th {
    color: var(--color-text);
}

.mechanic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 32px 0;
    max-width: 860px;
}

.mech-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 24px 20px;
}

.mech-card p {
    margin-bottom: 8px;
    font-size: 15px;
    max-width: 100%;
}

.mech-icon {
    margin-bottom: 16px;
}

.dynamic-test-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
    max-width: 820px;
}

.dyn-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.dyn-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-brand);
    line-height: var(--line-height);
    min-width: 40px;
}

.dyn-text p {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 6px;
}

.slider-section {
    margin: 32px 0;
    max-width: 860px;
}

.tab-slider {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.tab-labels {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
}

.tab-label {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-muted);
    cursor: pointer;
    white-space: nowrap;
    border-right: 1px solid var(--color-border);
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.tab-label:last-child {
    border-right: none;
}

.tab-label:hover {
    color: var(--color-text);
    background: var(--color-bg-card2);
}

.tab-panels {
    padding: 28px;
}

.tab-panel {
    display: none;
}

#hab-1:checked ~ .tab-panels #panel-hab-1,
#hab-2:checked ~ .tab-panels #panel-hab-2,
#hab-3:checked ~ .tab-panels #panel-hab-3,
#hab-4:checked ~ .tab-panels #panel-hab-4 {
    display: block;
}

#hab-1:checked ~ .tab-labels label[for="hab-1"],
#hab-2:checked ~ .tab-labels label[for="hab-2"],
#hab-3:checked ~ .tab-labels label[for="hab-3"],
#hab-4:checked ~ .tab-labels label[for="hab-4"] {
    color: var(--color-brand);
    background: var(--color-bg-card2);
    border-bottom: 2px solid var(--color-brand);
}

.tab-panel h3 {
    margin-top: 0;
    font-size: 22px;
    margin-bottom: 16px;
}

.tab-panel p {
    font-size: 16px;
    margin-bottom: 16px;
    max-width: 100%;
}

.calculator-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 32px;
    margin: 32px 0;
    max-width: 820px;
}

.calculator-block p {
    max-width: 100%;
}

.calc-row {
    margin-bottom: 24px;
}

.calc-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    line-height: var(--line-height);
}

.calc-input-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.calc-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    min-width: 0;
}

.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-brand);
    cursor: pointer;
    border: 2px solid var(--color-bg);
}

.calc-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-brand);
    cursor: pointer;
    border: 2px solid var(--color-bg);
}

.calc-value-display {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-brand);
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
}

.calc-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-bg-card2);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.calc-select option {
    background: var(--color-bg-card2);
    color: var(--color-text);
}

.calc-result {
    background: var(--color-bg-card2);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 24px;
    margin-top: 24px;
}

.calc-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.calc-result-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-result-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-muted);
    line-height: var(--line-height);
}

.calc-result-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    line-height: var(--line-height);
}

.calc-advice {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-muted);
    line-height: var(--line-height);
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.info-table-wrap {
    margin: 32px 0;
    max-width: 820px;
}

.contract-table-wrap {
    margin: 32px 0;
    max-width: 860px;
}

.warn-text {
    max-width: 820px;
    margin: 24px 0;
}

.warn-text p {
    font-size: 15px;
    color: var(--color-muted);
    line-height: var(--line-height);
    margin-bottom: 0;
}

.faq-list {
    max-width: 820px;
    margin: 32px 0;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    line-height: var(--line-height);
    margin-bottom: 12px;
    max-width: 100%;
}

.faq-a {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-muted);
    line-height: var(--line-height);
    margin-bottom: 0;
    max-width: 100%;
}

.final-checklist {
    max-width: 820px;
    margin: 32px 0;
}

.check-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.2s;
}

.check-item:last-of-type {
    border-bottom: none;
}

.check-item.checked {
    opacity: 0.6;
}

.check-label {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--color-border);
    border-radius: 2px;
    display: inline-block;
    position: relative;
    margin-top: 2px;
    transition: background-color 0.2s, border-color 0.2s;
}

.check-input:checked + .check-box {
    background: var(--color-brand);
    border-color: var(--color-brand);
}

.check-input:checked + .check-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.check-input:focus-visible + .check-box {
    outline: 2px solid var(--color-cta);
    outline-offset: 2px;
}

.check-text {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    line-height: var(--line-height);
}

.check-text strong {
    font-weight: 700;
    color: var(--color-text);
}

.check-progress-wrap {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.check-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.check-progress-fill {
    height: 100%;
    background: var(--color-brand);
    border-radius: 3px;
    transition: width 0.3s;
}

.check-progress-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-muted);
    white-space: nowrap;
    line-height: var(--line-height);
}

.article-cta-block {
    background: var(--color-cta);
    border-radius: 6px;
    padding: 40px;
    text-align: center;
    margin: 48px 0 32px 0;
    max-width: 820px;
}

.article-cta-block p {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 100%;
}

.btn-cta {
    display: inline-block;
    padding: 16px 36px;
    background: var(--color-brand);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 4px 12px rgba(255,107,53,0.35);
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.5);
}

.article-disclaimer-text {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-muted);
    line-height: var(--line-height);
    margin-top: 24px;
    max-width: 820px;
    margin-bottom: 0;
}

.svgsep {
    margin: 24px 0;
    display: block;
    min-height: 30px;
}

@media (max-width: 768px) {
    .article-wrapper {
        padding: 0 20px;
        width: 100%;
    }

    .article-body {
        padding: 40px 0 0 0;
    }

    .timeline-container {
        padding-left: 52px;
    }

    .timeline-container::before {
        left: 12px;
    }

    .timeline-marker {
        left: -46px;
        width: 36px;
        height: 36px;
    }

    .timeline-number {
        font-size: 12px;
    }

    .timeline-content h2 {
        font-size: clamp(22px, 5vw, 32px);
    }

    .timeline-content h3 {
        font-size: clamp(18px, 4vw, 24px);
    }

    .timeline-content p {
        font-size: 16px;
        max-width: 100%;
    }

    .expert-list li {
        font-size: 15px;
        max-width: 100%;
    }

    .mechanic-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .dynamic-test-grid {
        max-width: 100%;
    }

    .dyn-item {
        flex-direction: column;
        gap: 12px;
    }

    .dyn-num {
        font-size: 24px;
    }

    .data-exergue {
        padding: 20px;
        max-width: 100%;
    }

    .exergue-value {
        font-size: 40px;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    .calculator-block {
        padding: 20px;
        max-width: 100%;
    }

    .calc-result-grid {
        grid-template-columns: 1fr 1fr;
    }

    .calc-input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .calc-range {
        width: 100%;
    }

    .calc-value-display {
        text-align: left;
    }

    .checklist-block {
        padding: 20px;
        max-width: 100%;
    }

    .tab-labels {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-label {
        padding: 12px 14px;
        font-size: 13px;
    }

    .tab-panels {
        padding: 20px;
    }

    .slider-section {
        max-width: 100%;
    }

    .faq-list {
        max-width: 100%;
    }

    .faq-q {
        font-size: 16px;
    }

    .faq-a {
        font-size: 15px;
    }

    .final-checklist {
        max-width: 100%;
    }

    .check-text {
        font-size: 15px;
    }

    .article-cta-block {
        padding: 28px 20px;
        max-width: 100%;
    }

    .article-cta-block p {
        font-size: 16px;
    }

    .info-table-wrap,
    .contract-table-wrap {
        max-width: 100%;
    }

    .timeline-step {
        margin-bottom: 52px;
    }
}

@media (max-width: 480px) {
    .timeline-container {
        padding-left: 40px;
    }

    .timeline-container::before {
        left: 8px;
        display: none;
    }

    .timeline-marker {
        left: -38px;
        width: 30px;
        height: 30px;
    }

    .timeline-number {
        font-size: 11px;
    }

    .calc-result-grid {
        grid-template-columns: 1fr;
    }

    .data-exergue {
        padding: 16px;
    }

    .exergue-value {
        font-size: 32px;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .check-progress-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== TYPOGRAPHY SPACING FIX (APS_ARTICLE_TYPO_REQUIRED_v2) ===== */
/* Defensive guard against universal * { margin: 0 } reset in global.css. */
/* body-scoped via :where() so specificity stays at 0,0,0,1 — beats * but
   loses to any component rule like .tip-box p / .faq-item p. */
body :where(p)              { margin-bottom: 1.1rem; }
body :where(h2)             { margin-top: 2.5rem; margin-bottom: 1rem; }
body :where(h3)             { margin-top: 1.75rem; margin-bottom: 0.75rem; }
body :where(h4)             { margin-top: 1.25rem; margin-bottom: 0.5rem; }
body :where(ul, ol)         { margin-bottom: 1.1rem; padding-left: 1.5rem; }
body :where(li)             { margin-bottom: 0.4rem; }
body :where(blockquote)     { margin: 1.5rem 0; }
