/* ================================================================
   Vacancies block (Vakances)
   .vc-list   — vacancy cards (<details>): title, department, chips,
                summary, duties / requirements / offer, apply button
   .vc-empty  — card shown when there are no open vacancies
   Section head reuses .pub-section / .pub-section__head
   from publications-block.css
   ================================================================ */

.vc-block * {
    box-sizing: border-box;
}

.vc-block p {
    margin: 0;
}

.vc-count {
    margin: 0 0 18px !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pub-bordo-soft);
}

.vc-count b {
    margin-left: 6px;
    font-size: 22px;
    letter-spacing: 0;
    color: var(--pub-bordo);
}

/* buttons */

.vc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid var(--pub-bordo);
    border-radius: 999px;
    background-color: var(--pub-bordo);
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.vc-btn svg {
    width: 19px;
    height: 19px;
}

.vc-btn:hover {
    border-color: var(--pub-red);
    background-color: var(--pub-red);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(107, 12, 38, .2);
}

.vc-btn--ghost {
    border-color: var(--pub-line);
    background-color: #fff;
    color: var(--pub-bordo);
}

.vc-btn--ghost:hover {
    border-color: var(--pub-bordo);
    background-color: var(--pub-card);
    color: var(--pub-bordo);
    box-shadow: none;
}

/* ================= vacancy cards ================= */

.vc-list {
    display: grid;
    gap: 18px;
}

.vc-card {
    border: 1px solid var(--pub-line);
    border-radius: 18px;
    background-color: #fff;
    box-shadow: var(--pub-shadow-s);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.vc-card:hover,
.vc-card[open] {
    border-color: #e2c3ca;
    box-shadow: var(--pub-shadow-m);
}

.vc-card__head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 30px;
    list-style: none;
    cursor: pointer;
}

.vc-card__head::-webkit-details-marker {
    display: none;
}

.vc-card__head:focus-visible {
    outline: 2px solid var(--pub-red);
    outline-offset: -2px;
    border-radius: 18px;
}

.vc-card__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--pub-red), var(--pub-bordo));
    color: #fff;
    box-shadow: 0 10px 22px rgba(107, 12, 38, .22);
}

.vc-card__icon svg {
    width: 28px;
    height: 28px;
}

.vc-card__main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.vc-card__dept {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pub-bordo-soft);
}

.vc-card__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pub-bordo);
}

.vc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.vc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--pub-line);
    border-radius: 999px;
    background-color: #fff;
    font-size: 13px;
    line-height: 1.4;
    color: var(--pub-ink);
}

.vc-chip svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    color: var(--pub-red);
}

.vc-chip--accent {
    border-color: transparent;
    background-color: var(--pub-card);
    color: var(--pub-bordo);
}

/* plus that turns into a minus */
.vc-card__toggle {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pub-line);
    border-radius: 50%;
    transition: background-color .25s ease, border-color .25s ease, transform .3s ease;
}

.vc-card__toggle::before,
.vc-card__toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    border-radius: 2px;
    background-color: var(--pub-bordo);
    transition: transform .3s ease, background-color .25s ease;
}

.vc-card__toggle::after {
    transform: rotate(90deg);
}

.vc-card__head:hover .vc-card__toggle {
    border-color: var(--pub-bordo);
}

.vc-card[open] .vc-card__toggle {
    border-color: var(--pub-bordo);
    background-color: var(--pub-bordo);
}

.vc-card[open] .vc-card__toggle::before,
.vc-card[open] .vc-card__toggle::after {
    background-color: #fff;
}

.vc-card[open] .vc-card__toggle::after {
    transform: rotate(0deg);
}

.vc-card__body {
    padding: 0 30px 30px 108px;
    animation: vc-open .35s ease;
}

@keyframes vc-open {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.vc-card__summary {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--pub-muted);
}

.vc-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.vc-cols--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vc-cols--1 {
    grid-template-columns: minmax(0, 1fr);
}

