﻿/* =========================
   STAFF PAGE
   ========================= */

.staff-page {
    width: min(1200px, calc(100% - 40px));
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    padding: 70px 0 100px;
}

/* V6: gentle wine depth without altering the original staff photography. */
.profile-card,
.profile-card:nth-child(even) {
    box-shadow: 7px 9px 0 rgba(113, 55, 71, .42), 0 28px 62px rgba(0, 0, 0, .42);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 9px 12px 0 rgba(132, 64, 82, .46), 0 36px 76px rgba(0, 0, 0, .5);
}

.profile-card-image,
.profile-card:hover .profile-card-image { filter: none !important; }

.profile-book {
    box-shadow: 9px 11px 0 rgba(113, 55, 71, .48), 0 44px 104px rgba(0, 0, 0, .74);
}

.profile-book-overlay[aria-hidden="false"] .profile-book { animation: v6ProfileOpen .38s cubic-bezier(.2,.8,.2,1) both; }

@keyframes v6ProfileOpen {
    from { opacity: 0; transform: translateY(20px) scale(.975); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
    .profile-card,
    .profile-card:nth-child(even) { box-shadow: 5px 7px 0 rgba(113,55,71,.38), 0 22px 48px rgba(0,0,0,.42); }
}

@media (prefers-reduced-motion: reduce) {
    .profile-book-overlay[aria-hidden="false"] .profile-book { animation: none; }
}

.staff-heading {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

    .staff-heading h1 {
        margin: 8px 0 15px;
        color: var(--gold-bright);
        font-size: clamp(38px, 5vw, 64px);
    }

    .staff-heading > p:last-child {
        color: var(--text-muted);
        line-height: 1.7;
    }


/* =========================
   THREE PROFILE CARDS
   ========================= */

.staff-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(230px, 300px));
    justify-content: center;
    align-items: center;
    gap: 38px;
}

.profile-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 5;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(227, 180, 60, 0.55);
    border-radius: 18px;
    background: #07110d;
    cursor: pointer;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48), 0 0 20px rgba(227, 180, 60, 0.08);
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

    .profile-card:hover {
        z-index: 5;
        transform: translateY(-12px) scale(1.045);
        border-color: rgba(248, 196, 46, 0.95);
        box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(248, 196, 46, 0.2);
    }


/* Все фотографии получают одинаковую форму */

.profile-card-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.55s ease, filter 0.4s ease;
}

.profile-card:hover .profile-card-image {
    transform: scale(1.06);
    filter: brightness(1.05);
}


/* Затемнение снизу для имени */

.profile-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.03) 35%, rgba(2, 8, 5, 0.45) 65%, rgba(2, 8, 5, 0.96) 100% );
    pointer-events: none;
}


/* Имя и возраст */

.profile-card-content {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 22px;
    left: 22px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 9px;
    color: white;
    text-align: left;
}

    .profile-card-content strong {
        color: var(--gold-bright);
        font-size: clamp(27px, 3vw, 38px);
        line-height: 1;
    }

    .profile-card-content > span {
        color: var(--text-light);
        font-size: 18px;
        font-weight: 700;
    }


/* Стрелка карточки */

.profile-card-arrow {
    position: absolute;
    z-index: 3;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(248, 196, 46, 0.55);
    border-radius: 50%;
    color: #111;
    background: linear-gradient( 135deg, var(--gold), var(--gold-bright) );
    font-size: 22px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover .profile-card-arrow {
    transform: translateX(4px);
    box-shadow: 0 0 22px rgba(248, 196, 46, 0.28);
}


/* =========================
   HIDE BOOK AND VIEWER
   Пока JS их не открыл
   ========================= */

.profile-book-overlay,
.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
}

    .profile-book-overlay.is-open,
    .photo-viewer.is-open {
        display: flex;
    }


/* =========================
   TABLET / MOBILE
   ========================= */

@media (max-width: 950px) {
    .staff-cards {
        grid-template-columns: repeat(2, minmax(230px, 300px));
    }
}

