.gj-catalog {
    width: min(1170px, calc(100% - 40px));
    margin: 72px auto 88px;
}

.gj-catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 32px;
    border-bottom: 1px solid #e2e5e9;
}

.gj-catalog-tabs button {
    appearance: none;
    min-height: 44px;
    margin: 0 0 -1px;
    padding: 0 18px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #535b65;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.gj-catalog-tabs button:hover,
.gj-catalog-tabs button:focus-visible,
.gj-catalog-tabs button[aria-selected="true"] {
    border-bottom-color: #e23b3b;
    color: #13171c;
}

.gj-catalog-tabs button:focus-visible,
.gj-catalog-card__link:focus-visible,
.gj-catalog-card a:focus-visible {
    outline: 2px solid #1f6f8b;
    outline-offset: 3px;
}

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

.gj-catalog-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e2e5e9;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(18, 28, 38, 0.07);
}

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

.gj-catalog-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f2f4;
}

.gj-catalog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.gj-catalog-card:hover .gj-catalog-card__media img {
    transform: scale(1.025);
}

.gj-catalog-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
}

.gj-catalog-card__body h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.gj-catalog-card__body h2 a {
    color: #151a20;
}

.gj-catalog-card__body p {
    margin: 0 0 20px;
    color: #66707b;
    line-height: 1.75;
}

.gj-catalog-card__link {
    margin-top: auto;
    color: #b82d32;
    font-weight: 700;
}

.gj-product-hero {
    padding: 74px 20px 64px;
    background: #17242d;
    color: #fff;
    text-align: center;
}

.gj-product-hero__inner,
.gj-product-detail__inner {
    width: min(1170px, 100%);
    margin: 0 auto;
}

.gj-product-hero h1 {
    max-width: 900px;
    margin: 0 auto 12px;
    color: #fff;
    font-size: 44px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.gj-product-hero a {
    color: #d9e2e7;
}

.gj-product-detail {
    padding: 72px 20px 92px;
}

.gj-product-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 54px;
    align-items: start;
}

.gj-product-detail__image {
    overflow: hidden;
    border-radius: 6px;
    background: #f0f2f4;
}

.gj-product-detail__image img {
    display: block;
    width: 100%;
    height: auto;
}

.gj-product-detail__content {
    min-width: 0;
    color: #4f5964;
    line-height: 1.8;
}

.gj-product-detail__content > :first-child {
    margin-top: 0;
}

.gj-product-detail__content img {
    max-width: 100%;
    height: auto;
}

.gj-product-detail__back {
    display: inline-flex;
    margin-top: 26px;
    color: #b82d32;
    font-weight: 700;
}

@media (max-width: 767px) {
    .gj-catalog {
        width: min(100% - 28px, 1170px);
        margin-top: 48px;
        margin-bottom: 64px;
    }

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

    .gj-catalog-tabs button {
        width: 100%;
        padding: 0 10px;
    }

    .gj-catalog-grid,
    .gj-product-detail__layout {
        grid-template-columns: 1fr;
    }

    .gj-product-hero {
        padding: 52px 18px 46px;
    }

    .gj-product-hero h1 {
        font-size: 32px;
    }

    .gj-product-detail {
        padding: 48px 18px 68px;
    }

    .gj-product-detail__layout {
        gap: 30px;
    }
}
