.cabinet-page {
    min-height: 100vh;
}

.cabinet-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(20px, 6vw, 80px);
    border-bottom: 1px solid #EFE9DE;
    background: rgb(255 255 255 / 94%);
    font-family: 'Manrope', sans-serif;
}

.cabinet-page-home,
.cabinet-page-back {
    color: #50362C;
    font-weight: 700;
    text-decoration: none;
}

.cabinet-page-home {
    font-size: 1.25rem;
}

.cabinet-page-back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 10px;
    border: 1px solid #A1876F;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 10px rgb(79 49 29 / 10%);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cabinet-page-back-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #6D4C41;
    color: #fff;
    font-size: 1.125rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.cabinet-page-back:hover {
    border-color: #6D4C41;
    background: #faf7f3;
    box-shadow: 0 5px 14px rgb(79 49 29 / 16%);
    transform: translateY(-1px);
}

.cabinet-page-back:hover .cabinet-page-back-arrow {
    transform: translateX(-2px);
}

.cabinet-page-home:focus-visible,
.cabinet-page-back:focus-visible,
.cabinet-page-cta:focus-visible {
    outline: 3px solid #6D4C41;
    outline-offset: 4px;
}

.cabinet-page-content {
    box-sizing: border-box;
    width: min(100% - 48px, 1120px);
    margin: 0 auto;
    padding: var(--page-gutter-y, 48px) 0;
}

.cabinet-page-lead {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    margin: 0 auto var(--page-block-gap, 24px);
    padding: clamp(26px, 3.8vw, 36px) clamp(22px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid rgb(80 54 44 / 12%);
    border-radius: 8px 26px 26px 26px;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 55%) 0%, transparent 42%),
        linear-gradient(165deg, #fffefb 0%, #fff8f1 55%, #f7efe6 100%);
    box-shadow:
        0 14px 36px rgb(55 42 30 / 10%),
        inset 0 1px 0 rgb(255 255 255 / 75%);
    text-align: center;
}

.cabinet-page-lead h1 {
    margin: 0;
    color: #1a1410;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cabinet-page-intro {
    max-width: 42ch;
    margin: 16px auto 0;
    color: #2a221c;
    font-size: clamp(1.2rem, 2.2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.65;
}

.cabinet-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 28px;
}

.cabinet-card {
    min-width: 0;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid #EFE9DE;
    border-radius: 6px 22px 22px 22px;
    background:
        linear-gradient(180deg, #fffefb 0%, #fff 55%);
    box-shadow: 0 12px 32px rgb(55 42 30 / 9%);
}

.cabinet-kicker {
    margin: 0 0 8px;
    color: #cc8b52;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cabinet-card h2 {
    margin: 0 0 18px;
    color: #4d382a;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
}

.cabinet-card h2 strong {
    font-weight: 800;
}

.cabinet-card > p {
    margin: 0 0 22px;
    color: #3d3a36;
    font-size: 1.125rem;
    line-height: 1.7;
}

.cabinet-photo-trigger {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    text-align: left;
    transition: transform 180ms ease;
}

.cabinet-photo-trigger:hover,
.cabinet-photo-trigger:focus-visible {
    transform: translateY(-2px);
}

.cabinet-photo-trigger:focus-visible {
    outline: 3px solid #cc8b52;
    outline-offset: 4px;
    border-radius: 14px;
}

.cabinet-photo-trigger::after {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    padding: 8px 12px;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 999px;
    background: rgb(80 54 44 / 72%);
    box-shadow: 0 6px 16px rgb(80 54 44 / 18%);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    content: "Agrandir";
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    transform: translateY(4px);
}

.cabinet-photo-trigger:hover::after,
.cabinet-photo-trigger:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.cabinet-photo {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: transparent;
    transition: box-shadow 180ms ease;
}

.cabinet-photo-trigger:hover .cabinet-photo,
.cabinet-photo-trigger:focus-visible .cabinet-photo {
    box-shadow: 0 14px 32px rgb(80 54 44 / 16%);
}

.cabinet-photo-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    transition: transform 220ms ease, filter 220ms ease;
}

