.first-screen {
    position: relative;
    margin: 176px 0 100px 0;
}

.first-screen__content {
    display: grid;
    grid-template-columns: 1fr 416px;
    align-items: center;
    gap: 56px;
}

.first-screen___left {
    position: relative;
    z-index: 2;
    height: fit-content;
}

.first-screen__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column-reverse;
}

.first-screen__tag {
    text-align: center;
    position: relative;
    font-weight: 600;
    font-size: 24px;
}

.first-screen__title {
    font-family: Unbounded;
    font-size: 40px;
    font-weight: 900;
    line-height: 140%;
    text-align: left;

    color: #f5f4eb;
    margin: 60px 0 24px;
    text-transform: uppercase;
}

.first-screen__title .h2 {
    font-size: 37px;
}

.first-screen__text {
    font-family: Unbounded;
    font-size: 24px;
    font-weight: 400;
    line-height: 150%;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 60px 0;
}

.first-screen__title_colored {
    background: linear-gradient(
        180deg,
        #fff 0%,
        rgba(255, 255, 255, 0) 256.52%
    );
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    display: block;
}

.first-screen .btn-with-gradiend {
    margin: 0;
}

.first-screen___img {
    position: relative;
    z-index: 1;
}

.first-screen___hero-img img {
    max-width: 100%;
}

.first-screen__bg {
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    width: 144%;
    aspect-ratio: 1/1;
    max-width: unset;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.first-screen___hero-bg {
    width: 100%;
}

.first-screen__hero-img {
    --img-offset: 0;
    object-fit: contain;
    width: calc(100% + var(--img-offset));
    height: auto;
    margin-left: calc(-1 * var(--img-offset));
    max-width: 406px;
}

@media screen and (max-width: 1050px) {
    .first-screen__content {
        grid-template-columns: 500px 1fr;
        gap: 20px;
    }
}

@media (max-width: 1350px) {
    .first-screen {
        position: relative;
    }

    .first-screen__title {
        font-size: 30px;
        margin: 40px 0px 24px 0;
    }

    .first-screen__text {
        font-size: 16px;
        margin: 0 0 40px 0;
    }

    .first-screen .btn-with-gradiend {
        margin: 0;
    }

    .first-screen__tag {
        font-size: 20px;
    }

    .first-screen__hero-img {
        --img-offset: 0;
        max-width: 100%;
    }

    .first-screen__content {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 980px) {
    .first-screen {
        margin: 130px 0 80px 0;
    }

    .first-screen__title {
        font-size: 24px;
        margin: 40px 0 24px;
    }

    .first-screen__text {
        font-size: 16px;
    }

    .first-screen___hero-bg {
        top: -5%;
    }

    .first-screen__tag {
        font-size: 18px;
    }
}


@media (max-width: 750px) {
    .first-screen {
        margin: 90px 0 40px 0;
    }

    .first-screen__content {
        display: flex;
        flex-direction: column-reverse;
        position: relative;
        gap: 12px;
    }

    .first-screen___left {
        position: static;
        z-index: 2;
    }

    .first-screen__title .h2 {
        font-size: 28px;
    }

    .first-screen__tags {
        margin-top: 30px;
        gap: 16px;
    }

    .first-screen__tag {
        width: -webkit-max-content;
        width: -moz-max-content;
        width: max-content;
        font-size: 18px;
        line-height: 120%;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .first-screen__title {
        font-family: Unbounded;
        font-size: 22px;
        line-height: 28.6px;
        margin: 16px 0;
    }

    .first-screen__text {
        font-size: 14px;
        max-width: 600px;
        margin-bottom: 24px;
    }

    .first-screen .btn-with-gradiend {
        margin: 24px 0 0 0;
    }

    .first-screen__hero-img {
        max-height: 500px;
    }

    .first-screen___left {
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .first-screen__bg {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .first-screen__hero-img {
        max-height: 320px;
    }

    .first-screen__tag {
        font-size: 16px;
        line-height: 130%;
    }

    .first-screen__tags {
        margin-top: 0;
        gap: 10px;
    }

    .first-screen__content {
        gap: 0;
    }

    .first-screen__inner {
        padding: 0;
    }

    .first-screen___left {
        padding: 0 10px;
    }

    .first-screen___img {
        margin-top: 0;
        margin-bottom: 18px;
    }
}

@media (max-width: 359px) {
    .first-screen__tags {
        gap: 8px;
    }
}

