@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-SemiBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/Inter-ExtraBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
}

.wrapper:has(.catalog-page) .header-main {
    margin-bottom: 20px;
}

.catalog-page {
    position: relative;
    z-index: 1;
    padding-bottom: 80px;
    background: #ffffff;
    color: #0a090b;
}

.catalog-page-shell {
    width: min(1298px, calc(100% - 48px));
    margin: 0 auto;
}

.catalog-mobile-benchmark-selector {
    display: none;
}

.catalog-intro {
    display: flex;
    width: min(1026px, 100%);
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 0 auto 48px;
}

.catalog-intro h1 {
    margin: 0;
    color: #0a090b;
    font-family: Inter, sans-serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.catalog-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.catalog-filter {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    border: 0;
    border-radius: 100px;
    background: #f1f1f1;
    color: #0a090b;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
}

.catalog-filter.active {
    background: #00269b;
    color: #ffffff;
}

.catalog-filter:focus-visible,
.catalog-button:focus-visible,
.catalog-mobile-benchmark-selector:focus-visible {
    outline: 3px solid rgba(2, 78, 231, 0.2);
    outline-offset: 2px;
}

.catalog-search {
    display: flex;
    width: min(612px, 100%);
    height: 64px;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 0 20px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #ffffff;
    box-sizing: border-box;
}

.catalog-search:focus-within {
    border-color: #024ee7;
    box-shadow: 0 0 0 3px rgba(2, 78, 231, 0.1);
}

.catalog-search img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.catalog-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0a090b;
    font-family: Inter, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.catalog-search input::placeholder {
    color: #7f7d83;
    opacity: 1;
}

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

.catalog-card {
    display: flex;
    min-width: 0;
    min-height: 373px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
    overflow: hidden;
    border-radius: 34px;
    background: #f8f8f8;
    box-sizing: border-box;
}

.catalog-card[hidden] {
    display: none;
}

.catalog-card-content {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.catalog-card h2 {
    max-width: 100%;
    margin: 0;
    color: #0a090b;
    font-family: Inter, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.catalog-card-tags {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-card-tags span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    border-radius: 100px;
    background: #e6e6e6;
    color: #0a090b;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
    box-sizing: border-box;
}

.catalog-card p {
    width: 100%;
    margin: 0;
    color: #0a090b;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
}

.catalog-card-actions {
    display: flex;
    max-width: 100%;
    align-items: center;
    gap: 12px;
}

.catalog-button {
    display: inline-flex;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 8px;
    color: #4d4e55;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.catalog-button-primary {
    background: #00269b;
    color: #ffffff;
}

.catalog-button-primary:hover {
    background: #001f7d;
}

.catalog-button-secondary {
    min-width: 194px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
}

.catalog-button-secondary:hover {
    border-color: #c9c9cc;
}

.catalog-button[aria-disabled="true"] {
    pointer-events: none;
}

.catalog-empty {
    margin: 40px 0 0;
    color: #7f7d83;
    font-size: 16px;
    text-align: center;
}

@media screen and (max-width: 1000px) {
    .catalog-card {
        padding: 28px;
    }

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

    .catalog-card-tags span {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media screen and (max-width: 768px) {
    .wrapper:has(.catalog-page) .header {
        padding-bottom: 11px;
    }

    .catalog-page {
        padding: 12px 0 64px;
    }

    .catalog-page-shell {
        width: calc(100% - 32px);
    }

    .catalog-mobile-benchmark-selector {
        display: flex;
        width: calc(100% - 32px);
        height: 44px;
        align-items: center;
        justify-content: space-between;
        margin: 0 16px 48px;
        padding: 0 12px;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        background: #ffffff;
        color: #29292c;
        font-family: Inter, sans-serif;
        font-size: 14px;
        line-height: 20px;
        text-decoration: none;
        box-sizing: border-box;
    }

    .catalog-intro {
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 32px;
    }

    .catalog-intro h1 {
        font-size: 28px;
        line-height: 1.2;
        text-align: left;
    }

    .catalog-filters {
        width: calc(100vw - 16px);
        justify-content: flex-start;
        gap: 8px;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .catalog-filters::-webkit-scrollbar {
        display: none;
    }

    .catalog-filter {
        min-height: 30px;
        flex: 0 0 auto;
        padding-right: 24px;
        padding-left: 24px;
    }

    .catalog-search {
        width: 100%;
        height: 52px;
        margin-top: 0;
        padding: 0 14px;
        border-radius: 10px;
    }

    .catalog-search img {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }

    .catalog-search input {
        font-size: 16px;
        line-height: 24px;
    }

    .catalog-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .catalog-card {
        min-height: 0;
        gap: 32px;
        padding: 24px;
        border-radius: 20px;
    }

    .catalog-card-content {
        gap: 20px;
    }

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

    .catalog-card-tags {
        gap: 8px;
    }

    .catalog-card-tags span {
        min-height: 28px;
        padding: 5px 18px;
        font-size: 11px;
    }

    .catalog-card p {
        font-size: 15px;
        line-height: 21px;
    }

    .catalog-card-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .catalog-button {
        width: 100%;
        height: 44px;
        font-size: 14px;
    }

    .catalog-button-secondary {
        min-width: 0;
    }
}

@media screen and (max-width: 420px) {
    .catalog-card {
        padding: 20px;
    }

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

    .catalog-card-tags span {
        flex: 1 1 calc(50% - 4px);
        padding-right: 10px;
        padding-left: 10px;
    }
}
/* New catalog pages */
.catalog-filter.active {
    color: #e6e6e6;
}

body:has(.catalog-page) .footer-item-block-title {
    color: #7f7d83;
}

body:has(.catalog-page) .footer-item-block ul li a {
    color: #4d4e55;
}

@media screen and (max-width: 768px) {
    .wrapper:has(.catalog-page) .header-menu {
        display: none;
    }

    .catalog-mobile-benchmark-selector {
        display: block;
        width: calc(100% - 32px);
        height: auto;
        margin: 0 16px 48px;
        padding: 0;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        background: #ffffff;
        box-sizing: border-box;
    }

    .catalog-mobile-benchmark-selector summary {
        display: flex;
        height: 40px;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        color: #29292c;
        font-family: Inter, sans-serif;
        font-size: 14px;
        line-height: 20px;
        cursor: pointer;
        list-style: none;
        box-sizing: border-box;
    }

    .catalog-mobile-benchmark-selector summary::-webkit-details-marker {
        display: none;
    }

    .catalog-mobile-benchmark-selector summary:focus-visible {
        outline: 3px solid rgba(2, 78, 231, 0.2);
        outline-offset: 2px;
    }

    .catalog-mobile-benchmark-selector summary svg {
        color: #024ee7;
        transition: transform 0.15s ease;
    }

    .catalog-mobile-benchmark-selector[open] summary svg {
        transform: rotate(180deg);
    }

    .catalog-mobile-benchmark-menu {
        display: flex;
        max-height: 280px;
        flex-direction: column;
        padding: 4px;
        overflow-y: auto;
        border-top: 1px solid #e6e6e6;
    }

    .catalog-mobile-benchmark-menu a {
        display: flex;
        min-height: 40px;
        align-items: center;
        padding: 8px;
        border-radius: 6px;
        color: #4d4e55;
        font-family: Inter, sans-serif;
        font-size: 14px;
        line-height: 20px;
        text-decoration: none;
        box-sizing: border-box;
    }

    .catalog-mobile-benchmark-menu a:hover,
    .catalog-mobile-benchmark-menu a:focus-visible {
        background: #f1f1f1;
        color: #00269b;
        outline: none;
    }

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

    .catalog-button {
        height: 40px;
        font-size: 16px;
    }
}

@media screen and (max-width: 420px) {
    .catalog-card h2 {
        font-size: 24px;
    }

    .catalog-card-tags span:last-child:nth-child(odd) {
        flex-basis: 100%;
    }
}

/* The global header owns the benchmark selector. */
.catalog-mobile-benchmark-selector {
    display: none !important;
}

@media screen and (max-width: 1100px) {
    .wrapper:has(.catalog-page) .header-redesign .header-menu {
        display: flex;
    }
}
