/* fatihkovka.ru — hero slider (home page).
 *
 * Replaces the old background video: three photographs of finished forged work,
 * slow cross-fade with a gentle zoom, darkening gradient on the left so the
 * existing <h1> stays readable. Styles are scoped to the slider itself; the
 * Elementor container only needs a stacking context (set below).
 */

.elementor-element.elementor-element-893cc7b {
    position: relative;
    overflow: hidden;
}

.elementor-element.elementor-element-893cc7b > .e-con-inner {
    position: relative;
    z-index: 1;
}

/* --- frame ------------------------------------------------------------- */

.fk-hero {
    position: absolute;
    inset: 0;
    /* No z-index: the slider must not create a stacking context, so the
       controls can sit above the page content while the photos stay below it. */
    overflow: hidden;
    background: #10130f;
    pointer-events: none;
}

.fk-hero-track {
    position: absolute;
    inset: 0;
}

.fk-hero-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity;
}

.fk-hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.fk-hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    /* The zoom runs only on the visible slide: it reads as a camera move,
       not as a repeated "animation" on every picture. */
    transform: scale(1.02);
    transition: transform 9s linear;
}

.fk-hero-slide.is-active img {
    transform: scale(1.09);
}

/* Text legibility: dark on the left where the headline sits, lighter on the
   right where the photograph should stay visible. */
.fk-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(8, 10, 9, .78) 0%, rgba(8, 10, 9, .55) 38%, rgba(8, 10, 9, .18) 66%, rgba(8, 10, 9, .3) 100%),
        linear-gradient(to top, rgba(8, 10, 9, .55) 0%, rgba(8, 10, 9, 0) 42%);
    pointer-events: none;
}

/* --- caption + controls ------------------------------------------------ */

.fk-hero-ui {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px) clamp(22px, 3.2vw, 38px);
    pointer-events: none;
}

.fk-hero-caption {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    color: #fff;
}

.fk-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px 7px 10px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(12, 14, 13, .34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.fk-hero-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ec0303;
    box-shadow: 0 0 0 3px rgba(236, 3, 3, .22);
}

.fk-hero-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.fk-hero-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 50%;
    background: rgba(12, 14, 13, .3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.fk-hero-arrow:hover {
    background: #c60000;
    border-color: #c60000;
    transform: translateY(-1px);
}

.fk-hero-arrow svg {
    width: 17px;
    height: 17px;
}

.fk-hero-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: 4px;
}

.fk-hero-dot {
    width: 26px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .2s ease, width .25s ease;
}

.fk-hero-dot.is-active {
    width: 46px;
    background: #ec0303;
}

.fk-hero-arrow:focus-visible,
.fk-hero-dot:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

/* --- smaller screens --------------------------------------------------- */

@media (max-width: 900px) {
    .fk-hero-ui {
        padding-bottom: 18px;
    }

    .fk-hero-kicker {
        font-size: 10.5px;
        letter-spacing: .03em;
        padding: 6px 10px 6px 8px;
    }

    .fk-hero-arrow {
        width: 36px;
        height: 36px;
    }

    .fk-hero-dot {
        width: 18px;
    }

    .fk-hero-dot.is-active {
        width: 30px;
    }
}

@media (max-width: 560px) {
    .fk-hero-slide img {
        object-position: center 58%;
    }

    /* On a phone the caption row would collide with the headline: keep the
       dots only, arrows are replaced by swipe. */
    .fk-hero-arrow {
        display: none;
    }

    .fk-hero-ui {
        justify-content: center;
        padding-bottom: 14px;
    }

    .fk-hero-caption {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fk-hero-slide,
    .fk-hero-slide img {
        transition-duration: .01ms !important;
    }

    .fk-hero-slide img,
    .fk-hero-slide.is-active img {
        transform: none;
    }
}
