html, body {
    overflow-x: hidden;
}
*, *::before, *::after {
    box-sizing: border-box;
}
img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

:root {
    --color-brand: #166534;
    --color-cta: #FF6B00;
    --text-muted: #777;
    --border: #ddd;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

a {
    color: var(--color-brand);
}

a:focus-visible {
    outline: 2px solid var(--color-cta);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-brand);
    color: #fff;
    padding: 8px 16px;
    z-index: 99999;
    font-size: 0.88rem;
    font-weight: 700;
}
.skip-link:focus {
    left: 0;
}

.cat-hero__stat-item svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.cat-card__img-wrap {
    background-color: #e0e0e0;
}

.cat-card:hover {
    border-color: var(--color-brand);
}

.cat-intro__topic-item {
    border-left: 3px solid var(--color-brand);
}

.cat-guide__table {
    min-width: 500px;
}

.cat-calculator__result {
    background-color: var(--color-brand);
}

.cat-mega__block {
    border-top: 3px solid var(--color-brand);
}

.cat-mega__block li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-cta);
    margin-right: 8px;
    vertical-align: middle;
}

.cat-faq__item {
    padding-bottom: 20px;
    border-bottom: 1px solid #d4e8d4;
}
.cat-faq__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .cat-hero {
        padding: 48px 0 36px;
    }
    .cat-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cat-hero__title {
        font-size: 2rem;
    }
    .cat-hero__subtitle {
        font-size: 1rem;
    }
    .cat-hero__stats {
        gap: 20px;
    }
    .cat-hero__stat-value {
        font-size: 1.5rem;
    }
    .cat-hero__visual-img {
        height: 200px;
    }
    .cat-intro__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cat-intro__topics {
        grid-template-columns: 1fr;
    }
    .cat-articles__grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }
    .cat-articles__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .cat-guide__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .cat-guide__table {
        min-width: 400px;
    }
    .cat-calculator__body {
        grid-template-columns: 1fr;
    }
    .cat-calculator__result {
        grid-column: 1;
    }
    .cat-mega__grid {
        grid-template-columns: 1fr;
    }
    .cat-mega__block {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .cat-hero__title {
        font-size: 1.65rem;
    }
    .cat-hero__stat-value {
        font-size: 1.3rem;
    }
    .cat-intro__text h2,
    .cat-guide h2,
    .cat-calculator__head h2,
    .cat-mega__head h2,
    .cat-faq h2 {
        font-size: 1.35rem;
    }
    .cat-card__body {
        padding: 16px;
    }
    .cat-guide__table th,
    .cat-guide__table td {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
    .cat-calc-group input,
    .cat-calc-group select {
        font-size: 16px;
    }
}