:root {
    --cyan: hsl(177, 68%, 64%);
    --orange: hsl(12, 94%, 65%);
    --yellow: hsl(33, 100%, 70%);
    --white: hsl(20, 33%, 98%);
    --black: hsl(244, 23%, 12%);

    --regular: 400;
    --bold: 700;
}

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: inherit;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    padding: 6.1rem calc(165 / 1440 * 100%);
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: var(--white);
    background-image: url(../images/bg-pattern-1.svg), url(../images/bg-main-desktop.png);
    background-repeat: no-repeat;
    background-position: right 0 top -4rem, left -30rem top -25rem;
    position: relative;
    min-height: 100vh;
}

.header {
    max-width: 85rem;
    margin-bottom: 28.3rem;
}

.header__logo {
    margin-left: .1rem;
}

.header__title {
    margin: 12.4rem 0 3.8rem;
    font-weight: var(--bold);
    font-size: 8.8rem;
    line-height: 1em;
    letter-spacing: -0.012em;
}

.header__description {
    font-family: Arial, 'IBM Plex Sans', sans-serif;
    font-weight: var(--regular);
    font-size: 2rem;
    line-height: 1.7em;
    margin-left: -0.05rem;
    margin-right: 12rem;
}

.hero {
    background-color: var(--black);
    background-image: url(../images/bg-pattern-2.svg);
    background-repeat: no-repeat;
    background-position: left 37.6rem top 0rem;
    min-height: 60rem;
    border-radius: 1.2rem;
    position: relative;
    margin-bottom: 31.1rem;
}

.hero__app-illustration {
    width: 31.2rem;
    position: absolute;
    top: -11.3rem;
    left: 10.2rem;
}

.hero__premium-eq {
    background-color: var(--orange);
    border-radius: 1.2rem;
    max-width: 51.2rem;
    min-height: 62.5rem;
    color: var(--black);
    font-size: 2rem;
    padding: 2.9em 2.7em 2.4em;
    position: absolute;
    right: 10.2rem;
    top: 9rem;
}

.hero__title {
    font-size: 4rem;
    font-weight: var(--bold);
    margin-bottom: .49em;
}

.hero__description {
    font-weight: var(--regular);
    line-height: 1.7em;
    margin-bottom: 1.2em;
}

.hero__price {
    font-size: 6.5rem;
    font-weight: var(--bold);
    margin-bottom: 0.22em;
}

.hero__price span {
    font-size: 1.9rem;
    font-weight: var(--regular);
    vertical-align: middle;
    margin-left: .05em;
    position: relative;
    top: -0.55em;
}

.hero__download {
    all: unset;
    width: 98.5%;
    border-radius: 1.2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: var(--bold);
    letter-spacing: -0.01em;
    padding: .95em 0 1.1em;
    margin-top: 1.6rem;
    cursor: pointer;
    transition: background-color .25s ease-in-out;
}

.hero__download img {
    vertical-align: middle;
    margin-right: .2em;
    margin-top: -0.2em;
}

.hero__ios-download {
    background: var(--black);
    color: var(--white);
}

.hero__ios-download img {
    margin-right: .18em;
}

.hero__ios-download:hover {
    background-color: var(--cyan);
}

.hero__android-download {
    background-color: var(--white);
    color: var(--black);
}

.hero__android-download img {
    margin-top: -0.1em;
}

.hero__android-download:hover {
    background-color: var(--yellow);
}

.footer {
    position: absolute;
    bottom: 0;
    width: 77.0835%;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    margin-bottom: 8.985rem;
}

.footer__logo {
    object-fit: contain;
    align-self: flex-start;
}

.footer__copyright {
    font-size: 1.6rem;
    font-weight: var(--regular);
    max-width: 46.6rem;
    line-height: 1.67em;
    letter-spacing: .0005em;
    margin-left: .75rem;
    margin-top: .1rem;
}

.footer__copyright span {
    font-weight: var(--bold);
}

