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

body {
    font-family: Poppins, sans-serif;
    background-color: #F8F9FA;
    min-height: 100vh;
    padding: 20px;
}

ul {
    list-style: none;
}

.logo {
    margin-right: 15px;
}

.header {
    display: flex;
    padding: 20px 50px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: grey;
}

.header__list {
    display: flex;
    gap: 40px;
}

.header__list-link {
    transition: 0.3s;
    font-weight: 600;
    letter-spacing: -0.47px;
    padding: 5px 10px;
    background-color: #F8F9FA;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    line-height: 1.4;
    white-space: nowrap;
}

.header__list-link.active {
    color: #19191B;
}

.header__list-link:hover {
    color: #19191B;
}

.hero {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 50px;
}

.hero__title {
    max-width: 1000px;
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #19191B;
}

.hero__subtitle {
    font-size: 18px;
    color: #6B7280;
}

.stats {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 50px;
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.stats__item {
    display: flex;
    flex-direction: column;
}

.stats__number {
    font-size: 32px;
    font-weight: 800;
    color: #2D2A7C;
}

.stats__label {
    font-size: 20px;
    font-weight: 500;
    color: #6B7280;
    margin-top: 4px;
}

.about {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px 50px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.about__title {
    font-size: 24px;
    color: #19191B;
    margin-bottom: 12px;
}

.about__text {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    color: #6B7280;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    width: fit-content;
}

.card-badge--success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.card-badge--warning {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.btn-card-action.completed {
    background-color: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-card-action.completed:hover {
    background-color: #e2e8f0;
}

.btn-card-action {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
}

.card-status {
    margin-bottom: 8px;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-fill.success {
    background-color: #10b981;
}

.progress-fill.warning {
    background-color: #f59e0b;
}

.result-summary-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    border: 1px solid #eaeaea;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.result-header h3 {
    margin: 0;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.result-status-badge {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.result-status--success {
    background: #e6f4ea;
    color: #137333;
}

.result-status--fail {
    background: #fce8e6;
    color: #c5221f;
}

.result-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.metric-item {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.metric-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
    color: #222;
}

.metric-value.highlight {
    color: #2563eb;
}

.metric-value small {
    font-size: 14px;
    color: #888;
    font-weight: normal;
}

.result-grid-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 0 50px 10px;
    margin: 0 auto 10px;
    scrollbar-width: none;
    width: 100%;
    max-width: 1000px;
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background-color: #fff;
    border: 1.5px solid #e5e7eb;
    color: #4b5563;
    padding: 11px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.filter-btn:hover {
    border-color: #40E0D0;
    color: #03045E;
    background-color: #f0fdfc;
}

.filter-btn.active {
    background: #03045E;
    color: #40E0D0;
    border-color: #03045E;
    box-shadow: 0 4px 10px rgba(3, 4, 94, 0.25);
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.test-card {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}

.test-card:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.1);
}

.test-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.test-title {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 8px 0 6px;
}

.test-info {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 16px;
}

.btn-card-action {
    display: block;
    text-align: center;
    background-color: #2563eb;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.btn-card-action:hover {
    background-color: #1d4ed8;
}

/* ===============================
   NETIJA PREMIUM
   =============================== */

.premium-card {
    max-width: 920px;
    margin: 40px auto;
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.premium-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #19191B;
}

.premium-card > p {
    margin: 8px 0 24px;
    color: #666;
}

.premium-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.premium-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 30px 22px 24px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    color: #19191B;
    cursor: pointer;
    font: inherit;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.premium-plan:hover {
    transform: translateY(-3px);
    border-color: #03045E;
    box-shadow: 0 12px 30px rgba(3, 4, 94, 0.10);
}

.premium-plan.active {
    border: 2px solid #03045E;
    box-shadow: 0 10px 28px rgba(3, 4, 94, 0.12);
}

.premium-plan strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}

.premium-plan > span:not(.premium-save) {
    display: block;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
}

.premium-plan--yearly {
    border-color: #e5e7eb;
}

.premium-save {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    font-size: 12px;
    font-weight: 800;
}

.premium-button {
    width: 100%;
    margin-top: 20px;
    border: 0;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: #111111;
    color: #ffffff;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.premium-button:hover:not(:disabled) {
    transform: translateY(-1px);
    opacity: 0.9;
}

.premium-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.premium-status {
    margin-top: 14px;
    font-weight: 600;
    min-height: 24px;
}

.premium-error {
    color: #b00020;
}

.premium-ok {
    color: #167a35;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.user-profile__name {
    font-weight: 600;
    color: #19191B;
}

.sign__button {
    display: flex;
    align-items: center;
}

/* ===============================
   ВЫПАДАЮЩЕЕ МЕНЮ ПРОФИЛЯ (desktop)
   =============================== */

.account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 1100;
}

.account-dropdown.open {
    display: block;
}

.account-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: none;
    font: inherit;
    font-weight: 600;
    color: #19191B;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.account-dropdown button:hover {
    background-color: #f1f5f9;
}

.account-dropdown button.danger {
    color: #dc2626;
}

/* Пункты аккаунта внутри бургер-списка — на десктопе скрыты,
   там уже есть выпадающее меню под аватаром */
.account-item {
    display: none;
}

.account-item-link {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.account-item-link--danger {
    color: #dc2626;
}

/* ===============================
   БУРГЕР-МЕНЮ (кнопка)
   =============================== */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #19191B;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 700px) {
    .header {
        padding: 15px 10px;
    }

    .header__nav {
        padding: 8px 10px;
        gap: 4px;
        position: relative;
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .logo {
        margin-right: 4px;
        max-width: 220px;
        height: auto;
    }

    .burger {
        display: flex;
    }

    .header__list {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 8px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        z-index: 1000;
    }

    .header__list.open {
        display: flex;
    }

    .header__list-item {
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

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

    .header__list-link {
        background-color: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .user-profile__name {
        display: none;
    }

    .user-profile {
        margin-right: 4px;
    }

    /* На мобильном выпадающее меню профиля не нужно —
       те же пункты показываются внутри бургер-списка */
    .account-dropdown {
        display: none !important;
    }

    .account-item {
        display: block;
    }

    .hero {
        padding: 0 15px;
        margin-top: 35px;
    }

    .hero__title {
        font-size: 30px;
    }

    .stats {
        padding: 0 15px;
    }

    .premium-card {
        padding: 24px 16px;
    }

    .premium-plans {
        grid-template-columns: 1fr;
    }
}