.site-main.staff-main {
    --section-offset: 87px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

@media (max-width: 1200px) {
    .site-main.staff-main {
        --section-offset: 20px;
    }
}

@media (max-width: 960px) {
    .site-main.staff-main {
        --section-offset: 15px;
    }
}

.staff-main #specialists {
    background: none;
}

.staff-main .specialist {
    margin-bottom: 0;
}

.staff-main .specialist.hidden,
.staff-main .specialist.pagination-hidden {
    display: none !important;
}

.specialists-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.specialists-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 210px;
    padding: 16px 25px;
    border: 1px solid #014a8d;
    border-radius: 10px;
    background: transparent;
    color: #014a8d;
    font-size: 16px;
    cursor: pointer;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.specialists-more:hover {
    background: #014a8d;
    color: #fff;
}

.specialists-more[hidden] {
    display: none;
}

.staff-main #breadcrumbs {
    margin: 20px 0;
}

.staff-main .page-header {
    padding: 0;
}

@media (max-width: 768px) {
    .staff-main .block:not(.site-footer) {
        margin-top: 0px !important;
    }
}

@media (max-width: 450px) {
    body:not(.home) .block:first-child {
        margin-top: 0px !important;
    }
}

.staff-main .block-inner {
    margin: 0 !important;
}

.staff-main #block-experience {
    margin-top: 0 !important;
}

.staff-main #block-experience > .container:first-child {
    padding: 0 !important;
}

.staff-main .bl-contacts {
    padding-block: 0;
}

.staff-main #block-reviews {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    background: none;
}

.staff-main #block-reviews-inner {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ==========================================================
   Вакансии
   ========================================================== */

.staff-vacancies {
    position: relative;
}

.staff-vacancies *,
.staff-vacancies *::before,
.staff-vacancies *::after {
    box-sizing: border-box;
}


/* Заголовок блока */

.staff-vacancies__header {
    position: relative;
    min-height: 150px;
    margin-bottom: 32px;
    padding-right: 420px;
    overflow: hidden;
}

.staff-vacancies__eyebrow {
    display: block;
    margin-bottom: 14px;
    color: #014a8d;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.staff-vacancies__title {
    margin: 0 0 12px;
    color: #082d51;
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: clamp(42px, 4vw, 64px);
    font-weight: 400;
    line-height: 1.05;
}

.staff-vacancies__subtitle {
    margin: 0;
    color: #536b7f;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
}


/* Список вакансий */

.staff-vacancies__list {
    display: grid;
    gap: 12px;
}

.staff-vacancy {
    overflow: hidden;
    border: 1px solid #d5e3ef;
    border-radius: 18px;
    background: #f2f8fd;
    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.staff-vacancy.is-open {
    border-color: #c8dfee;
    background: #fff;
    box-shadow: 0 18px 50px rgba(1, 74, 141, 0.09);
}

.staff-vacancy__toggle {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 25px 32px;
    border: 0;
    background: transparent;
    color: #082d51;
    text-align: left;
    cursor: pointer;
}

.staff-vacancy.is-open .staff-vacancy__toggle {
    border-bottom: 1px solid #d5e3ef;
    background: linear-gradient(
        110deg,
        #f2f8fd 0%,
        #eaf5fd 100%
    );
}

.staff-vacancy__number {
    padding-right: 24px;
    border-right: 1px solid #a9c6dc;
    color: #be915a;
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: 31px;
    line-height: 1;
}

.staff-vacancy__name {
    overflow-wrap: anywhere;
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: clamp(24px, 2vw, 34px);
    font-weight: 400;
    line-height: 1.15;
}

.staff-vacancy__icon {
    width: 14px;
    height: 14px;
    border-right: 2px solid #014a8d;
    border-bottom: 2px solid #014a8d;
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform 0.3s ease;
}

.staff-vacancy.is-open .staff-vacancy__icon {
    transform: rotate(225deg) translate(-2px, -2px);
}


/* Раскрытая вакансия */

.staff-vacancy__panel[hidden] {
    display: none;
}

.staff-vacancy__panel-inner {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    align-items: stretch;
    gap: 38px;
    padding: 18px 32px 32px 18px;
}

.staff-vacancy__image {
    position: relative;
    width: 100%;
    min-height: 320px;
    overflow: hidden;
    aspect-ratio: auto;
    border-radius: 12px;
    background: #eaf4fb;
}

.staff-vacancy__image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    object-position: center;
}

.staff-vacancy__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(1, 74, 141, 0.4);
    font-family: "Berlingske Serif", Georgia, serif;
    font-size: 28px;
}

.staff-vacancy__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 12px 0 2px;
}

.staff-vacancy__description {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 30px;
    color: #536b7f;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
}

.staff-vacancy__description > * {
    min-width: 0;
}

.staff-vacancy__description p {
    margin: 0;
}

.staff-vacancy__description p + p {
    margin-top: 0;
}

.staff-vacancy__description strong {
    display: block;
    margin-bottom: 10px;
    color: #082d51;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.staff-vacancy__actions {
    margin-top: 28px;
}

