.gd-tests-directory {
    color: #18324a;
    margin: 0 auto;
    max-width: 1200px;
    padding: 32px 20px 72px;
}

.gd-tests-hero {
    align-items: end;
    background: linear-gradient(135deg, #f4fbff 0%, #e4f1fb 54%, #f7fafc 100%);
    border: 1px solid #d8e7f3;
    border-radius: 28px;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
    margin-bottom: 26px;
    overflow: hidden;
    padding: 34px;
    position: relative;
}

.gd-tests-hero::after {
    background: radial-gradient(circle at top right, rgba(0, 102, 204, 0.16), transparent 50%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.gd-tests-kicker {
    color: #0b6fc2;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.gd-tests-hero h1 {
    color: #14324d;
    font-family: 'Poppins', 'Lato', sans-serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.04;
    margin: 0 0 16px;
}

.gd-tests-lead {
    color: #43607a;
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0;
    max-width: 60ch;
}

.gd-tests-hero-meta {
    display: grid;
    gap: 16px;
}

.gd-tests-stat {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(11, 111, 194, 0.12);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(19, 50, 77, 0.08);
    padding: 20px 22px;
}

.gd-tests-stat strong {
    color: #0b6fc2;
    display: block;
    font-family: 'Poppins', 'Lato', sans-serif;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 6px;
}

.gd-tests-stat span {
    color: #47657f;
    display: block;
    font-size: 0.96rem;
}

.gd-tests-filters {
    align-items: end;
    background: #ffffff;
    border: 1px solid #e2edf5;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(17, 51, 77, 0.06);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 0.9fr) auto;
    margin-bottom: 28px;
    padding: 18px;
}

.gd-tests-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gd-tests-field label {
    color: #43607a;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.gd-tests-field input,
.gd-tests-field select {
    appearance: none;
    background: #f8fbfe;
    border: 1px solid #ccdde9;
    border-radius: 16px;
    color: #18324a;
    font: inherit;
    min-height: 54px;
    padding: 0 16px;
}

.gd-tests-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.gd-tests-actions button,
.gd-tests-reset {
    border-radius: 999px;
    display: inline-flex;
    font-family: 'Poppins', 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    text-decoration: none;
    white-space: nowrap;
}

.gd-tests-actions button {
    background: #0b6fc2;
    border: 0;
    color: #ffffff;
    cursor: pointer;
}

.gd-tests-reset {
    border: 1px solid #c7d8e5;
    color: #3d5d76;
}

.gd-global-results {
    margin-bottom: 28px;
}

.gd-global-results__head {
    margin-bottom: 14px;
}

.gd-global-results__head h2,
.gd-tests-table-head h2 {
    color: #17324a;
    font-family: 'Poppins', 'Lato', sans-serif;
    font-size: 1.55rem;
    margin: 0 0 6px;
}

.gd-global-results__head p,
.gd-tests-table-head p {
    color: #5c778f;
    margin: 0;
}

.gd-global-results__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gd-global-result {
    background: #ffffff;
    border: 1px solid #dde9f2;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(17, 51, 77, 0.06);
    color: #18324a;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    text-decoration: none;
}

.gd-global-result__type,
.gd-tests-category-pill,
.gd-tests-price-note {
    background: #eaf4fb;
    border-radius: 999px;
    color: #0b6fc2;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 11px;
}

.gd-global-result strong {
    color: #163149;
    font-size: 1rem;
}

.gd-global-result span:last-child {
    color: #5a748c;
    line-height: 1.6;
}

.gd-tests-table-section {
    background: #ffffff;
    border: 1px solid #dde8f2;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(17, 51, 77, 0.05);
    padding: 24px;
}

.gd-tests-table-head {
    align-items: start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.gd-tests-table-wrap {
    overflow-x: auto;
}

.gd-tests-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
    width: 100%;
}

.gd-tests-table thead th {
    background: #f3f8fc;
    border-bottom: 1px solid #d7e5ef;
    color: #33526b;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 16px 18px;
    position: sticky;
    text-align: left;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.gd-tests-table tbody td {
    border-bottom: 1px solid #e6eef4;
    color: #48657e;
    line-height: 1.72;
    padding: 18px;
    vertical-align: top;
}

.gd-tests-table tbody tr:last-child td {
    border-bottom: 0;
}

.gd-tests-table tbody td:first-child {
    min-width: 250px;
}

.gd-tests-table tbody td strong {
    color: #18324a;
    display: block;
    font-family: 'Poppins', 'Lato', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
}

.gd-tests-empty {
    padding: 24px 0;
    text-align: center;
}

.gd-tests-empty strong {
    display: block;
    margin-bottom: 8px;
}

.gd-tests-pagination {
    margin-top: 22px;
}

.gd-tests-pagination .page-numbers {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gd-tests-pagination a,
.gd-tests-pagination span {
    background: #ffffff;
    border: 1px solid #d4e2ed;
    border-radius: 999px;
    color: #24425d;
    display: inline-flex;
    min-height: 42px;
    min-width: 42px;
    padding: 0 14px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.gd-tests-pagination .current {
    background: #0b6fc2;
    border-color: #0b6fc2;
    color: #ffffff;
}

@media (max-width: 960px) {
    .gd-tests-hero,
    .gd-tests-filters {
        grid-template-columns: 1fr;
    }

    .gd-tests-actions {
        flex-wrap: wrap;
    }

    .gd-tests-table-head {
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .gd-tests-directory {
        padding: 20px 14px 52px;
    }

    .gd-tests-hero,
    .gd-tests-table-section {
        border-radius: 22px;
        padding: 20px;
    }

    .gd-tests-filters {
        border-radius: 20px;
        padding: 14px;
    }

    .gd-tests-table thead {
        display: none;
    }

    .gd-tests-table,
    .gd-tests-table tbody,
    .gd-tests-table tr,
    .gd-tests-table td {
        display: block;
        width: 100%;
    }

    .gd-tests-table tbody tr {
        border: 1px solid #e1ebf2;
        border-radius: 18px;
        margin-bottom: 14px;
        overflow: hidden;
    }

    .gd-tests-table tbody td {
        border-bottom: 1px solid #edf3f7;
        padding: 14px 16px 16px;
    }

    .gd-tests-table tbody td:last-child {
        border-bottom: 0;
    }

    .gd-tests-table tbody td::before {
        color: #6a8297;
        content: attr(data-label);
        display: block;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        margin-bottom: 6px;
        text-transform: uppercase;
    }
}