.catalog-index,
.catalog-index * {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.catalog-page {
    background-color: #f4f7fb;
}

main.catalog-index {
    min-height: 0;
    margin-top: 53px;
    overflow: hidden;
    background-color: #f4f7fb;
    color: #17233d;
    font-family: 'PT Sans', Arial, sans-serif;
}

.catalog-index section {
    height: auto;
    min-height: 0;
    margin-top: 0;
    transition: none;
}

.catalog-skip-link {
    position: fixed;
    z-index: 2000;
    top: -80px;
    left: 16px;
    padding: 12px 16px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background-color: #102451;
    color: #ffffff;
    font: 700 15px/1.2 'PT Sans', Arial, sans-serif;
    text-decoration: none;
    transition: top 150ms ease;
}

.catalog-skip-link:focus {
    top: 12px;
}

.catalog-eyebrow {
    margin: 0 0 12px;
    color: #4866b2;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.catalog-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(72px, 8vw, 112px) 24px;
    background: linear-gradient(135deg, #0d224e 0%, #193894 56%, #3157ae 100%);
}

.catalog-hero::before,
.catalog-hero::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: '';
    pointer-events: none;
}

.catalog-hero::before {
    top: -330px;
    right: -190px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 68%);
}

.catalog-hero::after {
    bottom: -380px;
    left: -270px;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(95, 145, 255, 0.28), rgba(95, 145, 255, 0) 68%);
}

.catalog-hero__inner,
.catalog-categories__inner,
.catalog-browser__inner,
.catalog-contact__inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.catalog-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    align-items: center;
    gap: clamp(44px, 6vw, 82px);
}

.catalog-hero .catalog-eyebrow,
.catalog-contact .catalog-eyebrow {
    color: #bdccf4;
}

.catalog-hero__copy h1 {
    max-width: 690px;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(48px, 5.4vw, 74px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.98;
}

.catalog-hero__intro {
    max-width: 670px;
    margin: 24px 0 0;
    color: #dbe4fb;
    font-size: clamp(17px, 1.5vw, 19px);
    line-height: 1.65;
}

.catalog-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.catalog-button,
.catalog-button:visited,
.catalog-contact__button,
.catalog-contact__button:visited,
.catalog-external-link,
.catalog-external-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 13px 19px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.catalog-button--primary,
.catalog-button--primary:visited,
.catalog-contact__button,
.catalog-contact__button:visited {
    border: 1px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 9px 26px rgba(4, 17, 47, 0.22);
    color: #193894;
}

.catalog-button--secondary,
.catalog-button--secondary:visited {
    border: 1px solid rgba(255, 255, 255, 0.44);
    background-color: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.catalog-button span,
.catalog-contact__button span,
.catalog-external-link > span:last-child {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.catalog-hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.catalog-hero__highlights li {
    margin: 0;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.catalog-hero__visual {
    position: relative;
    min-width: 0;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 22px;
    background-color: #dce4ef;
    box-shadow: 0 24px 58px rgba(4, 17, 47, 0.3);
}

.catalog-hero__visual::after {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, rgba(8, 22, 51, 0), rgba(8, 22, 51, 0.84));
    content: '';
    pointer-events: none;
}

.catalog-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.catalog-hero__visual figcaption {
    position: absolute;
    z-index: 1;
    right: clamp(20px, 4vw, 34px);
    bottom: clamp(20px, 4vw, 32px);
    left: clamp(20px, 4vw, 34px);
    display: grid;
    gap: 7px;
    color: #ffffff;
}

.catalog-hero__visual figcaption strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(22px, 2.4vw, 31px);
    font-weight: 400;
    line-height: 1.12;
}

.catalog-hero__visual figcaption span {
    max-width: 520px;
    color: #e1e8f8;
    font-size: 14px;
    line-height: 1.45;
}

.catalog-categories {
    padding: clamp(76px, 8vw, 112px) 24px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
}

.catalog-section-header,
.catalog-browser__header {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
    align-items: end;
    gap: 48px;
}

.catalog-section-header h2,
.catalog-browser__header h2,
.catalog-contact h2 {
    margin: 0;
    color: #14213d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.catalog-section-header__copy > p,
.catalog-browser__header p,
.catalog-contact p {
    margin: 0;
    color: #596579;
    font-size: 17px;
    line-height: 1.65;
}

.catalog-section-header__copy > a,
.catalog-section-header__copy > a:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #224da8;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: clamp(42px, 5vw, 62px);
}

.catalog-category-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: clamp(26px, 3.5vw, 38px);
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 36, 79, 0.07);
}

