.vacancies__items {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 12px;
    max-width: 1320px;
    margin: 0 auto;
}

.vacancies__item {
    grid-column: span 8;
    perspective: 1000px;
}

.vacancies__item:nth-child(10) {
    grid-row: span 2;
    align-self: stretch;
}
.vacancies__item:nth-child(13n + 9) {
    grid-column: span 7;
}
.vacancies__item:nth-child(13n + 1),
.vacancies__item:nth-child(13n + 2),
.vacancies__item:nth-child(13n + 6) {
    grid-column: span 6;
}
.vacancies__item:nth-child(13n + 8) {
    grid-column: span 5;
}
.vacancies__item:nth-child(13n + 3),
.vacancies__item:nth-child(13n + 7),
.vacancies__item:nth-child(13n + 10),
.vacancies__item:nth-child(13n + 11),
.vacancies__item:nth-child(13n + 12),
.vacancies__item:nth-child(13n + 13) {
    grid-column: span 4;
}
.vacancies__item:nth-child(13n + 4),
.vacancies__item:nth-child(13n + 5) {
    grid-column: span 3;
}

.vacancies__flipper {
    position: relative;
    width: 100%;
    height: 100% !important;
    backface-visibility: hidden;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-style: preserve-3d;
    cursor: pointer;
}

.vacanciesFront,
.vacanciesBack {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #b7deff;
    box-shadow: 0 8px 25px rgba(0,102,204,.12);
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.vacanciesFront:after,
.vacanciesBack:after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    border-radius: 50%;
    background: #fff;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 20%, rgba(255, 255, 255, 0) 55%);
    box-shadow: none;
}

.vacanciesFront {
    padding: 30px 20px;
    transform: rotateY(0deg);
}

.vacanciesBack {
    padding: 20px 10px;
    opacity: 1;
    transform: rotateY(180deg);
    color: #003366;
}

.vacancies__item:hover .vacancies__flipper,
.vacancies__item._flipped .vacancies__flipper {
    transform: rotateY(180deg);
}

.vacancies__item._flipped .vacancies__flipper {
    transform: rotateY(180deg);
}

.vacanciesItem__image {}

.vacanciesItem__image img {
    min-width: 120px;
    width: 120px;
    height: 120px !important;
    object-fit: contain;
    margin-bottom: 20px;
}

.vacancies__item:nth-child(13n + 1) .vacanciesFront,
.vacancies__item:nth-child(13n + 2) .vacanciesFront,
.vacancies__item:nth-child(13n + 6) .vacanciesFront,
.vacancies__item:nth-child(13n + 8) .vacanciesFront,
.vacancies__item:nth-child(13n + 9) .vacanciesFront,
.vacancies__item:nth-child(13n + 11) .vacanciesFront,
.vacancies__item:nth-child(13n + 12) .vacanciesFront,
.vacancies__item:nth-child(13n + 13) .vacanciesFront {
    flex-direction: row;
}
.vacancies__item:nth-child(13n + 1) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 2) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 6) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 8) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 9) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 11) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 12) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 13) .vacanciesItem__image img {
    margin-bottom: 0;
}

.vacancies__item:nth-child(13n + 1) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 3) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 4) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 7) .vacanciesItem__image img {
    min-width: 160px;
    width: 160px;
    height: 160px !important;
}
.vacancies__item:nth-child(13n + 2) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 11) .vacanciesItem__image img {
    height: 160px !important;
}
.vacancies__item:nth-child(13n + 5) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 8) .vacanciesItem__image img {
    min-width: 150px;
    width: 150px;
    height: 150px !important;
}
.vacancies__item:nth-child(13n + 6) .vacanciesItem__image img,
.vacancies__item:nth-child(13n + 9) .vacanciesItem__image img {
    min-width: 200px;
    width: 200px;
    height: 200px !important;
}
.vacancies__item:nth-child(13n + 9) .vacanciesItem__image img {

}
.vacancies__item:nth-child(13n + 10) .vacanciesItem__image img {
    min-width: 250px;
    width: 250px;
    height: 250px !important;
}
.vacancies__item:nth-child(13n + 12) .vacanciesItem__image img {
    min-width: 150px;
    width: 150px;
    height: 150px !important;
}
.vacancies__item:nth-child(13n + 13) .vacanciesItem__image img {
    height: 200px !important;
    min-width: 150px;
    width: 150px;
}

.vacanciesItem__name {
    font-family: "Stetica";
    text-align: center;
    color: #5694c8;
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -1px;
}

.vacancies__item:nth-child(13n + 4) .vacanciesItem__name {
    font-size: 1.75rem;
}

.vacanciesItem__nameSecondary {
    position: absolute;
    bottom: 12px;
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: start;
    font-weight: 600;
    font-family: "Stetica";
    color: var(--color-primary);
    font-size: 2.2rem;
    line-height: 24px;
    letter-spacing: -1px;
}