.footer__social-media {
    justify-self: flex-end;
    align-self: center;
    margin-top: -0.1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer__social-media a:nth-child(1),
.footer__social-media a:nth-child(2) {
    font-size: 2.3rem;
}

.footer__social-media a {
    color: var(--black);
    font-size: 2rem;
    transition: color .125s ease-in-out;
}

.footer__social-media a:hover {
    color: var(--orange);
}

.footer__attribution {
    position: absolute;
    bottom: -1em;
    right: 0;
    font-size: 1.1rem;
    color: var(--black);
    text-align: right;
    margin-bottom: .5em;
    opacity: .6;
}

.footer__attribution a {
    color: var(--black);
    font-size: 1.1rem !important;
    text-decoration: none;
    transition: .1s;
}

.footer__attribution a:hover {
    color: var(--orange);
}

@media (max-width: 72em) {
    body {
        padding: 6.1rem calc(39 / 768 * 100%) 6.1rem calc(33 / 768 * 100%);
        background-image: url(../images/bg-pattern-1-tablet.svg), url(../images/bg-main-tablet.png);
        background-position: right -3.6rem top -3.2rem, left -40rem top -25rem;
    }

    .header {
        max-width: 51.5rem;
        margin-left: .5rem;
        margin-bottom: 24.8rem;
    }

    .header__title {
        font-size: 6.4rem;
        margin: 9.2rem 0 2.85rem .1rem;
    }

    .header__description {
        font-size: 1.8rem;
        line-height: 1.555555555em;
        margin-left: .1rem;
    }

    .hero {
        background-size: 28rem;
        background-position: left 22.9rem top -3.1rem;
        margin-bottom: 35rem;
    }

    .hero__app-illustration {
        width: 27rem;
        top: -13.75rem;
        left: 6.4rem;
    }

    .hero__premium-eq {
        max-width: 39.9rem;
        min-height: 54.6rem;
        font-size: 1.8rem;
        padding: 2.65em 2.67em 2.4em;
        right: 5.8rem;
        top: 15rem;
    }

    .hero__title {
        font-size: 3.2rem;
        margin-bottom: .38em;
    }

    .hero__description {
        line-height: 1.55em;
        margin-bottom: 1em;
    }

    .hero__price {
        margin-left: .09em;
        margin-bottom: 0;
    }

    .hero__download {
        width: 97.7%;
        margin-left: .6rem;
    }

    .hero__ios-download {
        padding: 1.142em 0 .97em;
    }
    
    .hero__ios-download img {
        margin-top: -0.3em;
    }
    
    .hero__android-download {
        padding: 1.1em 0 1.012em;
    }

    .footer {
        width: 90.625%;
        grid-template-columns: 2fr 1fr;
        margin-bottom: 8.35rem;
    }

    .footer__logo {
        margin-bottom: 3.1rem;
    }

    .footer__copyright {
        grid-row: 2;
        margin-left: 0;
    }

    .footer__social-media {
        grid-row: 2;
        margin-top: 0.1rem;
    }

    @media (max-width: 45.625em) {
        body {
            padding: 3.9rem 2.2rem;
            background-image: none, url(../images/bg-main-mobile.png);
            background-position: right -25rem top -23rem;
        }

        .header {
            max-width: none;
            margin-left: .2rem;
            margin-bottom: 16.6rem;
        }

        .header__logo {
            margin-left: 0;
        }

        .header__title {
            font-size: 4rem;
            line-height: 1.2em;
            margin: 6.1rem 0 2rem;
            hyphens: auto;
        }

        .header__description {
            font-size: 1.6rem;
            line-height: 1.625em;
            margin-left: 0;
        }

        .hero {
            margin: 0 -2.2rem 68.4rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            background-position: center top 0;
        }

        .hero__app-illustration {
            width: 20.9rem;
            position: relative;
            top: -9.8rem;
            left: -0.2rem;
            right: 0;
        }

        .hero__premium-eq {
            top: 38rem;
            left: 0;
            right: 0;
            margin: 0 auto;
            max-width: 50rem;
            min-height: auto;
            padding: 2.6em 2em 2.7em;
        }

        .hero__description {
            margin-bottom: 1.01em;
        }

        .hero__android-download {
            padding: 1.112em 0 1em;
        }

        .footer {
            grid-template-columns: 1fr;
            grid-template-rows: 1fr 2fr 1fr;
            margin-left: .2rem;
            margin-bottom: 7.6rem;
            gap: .1rem;
        }

        .footer__copyright {
            grid-column: 1;
            grid-row: 2;
            max-width: 90%;
            margin-top: -0.05rem;
        }

        .footer__social-media {
            grid-column: 1;
            grid-row: 3;
            justify-self: flex-start;
            align-self: flex-end;
        }

        .footer__attribution {
            right: auto;
            left: -0.2rem;
            bottom: -3em;
            text-align: left;
        }

        @media (max-width: 19.6875em) {
            .hero {
                margin-bottom: 75rem;
            }

            @media (max-width: 16.875em) {
                .hero {
                    margin-bottom: 90rem;
                }

                @media (max-width: 15.3125em) {
                    .hero {
                        margin-bottom: 105rem;
                    }
                }
            }
        }
    }
}