.custom-hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ebf2ef 0%, rgba(255, 255, 255, 0) 100%);
}

.custom-hero-section,
.custom-hero-section * {
    box-sizing: border-box;
}

.custom-hero-section__slider {
    width: 100%;
}

.custom-hero-section__slide {
    position: relative;
    min-height: 620px;
    padding: 112px 0;
    overflow: hidden;
}

.custom-hero-section .container {
    position: relative;
    height: 100%;
    padding: 0;
}

.custom-hero-section__content {
    display: flex;
    align-items: center;
    min-height: 396px;
    padding-left: 64px;
}

.custom-hero-section__info {
    position: relative;
    z-index: 2;
    width: 52%;
    max-width: 650px;
}

.custom-hero-section__title h1,
.custom-hero-section__title h2 {
    max-width: 620px;
    margin: 0 0 18px;
    color: #36485c;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.6px;
}

.custom-hero-section__title h1 strong,
.custom-hero-section__title h2 strong {
    color: #88b04b;
}

.custom-hero-section__text {
    max-width: 560px;
    margin-bottom: 42px;
    color: #36485c;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.custom-hero-section__text p {
    margin: 0;
}

.custom-hero-section__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 42px;
}

.custom-hero-section__button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 1px solid #88b04b;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.custom-hero-section__button img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    transition: transform 0.2s ease;
    margin: 0 !important;
}

.custom-hero-section__button--primary {
    gap: 6px;
    background: #88b04b;
    color: #fff;
}

.custom-hero-section__button--primary:hover {
    background: #fff;
    color: #88b04b;
}

.custom-hero-section__button--primary:hover img {
    transform: translateX(3px);
}

.custom-hero-section__button--secondary {
    background: transparent;
    color: #88b04b;
}

.custom-hero-section__button--secondary:hover {
    background: #88b04b;
    color: #fff;
}

/* Trust blok */

.custom-hero-section__trust {
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-hero-section__avatars {
    display: flex;
    align-items: center;
    padding-left: 7px;
}

.custom-hero-section__avatars img {
    position: relative;
    width: 36px;
    height: 36px;
    margin-left: -7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    margin-bottom: 0 !important;
}

.custom-hero-section__trust-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-hero-section__stars {
    color: #f4b73f;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1px;
}

.custom-hero-section__trust-text {
    color: #53657a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

/* Slika */

.custom-hero-section__image {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: max(
        calc((100vw - var(--container-width, 1320px)) / -2),
        -100px
    );
    width: min(58vw, 900px);
    height: calc(100% + 224px);
    transform: translateY(-50%);
    pointer-events: none;
}

.custom-hero-section__image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-hero-section__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

/* Slick */

.custom-hero-section .slick-list,
.custom-hero-section .slick-track {
    height: 100%;
}

.custom-hero-section .slick-slide {
    height: auto;
}

.custom-hero-section .slick-slide > div {
    height: 100%;
}

.custom-hero-section .slick-dots {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 55px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: var(--container-width, 1320px);
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    gap: 8px;
    padding-left: 40px;
}

.custom-hero-section .slick-dots li {
    width: auto;
    height: auto;
    margin: 0;
    list-style: none !important;
}

.custom-hero-section .slick-dots button {
    display: block;
    width: 10px;
    height: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 100px;
    background: #dce5e1;
    padding: 0;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.custom-hero-section .slick-dots .slick-active button {
    width: 24px;
    background: #31705c;
}

/* Tablet */

@media (max-width: 1199px) {
    .custom-hero-section__slide {
        min-height: 560px;
        padding: 80px 0;
    }

    .custom-hero-section__title h1,
    .custom-hero-section__title h2 {
        font-size: 52px;
    }

    .custom-hero-section__image {
        right: -150px;
        width: 65vw;
        height: calc(100% + 160px);
    }
}

@media (max-width: 991px) {
    .custom-hero-section__slide {
        min-height: auto;
        padding: 40px 0 0;
    }

    .custom-hero-section .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .custom-hero-section__content {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding-left: 0;
    }

    .custom-hero-section__info {
        width: 100%;
        max-width: none;
    }

    .custom-hero-section__title h1,
    .custom-hero-section__title h2 {
        max-width: 620px;
        margin-bottom: 16px;
        font-size: 40px;
        line-height: 1.2;
        letter-spacing: -0.8px;
    }

    .custom-hero-section__text {
        margin-bottom: 32px;
        font-size: 16px;
        line-height: 1.4;
    }

    .custom-hero-section__buttons {
        margin-bottom: 32px;
    }

    .custom-hero-section__image {
        position: relative;
        top: auto;
        right: auto;
        width: calc(100% + 40px);
        height: auto;
        margin: 20px -20px 0;
        transform: none;
    }

    .custom-hero-section__img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center bottom;
    }

    .custom-hero-section .slick-dots {
        position: relative;
        bottom: auto;
        width: auto;
        max-width: none;
        margin-top: -4px;
        padding-bottom: 20px;
        justify-content: center;
        padding-left: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .custom-hero-section__title h1,
    .custom-hero-section__title h2 {
        font-size: 32px;
        line-height: 38.4px;
    }

    .custom-hero-section__buttons {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .custom-hero-section__button {
        width: 100%;
        min-height: 48px;
        padding: 10px 20px;
        text-align: center;
    }

    .custom-hero-section__trust {
        gap: 10px;
    }

    .custom-hero-section__avatars img {
        width: 32px;
        height: 32px;
    }

    .custom-hero-section__stars {
        font-size: 14px;
    }

    .custom-hero-section__trust-text {
        font-size: 14px;
    }

    .custom-hero-section__image {
        margin-top: 22px;
    }
}