.vacancy-page .vacancy-img-container {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 745px;
    width: 100%;

    border-radius: var(--es-radius-md);

    overflow: hidden;

    position: relative;
}
.vacancy-page .vacancy-img-banner {
    width: 100%;
    height: auto;

    object-fit: cover;
}
.vacancy-page .info-panel h2 {
    flex: 1;
    max-width: 50%;
    color: #212121;
    font-family: 'TikTok Sans 18pt Expanded', sans-serif;
    font-size: 35px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 110%;
}
.vacancy-page .info-panel p {
    color: #212121;
    font-family: 'TikTok Sans 18pt Expanded', sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 120%;
}
.vacancy-page .info-panel {
    position: absolute;
    left: 10px;
    bottom: 10px;

    width: calc(100% - 20px);

    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 50px 96px;
    gap: 64px;

    background: var(--es-surface-inverse);
    border-radius: var(--es-radius-md);
}

.vacancy-page .line-accent {
    margin-bottom: 32px;
    width: 100%;
    border: 1px solid #BFFF00;
    margin-top: 0;
}
.vacancy-page .line-accent-left {
    border-left: 3px solid #BFFF00;
    padding-left: 40px;
    margin-left: auto;
    height: 106px;
    display: flex;
    align-items: center;
}
.vacancy-page .service-detail__cta-actions {
    gap: 24px;
}
.vacancy-page .service-detail__cta-actions h3 {
    font-size: 61px;
    line-height: 96%;
}
.vacancy-page .type-grid p {
    color: #212121;
    font-family: 'TikTok Sans 18pt Expanded', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 133%;
    margin-top: 32px;
}
.vacancy-page .type-grid > .d-flex-col p {
    font-family: 'Garet';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: rgba(33, 33, 33, 0.8);
}
.vacancy-page .type-grid > .d-flex-col {
    /*gap: 64px;*/
}
.vacancy-page .hero-section-wrapper .intro {
    max-width: 682px;
}
.vacancy-page .service-detail__cta .service-detail__cta-actions > p {
    max-width: 560px;
}

.applicant-popup[hidden] {
    display: none;
}

.applicant-popup {
    padding: 0;
    justify-content: end;
}

.applicant-popup__content {
    align-items: stretch;
    /*max-height: calc(100vh - 48px);*/
    /*max-width: 640px;*/
    /*min-height: 0;*/
    overflow-y: hidden;
    text-align: left;

    height: 100%;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;

    padding-top: 48px;
    padding-left: 20px;
    padding-right: 20px;

    justify-content: start;
}
.applicant-popup__content .edge-form-popup__close {
    border-top-right-radius: 0px;
}

.applicant-popup__content h2 {
    /*text-align: center;*/
    margin-bottom: 32px;
}

.applicant-popup .lead-form {
    display: grid;
    gap: 16px;
}

.applicant-popup .lead-form > label,
.applicant-form__fieldset label {
    display: grid;
    gap: 6px;
}

.applicant-popup input:not([type="checkbox"]),
.applicant-popup textarea {
    border: 1px solid #cbc9c7;
    border-radius: 4px;
    font: inherit;
    padding: 12px;
    /*width: 100%;*/
}

.applicant-form__fieldset {
    border: 0;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.applicant-form__fieldset legend {
    font-weight: 600;
    margin-bottom: 4px;
}

.applicant-form__fieldset label {
    align-items: center;
    display: flex;
    gap: 8px;
}

/* Keep the applicant form visually consistent with callback-form__form. */
.applicant-popup .callback-form__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;

    overflow-y: auto;
    height: 100%;
}

.applicant-popup .callback-form__form .input-field {
    background: #f4f4f4;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
    min-height: 56px;
    padding: 16px;
    width: 100%;
}

.applicant-popup .callback-form__form label {
    color: #999;
    font-size: 13px;
}

.applicant-popup .callback-form__form textarea.input-field {
    height: 140px;
    resize: vertical;
}

.applicant-popup .callback-form__form input[type="checkbox"] {
    accent-color: var(--es-surface-accent);
    flex: 0 0 24px;
    height: 24px;
    margin: 0;
    width: 24px;
}

.applicant-popup .callback-form__submit {
    border-radius: 999px;
    /*margin-top: 4px;*/
    min-height: 60px;
    width: 100%;
    margin-top: auto;
}

.vacancy-page .type-grid .contact-item:first-of-type {
    margin-bottom: 64px;
}

.service-detail__cta-person {
    transform: unset;
}

@keyframes applicant-popup-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes applicant-popup-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (max-width: 1200px) {
    .vacancy-page .service-detail__cta-person {
        order: 2;
    }
    .type-grid {
        grid-template-columns: 1fr;
    }
    .vacancy-page .type-grid p {
        margin-bottom: 12px;
    }
    .vacancy-page .type-grid > .d-flex-col > .d-flex-col {
        flex-direction: row;
        gap: 40px;
    }
    .vacancy-page .type-grid .contact-item {
        margin-bottom: 0;
        width: 100%;
        flex: 1;
    }
    .vacancy-page .service-detail__cta .service-detail__cta-actions > p {
        max-width: unset;
        text-align: center;
    }
    .vacancy-page .service-detail__cta-actions h3 {
        text-align: center;
    }
    .vacancy-page .service-detail__cta-actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .vacancy-page .service-detail__cta-actions h3 br {
        display: none;
    }
}

@media (max-width: 992px) {
    .applicant-popup__content {
        animation: applicant-popup-slide-in 280ms ease-out;
    }

    .applicant-popup.is-closing .applicant-popup__content {
        animation: applicant-popup-slide-out 280ms ease-in forwards;
    }

    .vacancy-page .info-panel h2 {
        max-width: 100%;
        gap: 32px;
    }

    .vacancy-page .vacancy-img-banner {
        height: 100%;
        width: 100%;
    }

    .vacancy-page .info-panel p {
        border-top: 3px solid #BFFF00;
        border-left: 0;
        padding-left: 0;
        padding-top: 32px;
        margin: 0;
    }

    .vacancy-page .info-panel {
        padding: 46px 20px;
        flex-direction: column;
    }

    .type-grid {
        gap: 24px;
    }

    .vacancy-page .type-grid > .d-flex-col > .d-flex-col {
        flex-direction: column;
        gap: 0;
    }
    .vacancy-page .type-grid > .d-flex-col > .d-flex-col h3 {
        font-size: 24px;
    }

    .vacancy-page .type-grid .contact-item:first-of-type {
        margin-bottom: 32px;
    }

    .service-detail__cta-person {
        height: unset;
        width: 100%;
    }
    .service-detail__cta-layout .button {
        width: 100%;
    }
    .vacancy-page .service-detail__cta-actions h3 {
        font-size: 35px;
    }
}