.catalog-page,
.product-detail-page,
.category-page {
    min-height: 65vh;
    padding: 86px 0 110px;
    background: var(--sarkon-paper);
}

.catalog-page-models { padding: 48px 0 120px; background: #fff; }
.catalog-page-models .site-container { width: min(1250px, calc(100% - 72px)); }

.catalog-hero {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    padding: 68px 0 151px;
    border-radius: 0 0 50% 50% / 0 0 33% 33%;
    background: #181818;
    color: #fff;
    text-align: center;
}

.catalog-hero::before {
    position: absolute;
    top: -118px;
    right: -34px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(223, 189, 67, .55);
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(223, 189, 67, .08), 0 0 0 73px rgba(223, 189, 67, .045);
    content: "";
}

.catalog-hero-content { position: relative; z-index: 1; }
.catalog-hero-kicker { margin: 0 0 17px; color: #dfbd43; font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.catalog-hero h1 { margin: 0; color: #fff; font-size: clamp(2.4rem, 4.2vw, 4.2rem); font-weight: 760; letter-spacing: -.065em; line-height: .98; }
.catalog-breadcrumb { display: flex; justify-content: center; gap: 7px; margin-top: 25px; color: rgba(255, 255, 255, .76); font-size: .86rem; }
.catalog-breadcrumb a { color: inherit; text-decoration: none; }
.catalog-breadcrumb a:hover { color: #dfbd43; }
.catalog-breadcrumb strong { color: #fff; font-weight: 700; }

.catalog-intro,
.catalog-empty {
    max-width: 760px;
}

.catalog-intro h1,
.product-detail-copy h1,
.category-page h1 {
    margin: 0;
    color: var(--sarkon-ink);
    font-size: clamp(2.8rem, 5.4vw, 5.5rem);
    letter-spacing: -.07em;
    line-height: .93;
}

.catalog-intro h1 em,
.product-detail-copy h1 em,
.category-page h1 em {
    color: #b68e08;
    font-family: Georgia, serif;
    font-weight: 400;
}

.catalog-intro > p:not(.eyebrow),
.catalog-empty p,
.product-detail-copy > p {
    max-width: 600px;
    margin: 23px 0 0;
    color: var(--sarkon-muted);
    line-height: 1.7;
}

.catalog-model-count { display: flex; align-items: center; gap: 12px; margin: 0; color: #a17e1e; font-size: .68rem; font-weight: 900; letter-spacing: .13em; }
.catalog-model-count::before { width: 42px; height: 2px; background: var(--sarkon-gold); content: ""; }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
    margin-top: 53px;
}

.catalog-grid-models { gap: 24px; margin-top: 27px; }

.catalog-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--sarkon-white);
    color: var(--sarkon-ink);
    box-shadow: 0 12px 30px rgba(16, 29, 45, .07);
    text-decoration: none;
    transition: box-shadow .25s ease, transform .25s ease;
}

.catalog-card:hover {
    box-shadow: var(--sarkon-shadow);
    transform: translateY(-7px);
}

.catalog-card-model { min-height: 460px; border: 1px solid #dde3e5; border-radius: 72px 72px 0 0; background: #fff; box-shadow: none; }
.catalog-card-model.catalog-card-featured { border-color: #193247; background: #fff; }
.catalog-card-model:hover { border-color: #b5222c; box-shadow: 0 16px 31px rgba(17, 35, 52, .11); transform: translateY(-4px); }

.catalog-card-image {
    position: relative;
    height: 265px;
    overflow: hidden;
    background: var(--sarkon-ink);
}

.catalog-card-model .catalog-card-image { display: grid; height: auto; min-height: 281px; flex: 1; place-items: center; overflow: hidden; padding: 61px 24px 21px; background: #f0f3f4; }
.catalog-card-model .catalog-card-image.is-empty { isolation: isolate; background: linear-gradient(145deg, #f3f5f5 0%, #e9edef 100%); }
.catalog-card-model .catalog-card-image.is-empty::before { position: absolute; z-index: -1; inset: 0; border-top: 1px solid rgba(22, 37, 54, .04); background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(22, 37, 54, .045) 38px 39px); content: ""; }
.catalog-card-featured .catalog-card-image { background: linear-gradient(135deg, #0c1a28 0%, #17334a 100%); }

.catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.catalog-card-model .catalog-card-image img { width: 119%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 11px rgba(0, 0, 0, .34)); }

.catalog-card:hover .catalog-card-image img {
    transform: scale(1.07);
}

.catalog-card-model:hover .catalog-card-image img { transform: translateY(-5px) scale(1.045); }

.catalog-card-image span {
    position: absolute;
    right: 15px;
    bottom: 14px;
    padding: 7px 10px;
    background: var(--sarkon-yellow);
    color: var(--sarkon-ink);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.catalog-card-content {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    padding: 26px;
}

.catalog-card-model .catalog-card-content { position: relative; min-height: 179px; padding: 25px 26px 26px; border-top: 1px solid #e2e7e8; background: #fff; }
.catalog-card-model .catalog-card-content::before { position: absolute; top: 0; left: 26px; width: 44px; height: 3px; background: var(--sarkon-gold); content: ""; }

.catalog-card-content h2 {
    margin: 0;
    color: var(--sarkon-ink);
    font-size: 1.5rem;
    letter-spacing: -.045em;
}

.catalog-card-model .catalog-card-content h2 { margin-top: 8px; color: var(--sarkon-ink); font-size: clamp(1.43rem, 1.65vw, 1.75rem); font-weight: 760; letter-spacing: -.06em; line-height: 1.02; }

.catalog-card-content p {
    display: -webkit-box;
    overflow: hidden;
    margin: 15px 0 0;
    color: var(--sarkon-muted);
    font-size: .9rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.catalog-card-model .catalog-card-content p { display: block; margin: 7px 0 0; color: #68737b; font-size: .72rem; font-weight: 700; letter-spacing: .055em; line-height: 1.35; text-transform: uppercase; }
.catalog-card-series { display: block; color: #9b252d; font-size: .61rem; font-weight: 900; letter-spacing: .14em; }
.catalog-card-model-number { position: absolute; right: 26px; bottom: 25px; color: #869198; font-size: .62rem; font-weight: 900; letter-spacing: .11em; }
.catalog-card-index { position: absolute; z-index: 2; top: 23px; left: 25px; color: #8b969c; font-size: .66rem; font-weight: 900; letter-spacing: .13em; }
.catalog-card-featured .catalog-card-index { color: #f1ca46; }
.catalog-card-mark { position: relative; z-index: 1; color: rgba(22, 37, 54, .09); font-size: clamp(4rem, 7vw, 6.65rem); font-weight: 900; letter-spacing: -.1em; line-height: 1; }
.catalog-card-visual-label { position: absolute; z-index: 1; right: 25px; bottom: 22px; color: #849097; font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.catalog-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.catalog-card-price {
    color: #987700;
    font-size: .92rem;
    font-weight: 900;
}

.catalog-card-link {
    color: var(--sarkon-ink);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.catalog-pagination a {
    display: grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--sarkon-line);
    color: var(--sarkon-ink);
    text-decoration: none;
}

.catalog-pagination .btn-primary {
    border-color: var(--sarkon-yellow);
    background: var(--sarkon-yellow);
    color: var(--sarkon-ink);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr);
    align-items: center;
    gap: clamp(45px, 8vw, 120px);
}

.product-detail-image {
    position: relative;
    min-height: 570px;
}

.product-detail-image::before {
    position: absolute;
    top: 25px;
    right: -25px;
    bottom: -25px;
    left: 25px;
    border: 1px solid var(--sarkon-yellow);
    content: "";
}

.product-detail-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 570px;
    object-fit: cover;
}

.product-detail-copy .button {
    margin-top: 33px;
}

/* Product detail tabs */
.product-detail-tabs-page { position: relative; min-height: 0; overflow: hidden; padding: clamp(82px, 9vw, 124px) 0 clamp(96px, 10vw, 140px); background: #fff; }
.product-detail-tabs-page::before { position: absolute; top: 0; right: 0; width: min(20vw, 320px); height: 100%; border-left: 1px solid rgba(18,37,54,.055); background: linear-gradient(90deg, transparent, rgba(18,37,54,.018)); content: ""; }
.product-detail-tabs-container { position: relative; z-index: 1; width: min(1250px, calc(100% - 72px)); }
.product-detail-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1060px; margin: 0 auto; }
.product-detail-tabs button { position: relative; min-height: 96px; padding: 0 30px 0 58px; border: 1px solid #d6dfe2; border-radius: 18px; background: #fff; color: #4f606a; box-shadow: 0 12px 28px rgba(16,29,45,.06); font-family: inherit; font-size: clamp(.77rem, 1.1vw, .94rem); font-weight: 850; letter-spacing: .055em; text-align: left; text-transform: uppercase; cursor: pointer; transition: background .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease, transform .22s ease; }
.product-detail-tabs button::before { position: absolute; top: 50%; left: 27px; color: #aab5ba; font-size: .65rem; font-weight: 900; letter-spacing: .09em; content: "01"; transform: translateY(-50%); transition: color .2s ease; }
.product-detail-tabs button:nth-child(2)::before { content: "02"; }
.product-detail-tabs button:nth-child(3)::before { content: "03"; }
.product-detail-tabs button::after { position: absolute; right: 24px; bottom: 14px; left: 24px; height: 3px; border-radius: 3px; background: #c52630; content: ""; transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.product-detail-tabs button:hover { border-color: #c52630; background: #c52630; color: #fff; box-shadow: 0 16px 30px rgba(197,38,48,.25); transform: translateY(-4px); }
.product-detail-tabs button:hover::before { color: rgba(255,255,255,.72); }
.product-detail-tabs button:hover::after { background: rgba(255,255,255,.72); transform: scaleX(1); }
.product-detail-tabs button:focus-visible { outline: 2px solid #c52630; outline-offset: 4px; }
.product-detail-tabs button.is-active { border-color: #c52630; color: #a71720; box-shadow: inset 0 -3px 0 #c52630, 0 12px 28px rgba(16,29,45,.07); }
.product-detail-tabs button.is-active::before { color: #c52630; }
.product-detail-tabs button.is-active::after { transform: scaleX(1); }
.product-detail-panel { max-width: 1060px; margin: 54px auto 0; }
.product-gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 196px; gap: 18px; }
.product-gallery-item { position: relative; grid-column: span 4; margin: 0; overflow: hidden; background: #dfe5e7; }
.product-gallery-item::after { position: absolute; inset: 0; background: linear-gradient(145deg, transparent 55%, rgba(12,26,40,.13) 100%); content: ""; pointer-events: none; }
.product-gallery-item-featured { grid-column: span 7; grid-row: span 2; }
.product-gallery-item:nth-child(2), .product-gallery-item:nth-child(3) { grid-column: span 5; }
.product-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,.75,.25,1); }
.product-gallery-item:hover img { transform: scale(1.045); }
.product-gallery-empty { display: grid; min-height: 420px; place-content: center; justify-items: center; gap: 12px; padding: 36px; border: 1px dashed #cbd4d7; border-radius: 18px; background: linear-gradient(145deg, #fff, #f4f6f6); color: var(--sarkon-ink); text-align: center; }
.product-gallery-empty i { color: #c52630; font-size: 2rem; }
.product-gallery-empty strong { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.035em; }
.product-gallery-empty span { max-width: 360px; color: #697780; font-size: .9rem; line-height: 1.6; }
.product-specification-list { border-top: 1px solid #cfd8db; background: #fff; box-shadow: 0 16px 34px rgba(16,29,45,.055); }
.product-specification-list div { display: grid; grid-template-columns: minmax(280px, 1.2fr) 1fr; min-height: 64px; align-items: center; border-bottom: 1px solid #dce3e5; }
.product-specification-list div:nth-child(even) { background: #f5f7f7; }
.product-specification-list div > span:first-child { padding: 0 25px; color: #263846; font-size: clamp(.77rem, 1.1vw, .88rem); font-weight: 850; letter-spacing: .025em; text-transform: uppercase; }
.product-specification-list div > strong { margin-right: 24px; padding-left: 24px; border-left: 1px solid #d7dfe1; color: #a71720; font-size: clamp(.9rem, 1.3vw, 1.02rem); font-weight: 900; letter-spacing: .025em; }
.product-specification-empty { min-height: 30px; margin-right: 24px; border-left: 1px solid #d7dfe1; }
.product-diagram-blank { min-height: 600px; border: 1px solid #dce3e5; background: #fff; box-shadow: 0 16px 34px rgba(16,29,45,.045); }
.product-diagram-list { display: grid; gap: 28px; }
.product-diagram-card { margin: 0; overflow: hidden; border: 1px solid #dce3e5; background: #fff; box-shadow: 0 16px 34px rgba(16,29,45,.075); }
.product-diagram-card img { display: block; width: 100%; height: auto; background: #fff; }
.product-diagram-card figcaption { display: flex; align-items: flex-start; gap: 10px; padding: 18px 23px; border-top: 1px solid #e0e6e8; color: #697780; font-size: .78rem; line-height: 1.5; }
.product-diagram-card figcaption i { margin-top: 2px; color: #c52630; }

.category-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 42px;
    padding: 0;
    list-style: none;
}

.category-list li {
    padding: 26px;
    background: var(--sarkon-white);
    box-shadow: 0 9px 25px rgba(16, 29, 45, .05);
}

@media (max-width: 850px) {
    .catalog-hero { min-height: 320px; padding: 61px 0 126px; border-radius: 0 0 50% 50% / 0 0 22% 22%; }

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

    .catalog-grid-models { gap: 20px; }
    .catalog-card-model { min-height: 430px; border-radius: 58px 58px 0 0; }
    .catalog-card-model .catalog-card-image { min-height: 256px; padding-top: 54px; }
    .catalog-card-model .catalog-card-content { min-height: 174px; padding: 23px 23px; }
    .catalog-card-model .catalog-card-content::before { left: 23px; }
    .catalog-card-model-number { right: 23px; bottom: 22px; }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-image,
    .product-detail-image img {
        min-height: 450px;
        height: 450px;
    }

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

    .product-detail-tabs-page { padding: 68px 0 90px; }
    .product-detail-tabs { max-width: 100%; }
    .product-gallery-grid { grid-auto-rows: 172px; }
}

@media (max-width: 560px) {
    .catalog-hero { min-height: 275px; padding: 48px 0 106px; border-radius: 0 0 50% 50% / 0 0 14% 14%; }
    .catalog-hero h1 { font-size: clamp(2rem, 10vw, 2.65rem); }
    .catalog-breadcrumb { flex-wrap: wrap; margin-top: 20px; font-size: .74rem; }

    .catalog-page,
    .product-detail-page,
    .category-page {
        padding: 62px 0 78px;
    }

    .catalog-grid,
    .category-list {
        grid-template-columns: 1fr;
        margin-top: 36px;
    }

    .catalog-card-image {
        height: clamp(215px, 65vw, 280px);
    }

    .catalog-card-model { min-height: 420px; border-radius: 54px 54px 0 0; }
    .catalog-card-model .catalog-card-image { height: auto; min-height: 247px; padding-top: 56px; }
    .catalog-card-model .catalog-card-content { min-height: 173px; padding: 23px 22px; }
    .catalog-card-model .catalog-card-content::before { left: 22px; }
    .catalog-card-model-number { right: 22px; bottom: 21px; }

    .product-detail-image,
    .product-detail-image img {
        min-height: clamp(310px, 92vw, 390px);
        height: clamp(310px, 92vw, 390px);
    }

    .product-detail-image::before {
        top: 15px;
        right: -15px;
        bottom: -15px;
        left: 15px;
    }

    .product-detail-tabs-page { padding: 54px 0 72px; }
    .product-detail-tabs-container { width: calc(100% - 32px); }
    .product-detail-tabs { grid-template-columns: 1fr; gap: 12px; }
    .product-detail-tabs button { min-height: 72px; padding-left: 56px; font-size: .72rem; }
    .product-detail-tabs button::before { left: 25px; }
    .product-detail-tabs button::after { right: 20px; bottom: 11px; left: 20px; width: auto; height: 3px; transform: scaleX(0); }
    .product-detail-tabs button.is-active::after { transform: scaleX(1); }
    .product-detail-panel { margin-top: 31px; }
    .product-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 10px; }
    .product-gallery-item, .product-gallery-item-featured, .product-gallery-item:nth-child(2), .product-gallery-item:nth-child(3) { grid-column: auto; grid-row: auto; }
    .product-gallery-item-featured { grid-row: span 1; }
    .product-gallery-empty { min-height: 300px; padding: 28px 22px; }
    .product-specification-list div { grid-template-columns: 1fr; padding: 14px 17px; gap: 7px; }
    .product-specification-list div > span:first-child { padding: 0; font-size: .67rem; }
    .product-specification-list div > strong { margin: 0; padding: 7px 0 0; border-top: 1px solid #d7dfe1; border-left: 0; font-size: .93rem; }
    .product-specification-empty { min-height: 16px; margin: 0; border-top: 1px solid #d7dfe1; border-left: 0; }
    .product-diagram-blank { min-height: 410px; }

}

@media (max-width: 390px) {
    .catalog-page,
    .product-detail-page,
    .category-page {
        padding-top: 54px;
        padding-bottom: 66px;
    }

    .catalog-intro h1,
    .product-detail-copy h1,
    .category-page h1 {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
    }

    .catalog-card-content {
        min-height: 210px;
        padding: 21px;
    }

    .catalog-card-bottom {
        flex-wrap: wrap;
        padding-top: 18px;
    }

    .product-detail-copy .button {
        width: 100%;
        margin-top: 22px;
    }
}
