:root {
    --hero-screensize: 1920;
    --hero-header-offset: 74px;
}

.hero {
    height: calc(100svh - var(--hero-header-offset));
    height: calc(100vh - var(--hero-header-offset));
    min-height: calc(100vh - var(--hero-header-offset));
    max-height: none;
    display: grid;
    grid-template-rows: 56fr 44fr;
    row-gap: 8px;
    overflow: hidden;
    margin-top: var(--hero-header-offset);
    margin-bottom: clamp(60px, 10vw, 30px);
    box-sizing: border-box;
}

.hero > .hero-promo-list,
.hero > .hero-header {
    min-height: 0;
}

.hero-promo-list {
    position: relative;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.hero-promo-swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-promo-swiper .swiper-wrapper {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
}

.hero-promo-swiper .swiper-slide {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box;
}

.hero-promo-swiper .hero-promo.swiper-slide {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
}

.hero-promo-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.hero-promo-list .swiper-button-next,
.hero-promo-list .swiper-button-prev {
    width: 70px !important;
    height: 70px !important;
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    background-image: url('/local/templates/santika/images/arrow.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 10;
}

.hero-promo-list .swiper-button-next:after,
.hero-promo-list .swiper-button-prev:after {
    display: none;
}

.hero-promo-list .swiper-button-prev {
    left: 24px !important;
    transform: translateY(-50%) rotate(180deg);
}

.hero-promo-list .swiper-button-next {
    right: 24px !important;
}

.hero-promo {
    position: relative;
    height: 100%;
    background-color: #f5f5f5;
    background-image: var(--hero-promo-bg, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #333;
}

.hero-promo__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
    padding: calc(111 / var(--hero-screensize) * 100vw) calc(108 / var(--hero-screensize) * 100vw);
    box-sizing: border-box;
    max-width: min(900px, 62vw);
}

.hero-promo__title {
    font-weight: 700;
    font-size: clamp(32px, 2.35vw, 46px);
    line-height: calc(66 / 64);
    letter-spacing: -0.02em;
    color: #333;
    margin: 0 0 calc(22 / var(--hero-screensize) * 100vw);
    max-width: min(920px, 70vw);
}

.hero-promo__text {
    font-weight: 400;
    font-size: 22px;
    line-height: calc(26 / 22);
    color: #333;
    margin: 0 0 calc(50 / var(--hero-screensize) * 100vw);
    max-width: min(760px, 58vw);
}

@media (max-width: 1600px) {
    .hero-promo__inner {
        max-width: 70vw;
    }

    .hero-promo__title {
        font-size: clamp(30px, 2.25vw, 40px);
        max-width: min(860px, 70vw);
    }

    .hero-promo__text {
        font-size: clamp(12px, 0.85vw, 15px);
        max-width: min(720px, 58vw);
    }
}

@media (max-width: 1366px) {
    .hero-promo__inner {
        max-width: 74vw;
    }

    .hero-promo__title {
        font-size: clamp(26px, 2.05vw, 34px);
        max-width: min(880px, 74vw);
    }

    .hero-promo__text {
        font-size: clamp(11px, 0.78vw, 14px);
        max-width: min(760px, 66vw);
    }
}

.hero-promo__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    border-radius: 4px;
    padding: 16px 24px;
    min-height: 70px;
    background: linear-gradient(140deg, #6cc166 6.77%, #2fa040 73.02%) !important;
    color: #fff !important;
    margin: 0;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-promo a.hero-promo__button:hover {
    color: #fff !important;
    background: linear-gradient(140deg, rgba(108, 193, 102, 1) 0%, rgba(47, 160, 64, 1) 86%) !important;
    z-index: 2;
}

.hero-promo a.hero-promo__button::before {
    background: linear-gradient(140deg, rgba(108, 193, 102, 1) 0%, rgba(47, 160, 64, 1) 86%);
    z-index: -1;
}

.hero-promo a.hero-promo__button:hover::before {
    background: linear-gradient(140deg, rgba(108, 193, 102, 1) 0%, rgba(47, 160, 64, 1) 86%) !important;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-rows: 50fr 50fr;
        row-gap: 8px;
        margin-bottom: 20px;
    }

    .hero-promo__inner {
        max-width: 66%;
        padding: 20px 24px;
    }

    .hero-promo__title {
        font-size: clamp(36px, 4.8vw, 56px);
        max-width: 100%;
    }

    .hero-promo__text {
        font-size: clamp(14px, 1.7vw, 18px);
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --hero-header-offset: 60px;
    }

    .hero {
        height: auto;
        min-height: 0;
        display: block;
        overflow: visible;
        row-gap: 0;
        margin-bottom: 24px;
    }

    .hero-promo-list .swiper-button-next,
    .hero-promo-list .swiper-button-prev {
        display: none !important;
    }

    .hero-promo-list {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
        width: calc(100% - 32px);
        margin: 0 auto;
        box-sizing: border-box;
    }

    .hero-promo-swiper {
        position: absolute;
        inset: 0;
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        max-width: 100%;
    }

    .hero-promo-swiper .swiper-wrapper,
    .hero-promo-swiper .swiper-slide,
    .hero-promo-swiper .hero-promo.swiper-slide,
    .hero-promo {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }

    .hero-promo {
        background-image: var(--hero-promo-bg-mobile, var(--hero-promo-bg, none));
    }

    .hero-promo::before {
        content: '';
        position: absolute;
        left: 45px;
        top: 36px;
        width: 168px;
        height: 168px;
        border-radius: 50%;
        background: #fff;
        filter: blur(75px);
        pointer-events: none;
        z-index: 0;
    }

    .hero-promo__inner {
        max-width:100%;
        justify-content: space-around;
        padding: 14px 0 10px;
        z-index: 1;
    }

    .hero-promo__title {
        font-weight: 700 !important;
        font-size: 22px !important;
        line-height: 95% !important;
        letter-spacing: -0.02em !important;
        margin-bottom: 11px;
    }

    .hero-promo__text {
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 123% !important;
        margin-bottom: 11px;
        display: none !important;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-promo__button {
        border-radius: 4px !important;
        padding: 14px 18px !important;
        width: auto !important;
        height: 44px !important;
        min-height: 44px !important;
        font-weight: 400 !important;
        font-size: 14px !important;
        line-height: 100% !important;
        margin-bottom: 0;
    }
}
