/* ============================================
   СТРАНИЦА ВАКАНСИЙ — vacancies.css
   ============================================ */


/* ============================================
   ПЕРВЫЙ ЭКРАН - HERO ВАКАНСИЙ
   ============================================ */

.vacancies-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 80px 30px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Декоративный фоновый логотип (размытый, как на втором экране главной) */
.vacancies-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.45;
    filter: blur(22px);
    -webkit-filter: blur(22px);
    pointer-events: none;
}

.vacancies-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Основной контейнер — две колонки */
.vacancies-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ---- Левая колонка ---- */
.vacancies-hero-left {
    flex: 1;
    color: #fff;
}

.vacancies-hero-text {
    max-width: 600px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.vacancies-hero-title {
    font-family: 'Benzin', Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px 0;
    line-height: 1.1;

}

.vacancies-hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.vacancies-hero-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
    text-align: left;
    display: inline-block;
}

.vacancies-hero-text li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 14px;
}

.vacancies-hero-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #E403C2;
}

/* Контейнер кнопок */
.vacancies-hero-content .contact-buttons,
.vacancies-slider-cta {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
}

/* Базовый стиль кнопок (наследуется от hero-btn) */
.vacancies-hero-content .hero-btn,
.vacancies-slider-cta .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(13px, 1.5vw, 16px);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    border: none;
    outline: none;
}

.vacancies-hero-content .hero-btn:hover,
.vacancies-slider-cta .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(228, 3, 194, 0.35);
    opacity: 0.9;
}

.vacancies-hero-content .hero-btn:active,
.vacancies-slider-cta .hero-btn:active {
    transform: translateY(0);
}

/* Кнопка «Написать» (Telegram) */
.vacancies-hero-content .fourth-tg-btn,
.vacancies-slider-cta .fourth-tg-btn {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #E403C2;
    min-width: 180px;
}

.vacancies-hero-content .fourth-tg-btn:hover,
.vacancies-slider-cta .fourth-tg-btn:hover {
    background-color: rgba(228, 3, 194, 0.1);
}

/* Иконка внутри кнопки */
.vacancies-hero-content .btn-icon,
.vacancies-slider-cta .btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---- Правая колонка ---- */
.vacancies-hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vacancies-hero-logo {
    width: 100%;
    max-width: 480px;
    /* Лёгкое свечение вокруг логотипа */
    filter: drop-shadow(0 0 60px rgba(228, 3, 194, 0.35));
    transition: filter 0.4s ease;
}

.vacancies-hero-logo:hover {
    filter: drop-shadow(0 0 90px rgba(228, 3, 194, 0.6));
}

.vacancies-hero-logo img {
    width: 100%;
    height: auto;
    display: block;
}


/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты — до 1024px */
@media (max-width: 1024px) {
    .vacancies-hero {
        padding: 60px 20px;
    }

    .vacancies-hero-content {
        gap: 40px;
    }

    .vacancies-hero-title {
        font-size: 52px;
    }

    .vacancies-hero-description {
        font-size: 17px;
    }

    .vacancies-hero-logo {
        max-width: 380px;
    }
}

/* Планшеты — до 768px: переход в одну колонку */
@media (max-width: 768px) {
    .vacancies-hero {
        padding: 50px 20px;
        align-items: flex-start;
    }

    .vacancies-hero-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .vacancies-hero-left {
        width: 100%;
    }

    .vacancies-hero-text {
        max-width: 100%;
        padding: 30px;
    }

    .vacancies-hero-title {
        font-size: 44px;
        margin-bottom: 20px;
    }

    .vacancies-hero-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .vacancies-hero-right {
        width: 100%;
    }

    .vacancies-hero-logo {
        max-width: 320px;
    }
}

