/* ==========================================================================
   PROMO BANNER на странице кандидатов
   ========================================================================== */
.promo-banner-candidates {
    position: relative;
    isolation: isolate;

    width: calc(100% - 40px);
    max-width: 1200px;
    min-height: 220px;

    margin: 0 auto 16px;

    overflow: hidden;

    background-image: url("/images/icons/autumn-candidates-banner.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 30px;
}

.promo-banner-candidates::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background: linear-gradient(
            100deg,
            rgba(15, 45, 100, 0.32) 0%,
            rgba(15, 45, 100, 0.12) 65%,
            rgba(15, 45, 100, 0.05) 100%
    );
}

.promo-banner-candidates-inner {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 100%;
    min-height: 220px;

    padding: 30px 50px;

    color: #ffffff;
    text-align: left;
}

.promo-banner-candidates-inner h2 {
    max-width: 650px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.promo-banner-candidates-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 44px;

    margin-top: 22px;
    padding: 11px 18px;

    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #2563eb;

    font-size: 15px;
    font-weight: 650;

    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 14px;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);

    transition: background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.promo-banner-candidates-btn span {
    font-size: 20px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.promo-banner-candidates-btn:hover {
    background: #ffffff;
    color: #1d4ed8;

    transform: translateY(-2px);

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.17);
}

.promo-banner-candidates-btn:hover span {
    transform: translateX(4px);
}

.promo-banner-candidates-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

@media (max-width: 950px) {
    .promo-banner-candidates {
        min-height: 200px;
    }

    .promo-banner-candidates-inner {
        min-height: 200px;
        padding: 28px 36px;
    }
}

