/* ============================================================
   vacancies.css — listing page styles  v7
   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);
}

/* ── Hero ─────────────────────────────────────────────────── */
.vac-hero {
    padding: 70px 0 72px;
    text-align: center;
}

.vac-hero__eyebrow {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 70px;
    margin-bottom: 2rem;
}

.vac-hero__title {
    font-size: clamp(3.2rem, 4vw, 5.0rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--text);
    margin: 0 auto 2.8rem;
    max-width: 760px;
}

.vac-hero__desc {
    font-size: 1.55rem;
    line-height: 1.75;
    color: var(--text-sec);
    max-width: 64ch;
    margin: 0 auto;
}

.vac-hero__desc + .vac-hero__desc { margin-top: 1.4rem; }

/* ── Content width: match HTML mockup container (1200px) ─── */
.vac-values > .container,
.vac-list > .container {
    max-width: 1200px;
}

/* ── Values — card grid ───────────────────────────────────── */
.vac-values {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.vac-values__layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: start;
}

.vac-values__left {
    position: sticky;
    top: 88px;
}

.vac-values__label {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-sec);
    margin-bottom: 20px;
}

.vac-values__heading {
    font-size: clamp(2.4rem, 2.8vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.22;
    color: var(--text);
}

.vac-values__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-md);
    border: 1px solid var(--border-md);
    border-radius: 12px;
    overflow: hidden;
}

.value-card {
    background: var(--bg-2);
    padding: 34px 30px;
    transition: background 0.22s cubic-bezier(0.22,1,0.36,1);
}

.value-card:hover {
    background: rgba(131, 128, 255, 0.06);
}

.value-card__num {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 16px;
    font-feature-settings: "tnum";
}

.value-card__name {
    font-size: 2.0rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 12px;
    transition: color 0.2s;
}

.value-card:hover .value-card__name {
    color: var(--accent);
}

.value-card__text {
    font-size: 1.4rem;
    color: var(--text-sec);
    line-height: 1.68;
    margin: 0;
}

/* ── Vacancies list ───────────────────────────────────────── */
.vac-list {
    padding: 72px 0 96px;
}

.vac-list__hd {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-md);
    margin-bottom: 0;
}

/* Fix 1: section-label style, not h2 */
.vac-list__label {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-sec);
}

.vac-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.6rem;
    border-radius: 20px;
    background: var(--text-sec);
    color: var(--bg);
    font-size: 1.2rem;
    font-weight: 600;
}

.vac-list__table {
    display: flex;
    flex-direction: column;
}

.vac-row {
    display: grid;
    grid-template-columns: 1fr 150px 44px;
    align-items: center;
    gap: 2.4rem;
    padding: 2.8rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    position: relative;
}

.vac-row::before {
    content: '';
    position: absolute;
    inset: 0 -40px;
    background: var(--accent-lo);
    opacity: 0;
    transition: opacity 0.18s;
    pointer-events: none;
}

.vac-row:hover::before { opacity: 1; }

.vac-row__main {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.vac-row__title {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.vac-row:hover .vac-row__title { color: var(--accent); }

.vac-row__en {
    font-size: 1.3rem;
    color: var(--text-sec);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px; /* Fix 3: +flex gap 3px = 8px gap before desc */
}

/* Fix 2: show description (was display:none) */
.vac-row__desc {
    font-size: 1.4rem;
    color: var(--text-sec);
    line-height: 1.55;
}

.vac-row__exp {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-sec);
    text-align: right;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.vac-row__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.vac-row__arrow {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-md);
    background: var(--bg-2);
    color: var(--text-sec);
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s, transform 0.22s cubic-bezier(0.22,1,0.36,1);
}

.vac-row:hover .vac-row__arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.vac-row__arrow svg {
    display: block;
}

/* Empty state */
.vac-empty {
    text-align: center;
    padding: 6.4rem 0;
    color: var(--text-sec);
    border-top: 1px solid var(--border);
}

.vac-empty p {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.vac-empty a {
    color: var(--accent);
    text-decoration: underline;
}

/* ── CTA block ────────────────────────────────────────────── */
/* Fix 4+5: CTA теперь внутри .vac-list .container, margin-top вместо margin-bottom */
.vac-cta {
    margin-top: 4.8rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4rem 4.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.4rem;
    background: var(--bg-2);
}

.vac-cta__text {
    flex: 1;
    min-width: 0;
}

.vac-cta__text strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.vac-cta__text p {
    font-size: 1.4rem;
    color: var(--text-sec);
}

.vac-cta__email {
    color: var(--accent);
    text-decoration: none;
}

.vac-cta__email:hover {
    text-decoration: underline;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.3rem 2.4rem;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.12s;
}

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .vac-values__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vac-values__left {
        position: static;
    }
}

@media (max-width: 900px) {
    .vac-hero__title {
        font-size: 4rem;
    }

    .vac-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 3.2rem 2.4rem;
    }
}

@media (max-width: 640px) {
    .vac-hero {
        padding: 64px 0 48px;
        text-align: left;
    }

    .vac-hero__eyebrow {
        margin-bottom: 1.6rem;
    }

    .vac-hero__title {
        font-size: 3.2rem;
        margin-left: 0;
    }

    .vac-hero__desc {
        font-size: 1.5rem;
        margin-left: 0;
    }

    .vac-values {
        padding: 48px 0;
    }

    .vac-values__grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: 26px 22px;
    }

    .value-card__name {
        font-size: 1.8rem;
    }

    .vac-row {
        grid-template-columns: 1fr 44px;
    }

    .vac-row__exp {
        display: none;
    }

    .vac-cta {
        padding: 2.8rem 2rem;
    }
}
