@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}

.container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.text-wrapper {
    width: 100%;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 50px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 24px;
    margin-top: 24px;
}

h2, h3, h4, h5, h6 {
    margin-bottom: 12px;
}

h1 {
    font-size: 24px;
    line-height: 30px;
}

h2 {
    margin-top: 32px;
    font-size: 16px;
    line-height: 20px;
}

a {
    font-weight: 500;
    transition: .3s ease;
    color: #01294F;
    text-decoration: none;
}

a:hover {
    color: gold;
}

li:not(:last-child) {
    margin-bottom: 12px;
}

li > ul li:not(:last-child) {
    margin-bottom: 5px;
}

li > ul {
    margin-top: 10px;
}

header, footer {
    background: #01294F;
    padding-top: 12px;
    padding-bottom: 12px;
}

.last-modified {
    display: block;
    margin-top: 60px;
    margin-bottom: 24px;
    color: #B4B6C5;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

.logo-small {
    display: block;
    height: 50px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
}

.nav a {
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 4px 12px;
    border: 1px solid #C4CAFF7A;
    border-radius: 8px;
    outline: none;
    background: transparent;
}

.nav a:hover {
    background: white;
    border: 1px solid #01294F;
    color: #01294F;
}

body.is-homepage {
    min-height: 100svh;
    background-color: #001938;
    background-image: url("./img/mobile-hero.webp");
    background-position: center 30%;
    background-size: 100%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.is-homepage footer {
    display: none;
}

.is-homepage header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

.homepage-buttons {
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.homepage-buttons .main-hero-logo {
    display: none;
}

.homepage-buttons .main-hero-link {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.homepage-buttons .main-hero-link img {
    transition: .3s ease;
    transform: scale(1);
    filter: brightness(1);
}

.homepage-buttons .main-hero-link:hover img {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.homepage-buttons .play {
    width: 274px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
}

.homepage-buttons .app-store {
    width: 206px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 36px;
        line-height: 42px;
    }

    h2 {
        font-size: 32px;
        line-height: 38px;
    }

    header, footer {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .is-homepage header {
        background: transparent;
    }

    .header-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-small {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    .last-modified {
        font-size: 16px;
        line-height: 20px;
    }

    .nav {
        gap: 40px;
        justify-content: flex-end;
    }

    .nav a {
        text-align: left;
        padding: 0;
        border: none;
        border-radius: 0;
    }

    .nav a:hover {
        background: transparent;
        border: none;
        color: gold;
    }

    body.is-homepage {
        justify-content: center;
        background-color: black;
        background-image: url("./img/big-bg.webp"), url("./img/desktop-bg.webp");
        background-position: center bottom, center center;
        background-size: 100%, cover;
        background-repeat: no-repeat;
    }

    .homepage-buttons {
        padding-top: 100px;
    }

    .homepage-buttons .main-hero-logo {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 415px;
        margin-bottom: 35px;
    }

    .homepage-buttons .app-store {
        width: 231px;
    }
}

@media (min-width: 992px) {

    .container {
        max-width: 920px;
    }

    h1, h2, h3 {
        font-weight: 700;
    }

    h1 {
        font-size: 42px;
        line-height: 50px;
    }

    h2 {
        margin-top: 54px;
        font-size: 36px;
        line-height: 42px;
    }

    body.is-homepage {
        justify-content: flex-start;
    }

    .last-modified {
        font-size: 18px;
    }
}

@media (min-width: 1200px) {

    .container {
        max-width: 1150px;
    }

    h1 {
        font-size: 48px;
        line-height: 56px;
    }

    h2 {
        font-size: 40px;
        line-height: 48px;
    }

    .last-modified {
        font-size: 20px;
        line-height: 24px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1240px;
    }
}

@media (max-width: 767px) {
    footer .nav {
        flex-direction: column;
        gap: 12px;
    }

    footer .nav a {
        padding: 0;
        border: none;
    }

    footer .nav a:hover {
        color: gold;
        background: none;
        border: none;
    }

    .is-homepage .logo-small {
        display: none;
    }
}

@media (min-height: 795px) and (max-width: 767px) {
    body.is-homepage {
        background-position: center bottom;
    }
}