@font-face {
    font-family: "Area";
    src: url("../fonts/AreaNormal-Light.woff2") format("woff2");
    font-weight: 300;
}

@font-face {
    font-family: "Area";
    src: url("../fonts/AreaInktrap-Semibold.woff2") format("woff2");
    font-weight: 500;
}

@font-face {
    font-family: "Area";
    src: url("../fonts/AreaInktrap-Bold.woff2") format("woff2");
    font-weight: 600;
}

@font-face {
    font-family: "Area";
    src: url("../fonts/AreaInktrap-Extrabold.woff2") format("woff2");
    font-display: swap;
    font-weight: 900;
}

img {
    max-width: 100%;
    height: auto;
}

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

html {
    scroll-behavior: smooth;
    font-family: "Area", "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

input[type="number"],
input[type="password"],
input[type="email"],
input[type="text"] {
    border: 0;
    border-radius: 0;
    background: #fff;
    padding: 0 10px;
    width: 100%;
    line-height: 40px;
    height: 40px;
    border-bottom: 1px solid var(--blue);
    outline: none;
}

button {
    line-height: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 15px;
    display: inline-block;
    border: 0;
    cursor: pointer;
    outline: 0;
    font-weight: 600;
    font-size: 1rem;

    &.submit {
        background-color: var(--darkblue);
        color: #fff;

        &:hover,
        &:focus-visible {
            background-color: var(--blue);
        }
    }
}

.form {
    label {
        display: none;
    }

    .form-field {
        margin-bottom: 15px;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

header {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    background: #fff;

    .inside {
        border-bottom: 1px solid var(--black);
        width: calc(100% - 30px);
        max-width: 1024px;
        margin: 0 auto;
        padding: 10px 0;
        background: #fff;

        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
    }

    .navigation {
        width: calc(100% - 120px);
        text-align: right;

        li {
            margin: 0 0 0 10px;

            &:last-child {
                margin-right: 0;
            }
        }

        button,
        a {
            padding: 10px 15px;
            text-transform: none;
        }
    }

    &.shrink {

        .logo {
            img {
                height: 50px;
            }
        }

        button,
        a {
            font-size: 14px;
            padding: 10px;
            text-transform: none;
        }
    }
}

main {
    padding-top: 126px;
    min-height: calc(100vh - 162px);

    .inside {
        width: calc(100% - 30px);
        max-width: 1024px;
        margin: 0 auto;
    }
}

footer {
    background: var(--lightblue);
    color: var(--blackblue);

    .inside {
        width: calc(100% - 30px);
        max-width: 1024px;
        margin: 0 auto;
        padding: 10px 0;

        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    p {
        margin: 0;
        font-size: 12px;
        line-height: 1.1;
    }

    li {
        margin: 0 0 0 10px;
        line-height: 1.1;

        &:last-child {
            margin-right: 0;
        }
    }

    a {
        font-size: 12px;
        padding: 3px 0;
        color: var(--blackblue);
        text-decoration: none;

        &:hover,
        &:focus-visible {
            color: #fff;
        }
    }
}

.error-messages {
    ul {
        padding-left: 0;
        margin: 10px 0;
        list-style: none;
    }

    li {
        color: tomato;
        margin-bottom: 10px;

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.navigation {
    ul {
        padding: 0;
        margin: 0;
        list-style: none;

        display: flex;
        justify-content: flex-end;
    }

    a.button.primary {
        background-color: var(--darkblue);
        color: #fff;

        &:hover,
        &:focus-visible {
            color: #fff;
            background-color: var(--blue);
        }
    }

    button {
        padding: 10px 15px;
        line-height: 1.1;
        height: auto;

        &:hover,
        &:focus-visible {
            color: #fff;
            background-color: var(--blue);
        }
    }
}

a.button {
    line-height: 1.1;
    text-decoration: none;
    padding: 10px 15px;
    text-align: center;
    border-radius: 15px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    font-size: 1rem;

    &.primary {
        color: #fff;
        background-color: var(--blue);

        &:hover,
        &:focus-visible {
            background-color: var(--darkblue);
            color: #fff;
        }
    }

    &.secondary {
        background-color: var(--darkblue);
        color: #fff;

        &:hover,
        &:focus-visible {
            color: #fff;
            background-color: var(--blue);
        }
    }
}

.logo {
    h1 {
        line-height: 1;
        margin: 0;
    }

    a {
        display: block;
    }

    img {
        width: auto;
        height: 100px;
        transition: all 300ms ease;
    }
}


.small-box {
    background: var(--color-bg-dark);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    margin: 50px auto;
}
