/**
 * Gas Impex Core — Вакансии (тёмная тема)
 */

.gi-vac-wrap *,
.gi-vac-wrap *::before,
.gi-vac-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.gi-vac-wrap {
    width: 100%;
    font-family: 'Onest', sans-serif;
    color: #fff;
}

.gi-vac-header {
    text-align: center;
    margin-bottom: 48px;
}

.gi-vac-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gi-red);
    margin-bottom: 14px;
}

.gi-vac-title {
    font-family: 'Geologica', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
}

.gi-vac-title span { color: var(--gi-blue); }

.gi-vac-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Карточка вакансии — аккордеон */
.gi-vac-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.gi-vac-card:hover { border-color: #2a2a2a; }
.gi-vac-card.gi-vac-open { border-color: rgba(var(--gi-blue-rgb), 0.25); }

/* Шапка карточки */
.gi-vac-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gi-vac-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--gi-blue-rgb), 0.08);
    border: 1px solid rgba(var(--gi-blue-rgb), 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gi-vac-card.gi-vac-open .gi-vac-icon-wrap {
    background: rgba(var(--gi-red-rgb), 0.08);
    border-color: rgba(var(--gi-red-rgb), 0.22);
}

.gi-vac-icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke: var(--gi-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.gi-vac-card.gi-vac-open .gi-vac-icon-wrap svg {
    stroke: var(--gi-red);
}

.gi-vac-head-info { flex: 1; min-width: 0; }

.gi-vac-position {
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
}

.gi-vac-head-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.gi-vac-htag {
    font-size: 11px;
    color: #666;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 5px;
}

.gi-vac-toggle {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.gi-vac-card.gi-vac-open .gi-vac-toggle {
    background: rgba(var(--gi-red-rgb), 0.08);
}

.gi-vac-toggle svg {
    width: 14px;
    height: 14px;
    stroke: #555;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.35s ease, stroke 0.3s ease;
}

.gi-vac-card.gi-vac-open .gi-vac-toggle svg {
    transform: rotate(180deg);
    stroke: var(--gi-red);
}

/* Тело карточки */
.gi-vac-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.gi-vac-card.gi-vac-open .gi-vac-body {
    grid-template-rows: 1fr;
}

.gi-vac-body-inner {
    overflow: hidden;
    padding: 0 24px;
    transition: padding 0.4s ease;
}

.gi-vac-card.gi-vac-open .gi-vac-body-inner {
    padding: 0 24px 24px;
}

/* Секции внутри вакансии */
.gi-vac-section { margin-bottom: 18px; }
.gi-vac-section:last-child { margin-bottom: 0; }

.gi-vac-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gi-blue);
    margin-bottom: 8px;
}

.gi-vac-section-content {
    font-size: 13.5px;
    color: #999;
    line-height: 1.65;
}

.gi-vac-section-content ul { list-style: none; padding: 0; }

.gi-vac-section-content ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 4px;
}

.gi-vac-section-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gi-red);
}

/* Мета-линия */
.gi-vac-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(var(--gi-blue-rgb), 0.05);
    border: 1px solid rgba(var(--gi-blue-rgb), 0.12);
    border-radius: 10px;
    margin-bottom: 18px;
}

.gi-vac-meta-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #aaa;
}

.gi-vac-meta-pill svg {
    width: 14px;
    height: 14px;
    stroke: var(--gi-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Контакты и кнопка */
.gi-vac-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.gi-vac-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
}

.gi-vac-contact a {
    color: var(--gi-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}
.gi-vac-contact a:hover { color: #4d9ef5; }

.gi-vac-contact svg {
    width: 14px;
    height: 14px;
    stroke: var(--gi-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.gi-vac-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 10px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gi-red), #FB8304);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.gi-vac-apply-btn,
.gi-vac-apply-btn:hover,
.gi-vac-apply-btn:visited,
.gi-vac-apply-btn:focus {
    color: #fff !important;
}

.gi-vac-apply-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.gi-vac-apply-btn svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Пустое состояние */
.gi-vac-empty {
    text-align: center;
    padding: 60px 20px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 16px;
}

.gi-vac-empty svg {
    width: 48px;
    height: 48px;
    stroke: #333;
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 16px;
}

.gi-vac-empty p {
    color: #555;
    font-size: 15px;
}

@media (max-width: 768px) {
    .gi-vac-card-head { padding: 18px 16px; gap: 12px; }
    .gi-vac-body-inner { padding: 0 16px; }
    .gi-vac-card.gi-vac-open .gi-vac-body-inner { padding: 0 16px 20px; }
    .gi-vac-meta-row { flex-direction: column; gap: 8px; }
    .gi-vac-footer { flex-direction: column; align-items: stretch; }
    .gi-vac-apply-btn { margin-left: 0; justify-content: center; }
}
