.stm-vacancies-page {
    --stm-vacancy-blue: #001b72;
    --stm-vacancy-accent: #315cff;
    --stm-vacancy-green: #1baa1d;
    --stm-vacancy-light: #f3f6ff;
    --stm-vacancy-border: #e1e7f3;
    --stm-vacancy-text: #252b38;
    --stm-vacancy-muted: #7a8497;

    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0;
    color: var(--stm-vacancy-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
}

.stm-vacancies-page *,
.stm-vacancies-page *::before,
.stm-vacancies-page *::after {
    box-sizing: border-box;
}

.stm-vacancies-page p {
    margin: 0 0 15px;
}

.stm-vacancies-page a {
    text-decoration: none;
}

.stm-vacancies-page h2,
.stm-vacancies-page h3 {
    font-family: inherit;
    text-transform: none;
}

.stm-vacancies-page svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Вступительное описание */

.stm-vacancies-intro {
    width: 100%;
    margin: 0 0 30px;
}

.stm-vacancies-page .stm-vacancies-intro p {
    margin: 0;
    color: #444 !important;
    font-size: 16px;
    line-height: 1.75;
}

/* Карточка вакансии */

.stm-vacancy-card {
    width: 100%;
    margin: 0 0 40px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #111;
}

.stm-vacancy-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 46px 40px 20px;
}

.stm-vacancy-card__main {
    flex: 1 1 auto;
    min-width: 0;
}

.stm-vacancies-page .stm-vacancy-card__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: #111;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
}

.stm-vacancies-page .stm-vacancy-card__title a {
    color: #111;
    text-decoration: none;
    transition: color .2s;
}

.stm-vacancies-page .stm-vacancy-card__title a:hover {
    color: var(--stm-vacancy-blue);
}

.stm-vacancy-fire {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    filter: saturate(1.2);
}

.stm-vacancy-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    color: #7a8497;
    font-size: 13px;
    line-height: 1.7;
}

.stm-vacancy-separator {
    color: #a3a8b1;
}

.stm-vacancy-card__right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 28px;
}

.stm-vacancy-card__salary {
    padding-top: 1px;
    color: #111;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
}

.stm-vacancies-page .stm-vacancy-toggle {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #888;
    box-shadow: none;
    cursor: pointer;
    transition: color .2s, transform .2s;
}

.stm-vacancy-toggle:hover {
    color: var(--stm-vacancy-blue);
    background: transparent;
}

.stm-vacancy-toggle__icon {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
}

.stm-vacancy-toggle__icon::before,
.stm-vacancy-toggle__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 1.5px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform .2s;
}

.stm-vacancy-toggle__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.stm-vacancy-card.is-expanded .stm-vacancy-toggle__icon::after {
    transform: translate(-50%, -50%) rotate(0);
}

.stm-vacancies-page .stm-vacancy-card__excerpt {
    margin: 0;
    padding: 0 40px 49px;
    color: #222;
    font-size: 15px;
    line-height: 1.75;
}

/* Подробное описание */

.stm-vacancy-details {
    border-top: 1px solid #e5e5e5;
}

.stm-vacancy-details[hidden] {
    display: none !important;
}

.stm-vacancy-details__inner {
    padding: 30px 40px 36px;
}

.stm-vacancy-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 25px;
    margin: 0 0 30px;
    padding: 0 0 25px;
    border-bottom: 1px solid var(--stm-vacancy-border);
}

.stm-vacancy-fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.stm-vacancy-fact__label {
    color: #7a8497;
    font-size: 13px;
    line-height: 1.5;
}