/* Мобильные — до 480px */
@media (max-width: 480px) {
    .vacancies-hero {
        padding: 30px 15px;
    }

    .vacancies-hero-text {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .vacancies-hero-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .vacancies-hero-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .vacancies-hero-logo {
        max-width: 260px;
    }
}

/* Маленькие экраны — до 360px */
@media (max-width: 360px) {
    .vacancies-hero-title {
        font-size: 30px;
    }

    .vacancies-hero-description {
        font-size: 14px;
    }

    .vacancies-hero-text {
        padding: 20px 16px;
    }

    .vacancies-hero-content .contact-buttons {
    flex-direction: column;
    align-items: stretch;
    }

    .vacancies-hero-content .hero-btn,
    .vacancies-slider-cta .hero-btn {
        width: 100%;
        justify-content: center;
        min-width: unset;
    }
}

/* ============================================
   ВТОРОЙ ЭКРАН - СЛАЙДЕР ВАКАНСИЙ
   ============================================ */

.vacancies-slider-section {
    position: relative;
    width: 100%;
    padding: 30px 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Заголовок секции */
.vacancies-slider-title {
    font-family: 'Benzin', Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0;
    line-height: 1.1;
}

/* Обёртка слайдера (стрелки + слайдер) */
.vacancies-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    gap: 0;
}

/* Область видимости слайдера */
.vacancies-slider {
    overflow: visible; /* показываем соседние слайды */
    width: 33.333%;    /* центральный слайд занимает треть трека */
    padding: 20px 0;
    /* Обрезаем только то, что выходит за пределы секции */
    clip-path: none;
}

/* Трек — горизонтальная лента */
.vacancies-slider-track {
    display: flex;
    align-items: center;
    will-change: transform;
}

/* Отдельный слайд */
.vacancies-slide {
    flex-shrink: 0;
    width: 100%; /* ширина = ширина .vacancies-slider */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.45s ease;
    transform: scale(0.72);
    opacity: 0.2;
}

/* Активный (центральный) слайд */
.vacancies-slide.is-active {
    transform: scale(1);
    opacity: 1;
}

/* Непосредственные соседи — чуть меньше и полупрозрачные */
.vacancies-slide.is-prev,
.vacancies-slide.is-next {
    transform: scale(0.82);
    opacity: 0.55;
}

/* Все остальные — совсем маленькие и почти невидимые */
.vacancies-slide.is-side {
    transform: scale(0.72);
    opacity: 0.2;
}

/* Обёртка изображения */
.vacancies-slide-img-wrap {
    width: 340px;
    height: 460px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vacancies-slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Название вакансии */
.vacancies-slide-label {
    font-family: 'Benzin', Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    min-height: 10px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 16px rgba(228, 3, 194, 0.4);
    transition: opacity 0.3s ease;
}

/* Стрелки */
.vacancies-slider-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    z-index: 2;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.vacancies-slider-arrow--prev {
    left: 0;
    transform: translateY(-50%);
}

.vacancies-slider-arrow--next {
    right: 0;
    transform: translateY(-50%);
}

.vacancies-slider-arrow:hover {
    background: rgba(228, 3, 194, 0.2);
    border-color: #E403C2;
    transform: translateY(-50%) scale(1.08);
}

.vacancies-slider-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

/* Кнопка под слайдером — по центру */
.vacancies-slider-cta {
    justify-content: center !important;
}



/* ============================================
   АДАПТИВНОСТЬ СЛАЙДЕРА
   ============================================ */

@media (max-width: 1024px) {
    .vacancies-slider-title {
        font-size: 42px;
    }

    .vacancies-slide-img-wrap {
        width: 280px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    .vacancies-slider-section {
        padding: 60px 20px;
        gap: 32px;
    }

    .vacancies-slider-title {
        font-size: 34px;
    }

    .vacancies-slide-img-wrap {
        width: 240px;
        height: 320px;
    }

    .vacancies-slide-label {
        font-size: 22px;
    }

    .vacancies-slider-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .vacancies-slider-title {
        font-size: 28px;
    }

    .vacancies-slide-label {
        font-size: 18px;
    }

    .vacancies-slider-arrow {
        width: 38px;
        height: 38px;
    }

    .vacancies-slider-arrow--prev {
    left: 38px;
    }

    .vacancies-slider-arrow--next {
        right: 38px;
    }

    /* Переключаемся на режим «колоды» */
    .vacancies-slider-wrapper {
        overflow: visible;
        padding: 0 44px;
    }

    .vacancies-slider {
        width: 100%;
        overflow: visible;
        padding: 0;
    }

    .vacancies-slider-track {
        position: relative;
        display: block;         /* убираем flex, слайды идут через absolute */
        height: 340px;          /* высота колоды = высота активного фото */
    }

    .vacancies-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        /* Все неактивные уходят «под низ» и чуть вниз */
        transform: scale(0.88) translateY(16px);
        opacity: 0.45;
        z-index: 0;
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.45s ease,
                    z-index 0s 0.45s;
    }

    .vacancies-slide.is-active {
        transform: scale(1) translateY(0);
        opacity: 1;
        z-index: 3;
        transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.45s ease;
    }

    .vacancies-slide.is-prev,
    .vacancies-slide.is-next {
        transform: scale(0.92) translateY(10px);
        opacity: 0.35;
        z-index: 2;
    }

    .vacancies-slide.is-side {
        transform: scale(0.88) translateY(16px);
        opacity: 0.0;
        z-index: 1;
    }

    .vacancies-slide-img-wrap {
        width: 100%;
        max-width: 300px;
        height: 340px;
        border-radius: 18px;
    }
}