.staff-vacancy__button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 !important;
    text-decoration: none;
    cursor: pointer;
}

.staff-vacancy__button span {
    font-size: 21px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.staff-vacancy__button:hover span {
    transform: translateX(5px);
}

.staff-vacancy__panel {
    overflow: hidden;
}

.staff-vacancy__panel[hidden] {
    display: none;
}

.staff-vacancy__description .vacancy-section {
    min-width: 0;
}

.staff-vacancy__description .vacancy-section > strong {
    display: block;
    margin-bottom: 14px;
}

.staff-vacancy__description ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.staff-vacancy__description li {
    position: relative;
    margin: 0;
    padding-left: 18px;
}

.staff-vacancy__description li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #be915a;
    content: "—";
}

/* Форма отклика */

#vacancy-modal {
    width: 90%;
    max-width: 500px;
}

#vacancy-modal h1 {
    line-height: 1.2;
}

.vacancy-modal-content {
    display: flex;
    flex-direction: column;
}

.vacancy-modal-content .form-title {
    margin-bottom: 30px;
}

.vacancy-modal-content label {
    width: 100%;
}

.your-file-field .label {
    margin-bottom: 10px;
}


/* Планшет */

@media (max-width: 1100px) {
    .staff-vacancies__header {
        min-height: 0;
        padding-right: 0;
    }

    .staff-vacancies__header::before,
    .staff-vacancies__decor {
        display: none;
    }

    .staff-vacancy__panel-inner {
        grid-template-columns:
            minmax(240px, 300px)
            minmax(0, 1fr);
        align-items: start;
        gap: 28px;
    }

    .staff-vacancy__image {
        min-height: 100%;
    }

    .staff-vacancy__description {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 900px) {
    .staff-vacancy__panel-inner {
        grid-template-columns: 1fr;
    }

    .staff-vacancy__image {
        width: 100%;
        aspect-ratio: 16 / 8;
    }
}

/* Мобильная версия */

@media (max-width: 768px) {
    .staff-vacancies__header {
        margin-bottom: 24px;
    }

    .staff-vacancies__title {
        font-size: 40px;
    }

    .staff-vacancies__subtitle {
        font-size: 16px;
    }

    .staff-vacancy {
        border-radius: 14px;
    }

    .staff-vacancy__toggle {
        grid-template-columns: 50px minmax(0, 1fr) 22px;
        gap: 15px;
        padding: 20px;
    }

    .staff-vacancy__number {
        padding-right: 15px;
        font-size: 25px;
    }

    .staff-vacancy__name {
        font-size: 24px;
    }

    .staff-vacancy__panel-inner {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 25px;
        padding: 16px 16px 24px;
    }

    .staff-vacancy__image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .staff-vacancy__content {
        padding: 0 4px;
    }

    .staff-vacancy__description {
        gap: 20px;
        font-size: 15px;
    }

    .staff-vacancy__button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .staff-vacancies__title {
        font-size: 34px;
    }

    .staff-vacancy__toggle {
        grid-template-columns: 42px minmax(0, 1fr) 18px;
        gap: 12px;
        padding: 18px 15px;
    }

    .staff-vacancy__number {
        padding-right: 12px;
        font-size: 22px;
    }

    .staff-vacancy__name {
        font-size: 21px;
    }
}

/* Полный отзыв */

.review-modal {
    width: 90%;
    max-width: 620px;
    padding: 38px;
    border-radius: 16px;
    background: #fff;
    color: #536b7f;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
}

.review-modal__author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: #082d51;
    font-size: 20px;
}

.review-modal__photo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    overflow: hidden;
    border-radius: 50%;
    background: #eaf4fb;
}

.review-modal__photo img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
}

.review-modal__content p:first-child {
    margin-top: 0;
}

.review-modal__content p:last-child {
    margin-bottom: 0;
}


/* Карточки отзывов только на мобильных */

.text-review__more {
    display: none;
}

@media (max-width: 500px) {
    #reviews-text .swiper-wrapper {
        align-items: stretch;
    }

    #reviews-text .swiper-slide {
        height: auto;
    }

    #reviews-text .text-review {
        position: relative;
        display: flex;
        height: 350px;
        min-height: 350px;
        max-height: 350px;
        flex-direction: column;
        padding: 25px 22px;
        overflow: hidden;
        box-sizing: border-box;
    }

    .text-review__author {
        flex: 0 0 auto;
        margin-bottom: 18px;
    }

    .text-review__content {
        min-height: 0;
        overflow: hidden;
    }

    .text-review__content--long {
        position: relative;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 10;
    }

    .text-review__content p {
        margin-top: 0;
    }

    .text-review__content--long::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 55px;
        pointer-events: none;
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0),
            #fff 85%
        );
        content: "";
    }

    .text-review__more {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        gap: 12px;
        margin-top: auto;
        padding-top: 18px;
        color: #014a8d;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
    }

    .text-review__more span {
        font-size: 20px;
        line-height: 1;
    }

    .review-modal {
        width: calc(100% - 30px);
        padding: 28px 22px;
        border-radius: 14px;
        box-sizing: border-box;
    }
}
