.catalog-main {
    overflow: hidden;
    background: #f1f5f7;
}

.catalog-intro {
    position: relative;
    overflow: hidden;
    padding: 52px 0 48px;
    background:
        radial-gradient(
            circle at 94% 18%,
            rgba(34, 145, 239, .11) 0,
            rgba(34, 145, 239, .11) 150px,
            transparent 151px
        ),
        #fff;
}

.catalog-intro::after {
    position: absolute;
    right: -110px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(34, 145, 239, .05);
    content: "";
}

.catalog-intro-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        minmax(0, .9fr)
        minmax(360px, 1.1fr);
    align-items: center;
    gap: 64px;
}

.catalog-kicker {
    margin: 0 0 12px;
    color: #218fe8;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.catalog-intro h1 {
    max-width: 650px;
    margin: 0;
    color: #202428;
    font-size: clamp(42px, 4.8vw, 68px);
    font-weight: 750;
    letter-spacing: -.05em;
    line-height: .96;
}

.catalog-intro-copy {
    max-width: 610px;
    padding-left: 25px;
    border-left: 4px solid #218fe8;
}

.catalog-intro-copy p {
    margin: 0;
    color: #687077;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.55;
}

.catalog-intro-copy a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    background: #218fe8;
    box-shadow: 0 8px 20px rgba(33, 143, 232, .2);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.catalog-content {
    padding: 46px 0 76px;
}

.catalog-category-panel {
    position: relative;
    overflow: hidden;
    padding: 27px;
    border: 1px solid #e0e7eb;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(36, 57, 70, .06);
}

.catalog-category-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background:
        linear-gradient(
            90deg,
            #218fe8 0 42%,
            #70c94f 42% 72%,
            #f39a2c 72% 100%
        );
    content: "";
}

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

.catalog-category-heading h2,
.catalog-results-heading h2,
.catalog-next-heading h2 {
    margin: 0;
    color: #202428;
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 750;
    letter-spacing: -.04em;
    line-height: 1.02;
}

.catalog-category-heading > span {
    flex: none;
    color: #778087;
    font-size: 12px;
    font-weight: 750;
}

.catalog-filters {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(145px, 1fr));
    gap: 9px;
}

.catalog-filters a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid #dfe5e8;
    border-radius: 11px;
    color: #444b50;
    background: #f8fafb;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.catalog-filters a::after {
    position: absolute;
    right: 12px;
    bottom: 9px;
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: #cbd4d9;
    content: "";
}

.catalog-filters a:nth-child(3n + 1)::after {
    background: #218fe8;
}

.catalog-filters a:nth-child(3n + 2)::after {
    background: #70c94f;
}

.catalog-filters a:nth-child(3n)::after {
    background: #f39a2c;
}

.catalog-filters a.is-active {
    border-color: #202428;
    color: #fff;
    background: #202428;
}

.catalog-subfilters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e4e9ec;
}

.catalog-subfilters::before {
    display: inline-flex;
    align-items: center;
    margin-right: 3px;
    color: #778087;
    font-size: 11px;
    font-weight: 750;
    content: "TIPOS:";
}

.catalog-subfilters a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dce3e7;
    border-radius: 999px;
    color: #596167;
    background: #fff;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.catalog-subfilters a.is-active {
    border-color: #218fe8;
    color: #fff;
    background: #218fe8;
}

.catalog-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin: 44px 0 19px;
}

.catalog-results-heading > span {
    max-width: 390px;
    color: #778087;
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
}

.catalog-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.catalog-card-link {
    display: block;
    min-width: 0;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.catalog-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid #dfe6ea;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 57, 70, .045);
    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.catalog-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2;
    height: 4px;
    background: #218fe8;
    content: "";
}

.catalog-card-link:nth-child(3n + 2)
.catalog-card::before {
    background: #70c94f;
}

.catalog-card-link:nth-child(3n)
.catalog-card::before {
    background: #f39a2c;
}

.catalog-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #f8faf9,
            #eef2ef
        );
}

.catalog-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 15px;
    object-fit: contain;
    transition: transform .32s ease;
}

