* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
}


body {
    font-family: 'Graphik', sans-serif;
    padding: 45px 0;
    background: #182A6C;
    height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.01em;
}

header {
    display: flex;
    justify-content: center;
    margin-bottom: auto;
}

.logo {
    width: 42px;
    height: 90px;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    height: 100%;
}

.button {
    font-size: 38px;
    line-height: 38px;
    padding: 33px 0;
    background: #EE201F;
    text-decoration: none;
    transition: background .2s;
    border-radius: 93px;
    text-align: center;
    width: 463px;
    font-weight: 500;

    span {
        color: white;
    }
}

.button:active {
    background: #6B3A99;
}

@media (hover: hover) {
    .button:hover {
        background: #6B3A99;
    }
}


footer {
    display: flex;
    margin-top: auto;
    flex-direction: column;
    align-items: center;
}

.contacts {
    font-size: 20px;
    line-height: 29px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    font-weight: 500;
}

.contacts a {
    color: white;
    text-decoration: none;
    transition: opacity .2s;
}

.contacts a:active {
    opacity: 0.7;
}

@media (hover: hover) {
    .contacts a:hover {
        opacity: 0.7;
    }
}

.legal {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 10px;
    line-height: 15px;
    margin-top: 8px;
}

@media screen and (max-width: 768px) {
    body {
        padding: 45px 16px;
        height: 100vh;
        height: 100svh;
    }

    .logo {
        width: 34px;
        height: 74px;
    }

    .button {
        width: 310px;
        border-radius: 50px;
        padding: 23px 46px;
        font-size: 28px;
        line-height: 28px;
    }

    .contacts {
        font-size: 18px;
        line-height: 27px;
        max-width: 310px;
    }

    .legal {
        max-width: 343px;
    }
}
