.catalog-page .nav-links a[aria-current="page"] {
    color: var(--amber);
}

.catalog-page section[id],
.catalog-page footer[id] {
    scroll-margin-top: 94px;
}

.catalog-hero {
    position: relative;
    display: grid;
    min-height: 430px;
    align-items: end;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

.catalog-hero__media {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: flex-end;
    background: #111316;
}

.catalog-hero__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(21, 21, 24, 0.94) 0%, rgba(21, 21, 24, 0.78) 48%, rgba(21, 21, 24, 0.24) 100%);
    content: "";
}

.catalog-hero__media img {
    width: min(54vw, 760px);
    height: 100%;
    margin-left: auto;
    object-fit: contain;
    object-position: right center;
}

.catalog-hero__content {
    position: relative;
    z-index: 1;
    padding: 40px 0 38px;
}

.catalog-hero h1 {
    max-width: 760px;
    margin-bottom: 14px;
    font-size: 52px;
}

.catalog-hero__content > p:not(.eyebrow) {
    max-width: 720px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.catalog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 14px;
}

.catalog-breadcrumbs a:hover {
    color: #fff;
}

.category-section {
    padding: 52px 0 56px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

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

.category-card {
    display: grid;
    min-height: 168px;
    grid-template-columns: 120px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--milk);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 130, 79, 0.6);
    box-shadow: var(--shadow);
}

.category-card__media {
    display: block;
    min-width: 0;
    background: #fff;
}

.category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.category-card > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

.category-card > div > span {
    margin-bottom: 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.category-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.category-card p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.category-card__link {
    width: fit-content;
    margin-top: auto;
    color: var(--amber);
    font-size: 14px;
    font-weight: 900;
}

.catalog-page-showcase {
    padding-top: 62px;
    padding-bottom: 62px;
    background: var(--milk);
}

.catalog-page-showcase .section-head {
    margin-bottom: 24px;
}

.catalog-page-showcase .catalog-toolbar {
    margin-bottom: 18px;
}

.catalog-page-showcase .catalog-grid {
    grid-template-columns: 1fr;
    gap: 10px;
}

.catalog-page-showcase .product-tile {
    display: grid;
    min-height: 148px;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: stretch;
}

.catalog-page-showcase .product-tile img {
    width: 132px;
    height: 100%;
    min-height: 148px;
    aspect-ratio: auto;
    padding: 12px;
    border-right: 1px solid var(--line);
}

.catalog-page-showcase .product-tile__body {
    display: grid;
    grid-template-areas:
        "status details"
        "title details"
        "description action";
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 6px 20px;
    padding: 14px 16px;
}

.catalog-page-showcase .product-tile .status {
    grid-area: status;
    margin-bottom: 0;
    align-self: start;
}

.catalog-page-showcase .product-tile h3 {
    grid-area: title;
    margin: 0;
    align-self: center;
    font-size: 19px;
}

.catalog-page-showcase .product-tile p {
    display: -webkit-box;
    overflow: hidden;
    grid-area: description;
    margin: 0;
    align-self: start;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-page-showcase .product-details {
    width: 100%;
    min-width: 0;
    grid-area: details;
    margin: 0;
    align-self: start;
}

.catalog-page-showcase .product-details summary {
    padding: 9px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.catalog-page-showcase .product-details[open] summary {
    color: var(--green);
}

.catalog-page-showcase .product-details dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 8px 0 0;
}

.catalog-page-showcase .product-tile dl div {
    min-width: 0;
    padding-top: 8px;
}

.catalog-page-showcase .product-tile dt,
.catalog-page-showcase .product-tile dd {
    overflow-wrap: anywhere;
}

.catalog-page-showcase .product-tile dd {
    font-size: 14px;
}

.catalog-page-showcase .product-select-button {
    grid-area: action;
    min-height: 40px;
    margin-top: 0;
    align-self: end;
}

.catalog-guidance {
    padding: 56px 0;
    background: #fff;
    border-top: 1px solid var(--line);
}

.catalog-guidance__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    gap: 40px;
    align-items: start;
}

.catalog-guidance__grid > div:first-child > p:last-child {
    color: var(--muted);
    font-size: 18px;
}

.catalog-guidance__steps {
    display: grid;
    gap: 8px;
}

.catalog-guidance__steps div {
    display: grid;
    grid-template-columns: 48px minmax(0, 150px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--milk);
}

.catalog-guidance__steps span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
}

.catalog-guidance__steps strong {
    color: var(--ink);
    font-size: 18px;
}

.catalog-guidance__steps p {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 1120px) {
    .catalog-page section[id],
    .catalog-page footer[id] {
        scroll-margin-top: 16px;
    }

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

    .catalog-guidance__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 760px) {
    .catalog-hero {
        min-height: 500px;
    }

    .catalog-hero__media img {
        width: 100%;
        object-position: center;
    }

    .catalog-hero__content {
        padding: 34px 0 32px;
    }

    .catalog-hero h1 {
        font-size: 34px;
    }

    .catalog-page[data-category-page="plenka-pet"] .catalog-hero h1 {
        font-size: 30px;
    }

    .catalog-hero__content > p:not(.eyebrow) {
        margin-bottom: 20px;
        font-size: 16px;
    }

    .catalog-breadcrumbs {
        margin-bottom: 20px;
    }

    .category-section {
        padding: 44px 0;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        min-height: 158px;
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .category-card > div {
        padding: 16px;
    }

    .category-card h3 {
        font-size: 18px;
    }

    .catalog-page-showcase {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .catalog-page-showcase .catalog-grid {
        gap: 8px;
    }

    .catalog-page-showcase .product-tile {
        min-height: 0;
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .catalog-page-showcase .product-tile img {
        width: 88px;
        height: 116px;
        min-height: 0;
        padding: 8px;
        align-self: start;
    }

    .catalog-page-showcase .product-tile__body {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .catalog-page-showcase .product-tile .status {
        min-height: 24px;
        margin-bottom: 6px;
        padding: 0 8px;
        font-size: 10px;
    }

    .catalog-page-showcase .product-tile h3 {
        margin-bottom: 6px;
        font-size: 16px;
        line-height: 1.22;
    }

    .catalog-page-showcase .product-tile p {
        margin-bottom: 8px;
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .catalog-page-showcase .product-details {
        margin-bottom: 8px;
    }

    .catalog-page-showcase .product-details summary {
        padding: 7px 0;
        font-size: 11px;
    }

    .catalog-page-showcase .product-details dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-page-showcase .product-select-button {
        min-height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    .catalog-guidance {
        padding: 48px 0;
    }

    .catalog-guidance__steps div {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .catalog-guidance__steps p {
        grid-column: 2;
    }
}

@media (max-width: 340px) {
    .catalog-hero h1 {
        font-size: 33px;
    }

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

    .catalog-page-showcase .product-tile {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .catalog-page-showcase .product-tile img {
        width: 76px;
        height: 104px;
    }
}