.cabinet-photo-trigger:hover .cabinet-photo-img,
.cabinet-photo-trigger:focus-visible .cabinet-photo-img {
    transform: scale(1.02);
    filter: brightness(1.03);
}

.cabinet-photo-trigger .cabinet-resource-photo {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #f3ebe3;
    box-shadow: 0 10px 28px rgb(55 42 30 / 8%);
    transition: box-shadow 180ms ease;
}

.cabinet-photo-trigger:hover .cabinet-resource-photo,
.cabinet-photo-trigger:focus-visible .cabinet-resource-photo {
    box-shadow: 0 14px 32px rgb(80 54 44 / 16%);
}

.cabinet-photo-trigger .cabinet-resource-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(240px, 48vw, 420px);
    object-fit: cover;
    object-position: center 35%;
    pointer-events: none;
    transition: transform 220ms ease, filter 220ms ease;
}

.cabinet-photo-trigger:hover .cabinet-resource-photo img,
.cabinet-photo-trigger:focus-visible .cabinet-resource-photo img {
    transform: scale(1.03);
    filter: brightness(1.03);
}

.cabinet-photo-trigger#cabinet-resource-open {
    margin: 0 0 24px;
}

.cabinet-facts {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.cabinet-facts li {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid #f0e8de;
    color: #3d3a36;
    font-size: 1.0625rem;
    line-height: 1.55;
}

.cabinet-facts li:last-child {
    padding-bottom: 4px;
}

.cabinet-facts span {
    color: #cc8b52;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cabinet-note {
    margin: 0;
    color: #6b5d57;
    font-size: 1rem;
    line-height: 1.65;
}

.cabinet-note + .cabinet-note {
    margin-top: 12px;
}

.price-grid {
    display: grid;
    gap: 14px;
    margin: 0 0 24px;
}

.price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid #eedfd0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf5 0%, #fff 70%);
}

.price-card h3 {
    margin: 0 0 6px;
    color: #4d382a;
    font-size: 1.125rem;
    font-weight: 700;
}

.price-amount {
    margin: 0;
    color: #cc8b52;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.price-meta {
    margin: 0;
    color: #6b5d57;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.cabinet-page-cta {
    display: flex;
    width: fit-content;
    max-width: 100%;
    min-height: 60px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 48px auto 0;
    padding: 12px 16px 12px 24px;
    border: 1px solid #50362C;
    border-radius: 999px;
    background: linear-gradient(135deg, #6D4C41, #50362C);
    box-shadow: 0 6px 18px rgb(79 49 29 / 22%);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cabinet-page-cta-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: rgb(255 255 255 / 18%);
    font-size: 1.375rem;
    line-height: 1;
    transition: background-color 180ms ease, transform 180ms ease;
}

.cabinet-page-cta:hover {
    background: linear-gradient(135deg, #50362C, #473624);
    box-shadow: 0 9px 22px rgb(79 49 29 / 28%);
    transform: translateY(-2px);
}

.cabinet-page-cta:hover .cabinet-page-cta-arrow {
    background: rgb(255 255 255 / 26%);
    transform: translateX(2px);
}

@media (max-width: 900px) {
    .cabinet-layout {
        grid-template-columns: 1fr;
        gap: var(--page-block-gap, 20px);
    }
}

@media (max-width: 720px) {
    .cabinet-card {
        padding: var(--page-card-pad);
    }

    .cabinet-page-cta {
        width: 100%;
        gap: 12px;
        padding-right: 12px;
        padding-left: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cabinet-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-page-back,
    .cabinet-page-back-arrow,
    .cabinet-page-cta,
    .cabinet-page-cta-arrow {
        transition: none;
    }
}