@media (max-width: 620px) {
    .staff-page {
        width: min(100% - 28px, 420px);
        padding-top: 45px;
    }

    .staff-cards {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .profile-card {
        max-width: 330px;
        margin: 0 auto;
    }
}

/* =========================
   PROFILE BOOK
   ========================= */

body.gallery-modal-open {
    overflow: hidden;
}

.profile-book-overlay,
.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

    .profile-book-overlay.is-open,
    .photo-viewer.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition-delay: 0s;
    }

.profile-book-backdrop,
.photo-viewer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: radial-gradient( circle at center, rgba(7, 18, 12, 0.55), rgba(0, 0, 0, 0.92) );
    backdrop-filter: blur(7px);
    cursor: default;
}


/* Сам буклет */

.profile-book {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    border: 1px solid rgba(227, 180, 60, 0.6);
    border-radius: 20px;
    overflow: hidden;
    background: #06100b;
    box-shadow: 0 45px 100px rgba(0, 0, 0, 0.8), 0 0 45px rgba(227, 180, 60, 0.16);
    opacity: 0;
    transform: translateY(35px) scale(0.9) rotateX(4deg);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-book-overlay.is-open .profile-book {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
}

.profile-book-close {
    position: absolute;
    z-index: 30;
    top: 14px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(227, 180, 60, 0.35);
    border-radius: 50%;
    color: white;
    background: rgba(4, 10, 7, 0.75);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .profile-book-close:hover {
        color: var(--gold-bright);
        border-color: var(--gold-bright);
        transform: rotate(90deg);
    }


/* Две страницы */

.book-pages {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(430px, 1.1fr);
    min-height: 650px;
    max-height: calc(100vh - 50px);
    perspective: 1600px;
}

.book-page {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.book-cover-page {
    border-right: 1px solid rgba(227, 180, 60, 0.38);
    background: #020604;
}

.book-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.book-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.03) 35%, rgba(2, 7, 4, 0.45) 65%, rgba(2, 7, 4, 0.96) 100% );
}

.book-cover-info {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 30px;
    left: 30px;
}

    .book-cover-info h2 {
        margin: 0;
        color: var(--gold-bright);
        font-size: clamp(38px, 5vw, 66px);
        line-height: 0.95;
    }

    .book-cover-info p {
        margin: 10px 0 0;
        color: white;
        font-size: 23px;
        font-weight: 700;
    }


/* Правая страница */

.book-content-page {
    display: flex;
    align-items: stretch;
    background: linear-gradient( 135deg, rgba(10, 26, 17, 0.98), rgba(3, 10, 7, 0.99) );
    transform-style: preserve-3d;
}

    .book-content-page::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0, 0, 0, 0.32), transparent 9% );
        pointer-events: none;
    }

.book-page-content {
    width: 100%;
    min-height: 100%;
    padding: 68px 74px 58px;
    box-sizing: border-box;
    overflow-y: auto;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}


/* Анимация перелистывания */

.book-content-page.is-turning-next .book-page-content {
    transform-origin: left center;
    animation: bookPageNext 0.46s ease-in-out;
}

.book-content-page.is-turning-previous .book-page-content {
    transform-origin: right center;
    animation: bookPagePrevious 0.46s ease-in-out;
}

@keyframes bookPageNext {
    0% {
        transform: rotateY(0);
        opacity: 1;
    }

    48% {
        transform: rotateY(-78deg);
        opacity: 0.25;
    }

    52% {
        transform: rotateY(78deg);
        opacity: 0.25;
    }

    100% {
        transform: rotateY(0);
        opacity: 1;
    }
}

@keyframes bookPagePrevious {
    0% {
        transform: rotateY(0);
        opacity: 1;
    }

    48% {
        transform: rotateY(78deg);
        opacity: 0.25;
    }

    52% {
        transform: rotateY(-78deg);
        opacity: 0.25;
    }

    100% {
        transform: rotateY(0);
        opacity: 1;
    }
}


/* Описание девушки */

.book-profile-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.book-profile-eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 12px;
    font-weight: 700;
}

