.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-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: 38px 40px 30px;
}

.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 22px;
    color: #111;
    font-size: 22px;
    font-weight: 500;
    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: 20px;
    line-height: 1;
    filter: saturate(1.2);
}

/* Единый увеличенный блок характеристик */

.stm-vacancy-summary {
    width: 100%;
    padding: 23px 26px;
    border: 1px solid var(--stm-vacancy-border);
    border-radius: 5px;
    background: var(--stm-vacancy-light);
}

.stm-vacancy-summary__salary {
    margin: 0 0 16px;
    color: #111;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.35;
}

.stm-vacancy-summary__salary span {
    color: #555;
    font-size: 17px;
    font-weight: 400;
}

.stm-vacancy-summary__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stm-vacancy-summary__items span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e1e7f3;
    border-radius: 4px;
    background: #fff;
    color: #343a46;
    font-size: 15px;
    line-height: 1.55;
}

/* Подробное описание */

.stm-vacancy-details {
    border-top: 1px solid #e5e5e5;
}

.stm-vacancy-details__inner {
    padding: 30px 40px 36px;
}

.stm-vacancies-page .stm-vacancy-details__section {
    margin: 0 0 25px;
}

.stm-vacancies-page .stm-vacancy-details__section h3 {
    margin: 0 0 14px;
    color: #111;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.stm-vacancies-page .stm-vacancy-details__section p {
    margin: 0 0 17px;
    color: #444;
    font-size: 14px;
    line-height: 1.8;
}

.stm-vacancies-page .stm-vacancy-details__section p:last-child {
    margin-bottom: 0;
}

/* Кнопки отклика */

.stm-vacancy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
}

.stm-vacancies-page .stm-vacancy-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    margin: 0;
    padding: 12px 22px;
    border: 1px solid #1baa1d;
    border-radius: 5px;
    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;
    box-shadow: none;
    cursor: pointer;
    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;
}

/* Кнопка hh.ru */

.stm-vacancies-page .stm-vacancy-hh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 50px;
    padding: 10px 24px;
    border: 1px solid #e80106;
    border-radius: 5px;
    background: #e80106;
    color: #fff !important;
    font-family: inherit;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s, border-color .2s;
}

.stm-vacancies-page .stm-vacancy-hh:hover {
    border-color: #bd0004;
    background: #bd0004;
    color: #fff !important;
}

/* Контактный блок */

.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: 5px;
    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-apply:focus-visible,
.stm-vacancies-page .stm-vacancy-hh:focus-visible {
    outline: 2px solid var(--stm-vacancy-accent);
    outline-offset: 3px;
}

/* Изображение внизу страницы */

.stm-vacancies-page .wp-image-8107 {
    display: block;
    width: 100% !important;
    max-width: 1200px;
    height: 200px !important;
    margin-top: 20px !important;
    object-fit: cover;
    object-position: center;
}

/* Планшеты */

@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: 30px 25px 25px;
    }

    .stm-vacancy-summary {
        padding: 20px;
    }

    .stm-vacancy-summary__items {
        gap: 8px;
    }

    .stm-vacancy-summary__items span {
        font-size: 14px;
    }

    .stm-vacancy-details__inner {
        padding: 25px;
    }
}

/* Мобильные устройства */

@media (max-width: 600px) {
    .stm-vacancies-page {
        font-size: 14px;
    }

    .stm-vacancy-card__header {
        padding: 22px 16px 20px;
    }

    .stm-vacancies-page .stm-vacancy-card__title {
        gap: 6px;
        margin-bottom: 17px;
        font-size: 17px;
        line-height: 1.5;
    }

    .stm-vacancy-fire {
        font-size: 17px;
    }

    .stm-vacancy-summary {
        padding: 17px 14px;
        border-radius: 5px;
    }

    .stm-vacancy-summary__salary {
        margin-bottom: 13px;
        font-size: 23px;
    }

    .stm-vacancy-summary__salary span {
        font-size: 15px;
    }

    .stm-vacancy-summary__items {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .stm-vacancy-summary__items span {
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.6;
    }

    .stm-vacancy-details__inner {
        padding: 21px 16px 24px;
    }

    .stm-vacancies-page .stm-vacancy-details__section h3 {
        font-size: 16px;
    }

    .stm-vacancies-page .stm-vacancy-details__section p {
        font-size: 13px;
        line-height: 1.8;
    }

    .stm-vacancy-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 82px;
        gap: 9px;
        margin-top: 23px;
    }

    .stm-vacancies-page .stm-vacancy-apply {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 11px 8px;
        border-radius: 5px;
        font-size: 12px;
    }

    .stm-vacancies-page .stm-vacancy-hh {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        padding: 10px 6px;
        border-radius: 5px;
        font-size: 21px;
    }

    .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;
        border-radius: 5px;
    }

    .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;
    }

    .stm-vacancies-page .wp-image-8107 {
        width: 100% !important;
        height: 180px !important;
    }
}

/* Уменьшение анимации по настройкам пользователя */

@media (prefers-reduced-motion: reduce) {
    .stm-vacancies-page *,
    .stm-vacancies-page *::before,
    .stm-vacancies-page *::after {
        transition: none !important;
        animation: none !important;
    }
}




/* Кнопки и дата обновления вакансии */
.stm-vacancies-page .stm-vacancy-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    width: 100%;
    margin-top: 28px;
}

.stm-vacancies-page .stm-vacancy-actions__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
}

.stm-vacancies-page .stm-vacancy-updated {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
    padding-bottom: 12px;
    color: #7a8497;
    font-size: 13px;
    line-height: 1.5;
    text-align: right;
}

.stm-vacancies-page .stm-vacancy-updated__label {
    color: #7a8497;
}

.stm-vacancies-page .stm-vacancy-updated__date {
    color: #343a46;
    font-weight: 500;
    white-space: nowrap;
}

/* Мобильная версия */
@media (max-width: 600px) {
    .stm-vacancies-page .stm-vacancy-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .stm-vacancies-page .stm-vacancy-actions__buttons {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 82px;
        gap: 9px;
        width: 100%;
    }

    .stm-vacancies-page .stm-vacancy-updated {
        justify-content: flex-end;
        width: 100%;
        margin-left: 0;
        padding-bottom: 0;
        font-size: 12px;
    }
}