body {
    font-family: Roboto, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    color: #3d4f60;
    background-color: #f1f5f8;
}

section {
    overflow: hidden;
}

.container {
    max-width: 1060px;
    padding: 0;
}

.btn {
    background-color: transparent;
    color: #2386f4;
    border-radius: 12px;
    transition: border-color 0.3s ease;
    border: none;

    &:hover {
        border-color: #2386f4;
        color: #2386f4;
    }
}

.login-btn {
    padding: 12px 36px;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid #095aa8;
    color: #095aa8;
    line-height: 1;

    &:hover {
        color: #f1f1f1;
        background: #095aa8;
    }
}

h2 {
    margin-bottom: 19px;
    font-weight: 800;
    font-size: 50px;
    line-height: 1.2;
    text-align: center;
    color: #2a2a2a;
}

.section-subtitle {
    margin-bottom: 29px;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: center;
    max-width: 756px;
}

.app-links-container {
    display: flex;
    justify-content: center;
    gap: 24px;

    a {
        padding: 10px;
        width: 156px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: linear-gradient(#fff, #a7b7be);

        img {
            max-width: 100%;
        }
    }
}

header {
    position: sticky;
    top: 0;
    padding: 12px 0;
    background-color: #fff;
    z-index: 1000;

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }

    nav {
        gap: 8px;
        padding-left: 12px;

        a {
            padding: 6px 10px;
            font-weight: 500;
            font-size: 16px;
            line-height: 1.3;
            letter-spacing: 0.3px;
            color: #14365a;
            transition: color 0.3s ease;

            &:hover {
                text-decoration: none;
                color: #2386f4;
            }
        }
    }
}

section#home {
    padding: 130px 0 75px;
    background-image: url("../pictures/home-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: visible;

    .container {
        max-width: 756px;
    }

    h2 {
        font-weight: 700;
        font-size: 80px;
        line-height: 1;
        letter-spacing: 0;
        color: #fff;
    }

    .home-page-img {
        transform: translateY(130px);
    }
}

section#services {
    padding: 121px 0 75px;
    background-image: url("../pictures/services-bg.jpg");

    .services-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 20px;

        .service {
            position: relative;
            padding: 15px;
            height: 176px;
            width: 250px;
            background-color: #fff;
            border: 1px solid #e1e6ea;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 0 40px 0 #0057c81a;

            .service-header {
                gap: 15px;
            }

            img {
                width: 44px;
                height: 44px;
                padding: 9px;
                margin-bottom: 18px;
                border-radius: 24px;
                background-color: #2d343c;
            }

            h3 {
                margin-bottom: 15px;
                font-weight: 700;
                font-size: 18px;
                line-height: 1.2;
                letter-spacing: 0.15px;
            }

            p {
                margin: 0;
                font-weight: 400;
                font-size: 14px;
                line-height: 1.4;
                letter-spacing: 0.15px;
            }
        }
    }
}

section#application {
    padding: 69px 0 80px;
    background: #2d343c;

    h2 {
        color: #fff;
    }

    .section-subtitle {
        margin-bottom: 49px;
        color: #fff;
        font-size: 16px;
        line-height: 1.6;
    }

    .about-application-blocks {
        gap: 35px;
        margin-bottom: 50px;

        .about-application-block {
            width: 330px;
            display: flex;
            flex-direction: column;
            padding: 24px;
            color: #fff;
            border-radius: 24px;
            background: #464d56;
            text-align: center;
            max-height: 353px;

            h4 {
                font-size: 16px;
                font-weight: 700;
                line-height: 1.2;
                letter-spacing: 0.15px;
            }

            p {
                font-size: 12px;
                font-weight: 400;
                line-height: 1.4;
                letter-spacing: 0.15px;
            }
        }
    }
}

