.vacancy-page {
    padding-bottom: 64px;
    color: #222;
    font-family: OpenSans, Arial, sans-serif;
}

.vacancy-page__heading {
    margin: 24px 0;
    color: #222;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

.vacancy-list {
    display: grid;
    gap: 16px;
}

.vacancy-list__item {
    overflow: hidden;
    border: 1px solid #dce1ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 0 16px rgba(2, 0, 54, 0.08);
}

.vacancy-list__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    cursor: pointer;
    list-style: none;
}

.vacancy-list__summary::-webkit-details-marker {
    display: none;
}

.vacancy-list__title {
    margin: 0;
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.vacancy-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.vacancy-list__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vacancy-list__meta-item::before {
    width: 6px;
    height: 6px;
    content: '';
    background: #1c7bc9;
    border-radius: 50%;
}

.vacancy-list__toggle {
    display: flex;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #0d6b9a;
    border-radius: 8px;
    background: #f1f7fb;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.vacancy-list__toggle::before {
    width: 10px;
    height: 10px;
    content: '';
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.vacancy-list__item[open] .vacancy-list__toggle {
    background: #dceef7;
    transform: rotate(180deg);
}

.vacancy-list__body {
    padding: 0 24px 24px;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.vacancy-list__body > :first-child {
    margin-top: 0;
}

.vacancy-list__body > :last-child {
    margin-bottom: 0;
}

.vacancy-link,
.vacancy-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.vacancy-link {
    color: #fff;
    border-radius: 8px;
    background: #1c7bc9;
    box-shadow: 0 6px 14px rgba(28, 123, 201, 0.2);
}

.vacancy-link:hover {
    color: #fff;
    background: #0d6b9a;
    transform: translateY(-1px);
}

.vacancy-empty {
    margin: 24px 0;
    padding: 24px;
    color: #666;
    border-radius: 12px;
    background: #f1f7fb;
    font-size: 16px;
    line-height: 1.5;
}

.vacancy-detail {
    max-width: 920px;
}

.vacancy-detail__content {
    color: #383838;
    font-size: 16px;
    line-height: 1.6;
}

.vacancy-detail__content h2,
.vacancy-detail__content h3,
.vacancy-detail__content h4 {
    margin: 28px 0 12px;
    color: #222;
    font-weight: 600;
    line-height: 1.4;
}

.vacancy-detail__content h2 {
    font-size: 24px;
}

.vacancy-detail__content h3 {
    font-size: 20px;
}

.vacancy-detail__content img {
    max-width: 100%;
    height: auto;
}

.vacancy-contact-info {
    margin-top: 32px;
    color: #383838;
    font-size: 16px;
    line-height: 1.6;
}

.vacancy-contact-info__properties,
.vacancy-contact-info__email {
    margin: 0;
}

.vacancy-contact-info__properties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 8px;
}

.vacancy-contact-info__properties strong {
    color: #222;
}

.vacancy-contact-info__email a {
    color: #0d6b9a;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.vacancy-contact-info__email a:hover {
    color: #1c7bc9;
}

.vacancy-back-link {
    margin-top: 32px;
    color: #0d6b9a;
    border: 1px solid #9fcae0;
    border-radius: 8px;
    background: #fff;
}

.vacancy-back-link:hover {
    color: #0d6b9a;
    border-color: #1c7bc9;
    background: #f1f7fb;
    transform: translateX(-2px);
}

@media (max-width: 767px) {
    .vacancy-page { padding-bottom: 48px; }
    .vacancy-page__heading { margin: 16px 0 24px; font-size: 24px; }
    .vacancy-list__summary, .vacancy-list__body { padding-right: 16px; padding-left: 16px; }
    .vacancy-list__summary { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
    .vacancy-list__body, .vacancy-detail__content { font-size: 14px; }
    .vacancy-list__body { padding-bottom: 16px; }
    .vacancy-list__title { font-size: 16px; }
    .vacancy-list__toggle { width: 32px; height: 32px; }
    .vacancy-detail__content h2 { font-size: 20px; }
    .vacancy-detail__content h3 { font-size: 18px; }
    .vacancy-contact-info { margin-top: 24px; font-size: 14px; }
    .vacancy-contact-info__properties { gap: 4px 16px; }
}
