.vacancies {
    padding-top: 80px;
    background: rgba(252, 245, 252, 1);
}

.vacancies__top {
    display: flex;
    align-items: stretch;   
    gap: 48px;
    margin-bottom: 50px;
}

.vacancies__title {
    flex-shrink: 0;
    width: 260px;
    align-self: flex-start; 
    margin: 0;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 55px;
    line-height: 64px;
    letter-spacing: -0.01em;
    color: rgba(92, 7, 94, 1);
}

.vacancies__texts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.vacancies__text {
    font-family: Manrope, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0;
    color: rgba(92, 7, 94, 1);
    margin: 0;
}

.vacancies__text p {
    margin: 0;
}

.vacancies__text strong,
.vacancies__text b {
    font-weight: 700;
    color: rgba(92, 7, 94, 1);
}

.vacancies__buttons {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    gap: 66px;
}

.vacancies__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 53px;
    padding: 0 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #C05FC2 0%, #8D2A8F 100%);
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.vacancies__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(141, 42, 143, 0.35);
}

.vacancies__image-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(141, 42, 143, 0.12);
    margin-bottom: 160px;
}

.vacancies__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
}

.vacancies__mobile-content {
    display: none;
}

.vacancies__offers-title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 55px;
    line-height: 64px;
    letter-spacing: 0;
    color: rgba(92, 7, 94, 1);
    margin-bottom: 40px;
}

.vacancies__offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.vacancies__offer-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vacancies__offer-image-wrap {
    width: 100%;
    aspect-ratio: 380 / 193;
    border-radius: 25px;
    overflow: hidden;
    flex-shrink: 0;
}

.vacancies__offer-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vacancies__offer-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vacancies__offer-name {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    color: rgba(92, 7, 94, 1);
    margin: 0;
}

.vacancies__offer-desc {
    font-family: Manrope, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    color: rgba(92, 7, 94, 1);
    margin: 0;
}

@media (max-width: 1024px) {
    .vacancies { padding-top: 30px !important; }

    .vacancies__top {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        gap: 35px;
        margin-bottom: 50px;
        align-items: start;
    }

    .vacancies__title {
        grid-column: 1;
        grid-row: 1 / 3;
        width: auto;
        font-size: 34px;
        line-height: 40px;
        letter-spacing: -0.01em;
        align-self: start;
    }

    .vacancies__texts {
        grid-column: 2;
        grid-row: 1 / 3;
        gap: 35px;
    }

    .vacancies__text {
        font-size: 14px;
        line-height: 22px;
    }

    .vacancies__buttons {
        grid-column: 3;
        grid-row: 1 / 3;
        gap: 35px;
        justify-content: flex-start;
    }

    .vacancies__button {
        width: 150px;
        height: 36px;
        font-size: 12px;
        line-height: 16px;
        padding: 10px 22px;
        border-radius: 8px;
    }

    .vacancies__image-wrap {
        border-radius: 20px;
        margin-bottom: 50px;
    }

    .vacancies__image {
        aspect-ratio: 944 / 355;
    }

    .vacancies__offers-title {
        font-size: 34px;
        line-height: 46px;
        margin-bottom: 35px;
    }

    .vacancies__offers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .vacancies__offer-image-wrap {
        aspect-ratio: 221 / 122;
        border-radius: 20px;
    }

    .vacancies__offer-body {
        gap: 10px;
    }

    .vacancies__offer-name {
        font-size: 16px;
        line-height: 22px;
    }

    .vacancies__offer-desc {
        font-size: 12px;
        line-height: 18px;
    }
}

@media (max-width: 768px) {
    .vacancies__offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .vacancies { padding-top: 50px; }

    .vacancies__top {
        display: none;
    }

    .vacancies__top + .vacancies__image-wrap {
        display: none;
    }

    .vacancies__mobile-content {
        display: flex;
        flex-direction: column;
        gap: 25px;
        margin-bottom: 70px;
    }

    .vacancies__title--mobile {
        font-size: 24px;
        line-height: 27px;
        width: auto;
    }

    .vacancies__text-btn-pair {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .vacancies__text-btn-pair .vacancies__text {
        font-size: 12px;
        line-height: 18px;
    }

    .vacancies__text-btn-pair .vacancies__button {
        width: 150px;
        height: 36px;
        font-size: 12px;
        line-height: 16px;
        padding: 10px 22px;
        border-radius: 8px;
    }

    .vacancies__image-wrap--mobile {
        border-radius: 20px;
        margin-bottom: 0;
    }

    .vacancies__image-wrap--mobile .vacancies__image {
        aspect-ratio: 310 / 223;
    }

    .vacancies__offers-title {
        font-size: 24px;
        line-height: 27px;
        margin-bottom: 25px;
    }

    .vacancies__offers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .vacancies__offer-image-wrap {
        aspect-ratio: 310 / 149;
        border-radius: 20px;
    }

    .vacancies__offer-body {
        gap: 6px;
    }

    .vacancies__offer-name {
        font-size: 16px;
        line-height: 22px;
    }

    .vacancies__offer-desc {
        font-size: 12px;
        line-height: 18px;
    }
}

