/* === Hero Carousel === */
/**
 * Hero секция с crossfade-каруселью из 5 слайдов,
 * overlay-градиентом, точками-индикаторами, scroll-hint.
 * Из inc/shortcode-hero.php
 *
 * @package SchoolKarjera
 */


.sk-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* -- Карусель (crossfade) -- */
.sk-hero__carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.sk-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.sk-hero__slide--active {
    opacity: 1;
}

.sk-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -- Overlay-градиент -- */
.sk-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(29,29,31,0.8) 0%,
        rgba(29,29,31,0.6) 50%,
        rgba(176, 91, 59, 0.45) 100%
    );
}

/* -- Контент поверх карусели -- */
.sk-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--sk-white);
    padding: 120px 24px 80px;
}

.sk-hero__title {
    font-family: var(--sk-font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--sk-white);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sk-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.375rem);
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--sk-white);
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.sk-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* -- Точки-индикаторы карусели -- */
.sk-hero__dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.sk-hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.sk-hero__dot:hover {
    border-color: rgba(255,255,255,0.9);
    transform: scale(1.2);
}

.sk-hero__dot--active {
    background: var(--sk-primary);
    border-color: var(--sk-primary);
}

/* -- Кнопка Pause/Play карусели (WCAG 2.2.2) -- */
.sk-hero__pause {
    width: 32px;
    height: 32px;
    margin-left: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    padding: 0;
}
.sk-hero__pause:hover {
    background: rgba(0, 0, 0, 0.7);
}
.sk-hero__pause:focus-visible {
    outline: 2px solid var(--sk-primary);
    outline-offset: 2px;
}

/* -- Индикатор «Листайте вниз» -- */
.sk-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    font-size: 0.8125rem;
    animation: sk-bounce 2s infinite;
    color: var(--sk-white);
}

@keyframes sk-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

@media (max-width: 480px) {
    .sk-hero__actions {
        flex-direction: column;
        align-items: center;
    }
    .sk-hero__actions .sk-btn {
        width: 100%;
        max-width: 320px;
    }
}
