.catalog-page {
    min-height: 100vh;
    color: #edf3f9;
    background: #040c16;
}

.catalog-hero {
    padding: 58px 0 34px;
    background:
        radial-gradient(circle at 82% 12%, rgba(17, 57, 93, 0.26), transparent 42%),
        linear-gradient(180deg, #060e18 0%, #071221 100%);
    border-bottom: 1px solid #202a34;
}

.catalog-hero--compact {
    padding-bottom: 28px;
}

.catalog-hero__inner {
    display: grid;
    gap: 14px;
}

.catalog-page__kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ff7a1a;
    font-size: 0.84rem;
    font-weight: 700;
}

.catalog-hero h1 {
    margin: 0;
    font-size: clamp(1.85rem, 2.8vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.catalog-hero__back {
    width: fit-content;
    color: #ff9a4f;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.catalog-hero__back:hover {
    color: #ffc08d;
}

.catalog-hero__lead {
    max-width: 780px;
    margin: 0;
    color: #b8c5d3;
    font-size: 1.08rem;
    line-height: 1.5;
}

.catalog-search {
    max-width: 940px;
    margin-top: 12px;
}

.catalog-search__label {
    display: block;
    margin-bottom: 8px;
    color: #dce6ef;
    font-weight: 700;
}

.catalog-search__control {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.catalog-search input {
    min-height: 52px;
    width: 100%;
    border: 1px solid #2b3f54;
    border-radius: 8px;
    background: rgba(7, 17, 30, 0.82);
    color: #edf3f9;
    padding: 0 16px;
    outline: none;
}

.catalog-search input:focus {
    border-color: #ff7a1a;
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16);
}

.catalog-search button,
.catalog-sidebar__back {
    min-height: 52px;
    border: 1px solid rgba(255, 122, 26, 0.55);
    border-radius: 8px;
    background: rgba(255, 122, 26, 0.08);
    color: #ff9a4f;
    padding: 0 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.catalog-section {
    padding: 42px 0 62px;
}

.catalog-section__head {
    margin-bottom: 24px;
}

.catalog-section__head h2,
.catalog-search-results__head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.6rem, 2.35vw, 2.35rem);
    line-height: 1.12;
}

.catalog-section__head--inline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.catalog-section__head--inline span {
    color: #9fb0c1;
    white-space: nowrap;
}

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.catalog-category-card,
.catalog-product-card {
    border: 1px solid #26384a;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1728 0%, #0a1422 100%);
}

.catalog-category-card {
    display: grid;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.catalog-category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 26, 0.58);
}

.catalog-category-card__image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-bottom: 1px solid rgba(161, 182, 203, 0.22);
}

.catalog-category-card__image--placeholder,
.catalog-product-card__image--placeholder {
    background-image:
        linear-gradient(180deg, rgba(3, 10, 18, 0.05), rgba(3, 10, 18, 0.35)),
        url("/hero-background.png");
    background-size: cover;
    background-position: center;
}

.catalog-category-card__body {
    display: grid;
    gap: 10px;
    padding: 22px 24px 24px;
}

.catalog-category-card__body strong {
    color: #edf3f9;
    font-size: 1.32rem;
    line-height: 1.22;
}

.catalog-category-card__body span {
    color: #bfd0df;
    line-height: 1.45;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.catalog-layout--wide {
    grid-template-columns: 1fr;
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #26384a;
    border-radius: 8px;
    background: rgba(7, 17, 30, 0.72);
}

.catalog-sidebar__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.catalog-sidebar__nav {
    display: grid;
    gap: 8px;
}

.catalog-sidebar__link {
    display: block;
    border: 1px solid rgba(109, 132, 157, 0.28);
    border-radius: 8px;
    color: #dce6ef;
    padding: 12px 14px;
    text-decoration: none;
    line-height: 1.35;
}

.catalog-sidebar__link:hover {
    border-color: rgba(255, 122, 26, 0.52);
    color: #ff9a4f;
}

.catalog-description {
    margin-top: 34px;
    color: #c7d4e0;
    line-height: 1.62;
}

.catalog-description :first-child {
    margin-top: 0;
}

.catalog-description :last-child {
    margin-bottom: 0;
}

.catalog-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-layout:not(.catalog-layout--wide) .catalog-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-product-card {
    display: grid;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.catalog-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 26, 0.58);
}

.catalog-product-card__image {
    width: 100%;
    height: 168px;
    object-fit: contain;
    background: #0a1422;
    border-bottom: 1px solid rgba(147, 166, 186, 0.24);
}

.catalog-product-card__body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.catalog-product-card__category {
    color: #ff9a4f;
    font-size: 0.82rem;
    font-weight: 700;
}

.catalog-product-card h3 {
    margin: 0;
    color: #edf3f9;
    font-size: 1.08rem;
    line-height: 1.3;
}

.catalog-product-card p {
    margin: 0;
    color: #b9c8d7;
    line-height: 1.45;
}

.catalog-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    color: #9fb0c1;
}

.catalog-product-card__meta strong {
    color: #ff9a4f;
}

.catalog-empty-state {
    border: 1px solid #26384a;
    border-radius: 8px;
    background: rgba(7, 17, 30, 0.72);
    padding: 24px;
}

.catalog-empty-state strong {
    display: block;
    color: #edf3f9;
    font-size: 1.1rem;
}

.catalog-empty-state p {
    margin: 8px 0 0;
    color: #9fb0c1;
}

.catalog-empty-state__action {
    margin-top: 18px;
}

.catalog-search-results__head {
    margin-bottom: 22px;
}

@media (max-width: 1180px) {
    .catalog-category-grid,
    .catalog-products-grid,
    .catalog-layout:not(.catalog-layout--wide) .catalog-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .catalog-hero {
        padding: 42px 0 28px;
    }

    .catalog-search__control,
    .catalog-category-grid,
    .catalog-products-grid,
    .catalog-layout:not(.catalog-layout--wide) .catalog-products-grid {
        grid-template-columns: 1fr;
    }

    .catalog-section__head--inline {
        display: grid;
        align-items: start;
    }

    .catalog-category-card__image {
        height: 190px;
    }

    .catalog-product-card__meta {
        display: grid;
    }
}
