/* ===========================
   HERO BASE
=========================== */

.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;          /* fallback */
    min-height: 100svh;         /* корректная высота на iOS/Android */
    overflow: hidden;
    padding: 6px 0;
}

.hero__bg {
    position: absolute;
    inset: 4px;
    border-radius: 32px;
    overflow: hidden;
}

.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(../../images/hero-bg.jpg) no-repeat center / cover;
    z-index: -2;
}
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}
.hero__bg > * {
    position: relative;
    z-index: 1;
}

/* ===========================
   MENU BUTTON
=========================== */

.hero__menu-button {
    display: none;
}

.hero__menu-trigger {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

/* ===========================
   TOP SECTION
=========================== */

.hero__top {
    position: relative;
    z-index: 3;
    padding-top: 35x;
}

.hero__title {
    color: var(--pure-white);
    font-size: 32px;
    line-height: 1.13;
    width: 100%;
	font-weight: 500;
}

.hero__title br {
    display: none;
}

.hero__subtitle {
    font-size: 21px;
    letter-spacing: 0.25px;
	margin-top: unset !important;
        margin-left: unset !important;
        max-width: unset !important;
    color: #fff;
}

.hero__cta {
    display: none;
}

/* ===========================
   CAROUSEL
=========================== */

.hero__middle {
    position: absolute;
    z-index: 3;
    left: 16px;
    right: 16px;
    bottom: 100px;
}

.hero-carousel {
    width: 100%;
}

.hero-carousel__slide {
    display: flex;
    min-width: 280px;
    width: 280px;
    padding: 8px;
    border-radius: 32px;
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
}

.hero-carousel__link {
    display: flex;
}

.hero-carousel__image {
    position: relative;
    margin-right: 16px;
}

.hero-carousel__image img {
    width: 92px;
    height: 86px;
    border-radius: 16px;
    object-fit: cover;
}

.hero-carousel__label {
    position: absolute;
    top: 6px;
    left: 6px;
    color: var(--pure-white);
    font-size: 10px;
    padding: 6px 8px;
    background: #404041;
    border-radius: 20px;
}

/* text */
.hero-carousel__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-carousel__title {
    color: var(--pure-white);
    font-size: 16px;
    font-weight: 500;
    padding-left: 10px;
    margin-bottom: 18px;
    border-left: 6px solid var(--orange);
}

.hero-carousel__desc {
    color: var(--medium-grey);
    font-size: 12px;
    line-height: 1.2;
    padding-left: 10px;
    margin: 0;
}

/* pagination */
.hero-carousel__pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    color: #fff;
}

/* цифры */
.hero-carousel__page {
    font-family: Montserrat, "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

/* трек */
.hero-carousel__track {
    position: relative;
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 4px;
    overflow: hidden;
}

/* сам ползунок */
.hero-carousel__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;                 /* 🔑 фиксированная длина */
    height: 100%;
    background: #fff;
    border-radius: 4px;
    transform: translateX(0);
    transition: transform 0.15s ease-out;
}

/* ===========================
   BOTTOM SECTION
=========================== */

.hero__bottom {
    display: none;
    position: relative;
    z-index: 3;
    margin-top: 40px;
}

.distance__scale {
    display: flex;
    align-items: center;
    font-family: "Bergamasco", "Playfair Display", Georgia, serif;
    font-size: 14px;
    color: var(--pure-white);
}

.distance__scale img {
    width: 220px;
}

.distance__text {
    margin-top: 8px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (min-width: 576px) {

    .hero__title {
        font-size: 49px;
    }

    .hero-carousel__slide {
        width: 340px;
    }
    .hero-carousel__image {
        width: 150px;
    }
}

@media (min-width: 744px) {
    .hero__title {
        font-size: 50px;
        max-width: 100%;
        margin-bottom: 32px;
    }

    .hero__subtitle {
        font-size: 36px;
        letter-spacing: 1.5px;
        margin-top: 0;
        margin-left: 0;
        margin-bottom: 32px;
        max-width: 100%;
    }

    .hero__cta {
        display: inline-flex;
        font-size: 16px;
        padding: 16px 32px;
    }

    .hero__middle {
        bottom: 150px;
    }

    .hero-carousel__slide {
        width: 530px;
        padding: 16px;
    }

    .hero-carousel__label {
        font-size: 12px;
        line-height: 16px;
        border-radius: 100px;
        padding: 6px 10px;
    }
    .hero-carousel__image {
        width: 211px;
        border-radius: 20px;
    }

    .hero-carousel__image img {
        width: 211px;
        height: 108px;
        background-size: cover;
    }
    .hero-carousel__title {
        font-size: 20px;
        line-height: 1.4;
    }

    .hero-carousel__page {
        font-size: 20px;
        min-width: 24px;
    }
    .hero-carousel__track {
        height: 13px;
        border-radius: 200px;
    }
}

@media (min-width: 1025px) {
    .hero {
        min-height: 640px;
        height: 100svh;
    }

    .hero__title{
        max-width: 660px;
        font-size: 60px;
        line-height: 1.2;
        margin-bottom: 32px;
    }
    .hero__cta {
        display: inline-flex;
    }
    .hero__menu-button {
        display: block;
        position: absolute;
        z-index: 5;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        cursor: pointer;
    }

    .hero__middle {
        left: auto;
        right: 5px;
        top: 60px;
        bottom: auto;
        width: 480px;
    }

    .hero-carousel__slide {
        width: 340px;
        padding: 8px;
    }

    .hero-carousel__link {
        width: 100%;
    }

    .hero-carousel__title {
        font-size: 16px;
        line-height: 1.2;
    }

    .hero-carousel__image img {
        width: 150px;
        height: 92px;
        border-radius: 26px;
    }

    .hero-carousel__image {
        width: 150px;
    }

    .hero-carousel__label {
        font-size: 10px;
        padding: 3px 10px;
    }

    .hero-carousel__desc {
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
        line-height: 16px;
    }

    .hero-carousel__page {
        font-family: Bergamasco, serif;
    }

    .hero-carousel__track {
        height: 6px;
    }


    .hero__bottom {
        display: block;
        position: absolute;
        z-index: 3;
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding-bottom: 16px;
        color: var(--mist-blue);
        text-align: center;

    }

    .distance {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .distance__scale img {
        display: block;
        width: 265px;
        height: auto;
        margin: 0 10px;
    }

    .distance__text {
        color: var(--pure-white);
        font-size: 14px;
        font-weight: 500;
        margin-left: 0;
        margin-top: 10px;
    }
}