.book-profile-copy h3 {
    margin: 0 0 20px;
    color: var(--gold-bright);
    font-size: clamp(32px, 4vw, 52px);
}

.book-profile-description {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.book-profile-attributes {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(227, 180, 60, 0.28);
}

    .book-profile-attributes h4 {
        margin: 0 0 14px;
        color: white;
        font-size: 18px;
    }

    .book-profile-attributes ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 22px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .book-profile-attributes li {
        position: relative;
        padding-left: 19px;
        color: var(--text-muted);
        font-size: 14px;
    }

        .book-profile-attributes li::before {
            content: "◆";
            position: absolute;
            top: 2px;
            left: 0;
            color: var(--gold);
            font-size: 9px;
        }


/* Разворот с фотографиями */

.book-photo-spread {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    min-height: 500px;
    align-content: center;
}

.book-photo-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(227, 180, 60, 0.45);
    border-radius: 12px;
    background: #020604;
    cursor: zoom-in;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.42);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

    .book-photo-button:hover {
        z-index: 4;
        transform: translateY(-6px) scale(1.025);
        border-color: var(--gold-bright);
        box-shadow: 0 26px 50px rgba(0, 0, 0, 0.62), 0 0 24px rgba(248, 196, 46, 0.16);
    }

    .book-photo-button img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform 0.45s ease;
    }

    .book-photo-button:hover img {
        transform: scale(1.05);
    }

.book-photo-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #111;
    background: linear-gradient( 135deg, var(--gold), var(--gold-bright) );
    font-size: 18px;
}


/* Стрелки буклета */

.book-navigation {
    position: absolute;
    z-index: 10;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(227, 180, 60, 0.4);
    border-radius: 12px;
    color: var(--gold-bright);
    background: rgba(3, 10, 7, 0.82);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

    .book-navigation:hover:not(:disabled) {
        background: rgba(227, 180, 60, 0.16);
    }

.book-navigation-left {
    left: 13px;
}

.book-navigation-right {
    right: 13px;
}

.book-navigation:disabled {
    opacity: 0.2;
    cursor: default;
}

.book-page-number {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 12px;
}


/* =========================
   FULLSCREEN PHOTO VIEWER
   ========================= */

.photo-viewer {
    z-index: 5000;
}

.photo-viewer-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(1200px, calc(100vw - 40px));
    height: min(850px, calc(100vh - 40px));
}

.photo-viewer-image {
    display: block;
    max-width: calc(100% - 130px);
    max-height: calc(100% - 40px);
    object-fit: contain;
    border: 1px solid rgba(227, 180, 60, 0.6);
    border-radius: 10px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.85);
}

.photo-viewer-close {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(227, 180, 60, 0.5);
    border-radius: 50%;
    color: white;
    background: rgba(3, 10, 7, 0.9);
    font-size: 29px;
    cursor: pointer;
}

.photo-viewer-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 70px;
    border: 1px solid rgba(227, 180, 60, 0.5);
    border-radius: 14px;
    color: var(--gold-bright);
    background: rgba(3, 10, 7, 0.88);
    font-size: 46px;
    cursor: pointer;
    transform: translateY(-50%);
}

.photo-viewer-previous {
    left: 0;
}

.photo-viewer-next {
    right: 0;
}

.photo-viewer-counter {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    color: white;
    text-align: center;
    font-size: 13px;
}


/* Базовая адаптация */

