html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    height: 100%;
}

* {
    box-sizing: border-box;
    transition: background-color 0.1s, color 0.1s, opacity 0.1s, border-color 0.1s, outline-width 0.1s;
}

body {
    display: flex;
    flex-direction: column;
}

ul {
    padding: 0;
}

header img.logo {
    max-height: 200px;
}

a {
    color: inherit;
    text-decoration: inherit;
}

p {
    white-space: pre-wrap;
}

header {
    background: #600039;
    padding: 20px;
    color: white;
    display: flex;
}

header .menu {
    display: none;
}

header .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto 0;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    font-weight: bold;
    margin-bottom: 0;

    @media (max-width: 320px) {
        flex-direction: column;
        text-align: center;
    }
}

header nav ul li {
    margin: 0;
}

header a {
    height: 100%;
    text-align: center;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
    flex-grow: 1;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.offers {
    margin: 16px;

    &.list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .card {
        background: #281B23;
        display: inline-grid;
        column-gap: 32px;
        align-items: center;
        padding: 32px;
        border-radius: 32px;
        color: white;
        grid-template-columns: max-content;

        &>:nth-child(1) {
            grid-row: 1/span 2;
        }

        &>:nth-child(2), &>:nth-child(3) {
            grid-column: 2;
        }

        &:nth-child(1) {
            background: #D4007E;
        }

        @media (max-width: 600px) {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .logo img {
            max-height: 80px;
            max-width: 100%;
        }

        .button {
            grid-row: 1/span 2;
            grid-column: 3;
            background: white;
            border-radius: 8px;
            font-weight: bold;
            color: black;
            justify-self: end;
            padding: 12px 32px;

            &:hover {
                color: #D4007E;
            }
        }

        p {
            margin: 0;

            &.title {
                font-size: 24px;
            }

            &.description {
                font-weight: bold;
            }
        }

        &:hover {
            .button {
                outline: 5px solid white;
                outline-offset: -1px;
            }
        }
    }
}

.box {
    padding: 32px;
}

footer {
    background: #600039;
    padding: 32px;
    color: white;
    flex-shrink: 0;

    nav {
        display: none;
    }

    .content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;

        &>:nth-child(1), &>:nth-child(2) {
            grid-column: 1;
        }

        .legal {
            grid-row: 1 / span 2;
            grid-column: 2;
            align-items: center;
        }

        @media (max-width: 600px) {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }
    }
}

footer .legal {
    text-align: center;
    font-size: 14px;
}

footer .legal .logos {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: white;
}

footer .legal .logos img {
    max-height: 40px;
}