:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-red-600: #D8321E;
    --color-red-800: #991B1B;
    --color-gray-50: #F9F9F9;
    --color-gray-100: #F2F2F2;
    --color-gray-200: #e5e5e5;
    --color-gray-300: #d1d1d1;
    --color-gray-400: #a9a9a9;
    --color-gray-500: #737373;
    --color-gray-600: #545454;
    --color-gray-800: #262626;
    --color-gray-900: #171717;
    --color-yellow-700: #BDA34D;
    --color-text: var(--color-gray-800);
    --color-brand: var(--color-red-600);
    --color-dialog-backdrop: #3F4F5ACC;
    --font-family: "HelveticaNowText", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --content-padding: 0 70px;
    --content-padding-top: 80px;
    --content-padding-bottom: 40px;
    --header-height: 104px;
    --header-padding: 26px 0;
    --footer-padding: 20px 0;
}

@media (max-width: 1280px) {
    :root {
        --header-height: 97px;
        --content-padding: 0 50px;
    }
}

@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 78px;
        --header-padding: 20px 0;
        --content-padding-top: 60px;
        --content-padding-bottom: 30px;
        --content-padding: 0 24px;
    }
}

/* reset */

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

* {
    -webkit-tap-highlight-color: transparent;
}


ul,
ol {
    padding: 0;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
svg {
    user-select: none;
}

body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

ul[class],
ol[class] {
    list-style: none;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img {
    max-width: 100%;
    display: block;
}

article>*+* {
    margin-top: 1em;
}

input,
button,
textarea,
select {
    font: inherit;
    -webkit-font-smoothing: antialiased;
}

code {
    display: inline-block;
    font-size: 16px;
    color: black;
    background: var(--color-gray-200);
    padding: 8px 14px;
    margin: 1.5rem 0;
    min-width: 480px;
    user-select: text;
}

a {
    &:focus-visible {
        outline-offset: 2px;
        outline-width: 2px;
        outline-style: ridge;
    }
}

/* additional base styles */

input[type="text"],
input[type="password"] {
    width: 380px;
    height: 48px;
    border-radius: 4px;
    padding-right: 12px;
    padding-left: 12px;
    border: 1px solid var(--color-gray-400);
    color: var(--color-text);

    ::placeholder {
        color: var(--color-gray-400);
        opacity: 1;
        user-select: none;
    }
}

button {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    box-shadow: none;
    cursor: pointer;
    outline: none;
    user-select: none;

    &:focus-visible {
        outline: 2px solid var(--color-gray-800);
        outline-offset: 2px;
    }

    &:disabled {
        opacity: 0.5;
        cursor: default;
        pointer-events: none;
    }
}

video {
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* a11y */

.reduced-motion-warning {
    display: none;
    width: 100%;
    margin-bottom: 2rem;
    padding: 12px 16px;
    border: 3px solid var(--color-yellow-700);
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reduced-motion-warning {
        display: block;
    }
}

/* animations */

.shake {
    animation: shake 0.7s ease-in forwards;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1.25px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(1.25px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-1.75px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(1.75px, 0, 0);
    }
}

/* fonts */

@font-face {
    font-family: HelveticaNowText;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/HelveticaNowText-Regular.woff2') format('woff2');
}

@font-face {
    font-family: HelveticaNowText;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/HelveticaNowText-Medium.woff2') format('woff2');
}

@font-face {
    font-family: HelveticaNowText;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/HelveticaNowText-Bold.woff2') format('woff2');
}

html {
    height: -webkit-fill-available;
    overscroll-behavior: none;
    overflow: hidden;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    min-height: -webkit-fill-available;
    height: 100%;

    color: var(--color-text);
    background: var(--color-gray-50);

    font-family: var(--font-family);
    font-style: normal;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 16px;
}

h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

h5,
h6,
p {
    font-size: 14px;
}

#wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;

    .outer {
        display: flex;
        align-items: center;
        margin: 0 auto;
        padding: var(--content-padding);
        transition: padding 0.15s ease-in-out;
    }
}

header.site {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--header-padding);
    background: var(--color-gray-50);
    transition: padding 0.15s ease-in-out;

    .outer {
        align-items: center;
    }

    .logo {
        &:focus-visible {
            outline-offset: 4px;
        }

        svg {
            display: block;
            width: auto;
            transition: height 0.15s ease-in-out;

            .logo {
                fill: var(--color-brand);
            }

            .text {
                fill: var(--color-gray-600);
            }
        }

        &.big {
            svg {
                height: 52px;

                @media (max-width: 1280px) {
                    height: 49px;
                }

                @media (max-width: 768px) {
                    height: 38px;
                }
            }

            @media (max-width: 480px) {
                display: none;
            }
        }

        &.small {
            display: none;

            svg {
                height: 38px;
            }

            @media (max-width: 480px) {
                display: block;
            }
        }
    }
}

.header-nav {
    margin-left: auto;

    .header-nav-list {
        display: flex;
        gap: 35px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .header-nav-link {
        color: var(--color-gray-800);
        font-size: 14px;
        text-decoration: none;
        transition: color 0.1s ease-in-out;

        svg {
            width: 11px;
            height: auto;
            margin-right: 0.75rem;
        }

        &:hover {
            color: var(--color-brand);
            text-decoration: none;
        }
    }
}

main.site {
    flex: 1;
    padding-top: var(--content-padding-top);
    padding-bottom: var(--content-padding-bottom);
    transition: padding 0.15s ease-in-out;

    .outer {
        flex-direction: column;
    }

    #app {
        width: 100%;
    }
}

footer.site {
    padding: var(--footer-padding);
    background: var(--color-white);

    .outer {
        align-items: center;
        max-width: 1600px;
    }

    p {
        font-size: 16px;
    }

    .auth-status {
        margin-left: auto;
        font-size: 16px;
    }
}