:root {
    --primary: #187ff1;
    --primary-dark: #0962c6;
    --navy: #101c3b;
    --muted: #71809f;
    --line: #e3e9f3;
    --surface: #ffffff;
    --background: #f4f7fc;
    --success: #20bd72;
    --shadow: 0 22px 55px rgba(30, 63, 111, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--navy);
    background: var(--background);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1500px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid rgba(226, 232, 242, .9);
    backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    display: block;
    width: 116px;
    height: auto;
}

.header-actions,
.order-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #238cf8, #0873e3);
    box-shadow: 0 9px 22px rgba(24, 127, 241, .24);
}

.button-ghost {
    color: #233352;
    background: #fff;
    border-color: var(--line);
}

.button-muted {
    color: #4f5f7a;
    background: #eef2f8;
}

.hero {
    overflow: hidden;
    position: relative;
    min-height: 330px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 10%, rgba(200, 150, 255, .75), transparent 32%),
        radial-gradient(circle at 86% 12%, rgba(107, 226, 251, .7), transparent 33%),
        linear-gradient(120deg, #7a58d9 0%, #347fd8 48%, #55bfe8 100%);
}

.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -100px;
    bottom: -310px;
    border: 70px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 62px 110px;
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: #506688;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.eyebrow {
    color: rgba(255, 255, 255, .82);
}

.hero h1 {
    max-width: none;
    margin: 10px 0 14px;
    font-size: clamp(30px, 3.25vw, 50px);
    line-height: 1.15;
    letter-spacing: -.04em;
    white-space: nowrap;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 16px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 26px;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 500;
}

.hero-points b {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    color: #075b42;
    background: #74f2bd;
    border-radius: 50%;
}

.catalog-section {
    position: relative;
    z-index: 2;
    margin-top: -66px;
    padding-bottom: 56px;
}

.catalog-card {
    padding: 30px;
    background: var(--surface);
    border: 1px solid rgba(224, 231, 242, .9);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.catalog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.catalog-heading h2,
.order-cta h2 {
    margin: 5px 0 0;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.025em;
}

.catalog-note {
    max-width: 520px;
    padding: 10px 14px;
    color: #5f7090;
    background: #f6f9fd;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    font-size: 12px;
}

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

.type-tab {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 18px;
    color: #50607d;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.type-tab:hover {
    transform: translateY(-1px);
    border-color: #a9cdf8;
}

.type-tab.active {
    color: #0964c8;
    background: #eef6ff;
    border-color: #74b2f7;
    box-shadow: inset 0 0 0 1px rgba(24, 127, 241, .14);
}

.tab-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    color: #fff;
    background: linear-gradient(135deg, #298ef6, #0972dc);
    border-radius: 11px;
    font-size: 18px;
    font-weight: 700;
}

.type-tab strong,
.type-tab small {
    display: block;
}

.type-tab small {
    margin-top: 1px;
    color: #7c8ba5;
    font-size: 11px;
}

.filter-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafd;
    border: 1px solid #e4eaf3;
    border-radius: 16px;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(250px, 1.4fr) repeat(6, minmax(130px, 1fr));
    align-items: end;
    gap: 14px;
}

.filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.filter-field > span {
    color: #42516d;
    font-size: 11px;
    font-weight: 700;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    color: #24324c;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: #79b5f7;
    box-shadow: 0 0 0 3px rgba(24, 127, 241, .1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon > span {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #8190aa;
    font-size: 20px;
    transform: translateY(-52%);
}

.input-with-icon input {
    padding-left: 39px;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-actions .button {
    min-height: 43px;
    white-space: nowrap;
}

.result-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 2px 14px;
}

.result-toolbar strong,
.result-toolbar span {
    display: block;
}

.result-toolbar span {
    color: #8491a8;
    font-size: 11px;
}

.login-hint {
    color: #1479e5;
    font-size: 12px;
    font-weight: 700;
}

.login-hint span {
    display: inline;
    color: inherit;
    font-size: 15px;
}

.table-shell {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.price-table {
    width: 100%;
    min-width: 1260px;
    border-spacing: 0;
    border-collapse: separate;
}

.price-table th {
    padding: 13px 11px;
    color: #5d6d8a;
    background: #f4f7fb;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: nowrap;
}

.price-table td {
    padding: 16px 11px;
    color: #26344d;
    border-bottom: 1px solid #e9eef5;
    font-size: 11px;
    line-height: 1.5;
    vertical-align: middle;
}

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

.price-table tbody tr:hover td {
    background: #fbfdff;
}

.price-table .metric {
    text-align: center;
}

.price-table .price {
    text-align: right;
    white-space: nowrap;
}

.description-cell {
    width: 245px;
    min-width: 210px;
    color: #53617a !important;
}

.website-cell {
    min-width: 172px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.website-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    color: #126bd0;
    background: #e9f4ff;
    border: 1px solid #cde4fc;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

.website-avatar img {
    position: absolute;
    z-index: 1;
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: #e9f4ff;
    border-radius: 5px;
}

.website-avatar > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.website-cell strong,
.website-cell small {
    display: block;
    overflow-wrap: anywhere;
}

.website-cell strong {
    color: #126bd0;
    font-size: 12px;
}

.website-cell small {
    margin-top: 2px;
    color: #96a1b4;
    font-size: 9px;
}

.category-list {
    min-width: 150px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.category-list span {
    padding: 4px 7px;
    color: #255caa;
    background: #e9f2ff;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.category-list .more-category {
    color: #fff;
    background: var(--success);
}

.category-list em {
    color: #97a2b4;
}

.empty-state {
    padding: 58px 20px;
    text-align: center;
    background: #fafcff;
    border: 1px dashed #ccd7e7;
    border-radius: 15px;
}

.empty-state > span {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #438fde;
    background: #eaf4ff;
    border-radius: 50%;
    font-size: 30px;
}

.empty-state h3 {
    margin: 13px 0 4px;
}

.empty-state p {
    margin: 0 0 18px;
    color: var(--muted);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 22px;
}

.pagination-button {
    padding: 9px 13px;
    color: #1b70cf;
    background: #eef6ff;
    border: 1px solid #d5e8fd;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
}

.pagination-button.disabled {
    color: #a6afbe;
    background: #f5f6f8;
    border-color: #eceff3;
}

.pagination-status {
    color: #697894;
    font-size: 11px;
}

.order-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 28px;
    padding: 34px 38px;
    color: #fff;
    background: linear-gradient(120deg, #172b58, #146cbf);
    border-radius: 20px;
    box-shadow: 0 20px 44px rgba(14, 62, 112, .2);
}

.order-cta .section-kicker {
    color: #9bd5ff;
}

.order-cta p {
    margin: 8px 0 0;
    color: #c9d9ec;
}

.button-light {
    color: #125dba;
    background: #fff;
}

.button-outline-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, .38);
}

.site-footer {
    padding: 22px 0 30px;
    color: #7c899f;
    background: #fff;
    border-top: 1px solid #e9edf4;
    font-size: 11px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

@media (max-width: 1280px) {
    .filter-grid {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
    }

    .filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 28px, 1500px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand img {
        width: 96px;
    }

    .header-actions .button {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .hero {
        min-height: 310px;
    }

    .hero-content {
        padding-block: 46px 100px;
    }

    .hero h1 {
        white-space: normal;
    }

    .hero-points {
        gap: 9px 16px;
    }

    .catalog-card {
        padding: 19px;
        border-radius: 18px;
    }

    .catalog-heading,
    .result-toolbar,
    .order-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .type-tabs {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-search {
        grid-column: span 2;
    }

    .filter-actions {
        grid-column: span 2;
    }

    .order-cta {
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-points span {
        width: 100%;
    }

    .catalog-section {
        margin-top: -54px;
    }

    .catalog-heading h2,
    .order-cta h2 {
        font-size: 21px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-search,
    .filter-actions {
        grid-column: auto;
    }

    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-status {
        width: 100%;
        order: -1;
        text-align: center;
    }

    .order-cta-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
    }
}