@media (max-width: 850px) {
    .book-pages {
        grid-template-columns: 0.8fr 1.2fr;
        min-height: 570px;
    }

    .book-page-content {
        padding: 65px 60px 52px;
    }

    .book-profile-attributes ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .profile-book-overlay {
        padding: 10px;
    }

    .profile-book {
        width: 100%;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .book-pages {
        display: block;
        max-height: none;
    }

    .book-cover-page {
        height: 45vh;
        min-height: 320px;
        border-right: 0;
        border-bottom: 1px solid rgba(227, 180, 60, 0.35);
    }

    .book-content-page {
        min-height: 520px;
    }

    .book-page-content {
        padding: 65px 48px 52px;
    }

    .book-photo-spread {
        grid-template-columns: 1fr;
    }

    .photo-viewer-image {
        max-width: calc(100% - 80px);
    }

    .photo-viewer-arrow {
        width: 42px;
        height: 58px;
    }
}

/* =========================
   PROFILE BOOKING BUTTON
   ========================= */

.book-booking-button {
    width: 100%;
    margin-top: 30px;
    padding: 15px 22px;
    border: 1px solid rgba(248, 196, 46, 0.75);
    border-radius: 12px;
    color: #14200f;
    background: linear-gradient( 135deg, var(--gold), var(--gold-bright) );
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32), 0 0 20px rgba(248, 196, 46, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

    .book-booking-button:hover {
        transform: translateY(-3px);
        filter: brightness(1.07);
        box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42), 0 0 28px rgba(248, 196, 46, 0.2);
    }

    .book-booking-button:active {
        transform: translateY(0);
    }


/* Выбранная девушка в окне записи */

.booking-selected-profile {
    margin: 12px 0 18px;
    padding: 11px 14px;
    border: 1px solid rgba(227, 180, 60, 0.35);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(227, 180, 60, 0.08);
    font-size: 14px;
}

    .booking-selected-profile strong {
        color: var(--gold-bright);
    }

    .booking-selected-profile[hidden] {
        display: none;
    }

/* =========================
   GALLERY MOBILE WIDTH FIX
   ========================= */

.staff-page,
.staff-heading,
.staff-cards,
.profile-card,
.profile-book,
.book-pages,
.book-page,
.book-content-page,
.book-page-content,
.book-photo-spread,
.photo-viewer-content {
    min-width: 0;
    max-width: 100%;
}

.staff-page {
    overflow-x: clip;
}

.staff-cards {
    width: 100%;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {
    .staff-page {
        width: calc(100% - 28px);
        max-width: 760px;
        padding-top: 55px;
        padding-bottom: 75px;
    }

    .staff-heading {
        width: 100%;
        max-width: 650px;
    }

    .staff-cards {
        grid-template-columns: repeat( 2, minmax(0, 280px) );
        justify-content: center;
        gap: 26px;
    }

    .profile-card {
        width: 100%;
        max-width: 280px;
    }
}


/* =========================
   PHONE
   ========================= */

@media (max-width: 650px) {
    .staff-page {
        width: calc(100% - 20px);
        max-width: 430px;
        margin-right: auto;
        margin-left: auto;
        padding-top: 38px;
        padding-bottom: 60px;
    }

    .staff-heading {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 8px;
        padding-left: 8px;
    }

        .staff-heading h1 {
            font-size: clamp( 36px, 12vw, 48px );
            overflow-wrap: anywhere;
        }

        .staff-heading p {
            font-size: 14px;
            line-height: 1.65;
        }

    .staff-cards {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 24px;
    }

    .profile-card {
        width: min(100%, 330px);
        max-width: 330px;
        margin-right: auto;
        margin-left: auto;
    }


    /* Окно буклета */

    .profile-book-overlay {
        width: 100vw;
        max-width: 100vw;
        padding: 8px;
        overflow-x: hidden;
    }

    .profile-book {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 15px;
    }

    .book-pages {
        display: block;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        max-height: none;
    }

    .book-page {
        width: 100%;
        max-width: 100%;
    }

    .book-cover-page {
        width: 100%;
        height: 48vh;
        min-height: 310px;
        max-height: 480px;
    }

    .book-content-page {
        width: 100%;
        min-height: 500px;
    }

    .book-page-content {
        width: 100%;
        max-width: 100%;
        padding: 62px 46px 50px;
        overflow-x: hidden;
    }

    .book-profile-copy {
        width: 100%;
        min-height: auto;
    }

        .book-profile-copy h3 {
            font-size: clamp( 31px, 10vw, 43px );
            overflow-wrap: anywhere;
        }

    .book-profile-attributes ul {
        grid-template-columns: 1fr;
    }

    .book-photo-spread {
        grid-template-columns: 1fr;
        width: 100%;
        min-height: auto;
    }

    .book-photo-button {
        width: min(100%, 310px);
        margin-right: auto;
        margin-left: auto;
    }

    .book-navigation {
        width: 38px;
        height: 52px;
        font-size: 34px;
    }

    .book-navigation-left {
        left: 5px;
    }

    .book-navigation-right {
        right: 5px;
    }


    /* Просмотр фотографии */

    .photo-viewer {
        width: 100vw;
        max-width: 100vw;
        padding: 8px;
        overflow: hidden;
    }

    .photo-viewer-content {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
    }

    .photo-viewer-image {
        max-width: calc(100vw - 82px);
        max-height: calc(100vh - 70px);
        max-height: calc(100dvh - 70px);
    }

    .photo-viewer-arrow {
        width: 38px;
        height: 55px;
        font-size: 36px;
    }

    .photo-viewer-previous {
        left: 0;
    }

    .photo-viewer-next {
        right: 0;
    }

    .photo-viewer-close {
        top: 4px;
        right: 4px;
    }
}


/* =========================
   VERY SMALL PHONE
   ========================= */

@media (max-width: 380px) {
    .staff-page {
        width: calc(100% - 14px);
    }

    .profile-card {
        width: min(100%, 300px);
    }

    .book-page-content {
        padding: 60px 40px 48px;
    }

    .book-cover-info {
        right: 20px;
        bottom: 22px;
        left: 20px;
    }

        .book-cover-info h2 {
            font-size: 42px;
        }

    .photo-viewer-image {
        max-width: calc(100vw - 70px);
    }
}

/* =========================
   HIDDEN GALLERY WINDOWS FIX
   ========================= */

.profile-book-overlay:not(.is-open),
.photo-viewer:not(.is-open) {
    display: none !important;
}

.profile-book-overlay.is-open,
.photo-viewer.is-open {
    display: flex !important;
}


/* Жёсткое ограничение страницы девушек */

@media (max-width: 900px) {
    .staff-page {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        margin-right: auto !important;
        margin-left: auto !important;
        overflow: hidden;
    }

    .staff-cards {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .profile-card {
        width: min(100%, 330px) !important;
        max-width: 330px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }
}
@media (max-width: 900px) {
    .staff-page {
        position: relative !important;
        left: 0 !important;
        right: auto !important;
        translate: none !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 40px 14px 60px !important;
        overflow-x: clip !important;
    }

    .staff-heading {
        width: 100% !important;
        max-width: 620px !important;
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .staff-cards {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .profile-card {
        flex: 0 1 auto !important;
        width: min(100%, 330px) !important;
        max-width: 330px !important;
        margin: 0 auto !important;
    }
}

.outcall-ribbon {
    position: absolute;
    left: 50%;
    bottom: 126px;
    transform: translateX(-50%);
    width: 74%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient( 90deg, rgba(248, 196, 46, 0.35), rgba(248, 196, 46, 0.78), rgba(248, 196, 46, 0.35) );
    border: 2px solid rgba(248, 196, 46, 0.95);
    box-shadow: 0 0 22px rgba(248, 196, 46, 0.18), inset 0 0 18px rgba(255, 230, 120, 0.18);
    color: rgba(255, 245, 190, 0.96);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    backdrop-filter: blur(3px);
}

    .outcall-ribbon::before,
    .outcall-ribbon::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 12px;
        height: 12px;
        background: rgba(248, 196, 46, 0.8);
        transform: translateY(-50%) rotate(45deg);
    }

    .outcall-ribbon::before {
        left: -7px;
    }

    .outcall-ribbon::after {
        right: -7px;
    }

@media (max-width: 768px) {
    .outcall-ribbon {
        bottom: 116px;
        width: 72%;
        min-height: 34px;
        font-size: 0.68rem;
    }
}

/* Current team and recruitment */
@media (min-width: 901px) {
    .staff-cards {
        grid-template-columns: repeat(4, minmax(200px, 260px));
        gap: 24px;
    }
}

.staff-recruitment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin: 54px auto 0;
    padding: 30px 34px;
    border: 1px solid rgba(248, 196, 46, 0.55);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(32, 45, 20, 0.95), rgba(6, 20, 13, 0.96));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), inset 0 0 36px rgba(248, 196, 46, 0.05);
}

.staff-recruitment h2 {
    margin: 5px 0 10px;
    color: var(--gold-bright);
    font-size: clamp(27px, 3vw, 40px);
}

.staff-recruitment p:last-child {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.staff-recruitment-button {
    flex: 0 0 auto;
    padding: 15px 24px;
    border-radius: 999px;
    color: #13200e;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(248, 196, 46, 0.18);
}

@media (max-width: 700px) {
    .staff-recruitment {
        align-items: stretch;
        flex-direction: column;
        margin-top: 38px;
        padding: 25px;
    }

    .staff-recruitment-button {
        text-align: center;
    }
}

/* Nowoczesny katalog profili: lzejsze karty i jeden czytelny podglad. */
.staff-page {
    width: min(1240px, calc(100% - 48px));
    padding: 96px 0 130px;
}

.staff-heading {
    margin: 0 0 54px;
    text-align: left;
}

.staff-heading h1 {
    color: #f1ede4;
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.02;
}

.staff-heading > p:last-child {
    max-width: 560px;
    color: rgba(241, 237, 228, 0.62);
}

.staff-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.profile-card {
    aspect-ratio: 4 / 5;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px 25px 3px 25px;
    background: #070b08;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36);
}

.profile-card:hover {
    transform: translateY(-7px);
    border-color: rgba(214, 187, 120, 0.56);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.52);
}

.profile-card-overlay {
    background: linear-gradient(to bottom, transparent 42%, rgba(2, 5, 3, 0.3) 62%, rgba(2, 5, 3, 0.94) 100%);
}

.profile-card-content {
    right: 18px;
    bottom: 18px;
    left: 18px;
}

.profile-card-content strong {
    color: #f1ede4;
    font-size: clamp(28px, 3vw, 38px);
}

.profile-card-content > span {
    color: #c7ab6e;
    font-size: 14px;
}

.profile-card-content small {
    flex-basis: 100%;
    margin-top: 3px;
    color: rgba(241, 237, 228, 0.6);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.profile-card-arrow {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-color: rgba(214, 187, 120, 0.35);
    color: #f1ede4;
    background: rgba(3, 8, 5, 0.72);
    font-size: 17px;
    backdrop-filter: blur(8px);
}

.profile-book {
    width: min(1100px, calc(100vw - 48px));
    border-color: rgba(214, 187, 120, 0.24);
    border-radius: 3px 34px 3px 34px;
    background: #070b08;
    box-shadow: 0 45px 110px rgba(0, 0, 0, 0.78);
    transform: translateY(24px) scale(0.97);
}

.book-pages {
    grid-template-columns: minmax(340px, 0.92fr) minmax(470px, 1.08fr);
    min-height: 650px;
}

.book-cover-page {
    border-right-color: rgba(255, 255, 255, 0.08);
}

.book-content-page {
    background: linear-gradient(145deg, #0b120e, #050806);
}

.book-content-page::before,
.book-navigation,
.book-page-number {
    display: none;
}

.book-page-content {
    padding: 54px 42px 44px 54px;
}

.book-modern-profile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 30px;
    min-height: 540px;
    align-items: center;
}

.book-profile-copy {
    min-height: 0;
}

.book-profile-copy h3 {
    color: #f1ede4;
    font-size: clamp(36px, 4vw, 54px);
}

.book-profile-attributes {
    border-color: rgba(255, 255, 255, 0.1);
}

.book-profile-attributes li::before {
    color: #b8924f;
}

.book-profile-thumbnails {
    display: grid;
    gap: 12px;
}

.book-profile-thumbnail {
    position: relative;
    aspect-ratio: 3 / 4;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px 12px 2px 12px;
    background: #060806;
    cursor: zoom-in;
    opacity: 0.72;
    transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.book-profile-thumbnail:hover {
    opacity: 1;
    border-color: rgba(214, 187, 120, 0.65);
    transform: translateX(-4px);
}

.book-profile-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-profile-thumbnail span {
    position: absolute;
    right: 5px;
    bottom: 5px;
    padding: 3px 5px;
    color: #f1ede4;
    background: rgba(0, 0, 0, 0.62);
    font-size: 9px;
}

.book-booking-button {
    border-radius: 4px 15px 4px 15px;
    color: #11160f;
    background: linear-gradient(135deg, #b8924f, #d6bb78);
    box-shadow: none;
}

@media (max-width: 980px) {
    .staff-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-card { max-width: none; }
    .book-pages { grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr); }
}

@media (max-width: 720px) {
    .staff-page { width: calc(100% - 24px); padding: 64px 0 90px; }
    .staff-cards { gap: 12px; }
    .profile-card-content small { display: none; }

    .profile-book { width: min(520px, calc(100vw - 20px)); max-height: calc(100svh - 20px); }
    .book-pages { display: block; min-height: 0; max-height: calc(100svh - 20px); overflow-y: auto; }
    .book-cover-page { height: 44svh; border: 0; }
    .book-content-page { min-height: 500px; }
    .book-page-content { padding: 36px 22px 30px; }
    .book-modern-profile { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
    .book-profile-thumbnails { grid-template-columns: repeat(3, 1fr); order: -1; }
    .book-profile-thumbnail:hover { transform: translateY(-3px); }
}

@media (max-width: 440px) {
    .staff-cards { grid-template-columns: 1fr; }
    .profile-card { max-width: 340px; }
}

/* Imperia V3 — nasycone kolory i pelne powierzchnie na stronie zespolu. */
body.page-staff {
    background:
        linear-gradient(rgba(2, 7, 4, 0.88), rgba(2, 7, 4, 0.95)),
        url('/images/decor/hero-baroque-v3.png') top center / 100% auto no-repeat,
        #030806 !important;
}

.staff-heading h1 {
    color: #fff1d4;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.66);
}

.profile-card {
    border: 2px solid #785522;
    background: #07120c;
    box-shadow: 9px 11px 0 #651a29, 0 26px 58px rgba(0, 0, 0, 0.5);
}

.profile-card:nth-child(even) {
    box-shadow: 9px 11px 0 #173b2a, 0 26px 58px rgba(0, 0, 0, 0.5);
}

.profile-card:hover {
    border-color: #e1ae4d;
    box-shadow: 12px 15px 0 #7c2032, 0 34px 70px rgba(0, 0, 0, 0.6);
}

.profile-card-arrow {
    border-color: #bd8a34;
    background: #711f2f;
    backdrop-filter: none;
}

.profile-book {
    border: 2px solid #956a29;
    background: #07120c;
    box-shadow: 14px 16px 0 #6f1c2d, 0 48px 110px rgba(0, 0, 0, 0.78);
}

.profile-book-backdrop,
.photo-viewer-backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: none;
}

.book-content-page {
    background: #0a2017;
}

.book-profile-thumbnail,
.book-booking-button {
    backdrop-filter: none;
}

@media (max-width: 620px) {
    .profile-card { box-shadow: 7px 8px 0 #651a29, 0 22px 48px rgba(0, 0, 0, 0.5); }
}

/* Imperia V4 — image-led staff experience. */
body.page-staff {
    background: #020503 !important;
}

body.page-staff::before {
    background:
        linear-gradient(rgba(1, 5, 3, 0.28), rgba(1, 5, 3, 0.46)),
        url('/images/decor/site-continuous-v4.png') center / cover fixed no-repeat !important;
}

.staff-page { padding-top: 148px; }

.profile-card {
    border: 0;
    box-shadow: 9px 11px 0 #6c1b2c, 0 0 0 2px #8f682c, 0 30px 70px rgba(0, 0, 0, 0.58);
}

.profile-card:nth-child(even) {
    box-shadow: 9px 11px 0 #17412d, 0 0 0 2px #8f682c, 0 30px 70px rgba(0, 0, 0, 0.58);
}

.profile-card-arrow,
.profile-book-close,
.photo-viewer-close,
.photo-viewer-arrow,
.book-booking-button {
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff2d8 !important;
    background: url('/images/decor/button-ornate-v4.png') center / 100% 100% no-repeat !important;
    box-shadow: none !important;
    text-shadow: 0 2px 5px #000;
}

.profile-book {
    border: 0;
    background:
        linear-gradient(rgba(2, 8, 5, 0.24), rgba(2, 8, 5, 0.38)),
        url('/images/decor/menu-ornate-v4.png') center / cover no-repeat;
    box-shadow: 13px 15px 0 #6f1c2d, 0 0 0 2px #986d2d, 0 48px 110px rgba(0, 0, 0, 0.78);
}

.book-content-page { background: transparent; }

.book-profile-thumbnail {
    border-color: #8c642c;
    background: url('/images/decor/header-ornate-v4.png') center / cover no-repeat;
}

@media (max-width: 900px) {
    .staff-page { padding-top: 82px; padding-bottom: 150px; }
}

/* Imperia V5 — clean editorial staff presentation; original photos stay untouched. */
body.page-staff { background: #030806 !important; }

.staff-page {
    width: min(1240px, calc(100% - 40px));
    padding: 86px 0 110px;
}

.staff-heading { max-width: 680px; margin-bottom: 42px; }
.staff-heading h1 { color: #f4efe6; text-shadow: none; }

.staff-cards { gap: 22px; }

.profile-card,
.profile-card:nth-child(even) {
    overflow: hidden;
    border: 1px solid rgba(212, 174, 103, .26);
    border-radius: 22px;
    background: #07120e;
    box-shadow: 0 24px 58px rgba(0, 0, 0, .36);
}

.profile-card:hover {
    border-color: rgba(226, 193, 125, .64);
    box-shadow: 0 30px 72px rgba(0, 0, 0, .48), 0 14px 34px rgba(99, 41, 55, .14);
}

.profile-card-image,
.profile-card:hover .profile-card-image {
    filter: none;
}

.profile-card-overlay { background: linear-gradient(180deg, transparent 42%, rgba(2, 7, 4, .92)); }

.profile-card-arrow,
.profile-book-close,
.photo-viewer-close,
.photo-viewer-arrow,
.book-booking-button {
    border: 1px solid rgba(226, 193, 125, .4) !important;
    border-radius: 50% !important;
    color: #f5ede0 !important;
    background: rgba(7, 20, 14, .88) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3) !important;
    text-shadow: none;
    backdrop-filter: blur(10px);
}

.book-booking-button {
    width: auto;
    min-height: 48px;
    padding: 11px 22px;
    border-radius: 12px !important;
    color: #101510 !important;
    background: linear-gradient(135deg, #e2c17d, #c7984d) !important;
}

.profile-book {
    overflow: hidden;
    border: 1px solid rgba(212, 174, 103, .34);
    border-radius: 26px;
    background: #08140f;
    box-shadow: 0 42px 100px rgba(0, 0, 0, .72), 12px 14px 32px rgba(100, 39, 55, .16);
}

.book-content-page {
    background:
        radial-gradient(circle at 92% 12%, rgba(107, 45, 61, .14), transparent 32%),
        linear-gradient(145deg, #0b1913, #06100c);
}

.book-profile-thumbnail {
    border: 1px solid rgba(212, 174, 103, .22);
    border-radius: 12px;
    background: #06100c;
}

.profile-book-backdrop,
.photo-viewer-backdrop {
    background: rgba(1, 5, 3, .82);
    backdrop-filter: blur(14px);
}

@media (max-width: 900px) {
    .staff-page { width: calc(100% - 24px); padding-top: 64px; padding-bottom: 100px; }
}

@media (max-width: 620px) {
    .profile-card,
    .profile-card:nth-child(even) { box-shadow: 0 20px 48px rgba(0, 0, 0, .4); }
}