.stm-vacancies-page .stm-vacancy-fact strong {
    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.stm-vacancies-page .stm-vacancy-details__section {
    margin: 0 0 25px;
}

.stm-vacancies-page .stm-vacancy-details__section h3 {
    margin: 0 0 10px;
    color: #111;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.stm-vacancies-page .stm-vacancy-details__section p,
.stm-vacancies-page .stm-vacancy-details__section li {
    color: #444;
    font-size: 14px;
    line-height: 1.8;
}

.stm-vacancies-page .stm-vacancy-details__section p {
    margin: 0;
}

.stm-vacancies-page .stm-vacancy-details__section ul {
    margin: 0;
    padding-left: 22px;
}

.stm-vacancies-page .stm-vacancy-details__section li {
    margin-bottom: 5px;
    padding-left: 2px;
}

.stm-vacancies-page .stm-vacancy-details__section li:last-child {
    margin-bottom: 0;
}

/* Зелёная кнопка отклика */

.stm-vacancies-page .stm-vacancy-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    margin-top: 3px;
    padding: 12px 22px;
    border: 1px solid #1baa1d;
    border-radius: 0;
    background: #1baa1d;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s, border-color .2s;
}

.stm-vacancies-page .stm-vacancy-apply:hover {
    border-color: #168a19;
    background: #168a19;
    color: #fff !important;
}

.stm-vacancy-apply span {
    font-size: 18px;
}

/* Контактный блок */

.stm-vacancies-page .stm-vacancies-contact {
    width: 100%;
    margin: 40px 0 30px !important;
    padding: 30px !important;
    border: 1px solid var(--stm-vacancy-border);
    background: var(--stm-vacancy-light);
}

.stm-vacancies-page .stm-vacancies-contact__left h2 {
    margin: 0 0 10px !important;
    color: #171717 !important;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.3;
}

.stm-vacancies-page .stm-vacancies-contact__description {
    max-width: none;
    margin: 0 0 22px !important;
    color: #333 !important;
    font-size: 15px;
    line-height: 1.75;
}

.stm-vacancies-contact__methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0;
    align-items: stretch;
}

.stm-vacancies-page .stm-vacancies-contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-width: 0;
    min-height: 105px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--stm-vacancy-border);
    border-radius: 0;
    background: #fff;
    color: var(--stm-vacancy-text);
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.stm-vacancies-page .stm-vacancies-contact-card:hover {
    border-color: var(--stm-vacancy-accent);
    background: #fff;
    color: var(--stm-vacancy-text);
    box-shadow: 0 5px 18px rgba(0, 27, 114, .08);
}

.stm-vacancies-page .stm-vacancies-contact-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--stm-vacancy-light);
    color: var(--stm-vacancy-blue);
}

.stm-vacancies-page .stm-vacancies-contact-icon svg {
    width: 25px;
    height: 25px;
}

