.closed-vacancy {
    position: fixed;
    inset: var(--header-h) 0 0;
    width: 100%;
    max-width: none;
    height: calc(100dvh - var(--header-h));
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #0a2136;
    background: #dce8f0;
    overscroll-behavior: contain;
}

.closed-vacancy::backdrop {
    background: rgb(213 230 239 / 18%);
}

.closed-vacancy[open]:not(:modal) {
    z-index: 2000;
}

body:has(.closed-vacancy[open]) {
    overflow: hidden;
}

.closed-vacancy__screen {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.closed-vacancy__screen::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgb(211 229 241 / 4%) 3%, rgb(233 243 247 / 56%) 36%, #e8f0f7 95%),
        url("/assets/img/home/directions-bg.webp") left bottom / cover no-repeat;
    transform: scaleX(-1);
}

.closed-vacancy__screen::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(128deg, transparent 57%, rgb(255 255 255 / 84%) 57.15%, rgb(54 185 116 / 46%) 57.5%, rgb(124 225 125 / 20%) 68%, transparent 68.15%),
        linear-gradient(37deg, rgb(60 192 127 / 47%), rgb(125 223 122 / 28%) 13.8%, rgb(250 255 255 / 84%) 14%, transparent 14.35%);
}

.closed-vacancy__inner {
    position: relative;
    width: min(100%, 1380px);
    flex: 1;
    margin: 0 auto;
    padding: clamp(18px, 2.35vh, 26px) clamp(18px, 3vw, 36px) clamp(28px, 6.2vh, 64px);
}

.closed-vacancy__intro {
    margin: 0 48px clamp(22px, 3.8vh, 38px) clamp(0px, 3vw, 36px);
}

.closed-vacancy__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #087c34;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.closed-vacancy__eyebrow::before,
.closed-vacancy__eyebrow::after {
    content: "";
    width: 24px;
    height: 2px;
    background: #17a245;
}

.closed-vacancy__title {
    margin: 8px 0 4px;
    font-size: clamp(32px, 4vw, 57px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -.045em;
    outline: none;
    overflow-wrap: anywhere;
}

.closed-vacancy__subtitle {
    color: #315268;
    font-size: clamp(16px, 1.7vw, 22px);
    line-height: 1.35;
}

.closed-vacancy__close {
    position: absolute;
    inset: 16px clamp(16px, 3vw, 32px) auto auto;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 92%);
    border-radius: 50%;
    color: #0a2136;
    background: rgb(255 255 255 / 88%);
}

.closed-vacancy__close:hover {
    background: #fff;
}

.closed-vacancy__body {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    max-width: 1130px;
}

.closed-vacancy__decor {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding-top: 40px;
}

.closed-vacancy__decor svg {
    display: block;
    width: 62px;
    height: 62px;
    padding: 13px;
    border: 1px solid rgb(255 255 255 / 80%);
    border-radius: 16px;
    color: #526e80;
    background: rgb(255 255 255 / 62%);
}

.closed-vacancy__decor svg:first-child {
    color: #0a8c32;
    background: rgb(232 255 241 / 88%);
    box-shadow: 0 0 28px rgb(168 255 199 / 78%);
}

.closed-vacancy__content {
    display: grid;
    grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
    align-items: center;
    border: 2px solid rgb(255 255 255 / 92%);
    border-radius: clamp(24px, 4vw, 49px);
    padding: clamp(22px, 3vw, 40px);
    background: linear-gradient(115deg, rgb(255 255 255 / 88%), rgb(241 249 250 / 77%));
    box-shadow: 0 20px 55px rgb(31 66 81 / 18%), 0 0 20px rgb(255 255 255 / 74%), inset 0 0 26px rgb(255 255 255 / 67%);
    backdrop-filter: blur(16px);
}

.closed-vacancy__message {
    min-width: 0;
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 12px;
    padding-right: clamp(20px, 2.1vw, 29px);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.42;
}

