:root {
    --hx-dark: #212121;
    --hx-light: #FCFCFC;
    --hx-rose: #B86060;
    --hx-green: #598068;
    --hx-brown: #957A56;
}

.ancor-exact-hero,
.ancor-exact-hero * {
    box-sizing: border-box;
}

.ancor-exact-hero {
    position: relative;
    min-height: calc(100svh - 82px);
    overflow: hidden;
    display: flex;
    direction: rtl;
    color: var(--hx-light);
    background: var(--hx-dark);
    font-family:
        "Geeza Pro",
        "Noto Sans Arabic",
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;
    isolation: isolate;
}

.ancor-exact-hero__background {
    position: absolute;
    inset: 0;
    z-index: -4;
    background-image: var(
        --ancor-exact-image,
        linear-gradient(135deg, #344353, #212121)
    );
    background-position: center;
    background-size: cover;
}

.ancor-exact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(
            90deg,
            rgba(24, 25, 26, 0.97) 0%,
            rgba(24, 25, 26, 0.91) 22%,
            rgba(24, 25, 26, 0.63) 45%,
            rgba(24, 25, 26, 0.15) 78%,
            rgba(24, 25, 26, 0.06) 100%
        );
}

.ancor-exact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            180deg,
            rgba(33, 33, 33, 0.03),
            rgba(20, 20, 20, 0.68)
        );
}

.ancor-exact-hero__container {
    width: min(calc(100% - 64px), 1420px);
    min-height: inherit;
    margin: auto;
    padding: 72px 0 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ancor-exact-hero__content {
    display: grid;
    grid-template-columns: minmax(430px, 620px) 1fr;
    align-items: center;
    direction: ltr;
    flex: 1;
    padding-bottom: 40px;
}

.ancor-exact-hero__copy {
    direction: rtl;
    text-align: right;
}

.ancor-exact-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
    color: var(--hx-brown);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.ancor-exact-hero__kicker::before {
    content: "";
    width: 29px;
    height: 2px;
    background: currentColor;
}

.ancor-exact-hero__title {
    max-width: 620px;
    margin: 0 0 22px;
    color: var(--hx-light);
    font-size: clamp(46px, 5vw, 72px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.035em;
}

.ancor-exact-hero__title span {
    display: block;
}

.ancor-exact-hero__description {
    max-width: 600px;
    margin: 0 0 30px;
    color: rgba(252, 252, 252, 0.82);
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
}

.ancor-exact-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.ancor-exact-hero__button {
    min-width: 190px;
    min-height: 57px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 25px;
    border-radius: 9px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 800;
    transition:
        transform 180ms ease,
        background-color 180ms ease;
}

.ancor-exact-hero__button:hover {
    transform: translateY(-2px);
}

.ancor-exact-hero__button--primary {
    color: var(--hx-light) !important;
    background: var(--hx-rose);
    border: 1px solid var(--hx-rose);
}

.ancor-exact-hero__button--primary:hover {
    background: var(--hx-green);
}

.ancor-exact-hero__button--secondary {
    color: var(--hx-light) !important;
    background: rgba(33, 33, 33, 0.32);
    border: 1px solid rgba(149, 122, 86, 0.85);
    backdrop-filter: blur(7px);
}

.ancor-exact-hero__arrow {
    color: var(--hx-brown);
    font-size: 21px;
}

.ancor-exact-hero__services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: hidden;
    background:
        linear-gradient(
            110deg,
            rgba(17, 18, 18, 0.97),
            rgba(27, 28, 28, 0.93)
        );
    border: 1px solid rgba(252, 252, 252, 0.16);
    border-radius: 17px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.23);
}

.ancor-exact-hero__service {
    position: relative;
    min-height: 214px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 29px 20px 21px;
    color: var(--hx-light) !important;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 180ms ease;
}

.ancor-exact-hero__service:hover {
    background: rgba(252, 252, 252, 0.05);
}

.ancor-exact-hero__service:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 0;
    width: 1px;
    background: rgba(252, 252, 252, 0.13);
}

