/* ------------ Homepage ------------ */

.home-hero_wrapper {
    max-width: 1450px;
    margin: 10px auto 60px;
}

/* ---- Hero layout ---- */
.home-hero {
    display: flex;
    gap: 24px;
    position: relative;
    max-width: 1450px;
    width: 100%;
}

.home-hero_slider img {
    width: 333px;
    height: 333px;
}

/* ---- Hero Banner ---- */

.hero-banner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.hero-banner_sub {
    font-size: 18px;
    line-height: 20px;
    font-weight: var(--font-weight-regular);
    color: var(--color-text);
    display: block;
    margin-bottom: 12px;
    text-align: start;
    margin-right: auto;
}

.hero-banner_title {
    font-weight: var(--font-weight-bold);
    font-size: 46px;
    line-height: 52px;
    color: var(--color-text);
    margin: 0 0 36px;
    max-width: 500px;
    text-align: start;
}

.hero-banner_btn {
    display: inline-block;
    background: var(--color-rose);
    color: #ffffff;
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    line-height: 30px;
    padding: 10px 36px;
    border-radius: 12px;
    border: none;
    cursor: default;
    transition: opacity 0.2s;
    max-width: 200px;
    margin-right: auto;
    cursor: pointer
}

.hero-banner_pagination {
    position: absolute;
    bottom: 32px;
    left: 56px;
}

.hero-banner_pagination-bar {
    display: block;
    width: 80px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* ---- Benefits Row ---- */
.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    padding: 50px 0 0;
}

.benefits_item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.benefits_item img {
    width: 86px;
    height: 86px;
}

.benefits_ico {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    background: #F0F2F3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits_ico svg {
    width: 24px;
    height: 24px;
    color: #555;
}

.benefits_title {
    font-weight: var(--font-weight-bold);
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.benefits_desc {
    font-size: 13px;
    font-weight: var(--font-weight-regular);
    color: #717171;
    line-height: 1.3;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
    .home-hero { display: block; width: 100%; margin: 30px 0; }
    .hero-banner { padding: 32px; }
    .hero-banner_title { font-size: 28px; }
    .benefits { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .home-hero_slider { 
        flex-direction: column; 
        gap: 12px;
        padding: 40px 20px;
        min-height: min-content;
        margin: 0;
        align-items: center;
    }
    .home-hero_slider img {
        width: 200px;
        height: 200px;
    }
    .hero-banner_pagination-bar {
        width: 0;
    }
    .hero-banner {
        align-items: center;
    }
}

@media (max-width: 767px) {
    .hero-banner { padding: 24px; align-items: center; }
    .hero-banner_title { font-size: 24px; margin-bottom: 24px; text-align: center; }
    .hero-banner_sub { font-size: 15px; margin-right: 0; text-align: center; }
    .hero-banner_btn { padding: 14px 24px; font-size: 16px; max-width: 100%; width: 100%; text-align: center; margin-right: 0; border-radius: 12px; }
    .benefits { grid-template-columns: 1fr; gap: 12px; }
    .home-hero_slider img {
        width: 200px;
        height: 200px;
    }
}

/* ---- Hero Slider (Swiper) ---- */
.home-hero_content {
    width: 100%;
    flex: 1;
    min-width: 0;
}
.js-hero-slider {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 5;
}
.js-hero-slider .swiper-slide { height: 100%; }
.js-hero-slider .swiper-slide a { display: block; width: 100%; height: 100%; }

/* Hero slider - hide nav arrows */
.js-hero-slider .swiper-button-next,
.js-hero-slider .swiper-button-prev { display: none; }

/* Hero slider - pagination dots */
.js-hero-slider .swiper-pagination {
    bottom: 14px;
}
.js-hero-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.55);
    opacity: 1;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}
.js-hero-slider .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-green-main);
}

.hero-slide-link { position: relative; display: block; width: 100%; height: 100%; }
.hero-slide-link .hero-banner {
    position: absolute;
    bottom: 40px;
    left: 40px;
    pointer-events: none;
}
.hero-slide-link .hero-banner_title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-img-desktop { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-img-mobile { display: none; }

@media (max-width: 767px) {
    .js-hero-slider { aspect-ratio: 3 / 4; }
    .hero-img-desktop { display: none; }
    .hero-img-mobile { display: block; width: 100%; height: 100%; object-fit: contain; }
    .hero-slide-link .hero-banner { bottom: 16px; left: 16px; }
    .hero-slide-link .hero-banner_title { font-size: 20px; line-height: 26px; }
}

@media (max-width: 575px) {
    .home-hero_wrapper { margin: 8px auto 24px; }
    .home-hero_slider { min-height: 340px; padding: 24px 16px; border-radius: 12px; }
    .home-hero_slider > img { width: 140px; height: 140px; }
    .hero-banner_title { font-size: 20px; line-height: 26px; margin-bottom: 16px; }
    .hero-banner_sub { font-size: 13px; margin-bottom: 8px; }
    .hero-banner_btn { padding: 10px 20px; font-size: 13px; border-radius: 8px; }
    .benefits { padding: 24px 0 0; gap: 10px; }
    .benefits_item img { width: 56px; height: 56px; }
    .benefits_title { font-size: 13px; }
    .benefits_desc { font-size: 11px; }
}

@media (min-width: 1400px) {
    .hero-banner_title { font-size: 48px; }
    .home-hero_slider img {
        width: 250px;
        height: 250px;
    }
}