.closed-vacancy__status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 15px;
    color: #b81424;
    background: #fbe0e6;
    font-size: clamp(16px, 1.65vw, 22px);
    font-weight: 750;
    line-height: 1.23;
}

.closed-vacancy__status span {
    display: grid;
    flex: none;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
}

.closed-vacancy__heading {
    margin: 8px 0 4px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 850;
    line-height: 1.1;
    letter-spacing: -.045em;
}

.closed-vacancy__heading strong {
    color: #098934;
    font-weight: inherit;
}

.closed-vacancy__available {
    display: flex;
    align-items: center;
    align-self: stretch;
    justify-self: stretch;
    gap: 12px;
    margin-top: 5px;
    padding: 10px 14px;
    border-radius: 15px;
    background: #e0f1e7;
    font-weight: 750;
}

.closed-vacancy__available svg {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 7px;
    color: #fff;
    border-radius: 9px;
    background: linear-gradient(150deg, #18aa43, #087631);
}

.closed-vacancy__offers {
    display: grid;
    gap: 12px;
    padding-left: clamp(18px, 2vw, 24px);
    border-left: 1px solid rgb(32 82 112 / 16%);
}

.closed-vacancy__offer {
    padding: clamp(16px, 2vw, 25px);
    border: 1px solid rgb(255 255 255 / 85%);
    border-radius: 24px;
    background: linear-gradient(130deg, rgb(239 248 246 / 94%), rgb(231 243 239 / 66%));
    box-shadow: inset 0 0 18px rgb(255 255 255 / 58%);
}

.closed-vacancy__offer h3 {
    font-size: clamp(23px, 2.45vw, 34px);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -.04em;
}

.closed-vacancy__offer p {
    margin-top: 8px;
    color: #315268;
    font-size: clamp(15px, 1.28vw, 18px);
    line-height: 1.4;
}

.closed-vacancy__links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.closed-vacancy__links a {
    display: flex;
    flex: 1 1 max-content;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 45px;
    padding: 8px 10px;
    border: 1px solid #159747;
    border-radius: 12px;
    background: rgb(255 255 255 / 76%);
    color: #0a2136;
    font-size: var(--text-sm);
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}

.closed-vacancy__links a:hover {
    background: #e1f4e8;
}

.closed-vacancy__links a.closed-vacancy__apply {
    border-color: transparent;
    background: linear-gradient(115deg, #088436, #086928);
    color: #fff;
}

.closed-vacancy__links .closed-vacancy__apply:hover {
    background: #075d25;
}

.closed-vacancy__links svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: #088136;
}

.closed-vacancy__links .closed-vacancy__apply svg {
    color: inherit;
}

.closed-vacancy__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    padding: 17px 18px;
    color: #fff;
    background: #0b2a42;
    font-size: var(--text-sm);
    text-align: center;
}

.closed-vacancy__footer li + li::before {
    content: "•";
    padding-right: 14px;
}

@media (max-width: 1080px) {
    .closed-vacancy__intro {
        margin-left: 0;
    }

    .closed-vacancy__body {
        display: block;
    }

    .closed-vacancy__decor {
        display: none;
    }
}

@media (max-width: 740px) {
    .closed-vacancy__close {
        position: fixed;
        z-index: 1;
        top: calc(var(--header-h) + 16px);
        box-shadow: 0 2px 8px rgb(7 34 53 / 12%);
    }

    .closed-vacancy__screen::before {
        background-position: left top;
        background-size: auto, auto 480px;
        background-color: #e7f0f7;
    }

    .closed-vacancy__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 16px;
    }

    .closed-vacancy__message,
    .closed-vacancy__offers {
        padding: 0;
        border: 0;
    }
}

@media (max-width: 400px) {
    .closed-vacancy__footer {
        flex-direction: column;
    }

    .closed-vacancy__footer li + li::before {
        content: none;
    }
}
