/* ── Page content, catalog, lightbox ── */

.catalog-page {
    padding: 0 0 3.5rem;
    background: var(--bg-muted);
    min-height: 50vh;
}

.catalog-page .page-content,
.page-content.catalog-page {
    padding: 0 0 3.5rem;
    background: var(--bg-muted);
    min-height: 50vh;
}

.breadcrumb {
    padding: 1.15rem 0 0.85rem;
}

.breadcrumb__list {
    list-style: none;
    margin: 0;
    padding: 0.55rem 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb__item:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    margin-left: 0.35rem;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: rotate(-45deg);
    opacity: 0.45;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--brand);
}

.breadcrumb__item:last-child span {
    color: var(--text);
    font-weight: 500;
}
.alert {
    max-width: var(--container);
    margin: 0 auto 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    animation: alert-in 0.35s ease;
}

.alert.is-hiding {
    opacity: 0;
    transform: translateY(-0.35rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.alert__text {
    flex: 1;
}

.alert__dismiss {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    opacity: 0.7;
}

.alert__dismiss:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

.alert__dismiss:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@keyframes alert-in {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.catalog-layout {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 900px) {
    .catalog-layout {
        grid-template-columns: 260px minmax(0, 1fr);
        align-items: start;
        gap: 2rem;
    }
}

.catalog-sidebar {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

@media (min-width: 900px) {
    .catalog-sidebar {
        position: sticky;
        top: calc(var(--header-h) + 1rem);
    }
}

.catalog-sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.95rem 1.1rem;
    border: 0;
    background: var(--surface-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
}

.catalog-sidebar__toggle::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.catalog-sidebar.is-open .catalog-sidebar__toggle::after {
    transform: rotate(-135deg);
}

@media (min-width: 900px) {
    .catalog-sidebar__toggle {
        display: none;
    }
}

.catalog-sidebar__nav {
    display: none;
    padding: 0.65rem;
}

@media (min-width: 900px) {
    .catalog-sidebar__nav {
        display: block;
    }
}

.catalog-sidebar.is-open .catalog-sidebar__nav {
    display: block;
}

.catalog-sidebar__group {
    position: relative;
    margin-bottom: 0.25rem;
}

.catalog-sidebar__group:last-child {
    margin-bottom: 0;
}

.catalog-sidebar__link {
    display: block;
    padding: 0.7rem 0.85rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.catalog-sidebar__link:hover {
    background: var(--bg-muted);
}

.catalog-sidebar__link.is-active,
.catalog-sidebar__sub a.is-active {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
}

.catalog-sidebar__sub {
    list-style: none;
    margin: 0.15rem 0 0.35rem;
    padding: 0 0 0.25rem 0.65rem;
    display: none;
    border-left: 2px solid var(--border);
}

.catalog-sidebar__group.is-open .catalog-sidebar__sub {
    display: block;
}

.catalog-sidebar__sub a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.catalog-sidebar__sub a:hover {
    color: var(--text);
    background: var(--bg-muted);
}

.catalog-sidebar__expand {
    position: absolute;
    top: 0.3rem;
    right: 0.15rem;
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.catalog-sidebar__expand::before {
    content: "";
    display: block;
    width: 0.45rem;
    height: 0.45rem;
    margin: 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.catalog-sidebar__group.is-open .catalog-sidebar__expand::before {
    transform: rotate(-135deg);
}

.catalog-sidebar__expand:hover {
    background: var(--bg-muted);
    color: var(--text);
}

.catalog-main {
    min-width: 0;
    container-type: inline-size;
    container-name: catalog-main;
}

.catalog-header {
    margin-bottom: 1.75rem;
}

.catalog-header__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 3.5vw, 2.15rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

.catalog-header__lead {
    margin: 0;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.catalog-header__meta {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
}

.catalog-section-label {
    margin: 0 0 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.category-list {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.category-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-list__item:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 53, 37, 0.25);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.category-list__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
}

.category-list__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    transition: background 0.2s ease, transform 0.2s ease;
}

.category-list__item:hover .category-list__arrow {
    background: var(--brand);
    color: #fff;
    transform: translateX(2px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.15rem;
}

@media (min-width: 720px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

.product-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(227, 53, 37, 0.2);
    box-shadow: var(--shadow-lg);
}

.product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card__media {
    aspect-ratio: 4 / 3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.product-card__media picture {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.product-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.04);
}

.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.55rem;
    padding: 0.95rem 1rem 1.05rem;
}

.product-card__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.product-card__price {
    display: inline-flex;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
}

.product-page {
    display: grid;
    gap: 1.5rem;
}

.product-detail,
.product-order {
    min-width: 0;
}

.catalog-layout .product-page {
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.catalog-layout .product-order {
    position: static;
    width: 100%;
    max-width: 400px;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .catalog-layout .product-order {
        justify-self: start;
    }
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

@container catalog-main (min-width: 540px) {
    .product-detail {
        grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
        padding: 1.5rem;
        gap: 1.75rem;
    }
}

@container catalog-main (min-width: 720px) {
    .product-detail {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    }
}

.product-detail__info {
    min-width: 0;
}

.product-detail__main-image {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    transition: box-shadow 0.25s ease;
}

.product-detail__main-image:hover {
    box-shadow: var(--shadow-md);
}

.product-detail__main-image img {
    width: 100%;
    display: block;
}

.product-detail__header {
    margin-bottom: 1.25rem;
}

.product-detail__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.product-detail__badge {
    display: inline-flex;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
}

.prose {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.page-content > .container.prose {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.page-content > .container.prose h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
}

.prose__body p {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.prose--product {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.product-desc {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.product-specs {
    display: grid;
    gap: 0;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-muted);
}

.product-specs__row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0.85rem 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.product-specs__row:last-child {
    border-bottom: 0;
}

.product-specs dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
}

.product-specs dd {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: right;
}

.product-desc__body p {
    margin: 0 0 0.85rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.product-desc__body p:last-child {
    margin-bottom: 0;
}

.product-desc__body ul,
.product-desc__body ol {
    margin: 0 0 0.85rem;
    padding-left: 1.2rem;
}

.product-desc__body li {
    margin-bottom: 0.35rem;
}

.product-desc__body strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 540px) {
    .product-specs__row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .product-specs dd {
        text-align: left;
    }
}

.prose--product table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.prose--product th,
.prose--product td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.prose--product th {
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text);
}

.prose--product img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.product-order__card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--brand);
}

.product-order__title {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.product-order__lead {
    margin: 0 0 1.15rem;
    padding-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.order-form .form-row {
    margin-bottom: 0.75rem;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: var(--bg-muted);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--surface-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.empty-state__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}
.contacts-layout h1 {
    margin-bottom: 1.5rem;
}

.contacts-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-map {
        grid-column: 1 / -1;
        min-height: 360px;
    }
}

.contacts-card,
.contacts-map {
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.contacts-map {
    padding: 0;
    overflow: hidden;
    border-top: 3px solid var(--brand);
}

.contacts-map iframe {
    display: block;
    min-height: 360px;
}

.staff-card {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.staff-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.gallery-grid__item {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-grid__item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid__item:hover img {
    transform: scale(1.03);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.guide-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.guide-card__media {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.guide-card__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.guide-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-card__title {
    margin: 0;
    padding: 0.85rem 1rem;
    font-size: 0.9375rem;
}

.guide-single img {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.lightbox {    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__image {
    max-width: min(1100px, 100%);
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }