.home-app-download {
    overflow: clip;
    padding-inline: clamp(20px, 3.62vw, 56px);
    color: #161e55;
    font-family: IRANSans, YekanBakh-Regular, sans-serif;
}

.home-app-download__layout {
    display: grid;
    grid-template:
        "title visual" auto
        "description visual" auto
        "stores visual" 1fr / minmax(0, 3fr) minmax(0, 2fr);
    column-gap: 26px;
    max-width: 1280px;
    min-height: 403px;
    margin-inline: auto;
}

.home-app-download__title {
    grid-area: title;
    margin: 78px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.home-app-download__description {
    grid-area: description;
    max-width: 560px;
    margin: 22px 0 0;
    font-size: 14px;
    line-height: 20px;
}

.home-app-download__visual {
    position: relative;
    grid-area: visual;
}

.home-app-download__filters,
.home-app-download__phone {
    position: absolute;
}

.home-app-download__phone {
    top: -3px;
    left: 50%;
    width: clamp(260px, 33vw, 332px);
    height: auto;
    max-width: none;
    filter: url("#home-app-download-shadow");
    transform: translateX(-62.5%);
}

.home-app-download__stores {
    display: grid;
    grid-area: stores;
    grid-template-columns: repeat(2, minmax(0, 170px));
    align-self: start;
    justify-self: start;
    gap: 28px;
    width: 100%;
    max-width: 368px;
    margin-block: 35px 48px;
}

.home-app-download__stores a {
    display: block;
    border-radius: 6px;
}

.home-app-download__stores a:focus-visible {
    outline: 2px solid #2d59f0;
    outline-offset: 3px;
}

.home-app-download__stores img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .home-app-download__layout {
        grid-template: "title" "visual" "description" "stores" / minmax(0, 1fr);
        justify-items: center;
        min-height: 0;
        padding-block: 24px 90px;
        text-align: center;
    }

    .home-app-download__title {
        margin-top: 0;
        font-size: 14px;
        line-height: 22px;
    }

    .home-app-download__visual {
        width: 100%;
        height: min(345px, 96.6vw);
    }

    .home-app-download__phone {
        top: -17px;
        width: min(310px, 87vw);
        transform: translateX(-65.25%);
    }

    .home-app-download__description {
        position: relative;
        margin-top: 0;
        font-size: 13px;
    }

    .home-app-download__stores {
        position: relative;
        justify-self: center;
        gap: 12px;
        max-width: 352px;
        margin-block: 18px 0;
    }
}
