/**
 * ==========================================================
 * HERO EKIN-PRO
 * ==========================================================
 */

.ekin-hero {
    --ekin-accent: #ffa900;
    --ekin-dark: #20262d;
    --ekin-muted: #666d75;
    --ekin-green: #28a745;
    --ekin-border: #e6e7e9;

    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--ekin-border);
}

.ekin-hero *,
.ekin-hero *::before,
.ekin-hero *::after {
    box-sizing: border-box;
}

.ekin-hero__carousel,
.ekin-hero__carousel .carousel-inner,
.ekin-hero__carousel .carousel-item {
    width: 100%;
}


/**
 * Две колонки.
 */

.ekin-hero__slide {
    display: grid;
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    align-items: stretch;

    width: 100%;
    max-width: 1580px;
    min-height: 620px;

    margin: 0 auto;
    background: #fff;
}


/**
 * Левая колонка.
 */

.ekin-hero__content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    min-width: 0;
    min-height: 620px;

    background:
        radial-gradient(
            circle at 0 100%,
            rgba(255, 169, 0, 0.065),
            transparent 40%
        ),
        #fff;
}

.ekin-hero__content::after {
    content: "";

    position: absolute;
    z-index: -1;
    top: 0;
    right: -100px;

    width: 200px;
    height: 100%;

    pointer-events: none;

    background: linear-gradient(
        90deg,
        #fff 0%,
        rgba(255, 255, 255, 0.96) 35%,
        rgba(255, 255, 255, 0) 100%
    );
}

.ekin-hero__content-inner {
    width: 100%;
    max-width: 850px;

    padding: 44px 42px 40px;
}


/**
 * Заголовок.
 */

.ekin-hero .ekin-hero__title {
    display: block;

    max-width: 820px;
    margin: 0;

    color: var(--ekin-dark);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(33px, 2.95vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.ekin-hero__title-main {
    display: inline;
}

.ekin-hero__accent {
    display: inline;

    margin-left: 0.18em;

    color: var(--ekin-accent);

    white-space: nowrap;
}


/**
 * Описание.
 */

.ekin-hero__description {
    max-width: 690px;
    margin-top: 26px;

    color: var(--ekin-muted);

    font-size: clamp(16px, 1.25vw, 20px);
    font-weight: 400;
    line-height: 1.6;
}

.ekin-hero__description p {
    margin: 0;
}

.ekin-hero__description p + p {
    margin-top: 10px;
}


/**
 * Направления работы.
 */

.ekin-hero__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;
    max-width: 800px;

    margin-top: 28px;
}

.ekin-hero__feature {
    position: relative;

    min-width: 0;
    padding: 0 17px;
}

.ekin-hero__feature:first-child {
    padding-left: 0;
}

.ekin-hero__feature:last-child {
    padding-right: 0;
}

.ekin-hero__feature:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 18px;
    right: 0;

    width: 1px;
    height: 66px;

    background: #e4e5e7;
}

.ekin-hero__feature-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 44px;
    height: 44px;

    margin-bottom: 10px;

    color: var(--ekin-accent);
}

.ekin-hero__feature-icon svg {
    display: block;

    width: 42px;
    height: 42px;
}

.ekin-hero__feature-img {
    display: block;

    width: 44px;
    height: 44px;

    object-fit: contain;
}

.ekin-hero__feature-title {
    max-width: 155px;

    color: #252b31;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;

    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}


/**
 * Нижняя строка.
 */

.ekin-hero__bottom {
    display: flex;
    align-items: center;

    gap: 46px;

    margin-top: 34px;
}

.ekin-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 232px;
    min-height: 48px;

    padding: 13px 30px;

    border: 0;
    border-radius: 13px;

    background: linear-gradient(
        180deg,
        #ffb315 0%,
        #ff9f00 100%
    );

    box-shadow: 0 8px 22px rgba(255, 160, 0, 0.18);

    color: #fff;

    font-size: 16px;
    font-weight: 600;
    line-height: 1;

    text-align: center;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.ekin-hero__button:hover {
    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(255, 160, 0, 0.27);

    filter: brightness(1.03);

    color: #fff;
}

.ekin-hero__button:focus-visible {
    outline: 3px solid rgba(255, 169, 0, 0.3);
    outline-offset: 4px;
}


/**
 * Гарантия.
 */

.ekin-hero__warranty {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 13px;
}

.ekin-hero__warranty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    color: var(--ekin-green);
}

.ekin-hero__warranty-icon svg {
    display: block;

    width: 42px;
    height: 42px;
}

.ekin-hero__warranty-img {
    display: block;

    width: 44px;
    height: 44px;

    object-fit: contain;
}

.ekin-hero__warranty-text {
    max-width: 270px;

    color: #555c63;

    font-size: 14px;
    line-height: 1.4;
}


/**
 * Правая колонка.
 */

.ekin-hero__media {
    position: relative;

    align-self: stretch;

    min-width: 0;
    min-height: 620px;

    overflow: hidden;

    background: #f2f4f5;
}

.ekin-hero__image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.ekin-hero__image-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    color: #777;
    background: #f1f3f4;

    text-align: center;
}


/**
 * Стрелки.
 */

.ekin-hero__control {
    top: 50%;
    bottom: auto;

    width: 42px;
    height: 70px;

    margin-top: -35px;

    opacity: 1;
}

.ekin-hero__control--prev {
    left: 8px;
}

