:root {
        --bg-color: #f8fafc;
        --bg-white: #ffffff;
        --text-main: #334155;
        --text-heading: #0f172a;
        --accent-color: #005293; /* Swedish Blue */
        --accent-hover: #003b6b;
        --cta-color: #fecb00; /* Swedish Yellow */
        --cta-hover: #e5b700;
        --cta-text: #0f172a;
        --border-color: #e2e8f0;
        --header-bg: #005293; /* Swedish Blue */
        --footer-bg: #003b6b; /* Darker Swedish Blue */
        --footer-text: #e2e8f0;
        --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        --container-width: 1100px;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    }

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    body {
        font-family: var(--font-family);
        background-color: var(--bg-color);
        color: var(--text-main);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* TYPOGRAPHY - Mobile First Defaults */
    h1, h2, h3 {
        color: var(--text-heading);
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 1.75rem;
        margin-top: 1rem;
        word-wrap: break-word;
    }

    h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--border-color);
        word-wrap: break-word;
    }

    h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
        word-wrap: break-word;
    }

    p {
        margin-bottom: 1.25rem;
        font-size: 1rem;
    }

    ul, ol {
        margin-bottom: 1.5rem;
        padding-left: 1.5rem;
    }

    li {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    a {
        color: var(--accent-color);
        text-decoration: none;
    }

    a:hover {
        text-decoration: underline;
    }

    /* LAYOUT & SECTIONS */
    .section {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 1.5rem 1rem;
    }

    /* HEADER - Mobile First */
    header {
        background-color: var(--header-bg);
        border-bottom: 4px solid var(--cta-color);
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: var(--shadow-sm);
    }

    .header-inner {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }

    .logo {
        height: 48px;
    }

    .logo img {
        height: 48px;
    }

    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    /* BUTTONS - Mobile First */
    .button {
        display: block;
        width: 100%;
        background-color: var(--cta-color);
        color: var(--cta-text);
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        transition: background-color 0.2s ease, transform 0.1s ease;
        border: none;
        cursor: pointer;
        font-size: 1rem;
    }

    .button:hover {
        background-color: var(--cta-hover);
        text-decoration: none;
        color: var(--cta-text);
    }

    /* CATEGORY CARDS (CTA BLOCK) - Mobile First */
    .category-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin: 0.5rem 0 1.5rem;
    }

    .category-card {
        background-color: var(--bg-white);
        border: 2px solid var(--border-color);
        border-radius: 0.75rem;
        padding: 1rem 0.5rem;
        text-align: center;
        text-decoration: none;
        color: var(--text-heading);
        font-weight: 700;
        transition: all 0.2s ease;
        box-shadow: var(--shadow-sm);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .category-card:hover {
        border-color: var(--accent-color);
        box-shadow: var(--shadow-md);
        text-decoration: none;
    }

    .category-icon {
        font-size: 2rem;
        line-height: 1;
    }

    .category-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }

    /* FAQ ACCORDION - Mobile First */
    .faq-container {
        margin: 2rem 0;
        background-color: var(--bg-white);
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        padding: 0 1rem;
    }

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

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

    .toggle {
        display: none;
    }

    .faq-question {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        cursor: pointer;
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--text-heading);
        margin: 0;
    }

    .icon {
        font-size: 1.25rem;
        font-weight: 400;
        color: var(--accent-color);
        transition: transform 0.3s ease;
        display: inline-block;
        line-height: 1;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .faq-answer p {
        padding-bottom: 1rem;
        margin: 0;
        color: var(--text-main);
    }

    .toggle:checked ~ .faq-question .icon {
        transform: rotate(45deg);
    }

    .toggle:checked ~ .faq-answer {
        max-height: 1000px;
    }

    /* TABLES (Affiliate Toplists) - Mobile First */
    .comparison-table {
        margin: 1.5rem 0;
        background-color: var(--bg-white);
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        /* Убираем overflow отсюда, переносим в сам table */
    }

    table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
        white-space: nowrap;
        /* Делаем все таблицы адаптивными по умолчанию для мобильных */
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        vertical-align: middle;
        font-size: 0.95rem;
    }

    th {
        background-color: #f1f5f9;
        color: var(--text-heading);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

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

    tr {
        transition: background-color 0.2s;
    }

    tr:hover td {
        background-color: #f8fafc;
    }

    td strong {
        color: var(--text-heading);
        display: block;
        font-size: 1rem;
    }

    /* COMPONENTS - Mobile First */
    .expert-note {
        background-color: #eff6ff;
        border-left: 4px solid var(--accent-color);
        padding: 1.25rem;
        margin: 1.5rem 0;
        border-radius: 0 0.5rem 0.5rem 0;
    }

    .expert-note h3 {
        margin-top: 0;
        color: #1e3a8a;
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .expert-note p:last-child {
        margin-bottom: 0;
    }

    .pros-cons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .pros-cons > div {
        background-color: var(--bg-white);
        padding: 1.25rem;
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
    }

    .pros-cons h3 {
        margin-top: 0;
        font-size: 1.2rem;
    }

    .pros-cons .pros h3 {
        color: #15803d; /* Keeping standard success color for pros */
    }

    .pros-cons .cons h3 {
        color: #dc2626; /* Keeping standard error color for cons */
    }

    .pros-cons ul {
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    .pros-cons li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .pros-cons .pros li::before {
        content: "✓";
        color: #15803d;
        position: absolute;
        left: 0;
        font-weight: bold;
    }

    .pros-cons .cons li::before {
        content: "✕";
        color: #dc2626;
        position: absolute;
        left: 0;
        font-weight: bold;
    }

    .author-block {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
        background-color: var(--bg-white);
        padding: 1.5rem;
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
        margin: 2rem 0;
        box-shadow: var(--shadow-sm);
    }

    .author-block img {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--border-color);
    }

    .author-block h3 {
        margin: 0 0 0.25rem 0;
        font-size: 1.15rem;
    }

    .author-block p {
        margin: 0;
        font-size: 0.9rem;
        color: #64748b;
    }

    /* FOOTER - Mobile First */
    footer {
        background-color: var(--footer-bg);
        color: var(--footer-text);
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
        border-top: 4px solid var(--cta-color);
    }

    .footer-inner {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 1rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-brand h2 {
        color: var(--bg-white);
        border: none;
        padding: 0;
        margin-top: 0;
        font-size: 1.35rem;
    }

    .footer-brand p {
        font-size: 0.9rem;
        color: #cbd5e1;
    }

    .footer-brand strong {
        color: var(--bg-white);
    }

    .footer-links h3 {
        color: var(--bg-white);
        margin-top: 0;
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .footer-links ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-links a {
        color: var(--footer-text);
        transition: color 0.2s;
    }

    .footer-links a:hover {
        color: var(--bg-white);
        text-decoration: none;
    }

    .footer-bottom {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 1.5rem 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 0.85rem;
        color: #94a3b8;
    }

    /* =========================================
       MEDIA QUERIES - MOBILE SMALL
       ========================================= */
    @media (max-width: 480px) {
        .category-grid {
            grid-template-columns: 1fr; /* 1 колонка на самых маленьких экранах */
        }
    }

    /* =========================================
       MEDIA QUERIES - TABLET & DESKTOP UP
       ========================================= */

    @media (min-width: 768px) {
        /* Typography */
        h1 { font-size: 2.25rem; }
        h2 { font-size: 1.875rem; }
        h3 { font-size: 1.5rem; }
        p, li { font-size: 1.05rem; }

        /* Sections */
        .section { padding: 2rem 1.5rem; }

        /* Header */
        .header-inner {
            flex-direction: row;
            justify-content: space-between;
            padding: 1rem 1.5rem;
            text-align: left;
        }
        .logo { height: 58px; }
        .logo img { height: 58px; }
        
        .header-actions {
            flex-direction: row;
            width: auto;
            gap: 1rem;
        }

        /* Buttons */
        .button {
            display: inline-block;
            width: auto;
        }

        /* Category Grid */
        .category-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 1.25rem;
            margin: 1rem 0 2rem;
        }
        .category-card {
            padding: 1.5rem 1rem;
        }
        .category-card:hover {
            transform: translateY(-4px);
        }
        .category-icon { font-size: 2.5rem; }
        .category-title { font-size: 1.05rem; }

        /* Tables - возвращаем стандартный вид на ПК */
        table {
            display: table;
        }

        /* Components */
        .pros-cons { grid-template-columns: 1fr 1fr; }
        
        .author-block {
            flex-direction: row;
            text-align: left;
            padding: 2rem;
        }
        .author-block img {
            width: 80px;
            height: 80px;
        }

        /* Footer */
        .footer-inner {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            padding: 0 1.5rem;
        }
    }

    @media (min-width: 1024px) {
        .category-grid {
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        }
    }