/* ============================================================
   vacancy.css — single vacancy page styles  v9
   Depends on: public/css/styles.min.css (variables, fonts, .container, nav)
   ============================================================ */

/* ── CSS variable fallbacks (theme doesn't define these globally) ── */
:root {
    --bg:        #010102;
    --bg-2:      #0b0b14;
    --text:      #F3F3FF;
    --text-sec:  #8181A3;
    --accent:    #8380FF;
    --accent-lo: rgba(131, 128, 255, 0.07);
    --border:    rgba(243, 243, 255, 0.08);
    --border-md: rgba(243, 243, 255, 0.13);
}

/* ── Page wrapper ─────────────────────────────────────────── */
.vd-page {
    padding-top: 70px;   /* = nav height; .vd-hd starts flush below nav (Fix 9) */
    padding-bottom: 96px;
}

/* ── Header: title + pills ────────────────────────────────── */
.vd-hd {
    padding: 7rem 0 4.8rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 5.6rem;
}

.vd-hd__title {
    font-size: clamp(3.0rem, 4vw, 4.8rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2.4rem;
}

.vd-hd__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.vd-pill {
    display: inline-flex;
    align-items: center;
    height: 3.2rem;
    padding: 0 1.4rem;
    border-radius: 6px;
    background: var(--bg-2);
    border: 1px solid var(--border-md);
    color: var(--text-sec);
    font-size: 1.3rem;
    font-weight: 400;
    white-space: nowrap;
}

/* ── Two-column layout ────────────────────────────────────── */
.vd-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 6.4rem;
    align-items: start;
}

/* ── Content column ───────────────────────────────────────── */
.vd-content {
    min-width: 0;
}

.vd-sec {
    padding-bottom: 4.8rem;
    margin-bottom: 4.8rem;
    border-bottom: 1px solid var(--border);
}

.vd-sec:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.vd-sec__label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 2.4rem;
}

.vd-lead {
    font-size: 1.65rem;
    line-height: 1.75;
    color: var(--text-sec);
    max-width: 62ch;
}

/* Fix 6: Numbered list from WP WYSIWYG (<ol>) */
.vd-content ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    counter-reset: vd-counter;
}

.vd-content ol li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    font-size: 1.55rem;
    line-height: 1.6;
    color: var(--text);
    counter-increment: vd-counter;
}

.vd-content ol li::before {
    content: counter(vd-counter, decimal-leading-zero);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-sec);
    flex-shrink: 0;
    margin-top: 0.2rem;
    min-width: 2.4rem;
}

/* Styled lists from WYSIWYG content */
.vd-content ul,
.vd-numlist,
.vd-plainlist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.vd-content ul li,
.vd-numlist li,
.vd-plainlist li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    font-size: 1.55rem;
    line-height: 1.6;
    color: var(--text);
}

.vd-content ul li::before,
.vd-plainlist li::before {
    content: '—';
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-sec);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* nested lists */
.vd-content ul li ul {
    margin-top: 0.8rem;
    gap: 0.6rem;
}

.vd-content ul li ul li {
    font-size: 1.4rem;
    color: var(--text-sec);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.vd-sidebar {
    /* sticky handled via ScrollTrigger JS — position:sticky breaks inside ScrollSmoother transform */
}

.vd-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.vd-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.4;
}

.vd-card__facts {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    padding-bottom: 2.8rem;
    border-bottom: 1px solid var(--border);
}

.vd-fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.8rem;
}

.vd-fact__label {
    font-size: 1.3rem;
    color: var(--text-sec);
    flex-shrink: 0;
}

.vd-fact__val {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    text-align: right;
}

/* Fix 8: +4px к flex gap 24px → итого 28px до кнопки, как в макете */
.vd-card .btn-accent {
    margin-top: 0.4rem;
}

/* CTA button */
.btn-accent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1.4rem 2rem;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.12s;
}

.btn-accent:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Contact */
.vd-contact {
    font-size: 1.3rem;
    color: var(--text-sec);
    text-align: center;
    line-height: 1.5;
    margin-top: -0.8rem;
}

.vd-contact p { margin-bottom: 0.4rem; }

.vd-contact a {
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.vd-contact a:hover {
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 860px) {
    .vd-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .vd-sidebar {
        order: -1;
        position: static;
    }

    .vd-hd__title {
        font-size: 3.6rem;
    }
}

@media (max-width: 640px) {
    .vd-page {
        padding-bottom: 64px;
    }

    .vd-hd {
        padding: 2.4rem 0 3.2rem;
        margin-bottom: 3.2rem;
    }

    .vd-hd__title {
        font-size: 2.8rem;
        line-height: 1.15;
    }

    .vd-hd__pills {
        gap: 0.6rem;
    }

    .vd-pill {
        font-size: 1.2rem;
        padding: 0 1rem;
        height: 2.8rem;
    }

    .vd-sec {
        padding-bottom: 2.8rem;
        margin-bottom: 2.8rem;
    }

    .vd-lead {
        font-size: 1.5rem;
    }

    .vd-card {
        padding: 2rem;
    }
}
