.elka-hero {
    --elka-hero-green: #009846;
    --elka-hero-text: #101b2a;
    --elka-hero-muted: #3f4854;
    --elka-hero-line: #e3e8e5;
    --elka-hero-panel: #f5f8f4;
    width: min(100%, var(--elka-hero-max-width, 1280px));
    margin: 56px auto 28px;
    font-family: inherit;
    color: var(--elka-hero-text);
}

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

.elka-hero__panel {
    position: relative;
    min-height: 388px;
    overflow: hidden;
    border: 1px solid #edf0ee;
    border-radius: 20px;
    background: var(--elka-hero-panel);
    isolation: isolate;
}

.elka-hero__visual {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 auto;
    width: 57%;
    overflow: hidden;
}

.elka-hero__visual::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--elka-hero-panel) 0%,
        rgba(245, 248, 244, 0.94) 10%,
        rgba(245, 248, 244, 0.68) 24%,
        rgba(245, 248, 244, 0.18) 43%,
        rgba(245, 248, 244, 0) 61%
    );
}

.elka-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.elka-hero__visual picture {
    display: block;
    width: 100%;
    height: 100%;
}

.elka-hero__content {
    position: relative;
    z-index: 2;
    width: 61%;
    min-height: 388px;
    padding: 38px 26px 32px 44px;
    display: flex;
    flex-direction: column;
}

.elka-hero__title {
    max-width: 720px;
    margin: 0;
    font-size: clamp(34px, 3.05vw, 50px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--elka-hero-text);
}

.elka-hero__intro {
    max-width: 690px;
    margin: 24px 0 0;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.5;
    color: var(--elka-hero-muted);
}

.elka-hero__benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin-top: auto;
    padding-top: 34px;
}

.elka-hero__benefit {
    min-width: 0;
}

.elka-hero__benefit-icon {
    display: block;
    width: 38px;
    height: 38px;
    margin: 0 0 12px;
    object-fit: contain;
}

.elka-hero__benefit-text {
    max-width: 145px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 650;
    color: #18212d;
}

.elka-hero__quick {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--elka-hero-line);
    border-radius: 14px;
    background: #fff;
}

.elka-hero__quick-item {
    min-height: 72px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    border: 0;
    border-right: 1px solid var(--elka-hero-line);
    color: #151c25;
    background: #fff;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.elka-hero__quick-item:last-child {
    border-right: 0;
}

.elka-hero__quick-item:is(a):hover,
.elka-hero__quick-item:is(a):focus-visible {
    color: var(--elka-hero-green);
    background: #f6fbf8;
    text-decoration: none;
}

.elka-hero__quick-arrow {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

@media (max-width: 1180px) {
    .elka-hero__content {
        width: 68%;
        padding-left: 34px;
    }

    .elka-hero__visual {
        width: 53%;
    }

    .elka-hero__benefits {
        gap: 14px;
    }

    .elka-hero__quick-item {
        padding-inline: 18px;
        gap: 18px;
    }
}

@media (max-width: 920px) {
    .elka-hero__panel,
    .elka-hero__content {
        min-height: 0;
    }

    .elka-hero__panel {
        background: #f7faf7;
    }

    .elka-hero__visual {
        width: 100%;
        opacity: 0.24;
    }

    .elka-hero__visual::before {
        background: linear-gradient(
            90deg,
            rgba(247, 250, 247, 1) 0%,
            rgba(247, 250, 247, 0.97) 46%,
            rgba(247, 250, 247, 0.7) 72%,
            rgba(247, 250, 247, 0.45) 100%
        );
    }

    .elka-hero__content {
        width: 100%;
        padding: 32px;
    }

    .elka-hero__title,
    .elka-hero__intro {
        max-width: 690px;
    }

    .elka-hero__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 680px;
        margin-top: 6px;
    }

    .elka-hero__benefit {
        display: grid;
        grid-template-columns: 38px 1fr;
        gap: 13px;
        align-items: center;
    }

    .elka-hero__benefit-icon {
        margin: 0;
    }

    .elka-hero__benefit-text {
        max-width: none;
    }

    .elka-hero__quick {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .elka-hero__quick-item:nth-child(2) {
        border-right: 0;
    }

    .elka-hero__quick-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--elka-hero-line);
    }
}

@media (max-width: 600px) {
    .elka-hero {
        width: calc(100% - 20px);
        margin: 28px auto 28px;
    }

    .elka-hero__panel {
        border-radius: 15px;
    }

    .elka-hero__content {
        padding: 26px 20px 24px;
    }

    .elka-hero__title {
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.08;
    }

    .elka-hero__intro {
        margin-top: 18px;
        font-size: 16px;
    }

    .elka-hero__benefits {
        display: none;
    }

    .elka-hero__quick {
        grid-template-columns: 1fr;
        margin-top: 12px;
        border-radius: 12px;
    }

    .elka-hero__quick-item {
        min-height: 58px;
        justify-content: space-between;
        padding: 12px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--elka-hero-line);
    }

    .elka-hero__quick-item:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .elka-hero__quick-item {
        transition: none;
    }
}
