.vacancy-component {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    color: #26382b;
}

.vacancy-component-card {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 16px 12px;
    border: 1px solid #bfd6c9;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 3px 7px #d0dccc;
    margin: 30px 0;
}

.vacancy-component-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 0 12px 12px;
    border-bottom: 1px solid #d8e4da;
}

.vacancy-component-icon {
    display: flex;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f4e3;
    color: #075b2d;
}

.vacancy-component-icon i {
    font-size: 2rem;
}

.vacancy-component-heading {
    min-width: 0;
}

.vacancy-component-heading h2 {
    margin: 0 0 4px;
    color: var(--site-primary-dark-color);
    font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.75rem);
    font-family: var(--site-font-family);
    line-height: 1.15;
}

.vacancy-component-description {
    color: #26382b;
    line-height: 1.35;
}

.vacancy-component-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 12px 0 10px;
}

.vacancy-component-column {
    min-width: 0;
    padding: 0 20px;
    border-right: 1px solid #d8e4da;
}

.vacancy-component-column:first-child {
    padding-left: 12px;
}

.vacancy-component-column:last-child {
    padding-right: 12px;
    border-right: 0;
}

.vacancy-component-column h3 {
    margin: 0 0 8px;
    color: #075b2d;
    font-size: 0.95rem;
    font-family: var(--site-font-family);
    font-weight: 600;
    line-height: 1.2;
}

.vacancy-component-column ul {
    margin: 0;
    padding-left: 18px;
}

.vacancy-component-column li,
.vacancy-component-conditions div {
    margin-bottom: 5px;
    line-height: 1.32;
}

.vacancy-component-column li:last-child {
    margin-bottom: 0;
}

.vacancy-component-conditions p {
    margin-top: 0;
}

.vacancy-component-conditions p:last-child {
    margin-bottom: 0;
}

.vacancy-component-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 4px 0;
    border-top: 1px solid #d8e4da;
    background: #ffffff;
    color: #26382b;
    overflow: visible;
}

.vacancy-component-footer::after {
    display: none;
    pointer-events: none;
}

.vacancy-component-contacts {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #26382b;
}

.vacancy-component-contacts i {
    flex: 0 0 auto;
    color: #075b2d;
    font-size: 1.2rem;
}

.vacancy-component-contacts strong {
    color: #075b2d;
}

.vacancy-component-submit,
.vacancy-component-send {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    background: var(--site-primary-color);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.vacancy-component-submit:hover,
.vacancy-component-submit:focus,
.vacancy-component-send:hover,
.vacancy-component-send:focus {
    background: var(--site-primary-light-color);
    color: #ffffff;
}

.vacancy-component-submit:disabled,
.vacancy-component-send:disabled {
    cursor: wait;
    opacity: 0.65;
}

.vacancy-component-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vacancy-component-modal[hidden] {
    display: none;
}

.vacancy-component-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 16, 0.62);
}

.vacancy-component-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 40, 16, 0.28);
}

.vacancy-component-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #dbe5d8;
}

.vacancy-component-modal-header h2 {
    margin: 0;
    color: #075b2d;
    font-size: 24px;
}

.vacancy-component-modal-close {
    padding: 0;
    border: 0;
    background: transparent;
    color: #075b2d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.vacancy-component-modal-body {
    padding: 24px;
}

.vacancy-component-message {
    margin-bottom: 16px;
}

.vacancy-component-message:empty {
    display: none;
}

.vacancy-component-message-success,
.vacancy-component-message-warning,
.vacancy-component-message-error {
    padding: 12px 14px;
}

.vacancy-component-message-success {
    background: #dbebd4;
    color: #075b2d;
}

.vacancy-component-message-warning {
    background: #fff3cd;
    color: #765400;
}

.vacancy-component-message-error {
    background: #f8dddd;
    color: #8b1e1e;
}

.vacancy-component-field {
    margin-bottom: 18px;
}

.vacancy-component-field label,
.vacancy-component-captcha-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

.vacancy-component-field input,
.vacancy-component-field textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b8c8b4;
    background: #ffffff;
    color: #26382b;
    font: inherit;
}

.vacancy-component-field textarea {
    min-height: 100px;
    resize: vertical;
}

.vacancy-component-field small {
    display: block;
    margin-top: 6px;
    color: #667568;
    line-height: 1.35;
}

.vacancy-component-captcha-visual {
    position: relative;
    display: inline-flex;
    width: 130px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
    background: #f2f8eb;
}

.vacancy-component-captcha-visual img {
    display: block;
    width: 130px;
    height: 60px;
}

.vacancy-component-captcha-visual.is-loading img {
    filter: blur(3px);
}

.vacancy-component-captcha-visual span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    margin-top: -13px;
    margin-left: -13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: #075b2d;
}

.vacancy-component-captcha-visual span[hidden] {
    display: none;
}

.vacancy-component-captcha-refresh {
    margin-right: 8px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #075b2d;
    cursor: pointer;
    vertical-align: middle;
}

.vacancy-component-captcha-refresh:disabled {
    cursor: wait;
    opacity: 0.55;
}

.vacancy-component-captcha input[name="captcha"] {
    display: inline-block;
    width: 130px;
    vertical-align: middle;
}

@media (max-width: 800px) {
    .vacancy-component-columns {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vacancy-component-column,
    .vacancy-component-column:first-child,
    .vacancy-component-column:last-child {
        padding: 0 12px;
        border-right: 0;
    }

    .vacancy-component-column:not(:last-child) {
        padding-bottom: 14px;
        border-bottom: 1px solid #d8e4da;
    }
}

@media (max-width: 640px) {
    .vacancy-component-card {
        padding: 12px 10px 10px;
    }

    .vacancy-component-header {
        gap: 12px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .vacancy-component-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .vacancy-component-icon i {
        font-size: 1.5rem;
    }

    .vacancy-component-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .vacancy-component-contacts {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .vacancy-component-submit {
        width: 100%;
    }

    .vacancy-component-modal {
        padding: 12px;
    }

    .vacancy-component-modal-dialog {
        max-height: calc(100vh - 24px);
    }

    .vacancy-component-modal-header,
    .vacancy-component-modal-body {
        padding: 18px;
    }

    .vacancy-component-captcha-visual,
    .vacancy-component-captcha-visual img {
        width: 116px;
    }

    .vacancy-component-captcha-visual,
    .vacancy-component-captcha-visual img {
        height: 54px;
    }

    .vacancy-component-captcha input[name="captcha"] {
        width: 116px;
    }
}
