.home-services {
    background:
        radial-gradient(circle at top right, rgb(var(--color-accent-rgb) / 0.08), transparent 22rem),
        #151d30;
    color: #ffffff;
}

.home-services__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.home-services__intro {
    max-width: 33rem;
}

.home-services__title {
    margin-bottom: 0.9rem;
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 3.7vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
    color: #ffffff;
    white-space: nowrap;
}

.home-services__description {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.7;
    color: rgb(255 255 255 / 0.66);
}

.home-services__catalog-button,
.home-services__banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.85rem;
    font-size: 0.98rem;
    font-weight: 800;
    white-space: nowrap;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.home-services__catalog-button {
    align-self: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-accent), #ff9a3b);
    box-shadow: 0 18px 40px rgb(var(--color-accent-rgb) / 0.22);
}

.home-services__catalog-button:hover,
.home-services__catalog-button:focus-visible,
.home-services__banner-button:hover,
.home-services__banner-button:focus-visible {
    transform: translateY(-2px);
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
}

.service-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 7.9rem;
    padding: 1.4rem 1rem;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 1rem;
    background: #21293d;
    text-align: center;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.service-tile:hover,
.service-tile:focus-within {
    transform: translateY(-0.25rem);
    border-color: rgb(78 108 246 / 0.34);
    background: #252f46;
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.18);
}

.service-tile__icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 0.85rem;
    background: rgb(78 108 246 / 0.08);
    transition:
        transform 220ms ease,
        background 220ms ease;
}

.service-tile:hover .service-tile__icon-box,
.service-tile:focus-within .service-tile__icon-box {
    transform: scale(1.06);
    background: rgb(78 108 246 / 0.16);
}

.service-tile__icon {
    width: 1.55rem;
    height: 1.55rem;
}

.service-tile__title {
    margin: 0;
    max-width: 10rem;
    font-family: var(--font-heading);
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.45;
    color: #ffffff;
}

.home-services__banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.3rem;
    padding: 1.35rem 1.6rem;
    /* border: 1px solid rgb(255 255 255 / 0.08); */
    /* border-radius: 1rem; */
    /* background: #334264; */
}

.home-services__banner-text {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--color-accent);
}

.home-services__banner-button {
    color: #ffffff;
    border: 2px solid var(--color-accent);
    background: rgb(255 255 255 / 0.04);
}

.home-services__banner-button:hover,
.home-services__banner-button:focus-visible {
    background: rgb(var(--color-accent-rgb) / 0.16);
    box-shadow: 0 14px 28px rgb(var(--color-accent-rgb) / 0.12);
}

@media (max-width: 1100px) {
    .home-services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .home-services__header,
    .home-services__banner {
        flex-direction: column;
        align-items: stretch;
    }

    .home-services__catalog-button,
    .home-services__banner-button {
        width: 100%;
    }

    .home-services__banner-text {
        text-align: center;
    }
}

@media (max-width: 700px) {
    .home-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .home-services__grid {
        grid-template-columns: 1fr;
    }

    .service-tile {
        min-height: 7rem;
    }
}
