.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: var(--hero-image-overlay);
    content: "";
}

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

@media (min-width: 761px) {
    .catalog-hero:not(.catalog-hero--overview) .catalog-hero__media img {
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 28%, rgba(0, 0, 0, 0.28) 42%, #000 64%);
        mask-image: linear-gradient(90deg, transparent 0%, transparent 28%, rgba(0, 0, 0, 0.28) 42%, #000 64%);
    }
}

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

.catalog-hero:not(.catalog-hero--overview) .eyebrow {
    color: #d9f3e7;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.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-hero--overview {
    min-height: 520px;
    background: #111513;
}

.catalog-hero--overview .catalog-hero__media {
    display: block;
    background: #111513;
}

.catalog-hero--overview .catalog-hero__media::after {
    display: block;
}

.catalog-hero--overview .catalog-hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.catalog-hero--overview .catalog-hero__media img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.catalog-hero--overview .catalog-hero__content {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 34px;
    padding-bottom: 42px;
}

.catalog-hero--overview .catalog-breadcrumbs,
.catalog-hero--overview .catalog-breadcrumbs a {
    color: #e0e9e5;
}

.catalog-hero--overview .eyebrow {
    color: #df955f;
}

.catalog-hero--overview h1 {
    max-width: 540px;
    margin: 0 0 12px;
    color: #fff;
    font-size: 50px;
    line-height: 1.02;
}

.catalog-hero--overview .catalog-hero__content > p:not(.eyebrow) {
    max-width: 500px;
    margin: 0 0 20px;
    color: #e0e9e5;
    font-size: 18px;
    line-height: 1.45;
}

.catalog-hero--overview .button {
    border-color: #d0844f;
    background: #d0844f;
    color: #151719;
}

.catalog-hero--overview .button:hover {
    border-color: #e19a68;
    background: #e19a68;
}

.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;
        --hero-image-overlay:
            linear-gradient(0deg, rgba(12, 16, 19, 0.98) 0%, rgba(12, 16, 19, 0.92) 36%, rgba(12, 16, 19, 0.48) 68%, rgba(12, 16, 19, 0.28) 100%),
            linear-gradient(90deg, rgba(12, 16, 19, 0.38) 0%, rgba(12, 16, 19, 0.18) 100%);
    }

    .catalog-hero:not(.catalog-hero--overview) .eyebrow {
        color: #fff;
        text-shadow: 0 1px 2px #0c1013, 0 0 8px rgba(0, 0, 0, 0.95);
    }

    .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;
    }

    .catalog-hero--overview,
    .catalog-hero--overview .catalog-hero__content {
        min-height: 560px;
    }

    .catalog-hero--overview .catalog-hero__content {
        justify-content: flex-end;
        padding-top: 20px;
        padding-bottom: 22px;
    }

    .catalog-hero--overview .catalog-breadcrumbs,
    .catalog-hero--overview .eyebrow {
        display: none;
    }

    .catalog-hero--overview h1 {
        max-width: 350px;
        margin-bottom: 8px;
        font-size: 34px;
        line-height: 1.05;
    }

    .catalog-hero--overview .catalog-hero__content > p:not(.eyebrow) {
        max-width: 350px;
        margin-bottom: 14px;
        font-size: 15px;
        line-height: 1.35;
    }

    .catalog-hero--overview .button {
        min-height: 44px;
        padding: 11px 17px;
        font-size: 15px;
    }

    .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: 104px minmax(0, 1fr);
    }

    .catalog-page-showcase .product-tile img {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 104px;
        height: 116px;
        min-height: 0;
        padding: 8px;
        align-self: start;
    }

    .catalog-page-showcase .product-tile__body {
        display: contents;
    }

    .catalog-page-showcase .product-tile .status {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
        min-height: 24px;
        margin: 12px 12px 6px;
        padding: 0 8px;
        font-size: 10px;
    }

    .catalog-page-showcase .product-tile h3 {
        grid-column: 2;
        grid-row: 2;
        margin: 0 12px 6px;
        font-size: 16px;
        line-height: 1.22;
    }

    .catalog-page-showcase .product-tile p {
        grid-column: 2;
        grid-row: 3;
        margin: 0 12px 10px;
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .catalog-page-showcase .product-details {
        width: auto;
        min-width: 0;
        grid-column: 1 / -1;
        grid-row: 4;
        margin: 0 10px;
    }

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

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

    .catalog-page-showcase .product-select-button {
        grid-column: 1 / -1;
        grid-row: 5;
        min-height: 38px;
        margin: 10px;
        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: 92px minmax(0, 1fr);
    }

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