@media (max-width: 700px) {
    .promo-banner-candidates {
        width: 100%;
        margin: 0 auto 7px;
        border-radius: 0;
    }

    .promo-banner-candidates-inner {
        min-height: 180px;

        padding: 24px 25px;
    }

    .promo-banner-candidates-inner h2 {
        max-width: 80%;

        font-size: 23px;
        line-height: 1.3;
    }

    .promo-banner-candidates-btn {
        min-height: 42px;

        margin-top: 17px;
        padding: 10px 14px;

        font-size: 14px;
        border-radius: 12px;
    }

    .promo-banner-candidates-btn span {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .promo-banner-candidates {
        width: calc(100% - 24px);
    }

    .promo-banner-candidates-inner {
        padding: 18px 16px;
    }

    .promo-banner-candidates-inner h2 {
        max-width: 85%;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-banner-candidates-btn,
    .promo-banner-candidates-btn span {
        transition: none !important;
    }

    .promo-banner-candidates-btn:hover {
        transform: none;
    }
}

/* Уведомления внутри промо-баннера */
.promo-banner-candidates-notifications {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.88;
}

.promo-banner-candidates-notification {
    position: absolute;
    width: 260px;
    padding: 14px 16px;
    box-sizing: border-box;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);

    opacity: 0;
    animation: promo-banner-candidates-notification-appear 9s ease-in-out infinite;
}

.promo-banner-candidates-notification-ozon {
    top: 10px;
    right: 8%;
    animation-delay: 0s;
}

.promo-banner-candidates-notification-vk {
    top: 85px;
    right: 32%;
    animation-delay: 3s;
}

.promo-banner-candidates-notification-yandex {
    top: 115px;
    right: 3%;
    animation-delay: 6s;
}

.promo-banner-candidates-notification-company {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.promo-banner-candidates-notification-logo {
    display: block;

    width: 26px;
    height: 26px;
    flex-shrink: 0;

    object-fit: contain;
    border-radius: 6px;
}

.promo-banner-candidates-notification p {
    margin: 0;

    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.promo-banner-candidates-notification strong {
    color: #1e293b;
    font-weight: 600;
}

@keyframes promo-banner-candidates-notification-appear {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}
/* =========================================
   ПЛАНШЕТЫ И НЕБОЛЬШИЕ НОУТБУКИ
   До 1024px
   ========================================= */

@media (max-width: 1024px) {

    .promo-banner-candidates {
        min-height: 200px;
    }

    .promo-banner-candidates-inner {
        min-height: 200px;
        padding: 28px 36px;
    }

    .promo-banner-candidates-inner h2 {
        font-size: clamp(23px, 3vw, 28px);
    }

    /* Уведомления */

    .promo-banner-candidates-notification {
        width: 240px;
        padding: 12px 14px;
    }

    .promo-banner-candidates-notification-ozon {
        top: 18px;
        right: 6%;
    }

    .promo-banner-candidates-notification-vk {
        top: 78px;
        right: 18%;
    }

    .promo-banner-candidates-notification-yandex {
        top: 138px;
        right: 4%;
    }

    .promo-banner-candidates-notification-company {
        font-size: 14px;
    }

    .promo-banner-candidates-notification-logo {
        width: 30px;
        height: 30px;
    }

    .promo-banner-candidates-notification p {
        font-size: 13px;
    }

    /* Кнопка */

    .promo-banner-candidates-btn {
        margin-top: 18px;
    }
}


/* =========================================
   ПЛАНШЕТЫ
   До 768px
   ========================================= */

@media (max-width: 768px) {

    .promo-banner-candidates {
        min-height: auto;
        border-radius: 24px;
    }

    .promo-banner-candidates-inner {
        min-height: 180px;
        padding: 24px 25px;
    }

    .promo-banner-candidates-inner h2 {
        max-width: 100%;
        font-size: 24px;
        line-height: 1.25;
    }

    /* Уведомления */

    .promo-banner-candidates-notification {
        width: 220px;
        padding: 11px 13px;
    }

    .promo-banner-candidates-notification-ozon {
        top: 16px;
        right: 4%;
    }

    .promo-banner-candidates-notification-vk {
        top: 72px;
        right: 14%;
    }

    .promo-banner-candidates-notification-yandex {
        top: 128px;
        right: 3%;
    }

    .promo-banner-candidates-notification-company {
        gap: 8px;
        margin-bottom: 8px;
        font-size: 13px;
    }

    .promo-banner-candidates-notification-logo {
        width: 26px;
        height: 26px;
    }

    .promo-banner-candidates-notification p {
        font-size: 12px;
    }

    /* Кнопка */

    .promo-banner-candidates-btn {
        margin-top: 16px;
    }
}


/* =========================================
   МОБИЛЬНЫЕ УСТРОЙСТВА
   До 600px
   ========================================= */

@media (max-width: 600px) {

    .promo-banner-candidates {
        min-height: auto;
        border-radius: 20px;
    }

    .promo-banner-candidates-inner {
        min-height: 200px;

        padding: 24px 25px;
    }

    .promo-banner-candidates-inner h2 {
        max-width: 55%;
        font-size: clamp(18px, 5vw, 23px);
    }

    /* Уведомления переводим в обычный поток.
       Теперь они располагаются друг под другом. */

    .promo-banner-candidates-notifications {
        position: absolute;
        inset: 0;
        z-index: 1;

        display: block;

        width: auto;
        margin: 0;

        pointer-events: none;
        overflow: hidden;
    }

    .promo-banner-candidates-notification,
    .promo-banner-candidates-notification-ozon,
    .promo-banner-candidates-notification-vk,
    .promo-banner-candidates-notification-yandex {
        position: absolute;
        width: 170px;
        max-width: none;
        padding: 9px 10px;
        border-radius: 9px;
    }

    .promo-banner-candidates-notification-company {
        gap: 6px;
        margin-bottom: 6px;
        font-size: 11px;
    }

    .promo-banner-candidates-notification-logo {
        width: 20px;
        height: 20px;
    }

    .promo-banner-candidates-notification p {
        font-size: 9px;
        line-height: 1.4;
    }

    .promo-banner-candidates-notification-ozon {
        display: none;
    }

    .promo-banner-candidates-notification-vk {
        transform: rotate(8deg);
        top: 40px;
        right: 2%;
        animation: promo-notification-mobile-appear 0.8s ease-out 0.5s both;
    }

    @keyframes promo-notification-mobile-appear {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 0.88;
        }
    }

    .promo-banner-candidates-notification-yandex {
        display: none;
    }

    /* Кнопка */

    .promo-banner-candidates-btn {
        min-height: 42px;

        margin-top: 17px;
        padding: 10px 14px;

        font-size: 14px;
        border-radius: 12px;
    }

    .promo-banner-candidates-btn span {
        font-size: 18px;
    }
}


/* =========================================
   УЗКИЕ ТЕЛЕФОНЫ
   До 380px
   ========================================= */

@media (max-width: 380px) {

    .promo-banner-candidates-inner {
        padding: 20px 14px;
    }

    .promo-banner-candidates-inner h2 {
        font-size: 20px;
    }

    .promo-banner-candidates-notifications {
        gap: 10px;
    }

    .promo-banner-candidates-notification,
    .promo-banner-candidates-notification-ozon,
    .promo-banner-candidates-notification-vk {
        padding: 8px 9px;
        border-radius: 8px;
    }

    .promo-banner-candidates-notification-company {
        font-size: 12px;
    }

    .promo-banner-candidates-notification-logo {
        width: 24px;
        height: 24px;
    }

    .promo-banner-candidates-notification p {
        font-size: 11px;
    }

    .promo-banner-candidates-btn {
        font-size: 13px;
        padding: 12px 14px;
    }
}


/* =========================================
   УМЕНЬШЕНИЕ АНИМАЦИЙ
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .promo-banner-candidates-notification {
        animation: none;
        opacity: 1;
        transform: none;
    }
}