/**
 * /job/ — vacancies list (Boost Hub PM shell, contacts-like rhythm).
 */

body:has(.pmMissionProtoPage--vacancies) .bx_breadcrumb {
    display: none !important;
}

.vacanciesPage {
    --vac-amber: #fe9900;
    --vac-amber-soft: rgba(254, 153, 0, 0.14);
    --vac-text: rgba(255, 255, 255, 0.98);
    --vac-muted: rgba(255, 255, 255, 0.56);
    --vac-line: rgba(255, 255, 255, 0.1);
    --vac-hover: rgba(255, 255, 255, 0.04);
}

.vacanciesPage.pmMissionProtoPage--vacancies {
    padding: 0;
    min-width: 0;
}

/* —— Hero —— */
.vacanciesHero {
    margin: 0 0 28px;
    max-width: 42rem;
}

.vacanciesHero__brand {
    margin: 0 0 10px;
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--vac-amber);
}

.vacanciesHero__title {
    margin: 0 0 0.45em;
    padding: 0;
    font-size: clamp(2.35rem, 3.8vw, 3.25rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
    color: var(--vac-text);
    text-wrap: balance;
}

/* Global main.css `h1::before` orange bar */
.vacanciesHero__title::before {
    content: none !important;
    display: none !important;
}

.vacanciesHero__lead {
    margin: 0;
    max-width: 38rem;
    font-size: 1.35rem;
    line-height: 1.45;
    color: var(--vac-muted);
}

/* —— Perks strip —— */
.vacanciesPerksStrip {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin: 0 0 36px;
    padding: 16px 0;
    border-top: 1px solid var(--vac-line);
    border-bottom: 1px solid var(--vac-line);
    animation: vacanciesStripIn 0.45s ease both;
}

@keyframes vacanciesStripIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.vacanciesPerksStrip__item {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--vac-text);
}

.vacanciesPerksStrip__sep {
    color: var(--vac-muted);
    font-weight: 400;
}

/* —— Roles —— */
.vacanciesRoles {
    margin-bottom: 48px;
}

.vacanciesRoles__title {
    margin: 0 0 14px;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--vac-text);
}

.vacanciesRoleList {
    display: grid;
}

.vacancyRole {
    padding: 22px 0;
    border-bottom: 1px solid var(--vac-line);
    transition: background-color 0.2s ease;
}

.vacancyRole:first-child {
    border-top: 1px solid var(--vac-line);
}

.vacancyRole:hover,
.vacancyRole:focus-within {
    background-color: var(--vac-hover);
}

.vacancyRole__head {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.vacancyRole__media {
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

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

.vacancyRole__imageStub {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #ffd8a4;
    background: var(--vac-amber-soft);
}

.vacancyRole__main {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
}

.vacancyRole__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 12rem;
    color: var(--vac-text);
    font-size: clamp(1.85rem, 2.8vw, 2.45rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.vacancyRole__cta.want_work {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 10rem;
    padding: 0 20px;
    border: 1px solid rgba(254, 153, 0, 0.55);
    border-radius: 10px;
    background: transparent;
    color: #ffd8a4;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vacancyRole__cta.want_work:hover,
.vacancyRole__cta.want_work:focus-visible {
    background: var(--vac-amber-soft);
    border-color: var(--vac-amber);
    color: #fff;
    outline: none;
}

.vacancyRole__cta.want_work:focus-visible {
    box-shadow: 0 0 0 2px rgba(254, 153, 0, 0.35);
}

.vacancyRole__body {
    margin-top: 18px;
    max-width: 72ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.35rem;
    line-height: 1.55;
}

.vacancyRole__body h2,
.vacancyRole__body h3,
.vacancyRole__body h4 {
    margin: 1.2em 0 0.55em;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.3;
}

.vacancyRole__body h2:first-child,
.vacancyRole__body h3:first-child,
.vacancyRole__body h4:first-child,
.vacancyRole__body p:first-child {
    margin-top: 0;
}

.vacancyRole__body p {
    margin: 0.7em 0;
}

.vacancyRole__body ul,
.vacancyRole__body ol {
    margin: 0.85em 0;
}

/* Keep room for global orange dashes; don't fight list markers */
.vacanciesPage.content .vacancyRole__body ul li {
    margin: 0.4em 0;
    overflow: visible;
}

.vacancyRole__body a,
.vacancyRole__body a:visited {
    color: var(--vac-amber);
    font-weight: 700;
    text-decoration: none;
}

.vacancyRole__body a:hover,
.vacancyRole__body a:focus {
    text-decoration: underline;
}

.vacancyRole__body strong {
    color: #fff;
}

@media (max-width: 700px) {
    .vacanciesHero {
        margin-bottom: 22px;
    }

    .vacanciesPerksStrip {
        margin-bottom: 28px;
        padding: 14px 0;
        flex-direction: column;
        gap: 6px;
    }

    .vacanciesPerksStrip__sep {
        display: none;
    }

    .vacancyRole {
        padding: 18px 0;
    }

    .vacancyRole__head {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .vacancyRole__media {
        width: 72px;
        height: 72px;
    }

    .vacancyRole__main {
        flex-direction: column;
        align-items: stretch;
    }

    .vacancyRole__cta.want_work {
        width: 100%;
    }

    .vacancyRole__body {
        font-size: 1.25rem;
    }
}
