/* Страница «Вакансии» */

.vacancies-intro {
    margin-bottom: 48px;
}

.vacancies-intro p:last-of-type {
    margin-bottom: 0;
}

.vacancies-intro .news-blockquote {
    margin-bottom: 0;
}

.vacancies-intro a {
    color: #d62828;
    font-weight: 600;
}

.vacancies-intro a:hover {
    text-decoration: underline;
}

.vacancies-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
}

.vacancy-card {
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vacancy-card:hover {
    border-color: rgba(214, 40, 40, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.dark-theme .vacancy-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.vacancy-card-head {
    padding: 28px 32px 22px;
    border-bottom: 1px solid var(--border-color);
    border-left: 4px solid #d62828;
}

.vacancy-card-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #d62828;
    margin-bottom: 10px;
}

.vacancy-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0 0 12px;
    line-height: 1.25;
}

.vacancy-card-lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 820px;
}

.vacancy-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.vacancy-col {
    padding: 26px 32px;
}

.vacancy-col + .vacancy-col {
    border-left: 1px solid var(--border-color);
}

.vacancy-col h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.vacancy-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vacancy-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

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

.vacancy-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #d62828;
    font-weight: bold;
}

.vacancy-conditions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-color);
    background: var(--blockquote-bg);
}

.vacancy-condition {
    padding: 18px 24px;
    border-right: 1px solid var(--border-color);
}

.vacancy-condition:last-child {
    border-right: none;
}

.vacancy-condition-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}

.vacancy-condition-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.45;
}

.vacancies-cta {
    text-align: center;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    border-top: 3px solid #d62828;
}

.vacancies-cta p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.vacancies-cta a {
    color: #d62828;
    font-weight: 600;
}

.vacancies-cta a:hover {
    text-decoration: underline;
}

.vacancies-contact {
    margin-top: 8px;
}

.vacancies-contact-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0 0 28px;
    letter-spacing: 0.5px;
}

.contacts-grid--single {
    width: 100%;
}

.vacancies-contact .contact-card {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.vacancies-contact .contact-info {
    flex: 0 1 auto;
}

.contact-card {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 30px;
    border-top: 3px solid #d62828;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--shadow-card, rgba(0, 0, 0, 0.08));
}

.contact-photo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-color);
}

.contact-photo--placeholder .contact-avatar {
    display: flex;
}

.contact-avatar {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d62828 0%, #9a1c1c 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-title, var(--text-primary));
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.contact-role {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.contact-link {
    display: block;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 4px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #d62828;
}

.contact-email {
    color: #d62828;
    font-weight: 500;
}

.contact-email:hover {
    color: var(--text-title, var(--text-primary));
}

@media (max-width: 900px) {
    .vacancy-card-body {
        grid-template-columns: 1fr;
    }

    .vacancy-col + .vacancy-col {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .vacancy-conditions {
        grid-template-columns: 1fr;
    }

    .vacancy-condition {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .vacancy-condition:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .vacancy-card-head,
    .vacancy-col {
        padding: 22px 20px;
    }

    .vacancy-condition {
        padding: 16px 20px;
    }

    .vacancies-cta {
        padding: 28px 20px;
    }

    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px;
    }
}