.catalog-category-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #3157ae, #7d9cde);
    content: '';
}

.catalog-category-card__number {
    margin: 0 0 14px;
    color: #7589b9;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1;
}

.catalog-category-card h3 {
    margin: 0;
    color: #17233d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(25px, 2.5vw, 31px);
    font-weight: 400;
    line-height: 1.14;
}

.catalog-category-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.catalog-category-card li {
    position: relative;
    min-width: 0;
    margin: 0;
    padding-left: 15px;
    line-height: 1.4;
}

.catalog-category-card li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #5576c4;
    content: '';
}

.catalog-category-card a,
.catalog-category-card a:visited {
    color: #294b91;
    font-size: 15px;
    font-weight: 700;
    text-decoration-color: rgba(41, 75, 145, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.catalog-browser {
    scroll-margin-top: 110px;
    padding: clamp(76px, 8vw, 112px) 24px;
    background-color: #ffffff;
}

.catalog-browser__header {
    align-items: center;
}

.catalog-browser__header p {
    max-width: 720px;
    margin-top: 16px;
}

.catalog-external-link,
.catalog-external-link:visited {
    justify-self: end;
    border: 1px solid #c9d5ea;
    background-color: #eff4fb;
    color: #1d438f;
}

.catalog-external-link__note {
    font-weight: 400;
}

.catalog-frame-wrap {
    position: relative;
    width: 100%;
    min-height: 780px;
    margin-top: 38px;
    overflow: hidden;
    border: 1px solid #d6dfeb;
    border-radius: 18px;
    background-color: #f7f9fc;
    box-shadow: 0 16px 42px rgba(15, 36, 79, 0.1);
}

.catalog-frame {
    display: block;
    width: 100%;
    min-height: 780px;
    border: 0;
    background-color: #ffffff;
}

.catalog-frame-fallback {
    margin: 16px 0 0;
    color: #596579;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.catalog-frame-fallback a,
.catalog-frame-fallback a:visited {
    color: #214a9c;
    font-weight: 700;
}

.catalog-contact {
    padding: clamp(66px, 7vw, 94px) 24px;
    background: linear-gradient(135deg, #0b1f45 0%, #173576 100%);
}

.catalog-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
}

.catalog-contact h2 {
    max-width: 820px;
    color: #ffffff;
}

.catalog-contact p:not(.catalog-eyebrow) {
    max-width: 760px;
    margin-top: 16px;
    color: #d6e0f6;
}

.catalog-contact__button,
.catalog-contact__button:visited {
    min-width: 245px;
}

.catalog-index a:hover {
    text-decoration-thickness: 2px;
}

.catalog-button:hover,
.catalog-contact__button:hover,
.catalog-external-link:hover {
    transform: translateY(-1px);
}

.catalog-index a:focus-visible,
.catalog-skip-link:focus-visible,
.catalog-frame:focus-visible {
    outline: 3px solid #f5bd3f;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .catalog-hero__inner,
    .catalog-section-header,
    .catalog-browser__header,
    .catalog-contact__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-hero__visual {
        width: 100%;
        max-width: 760px;
    }

    .catalog-section-header,
    .catalog-browser__header,
    .catalog-contact__inner {
        gap: 26px;
    }

    .catalog-section-header__copy > p,
    .catalog-browser__header p {
        max-width: 760px;
    }

    .catalog-external-link {
        justify-self: start;
    }

    .catalog-contact__button {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    main.catalog-index {
        margin-top: 0;
    }

    .catalog-hero,
    .catalog-categories,
    .catalog-browser,
    .catalog-contact {
        padding-right: 18px;
        padding-left: 18px;
    }

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

    .catalog-category-card ul {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-frame-wrap,
    .catalog-frame {
        min-height: 690px;
    }
}

@media (max-width: 520px) {
    .catalog-hero {
        padding-top: 58px;
        padding-bottom: 64px;
    }

    .catalog-hero__copy h1 {
        font-size: clamp(42px, 13vw, 54px);
    }

    .catalog-hero__actions,
    .catalog-button,
    .catalog-contact__button,
    .catalog-external-link {
        width: 100%;
    }

    .catalog-hero__visual {
        aspect-ratio: 1.15 / 1;
    }

    .catalog-hero__visual figcaption span {
        display: none;
    }

    .catalog-external-link {
        justify-self: stretch;
    }

    .catalog-external-link__note {
        display: none;
    }

    .catalog-frame-wrap,
    .catalog-frame {
        min-height: 640px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .catalog-skip-link,
    .catalog-button,
    .catalog-contact__button,
    .catalog-external-link {
        transition: none;
    }
}