.ekin-hero__control--next {
    right: 8px;
}

.ekin-hero__control span {
    display: block;

    width: 16px;
    height: 16px;

    border-top: 2px solid var(--ekin-accent);
    border-right: 2px solid var(--ekin-accent);
}

.ekin-hero__control--prev span {
    transform: rotate(-135deg);
}

.ekin-hero__control--next span {
    transform: rotate(45deg);
}

.ekin-hero__control:hover {
    opacity: 0.7;
}


/**
 * Индикаторы.
 */

.ekin-hero__indicators {
    bottom: 15px;
    z-index: 5;

    gap: 8px;

    margin-bottom: 0;
}

.ekin-hero__indicators [data-bs-target] {
    width: 8px;
    height: 8px;

    margin: 0;

    border: 0;
    border-radius: 50%;

    background-color: #a9adb0;

    opacity: 1;
}

.ekin-hero__indicators .active {
    background-color: var(--ekin-accent);
}


/**
 * Средние экраны.
 */

@media (max-width: 1399.98px) {

    .ekin-hero__slide {
        grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    }

    .ekin-hero__content-inner {
        padding-right: 34px;
        padding-left: 34px;
    }

    .ekin-hero .ekin-hero__title {
        font-size: clamp(32px, 3vw, 44px);
    }

    .ekin-hero__feature {
        padding-right: 13px;
        padding-left: 13px;
    }

    .ekin-hero__feature-title {
        font-size: 12px;
    }
}


/**
 * Планшеты.
 */

@media (max-width: 1199.98px) {

    .ekin-hero__slide {
        grid-template-columns: minmax(0, 58%) minmax(0, 42%);
        min-height: 650px;
    }

    .ekin-hero__content,
    .ekin-hero__media {
        min-height: 650px;
    }

    .ekin-hero__content-inner {
        padding: 38px 28px;
    }

    .ekin-hero .ekin-hero__title {
        font-size: clamp(30px, 3.4vw, 41px);
    }

    .ekin-hero__description {
        font-size: 16px;
    }

    .ekin-hero__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 24px 0;

        max-width: 580px;
    }

    .ekin-hero__feature {
        padding: 0 18px;
    }

    .ekin-hero__feature:nth-child(odd) {
        padding-left: 0;
    }

    .ekin-hero__feature:nth-child(even) {
        padding-right: 0;
    }

    .ekin-hero__feature:nth-child(2)::after,
    .ekin-hero__feature:nth-child(4)::after {
        display: none;
    }

    .ekin-hero__feature-title {
        max-width: 190px;

        font-size: 13px;
    }

    .ekin-hero__bottom {
        gap: 24px;
    }
}


/**
 * Мобильная версия.
 */

@media (max-width: 991.98px) {

    .ekin-hero__slide {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }

    .ekin-hero__media {
        order: 1;

        position: relative;

        width: 100%;
        min-height: 0;

        aspect-ratio: 756 / 550;
    }

    .ekin-hero__content {
        order: 2;

        min-height: 0;
    }

    .ekin-hero__content::after {
        display: none;
    }

    .ekin-hero__content-inner {
        max-width: none;

        padding: 34px 24px 40px;
    }

    .ekin-hero .ekin-hero__title {
        max-width: 800px;

        font-size: clamp(30px, 6vw, 44px);
    }

    .ekin-hero__features {
        max-width: 700px;
    }

    .ekin-hero__control {
        top: calc((100vw * 550 / 756) / 2);
    }

    .ekin-hero__indicators {
        top: calc((100vw * 550 / 756) - 26px);
        bottom: auto;
    }
}


/**
 * Телефоны.
 */

@media (max-width: 575.98px) {

    .ekin-hero__content-inner {
        padding: 27px 18px 34px;
    }

    .ekin-hero .ekin-hero__title {
        font-size: clamp(14px, 8.5vw, 24px);
        line-height: 1.09;
    }

    .ekin-hero__accent {
        white-space: normal;
    }

    .ekin-hero__description {
        margin-top: 19px;

        font-size: 15px;
        line-height: 1.55;
    }

    .ekin-hero__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px 0;

        margin-top: 24px;
    }

    .ekin-hero__feature {
        padding: 0 12px;
    }

    .ekin-hero__feature:nth-child(odd) {
        padding-left: 0;
    }

    .ekin-hero__feature:nth-child(even) {
        padding-right: 0;
    }

    .ekin-hero__feature:nth-child(2)::after,
    .ekin-hero__feature:nth-child(4)::after {
        display: none;
    }

    .ekin-hero__feature-title {
        max-width: 145px;

        font-size: 12px;
    }

    .ekin-hero__bottom {
        flex-direction: column;
        align-items: stretch;

        gap: 20px;

        margin-top: 27px;
    }

    .ekin-hero__button {
        width: 100%;
        min-width: 0;
    }

    .ekin-hero__warranty {
        justify-content: flex-start;
    }

    .ekin-hero__warranty-text {
        max-width: none;
    }

    .ekin-hero__control {
        width: 34px;
    }

    .ekin-hero__control--prev {
        left: 3px;
    }

    .ekin-hero__control--next {
        right: 3px;
    }
}


/**
 * Отключение анимаций.
 */

@media (prefers-reduced-motion: reduce) {

    .ekin-hero__button,
    .ekin-hero__carousel .carousel-item {
        transition: none;
    }
}