﻿@import url('https://fonts.googleapis.com/css?family=Unbounded');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600');
@import url('https://fonts.googleapis.com/css?family=Poppins:400,600');

:root {
    --page-bg: #0C111C;
    --panel-bg: #05070F;
    --primary: #0D99FF;
    --accent: #CA2C66;
    --text: #FFFFFF;
}

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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    background-color: var(--page-bg);
    color: var(--text);
    font-family: "Montserrat", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body.menu-open {
    overflow: hidden;
}

.site-header {
    width: 100%;
    border-bottom: 1px solid rgba(13, 153, 255, 0.35);
    background-color: var(--page-bg);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px clamp(20px, 5vw, 60px);
}

.navbar-nav {
    --bs-nav-link-color: none;
    --bs-nav-link-hover-color: none;
}

    .navbar-nav .navbar-nav.nav-link.active, .navbar-nav .nav-link.show {
        color: white;
    }

.dropdown-menu {
    position: static;
    background-color: var(--page-bg);
    color: white;
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    margin-left: auto;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1100;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.title {
    font-size: 32px;
    line-height: 1.2;
    font-family: "Unbounded";
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
}

.title:hover,
.title:focus {
    color: var(--text);
}

.primary-menu {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right .35s ease, opacity .35s ease;
    z-index: 1050;
}

.menu, .navbar-nav {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.nav-link {
    font-family: "Unbounded";
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

    .nav-link a {
        color: var(--text);
        text-decoration: none;
        transition: color .2s ease;
    }

    .nav-link:hover,
    .nav-link:focus {
        color: var(--primary);
    }

.header-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

.sing_in,
.regist {
    min-width: 120px;
    height: 42px;
    padding: 8px 28px;
    border-radius: 16px;
    border: none;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 15px;
    line-height: 24px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sing_in {
    background-color: var(--accent);
    color: var(--text);
}

    .sing_in a {
        color: white;
        text-decoration: none;
    }

.regist {
    background-color: transparent;
    
    color: var(--text);
}

.sing_in:hover,
.regist:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.regist a {
    color: white;
    text-decoration: none;
}

footer {
    display: grid;
    width: 100%;
    gap: 24px;
}

.bottom {
    display: flex;
    color: var(--text);
    width: 100%;
    min-height: 64px;
    align-items: center;
    padding: 12px clamp(20px, 5vw, 60px);
    justify-content: space-between;
    border-top: 1px solid rgba(13, 153, 255, 0.35);
    margin-top: 96px;
}

.rights {
    display: flex;
    color: var(--text);
    min-height: 39px;
    padding: 12px clamp(20px, 5vw, 60px);
    justify-content: space-between;
    font-family: "Unbounded";
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
}

/* Mobile / tablet behaviour */
@media (max-width: 991.98px) {
    .nav-wrapper {
        justify-content: space-between;
    }

    .primary-menu.collapse:not(.show) {
        display: none;
    }

    .primary-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--panel-bg);
        padding: 96px 32px 32px;
        flex-direction: column;
        gap: 32px;
        box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        overflow-y: auto;
    }

    .primary-menu.show {
        right: 0;
        opacity: 1;
        pointer-events: auto;
        overflow: visible;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav-link {
        font-size: 18px;
        text-align: center;
    }

    .navbar-nav {
        gap: 10px;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .sing_in,
    .regist {
        width: 100%;
    }

    .dropdown-menu {
        position: absolute !important;
        left: 25%;
    }

    .dropdown-menu.show {
        transform: translateX(-100%);
    }
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }

    .primary-menu {
        position: static;
        padding: 0;
        height: auto;
        box-shadow: none;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .navbar-nav {
        flex-wrap: nowrap;
    }

    .header-buttons {
        flex-shrink: 1;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sing_in {
        padding: 8px 25px;
    }
}