.stm-vacancies-contact-info {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.stm-vacancies-page .stm-vacancies-contact-info small {
    display: block;
    margin-bottom: 4px;
    color: #596579;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.stm-vacancies-page .stm-vacancies-contact-info strong {
    display: block;
    color: var(--stm-vacancy-blue);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: color .2s;
}

.stm-vacancies-page .stm-vacancies-contact-card:hover strong {
    color: var(--stm-vacancy-accent);
}

.stm-vacancies-page .stm-vacancies-question-button {
    appearance: none;
    -webkit-appearance: none;
}

.stm-vacancies-page .stm-vacancies-question-button:focus-visible,
.stm-vacancies-page .stm-vacancy-toggle:focus-visible,
.stm-vacancies-page .stm-vacancy-apply:focus-visible {
    outline: 2px solid var(--stm-vacancy-accent);
    outline-offset: 3px;
}


/* Шапка карточки: изображение и информация в одну строку */
.stm-vacancies-page .stm-vacancy-card__header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* Квадратное изображение слева */
.stm-vacancies-page .stm-vacancy-card__image {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
}

.stm-vacancies-page .stm-vacancy-card__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* Заголовок, характеристики и описание справа */
.stm-vacancies-page .stm-vacancy-card__main {
    flex: 1 1 auto;
    min-width: 0;
}

.stm-vacancies-page .stm-vacancy-card__excerpt {
    margin: 16px 0 0 !important;
    padding: 0 !important;
    color: #222;
    font-size: 15px;
    line-height: 1.75;
}

/* Зарплата и кнопка справа */
.stm-vacancies-page .stm-vacancy-card__right {
    flex: 0 0 auto;
}

/* Планшеты */
@media (max-width: 1000px) {
    .stm-vacancies-page .stm-vacancy-card__header {
        gap: 18px;
    }

    .stm-vacancies-page .stm-vacancy-card__image {
        flex-basis: 130px;
        width: 130px;
        height: 130px;
    }
}

/* Телефоны */
@media (max-width: 600px) {
    .stm-vacancies-page .stm-vacancy-card__header {
        flex-wrap: wrap;
        gap: 14px;
        padding: 22px 16px 20px;
    }

    .stm-vacancies-page .stm-vacancy-card__image {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }

    .stm-vacancies-page .stm-vacancy-card__main {
        flex: 1 1 calc(100% - 114px);
    }

    .stm-vacancies-page .stm-vacancy-card__excerpt {
        margin-top: 12px !important;
        font-size: 13px;
    }

    .stm-vacancies-page .stm-vacancy-card__right {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0;
    }
}


/* Изображение слева в карточке вакансии */
.stm-vacancies-page .stm-vacancy-card__header {
    align-items: flex-start;
}

.stm-vacancies-page .stm-vacancy-card__image {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f6ff;
}

.stm-vacancies-page .stm-vacancy-card__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* Основной текст занимает оставшееся пространство */
.stm-vacancies-page .stm-vacancy-card__main {
    flex: 1 1 auto;
    min-width: 0;
}

/* Адаптация для телефонов */
@media (max-width: 600px) {
    .stm-vacancies-page .stm-vacancy-card__header {
        flex-wrap: wrap;
        gap: 14px;
        padding: 20px 16px 15px;
    }

    .stm-vacancies-page .stm-vacancy-card__image {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }

    .stm-vacancies-page .stm-vacancy-card__main {
        flex: 1 1 calc(100% - 114px);
    }

    .stm-vacancies-page .stm-vacancy-card__right {
        margin-left: auto;
    }
}



/* Планшеты */

@media (max-width: 1000px) {
    .stm-vacancies-contact__methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stm-vacancies-page .stm-vacancies-contact-card:last-child {
        grid-column: 1 / -1;
    }

    .stm-vacancy-card__header {
        padding: 32px 25px 18px;
    }

    .stm-vacancies-page .stm-vacancy-card__excerpt {
        padding: 0 25px 32px;
    }

    .stm-vacancy-details__inner {
        padding: 25px;
    }

    .stm-vacancy-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Мобильные устройства */

@media (max-width: 600px) {
    .stm-vacancies-page {
        font-size: 14px;
    }

    .stm-vacancies-page .stm-vacancies-intro p {
        font-size: 14px;
        line-height: 1.8;
    }

    .stm-vacancy-card__header {
        gap: 12px;
        padding: 22px 16px 15px;
    }

    .stm-vacancies-page .stm-vacancy-card__title {
        gap: 6px;
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.5;
    }

    .stm-vacancy-fire {
        font-size: 16px;
    }

    .stm-vacancy-card__meta {
        gap: 4px 7px;
        font-size: 12px;
    }

    .stm-vacancy-card__right {
        gap: 8px;
    }

    .stm-vacancy-card__salary {
        max-width: 100px;
        font-size: 13px;
        line-height: 1.5;
        white-space: normal;
        text-align: right;
    }

    .stm-vacancies-page .stm-vacancy-toggle {
        flex-basis: 20px;
        width: 20px;
        height: 24px;
    }

    .stm-vacancies-page .stm-vacancy-card__excerpt {
        padding: 0 16px 23px;
        font-size: 13px;
        line-height: 1.8;
    }

    .stm-vacancy-details__inner {
        padding: 21px 16px 24px;
    }

    .stm-vacancy-facts {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 23px;
        padding-bottom: 20px;
    }

    .stm-vacancies-page .stm-vacancy-fact strong {
        font-size: 13px;
    }

    .stm-vacancies-page .stm-vacancy-details__section h3 {
        font-size: 16px;
    }

    .stm-vacancies-page .stm-vacancy-details__section p,
    .stm-vacancies-page .stm-vacancy-details__section li {
        font-size: 13px;
    }

    .stm-vacancies-page .stm-vacancy-apply {
        display: flex;
        width: 100%;
        padding: 12px 15px;
        font-size: 13px;
    }

    .stm-vacancies-page .stm-vacancies-contact {
        margin-top: 26px !important;
        margin-bottom: 30px !important;
        padding: 21px 17px !important;
    }

    .stm-vacancies-page .stm-vacancies-contact__left h2 {
        margin-bottom: 10px !important;
        font-size: 23px;
    }

    .stm-vacancies-page .stm-vacancies-contact__description {
        margin-bottom: 20px !important;
        font-size: 14px;
    }

    .stm-vacancies-contact__methods {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .stm-vacancies-page .stm-vacancies-contact-card,
    .stm-vacancies-page .stm-vacancies-contact-card:last-child {
        min-height: 88px;
        padding: 17px;
        gap: 13px;
        grid-column: auto;
    }

    .stm-vacancies-page .stm-vacancies-contact-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .stm-vacancies-page .stm-vacancies-contact-icon svg {
        width: 23px;
        height: 23px;
    }

    .stm-vacancies-page .stm-vacancies-contact-info small {
        font-size: 12px;
    }

    .stm-vacancies-page .stm-vacancies-contact-info strong {
        font-size: 14px;
    }
}

/* Уменьшение анимации по настройкам пользователя */

@media (prefers-reduced-motion: reduce) {
    .stm-vacancies-page *,
    .stm-vacancies-page *::before,
    .stm-vacancies-page *::after {
        transition: none !important;
        animation: none !important;
    }
}