.vc-col {
    padding: 20px 22px;
    border-radius: 14px;
    background-color: #fdf8f9;
}

.vc-col__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--pub-bordo);
}

.vc-col__list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vc-col__list li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--pub-ink);
}

.vc-col__list li::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 2px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--pub-red);
    border-radius: 50%;
}

.vc-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #f1e6e9;
}

.vc-salary {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vc-salary__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pub-bordo-soft);
}

.vc-salary__value {
    font-size: 22px;
    color: var(--pub-bordo);
}

.vc-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.vc-card__note {
    margin-top: 16px !important;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pub-muted);
}

/* ================= empty state ================= */

.vc-empty {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    overflow: hidden;
    padding: 48px 56px;
    border: 1px solid var(--pub-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 50%, rgba(141, 11, 44, .07), rgba(141, 11, 44, 0) 42%),
        #fff;
    box-shadow: var(--pub-shadow-m);
}

.vc-empty::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border: 1px solid #f1e3e7;
    border-radius: 50%;
    box-shadow: 0 0 0 36px rgba(250, 242, 243, .6), 0 0 0 72px rgba(250, 242, 243, .35);
    pointer-events: none;
}

.vc-empty__art {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
}

.vc-empty__ring {
    position: absolute;
    inset: 0;
    border: 1px dashed #dcbcc5;
    border-radius: 50%;
    animation: vc-spin 40s linear infinite;
}

.vc-empty__ring::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--pub-red);
    box-shadow: 0 0 0 5px rgba(141, 11, 44, .12);
}

@keyframes vc-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-empty__ring,
    .vc-card__body {
        animation: none;
    }
}

.vc-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 28px;
    background: linear-gradient(145deg, var(--pub-red), var(--pub-bordo));
    color: #fff;
    box-shadow: 0 16px 34px rgba(107, 12, 38, .25);
}

.vc-empty__icon svg {
    width: 46px;
    height: 46px;
}

.vc-empty__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.vc-empty__title {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pub-bordo);
}

.vc-empty__text {
    margin-top: 12px !important;
    font-size: 16px;
    line-height: 1.7;
    color: var(--pub-muted);
}

.vc-empty .vc-btn {
    margin-top: 24px;
}

/* ================= adaptive ================= */

@media (max-width: 1024px) {
    .vc-card__body {
        padding-left: 30px;
    }

    .vc-cols,
    .vc-cols--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vc-empty {
        gap: 36px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .vc-card__head {
        align-items: flex-start;
        gap: 16px;
        padding: 22px;
    }

    .vc-card__icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .vc-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .vc-card__title {
        font-size: 21px;
    }

    .vc-card__toggle {
        width: 38px;
        height: 38px;
    }

    .vc-card__body {
        padding: 0 22px 24px;
    }

    .vc-cols,
    .vc-cols--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .vc-empty {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
        padding: 32px 26px;
    }

    .vc-empty__art {
        width: 116px;
        height: 116px;
    }

    .vc-empty__icon {
        width: 76px;
        height: 76px;
        border-radius: 22px;
    }

    .vc-empty__icon svg {
        width: 36px;
        height: 36px;
    }

    .vc-empty__title {
        font-size: 25px;
    }
}

@media (max-width: 576px) {
    .vc-card {
        border-radius: 16px;
    }

    .vc-card__head {
        flex-wrap: wrap;
        padding: 18px 16px;
    }

    .vc-card__main {
        order: 3;
        flex-basis: 100%;
    }

    .vc-card__toggle {
        margin-left: auto;
    }

    .vc-card__body {
        padding: 0 16px 20px;
    }

    .vc-col {
        padding: 16px;
    }

    .vc-card__actions,
    .vc-card__actions .vc-btn {
        width: 100%;
    }

    .vc-empty {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .vc-empty .vc-btn {
        width: 100%;
    }
}