.ancor-exact-hero__icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: var(--hx-light);
}

.ancor-exact-hero__service:nth-child(1) .ancor-exact-hero__icon {
    background: var(--hx-rose);
}

.ancor-exact-hero__service:nth-child(2) .ancor-exact-hero__icon,
.ancor-exact-hero__service:nth-child(4) .ancor-exact-hero__icon {
    background: var(--hx-green);
}

.ancor-exact-hero__service:nth-child(3) .ancor-exact-hero__icon,
.ancor-exact-hero__service:nth-child(5) .ancor-exact-hero__icon {
    background: var(--hx-brown);
}

.ancor-exact-hero__icon svg {
    width: 23px;
    height: 23px;
}

.ancor-exact-hero__service h3 {
    margin: 0 0 8px;
    color: var(--hx-light);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

.ancor-exact-hero__service p {
    max-width: 205px;
    margin: 0;
    color: rgba(252, 252, 252, 0.65);
    font-size: 13px;
    line-height: 1.85;
}

.ancor-exact-hero__service-arrow {
    margin-top: auto;
    padding-top: 10px;
    color: var(--hx-brown);
    font-size: 20px;
}

.ancor-exact-hero__benefits {
    min-height: 83px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
    border-top: 1px solid rgba(252, 252, 252, 0.13);
}

.ancor-exact-hero__benefit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
}

.ancor-exact-hero__benefit:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 1px;
    background: rgba(252, 252, 252, 0.13);
}

.ancor-exact-hero__benefit-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    border: 1px solid rgba(184, 96, 96, 0.48);
    border-radius: 50%;
}

.ancor-exact-hero__benefit strong {
    display: block;
    margin-bottom: 4px;
    color: var(--hx-light);
    font-size: 16px;
}

.ancor-exact-hero__benefit small {
    color: rgba(252, 252, 252, 0.58);
    font-size: 11px;
}

@media (max-width: 950px) {
    .ancor-exact-hero {
        min-height: auto;
    }

    .ancor-exact-hero__container {
        width: min(calc(100% - 30px), 1420px);
        padding-top: 55px;
    }

    .ancor-exact-hero__content {
        display: block;
    }

    .ancor-exact-hero__services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ancor-exact-hero__service:last-child {
        grid-column: 1 / -1;
    }

    .ancor-exact-hero__service:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 650px) {
    .ancor-exact-hero__title {
        font-size: 38px;
    }

    .ancor-exact-hero__description {
        font-size: 15px;
    }

    .ancor-exact-hero__actions {
        flex-direction: column;
    }

    .ancor-exact-hero__button {
        width: 100%;
    }

    .ancor-exact-hero__services {
        grid-template-columns: 1fr;
    }

    .ancor-exact-hero__service,
    .ancor-exact-hero__service:last-child {
        min-height: auto;
        grid-column: auto;
        display: grid;
        grid-template-columns: 47px minmax(0, 1fr) 25px;
        grid-template-rows: auto auto;
        column-gap: 15px;
        padding: 21px;
        text-align: right;
        border-bottom: 1px solid rgba(252, 252, 252, 0.10);
    }

    .ancor-exact-hero__icon {
        grid-row: 1 / 3;
        margin: 0;
    }

    .ancor-exact-hero__service h3 {
        margin-bottom: 3px;
        font-size: 17px;
    }

    .ancor-exact-hero__service p {
        max-width: none;
        font-size: 12px;
    }

    .ancor-exact-hero__service-arrow {
        grid-column: 3;
        grid-row: 1 / 3;
        margin: 0;
        padding: 0;
    }

    .ancor-exact-hero__benefits {
        grid-template-columns: 1fr;
    }

    .ancor-exact-hero__benefit {
        justify-content: flex-start;
    }

    .ancor-exact-hero__benefit:not(:last-child)::after {
        top: auto;
        right: 0;
        left: 0;
        bottom: 0;
        width: auto;
        height: 1px;
    }
}