.vacanciesItem__desc {
    color: #0d66b0;
    font-size: 1.75rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.vacanciesItem__desc b {
    font-weight: 900;
}

.vacancies__item:nth-child(13n + 10) .vacanciesItem__desc {
    font-size: 1.55rem;
}

.vacanciesItem__desc ul {
    padding-left: 15px;
}

@media (max-width: 5000px) and (min-width: 1421px) {
    .vacancies__item:nth-child(13n + 1),
    .vacancies__item:nth-child(13n + 2) {
        min-height: 220px !important;
        height: 50%;
    }

    .vacancies__item:nth-child(13n + 3) {
        min-height: 270px !important;
    }

    .vacancies__item:nth-child(13n + 4),
    .vacancies__item:nth-child(13n + 5),
    .vacancies__item:nth-child(13n + 6) {
        margin-top: -50px;
        min-height: 335px !important;
    }

    .vacancies__item:nth-child(13n + 7) {
        height: 70%;
        min-height: 250px !important;
    }

    .vacancies__item:nth-child(13n + 8),
    .vacancies__item:nth-child(13n + 9) {
        height: 85%;
        min-height: 250px !important;
    }

    .vacancies__item:nth-child(13n + 10) {
        margin-top: -35px;
        min-height: 512px !important;
    }

    .vacancies__item:nth-child(13n + 11),
    .vacancies__item:nth-child(13n + 12),
    .vacancies__item:nth-child(13n + 13) {
        height: 80%;
        min-height: 215px !important;
    }
}
@media (max-width: 1420px) {
    .vacanciesItem__name {
        font-size: 1.75rem;
    }
    .vacanciesItem__nameSecondary {
        font-size: 1.75rem;
    }
    .vacancies__item:nth-child(13n + 4) .vacanciesItem__name {
        font-size: 1.5rem;
    }
    .vacanciesItem__image img {
        margin-bottom: 15px;
    }
    .vacancies__item:nth-child(13n + 2) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 11) .vacanciesItem__image img {
        height: 130px !important;
    }
    .vacancies__item:nth-child(13n + 5) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 8) .vacanciesItem__image img {
        min-width: 120px;
        width: 120px;
        height: 120px !important;
    }
    .vacancies__item:nth-child(13n + 10) .vacanciesItem__image img {
        min-width: 220px;
        width: 220px;
        height: 220px !important;
    }
    .vacancies__item:nth-child(13n + 13) .vacanciesItem__image img {
        height: 150px !important;
        min-width: 130px;
        width: 130px;
    }
}
@media (max-width: 1420px) and (min-width: 1201px) {
    .vacancies__item:nth-child(13n + 1),
    .vacancies__item:nth-child(13n + 2) {
        min-height: 220px !important;
        height: 100%;
    }
    .vacancies__item:nth-child(13n + 3) {
        min-height: 270px !important;
    }
    .vacancies__item:nth-child(13n + 4),
    .vacancies__item:nth-child(13n + 5),
    .vacancies__item:nth-child(13n + 6) {
        margin-top: 0;
        min-height: 335px !important;
    }
    .vacancies__item:nth-child(13n + 7) {
        height: 100%;
        min-height: 250px !important;
    }
    .vacancies__item:nth-child(13n + 8),
    .vacancies__item:nth-child(13n + 9) {
        height: 100%;
        min-height: 250px !important;
    }
    .vacancies__item:nth-child(13n + 10) {
        margin-top: 0;
        min-height: 512px !important;
    }
    .vacancies__item:nth-child(13n + 11),
    .vacancies__item:nth-child(13n + 12),
    .vacancies__item:nth-child(13n + 13) {
        height: 100%;
        min-height: 215px !important;
    }
}
@media (max-width: 1200px) {
    .vacancies__items {
        gap: 12px;
    }
    .vacancies__item:nth-child(13n + 1),
    .vacancies__item:nth-child(13n + 4),
    .vacancies__item:nth-child(13n + 5),
    .vacancies__item:nth-child(13n + 8),
    .vacancies__item:nth-child(13n + 9),
    .vacancies__item:nth-child(13n + 12) {
        grid-column: span 7;
    }
    .vacancies__item:nth-child(13n + 2),
    .vacancies__item:nth-child(13n + 3),
    .vacancies__item:nth-child(13n + 6),
    .vacancies__item:nth-child(13n + 7),
    .vacancies__item:nth-child(13n + 10),
    .vacancies__item:nth-child(13n + 11) {
        grid-column: span 9;
    }
    .vacancies__item:nth-child(13n + 13) {
        grid-column: span 16;
    }
    .vacancies__item:nth-child(10) {
         grid-row: span 1;
    }
    .vacancies__item:nth-child(13n + 1) .vacanciesFront,
    .vacancies__item:nth-child(13n + 2) .vacanciesFront,
    .vacancies__item:nth-child(13n + 6) .vacanciesFront,
    .vacancies__item:nth-child(13n + 8) .vacanciesFront,
    .vacancies__item:nth-child(13n + 9) .vacanciesFront,
    .vacancies__item:nth-child(13n + 11) .vacanciesFront,
    .vacancies__item:nth-child(13n + 12) .vacanciesFront,
    .vacancies__item:nth-child(13n + 13) .vacanciesFront {
        flex-direction: column;
    }
    .vacancies__item:nth-child(13n + 1) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 2) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 6) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 8) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 9) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 11) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 12) .vacanciesItem__image img,
    .vacancies__item:nth-child(13n + 13) .vacanciesItem__image img {
        margin-bottom: 15px;
    }
    .vacanciesItem__nameSecondary {
        position: static;
        text-align: center;
    }
    .vacancies__item:nth-child(13n + 8) .vacanciesFront {

    }
}
@media (max-width: 991px) {

}
@media (max-width: 767px) {
    .vacancies__item {
        grid-column: span 16 !important;
    }

}
@media (max-width: 576px) {

}