* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --footer-height: 164px;
    --footer-height-mobile: 135px;
}

html {
    scroll-padding-top: 58px;
    overflow-x: hidden;
}

@media (max-width: 860px) {
    html {
        scroll-padding-top: 38px;
    }
}

body {
    background: black;
    color: white;
    font-weight: 400;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: var(--font-title);
}

h1 {
    font-weight: 900;
    font-size: 140px;
    line-height: 1;
    text-wrap: nowrap;
}

h2, h3 {
    font-weight: 700;
    color: white;
}

h2:where(.h2--primary) {
    color: var(--color-text-accent);
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
}

h2:where(.h2--secondary) {
    color: white;
    font-size: 115px;
    font-weight: 700;
    line-height: 1;
}

h3 {
    font-weight: 450;
    font-size: 60px;
    line-height: 140%;
}

@media (max-width: 1240px) {
    h1 {
        font-size: 120px;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 96px;
    }
}

@media (max-width: 540px) {
    h1 {
        font-size: 60px;
    }
}

@media (max-width: 1440px) {
    h3 {
        font-size: 48px;
    }

    h3 {
        font-size: 32px;
    }

    h2:where(.h2--primary) {
        font-size: 60px;
    }

    h2:where(.h2--secondary) {
        font-size: 100px;
    }
}

@media (max-width: 1024px) {
    h2:where(.h2--primary) {
        font-size: 48px;
    }

    h2:where(.h2--secondary) {
        font-size: 80px;
    }
}

@media (max-width: 540px) {
    h2:where(.h2--primary) {
        font-size: 40px;
    }

    h2:where(.h2--secondary) {
        font-size: 60px;
    }
}

p, button, a, input, label {
    font-family: var(--font-body);
}

p {
    font-size: 24px;
    font-weight: 400;
    color: white;
}

@media (max-width: 860px) {
    p {
        font-size: 20px;
    }
}

@media (max-width: 540px) {
    p {
        font-size: 16px;
    }
}

a {
    color: var(--color-text-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-text-link--hover);
}

a:visited {
    color: var(--color-text-accent);
}

span:where(.accent) {
    color: var(--color-text-accent);
    font-weight: 900;
}

.button {
    border: none;
    cursor: pointer;
    color: #FFF;
    font-family: "Noto Sans", sans-serif;
    text-transform: uppercase;
}

.button--sm {
    margin-top: auto;
    height: 77px;
    border-radius: 24px;
    background: var(--color-bg-accent);
    font-weight: 700;
    font-size: 32px;
    padding: 0 24px;
    box-sizing: border-box;
}

.button-lg {
    display: flex;
    width: 560px;
    padding: 14px 20px;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.6;
    background: var(--color-bg-accent);
    border-radius: 24px;
    box-sizing: border-box;
}

.button:hover {
    background: color-mix(in srgb, var(--color-bg-accent) 90%, black 10%);
}

.button:where(.is-loading) {
    background: color-mix(in srgb, var(--color-bg-accent) 60%, black 40%);
}

@media (max-width: 1040px) {
    .button--sm {
        height: 65px;
        font-size: 24px;
    }

    .button-lg {
        width: 343px;
        font-size: 22px;
    }
}

.styled-border {
    position: relative;
    border-radius: 24px;
    background: transparent;
    border: 0;
    background-clip: padding-box;
    transition: background 220ms ease, color 220ms ease;
    z-index: 3;
}

.styled-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: calc(24px + 2px);
    padding: 2px;
    background: linear-gradient(90deg, var(--color-bg-yellow), var(--color-bg-accent));
    pointer-events: none;
    -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    opacity: 1;
    z-index: 2;
}

header {
    width: 100%;
    height: 58px;
    display: flex;
    align-items: center;
    padding-left: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg-black-transparent);
    z-index: 100;
}

header img {
    width: 120px;
    height: 26px;
}

@media (max-width: 540px) {
    header {
        padding-left: 16px;
        height: 38px;
    }

    header img {
        width: 100px;
        height: 22px;
    }
}

footer {
    width: 100%;
    height: var(--footer-height);
    padding-inline: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: black;
    font-size: 14px;
    margin-top: auto;
}

.footer__left-block {
    display: flex;
    align-items: center;
    gap: 90px;
}

.footer__left-block__text {
    text-wrap: wrap;
    font-size: 14px;
    max-width: 560px;
}

.footer__age-restriction {
    font-size: 24px;
    margin-left: 10px;
}

.footer__left-block--mobile,
.footer__left-block__text--mobile,
.footer__age-restriction--mobile {
    display: none;
}

@media (max-width: 1040px) {
    footer {
        padding-inline: 40px;
    }

    .footer__left-block {
        gap: 40px;
    }
}

@media (max-width: 680px) {
    footer {
        height: auto;
        min-height: var(--footer-height-mobile);
        padding-inline: 16px;
        padding-block: 18px;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .footer__left-block--desktop,
    .footer__age-restriction--desktop {
        display: none;
    }

    .footer__left-block--mobile,
    .footer__age-restriction--mobile {
        display: flex;
    }

    .footer__left-block--mobile {
        width: 100%;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    .footer__left-block--mobile img {
        width: 100px;
        height: 22px;
    }

    .footer__left-block__text--mobile {
        display: block;
        font-size: 12px;
        max-width: none;
        width: 100%;
        gap: 0;
    }

    .footer__age-restriction--mobile {
        font-size: 16px;
    }

    .footer__left-block img {
        width: 120px;
        height: 26px;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition:
            opacity 500ms ease,
            transform 500ms ease;
    will-change: opacity, transform;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    opacity: 0;
    transform: translateX(400px);
    transition: opacity 300ms ease, transform 300ms ease;
    pointer-events: auto;
    word-wrap: break-word;
}

.toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.toast--success {
    background-color: var(--color-toast-success-bg);
    opacity: 0.9;
    border-left: 4px solid var(--color-toast-success-border);
}

.toast--error {
    background-color: var(--color-toast-error-bg);
    opacity: 0.9;
    border-left: 4px solid var(--color-toast-error-border);
}

@media (max-width: 540px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 70px;
    }

    .toast {
        min-width: auto;
        width: auto;
    }
}