.catalog-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #b5bec2;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.catalog-badge {
    position: absolute;
    top: 13px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: #202428;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.catalog-card-body {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 17px;
}

.catalog-category {
    display: block;
    margin-bottom: 6px;
    overflow: hidden;
    color: #218fe8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.catalog-card h2 {
    margin: 0;
    color: #202428;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.catalog-name {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #717980;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-card p {
    display: -webkit-box;
    margin: 11px 0 0;
    overflow: hidden;
    color: #717980;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    color: #202428;
    font-size: 11px;
    font-weight: 800;
}

.catalog-card-action > span {
    color: #218fe8;
    font-size: 17px;
    transition: transform .18s ease;
}

.catalog-empty {
    padding: 38px;
    border: 1px solid #dfe6ea;
    border-radius: 17px;
    color: #687077;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 57, 70, .045);
}

.catalog-next {
    margin-top: 64px;
    padding-top: 42px;
    border-top: 1px solid #d8e1e6;
}

.catalog-next-heading {
    margin-bottom: 20px;
}

.catalog-next-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.catalog-next-grid > a {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid #dfe6ea;
    border-top: 4px solid #218fe8;
    border-radius: 17px;
    color: #202428;
    background: #fff;
    box-shadow: 0 10px 28px rgba(36, 57, 70, .05);
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.catalog-next-grid > a:nth-child(2) {
    border-top-color: #70c94f;
}

.catalog-next-grid > a:nth-child(3) {
    border-top-color: #f39a2c;
}

.catalog-next-number {
    color: #8d979d;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
}

.catalog-next-grid strong {
    margin-top: 22px;
    font-size: 24px;
    letter-spacing: -.03em;
}

.catalog-next-grid p {
    max-width: 310px;
    margin: 9px 0 20px;
    color: #70787e;
    font-size: 13px;
    line-height: 1.5;
}

.catalog-next-grid small {
    margin-top: auto;
    color: #202428;
    font-size: 11px;
    font-weight: 800;
}

@media (hover: hover) {
    .catalog-filters a:hover {
        transform: translateY(-2px);
        border-color: #bfcbd1;
    }

    .catalog-card-link:hover .catalog-card,
    .catalog-next-grid > a:hover {
        transform: translateY(-4px);
        box-shadow: 0 17px 38px rgba(36, 57, 70, .1);
    }

    .catalog-card-link:hover
    .catalog-card-action > span {
        transform: translateX(4px);
    }
}

.catalog-card-link:focus-visible,
.catalog-filters a:focus-visible,
.catalog-subfilters a:focus-visible,
.catalog-next-grid > a:focus-visible {
    outline: 3px solid rgba(33, 143, 232, .35);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .catalog-intro-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .catalog-intro-copy {
        max-width: none;
    }

    .catalog-results-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .catalog-results-heading > span {
        text-align: left;
    }

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

    .catalog-next-grid {
        grid-template-columns: 1fr;
    }

    .catalog-next-grid > a {
        min-height: 175px;
    }
}

@media (max-width: 560px) {
    .catalog-intro {
        padding: 38px 0 35px;
    }

    .catalog-intro h1 {
        font-size: 42px;
    }

    .catalog-intro-copy {
        padding-left: 17px;
    }

    .catalog-content {
        padding: 28px 0 54px;
    }

    .catalog-category-panel {
        padding: 21px 17px;
    }

    .catalog-category-heading {
        align-items: start;
        flex-direction: column;
        gap: 9px;
    }

    .catalog-filters {
        display: flex;
        flex-wrap: nowrap;
        margin-right: -17px;
        padding-right: 17px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .catalog-filters a {
        flex: 0 0 154px;
    }

    .catalog-grid {
        gap: 10px;
    }

    .catalog-card-body {
        min-height: 155px;
        padding: 13px;
    }

    .catalog-card-media img {
        padding: 10px;
    }

    .catalog-card h2 {
        font-size: 19px;
    }

    .catalog-card p {
        display: none;
    }

    .catalog-next {
        margin-top: 45px;
    }
}