section#user-guides {
    padding: 69px 0 90px;
    background-image: url("../pictures/user-guides-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    .section-subtitle {
        margin-bottom: 30px;
    }

    .container {
        max-width: 756px;
    }

    .docs-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 700px;
        width: 100%;

        a {
            padding: 18px 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            font-weight: 700;
            font-size: 18px;
            line-height: 1.2;
            letter-spacing: 0.15px;
            color: #fff;
            border-radius: 4px;
            background: linear-gradient(#095aa8, #1e78cf);
            box-shadow: 0 0 5px 4px #00bbff26;

            &::after {
                content: "";
                display: block;
                width: 24px;
                height: 24px;
                background: url("../pictures/upload.svg") no-repeat center;
            }
        }
    }
}

section#contacts {
    padding: 69px 0 29px;
    background-image: url("../pictures/contacts-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2d343c;
    overflow: visible;

    h2 {
        color: #fff;
    }

    .section-subtitle {
        color: #cfd8dc;
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 38px;
    }

    .contacts-img-container {
        transform: translateY(112px);
    }

    .content-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 700px;
        width: 100%;

        .contact {
            display: flex;
            align-items: center;
            gap: 15px;
            font-weight: 800;
            font-size: 16px;
            line-height: 1.4;
            color: #cfd8dc;
            background: #464d56;
            border-radius: 24px;
            padding: 15px;

            .icon {
                width: 46px;
                height: 46px;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: #2d343c;
                border-radius: 24px;
                padding: 10px;
            }

            .contacts-container {
                display: flex;
                flex-direction: column;
                gap: 5px;
            }

            .title {
                font-weight: 700;
                font-size: 18px;
                line-height: 1;
                letter-spacing: 0.15px;
            }

            .text {
                font-weight: 400;
                font-size: 14px;
                line-height: 1;
                letter-spacing: 0.15px;
            }
        }
    }
}

footer {
    padding: 97px 32px 32px;
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: #2d343c;
    background: #fff;

    a {
        color: #2d343c;
    }
}

.burger-menu {
    padding: 10px;
    width: 38px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
    background-color: transparent;
    cursor: pointer;
    z-index: 1001;
    outline: none;
    color: #14365a;

    .close-icon {
        display: none;
    }

    &:hover {
        color: #14365a;
        background-color: transparent;
    }

    &.opened {
        .close-icon {
            display: block;
        }

        span {
            display: none;
        }
    }
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #14365a;
}

.mobile-menu {
    position: fixed;
    inset: 70px 0 0;
    background-color: #1d4e8399;
    transform: translateX(100%);
    opacity: 0;
    z-index: 1010;
    transition: opacity 0.3s;
}

.mobile-menu .mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    padding: 42px 25px 25px;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.3s;

    hr {
        width: 100%;
        height: 1px;
        margin: 20px 0;
        background-color: #f1f5f8;
    }
}

.mobile-menu.mobile-menu--active {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.mobile-menu--active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu .menu-item {
    padding: 1rem;
    width: 100%;
    color: #14365a;
    transition: color 0.3s;

    &:hover {
        text-decoration: none;
        color: #2386f4;
    }
}

@media (width <= 992px) {
    h2 {
        font-size: 36px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    section {
        padding: 50px 0 !important;
    }

    section#home {
        h2 {
            font-size: 40px;
        }

        .home-page-img {
            transform: translateY(80px);
        }
    }

    .home-page-img,
    .contacts-img-container {
        img {
            width: 100%;
        }
    }

    section#services {
        .services-container {
            display: flex;
            justify-content: flex-start;
            max-width: 100%;
            overflow: auto;

            .service {
                min-width: 335px;
            }
        }
    }

    section#application {
        .app-screenshot {
            margin: 0;
            max-width: 100%;
        }
    }

    section#user-guides {
        .docs-container {
            grid-template-columns: 1fr;
        }
    }

    section#contacts {
        .content-container {
            grid-template-columns: 1fr;
        }

        .contacts-img-container {
            transform: translateY(100px);
        }
    }

    footer {
        padding-top: 58px;
    }
}
