:root {
    --fs-display:  clamp(40px, 6vw,    96px);
    --fs-hero:     clamp(80px, 12vw,  200px);
    --fs-h2:       clamp(30px, 4vw,    64px);
    --fs-body-lg:  clamp(18px, 2.5vw,  36px);
    --fs-body:     clamp(16px, 2vw,    32px);
    --fs-label:    clamp(14px, 1.5vw,  20px);
    --fs-xs:       clamp(12px, 1.2vw,  16px);
}

html {
    position: relative;
    min-height: 100%;
    max-width: 100dvw;
    overflow-x: hidden;
}

body {
    margin-bottom: 60px;
    padding-bottom: 110vh;
    max-width: 100dvw;
    overflow-x: hidden;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

header {
    background: transparent;
    height: 150px;
    display: flex;
    justify-content: space-between;
}

.nav-header-a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
    color: rgba(16, 16, 16, 1);
    transition: all 0.5s ease-out;
}

.nav-header-a:hover, .nav-header-a.active {
    text-decoration-color: rgba(16, 16, 16, 1);
    color: rgba(16, 16, 16, 1);
}

.nav-footer-a {
    text-decoration: underline;
    text-decoration-color: rgba(16, 16, 16, 1);
    text-decoration-thickness: from-font;
    text-underline-offset: 5px;
    color: rgba(251, 240, 234, 1);
    transition: all 0.5s ease-out;
}

.nav-footer-a:hover, .nav-footer-a.active {
    text-decoration-color: rgba(251, 240, 234, 1);
    color: rgba(251, 240, 234, 1);
}

#scrollToNavBtn {
    position: fixed;
    bottom: 32px;
    right: 60px;
    z-index: 9999;
    width: 49px;
    height: 49px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#scrollToNavBtn.visible {
    opacity: 1;
    pointer-events: auto;
}

#scrollToNavBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.15);
}

#scrollToNavBtn:active {
    transform: translateY(0);
}

.logo-wrapper {
    position: absolute;
    left: 3em;
    top: 3em;
    width: 277px;
    height: 110.79348754882812px;
    filter: invert(1);
    z-index: 999;
    display: flex;
    flex-direction: row;
    align-items: center;

    .logo {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    a {
        text-decoration: none;
    }
}

.logo-img {
    width: 102px;
    height: 110.79px;
}
.logo-name {
    margin-left: 10px;
    width: 165px;
    height: 36px;
}

header nav {
    top: 3em;
    left: 5em;
    height: 100px;
    width: 1050px !important;
    background-color: rgba(230, 230, 230, 0.13);
    backdrop-filter: blur(41.5px);
    border: 1px solid rgba(185, 185, 185, 1) !important;
    border-radius: 17px;
    z-index: 998;
}

header .navbar-list {
    padding-left: 40px;
}

header .list-item {
    font-family: "TT Neoris Trial", sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 90px;
    padding-left: 110px;
}

main {
    min-height: 100vh;
    max-width: 100%;
    margin-bottom: 300px;
}

.main-bottom-blur {
    width: 1006px;
    height: 587px;
    background: rgba(107, 217, 255, 1);
    filter: blur(250px);
    border-radius: 50%;
    position: absolute;
    justify-self: center;
    bottom: 85vh;
}

.footer {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    min-height: 120vh;
    background-color: rgba(16, 16, 16, 1);
    overflow: hidden;
    border: 0 !important;
}

.footer::before {
    content: "";
    position: absolute;
    width: 570px;
    height: 496px;
    background: rgba(68, 101, 255, 0.5);
    border-radius: 50%;
    filter: blur(250px);
    bottom: -219px;
    left: -380px;
}

.footer::after {
    content: "";
    position: absolute;
    width: 570px;
    height: 496px;
    background: rgba(68, 101, 255, 0.59);
    border-radius: 50%;
    filter: blur(250px);
    bottom: 280px;
    right: -290px;
}

.footer-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 120vh;
}

.footer-logo-container {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -52%);
}

.footer-logo {
    width: 453px;
    height: 616px;
    align-self: center;
}

.footer-nav .navbar-list {
    flex-direction: column;
}

.footer-content {
    margin-left: 60px;
    margin-top: 112px;
}

.footer .list-item {
    font-family: "TT Neoris Trial", sans-serif;
    font-weight: 150;
    font-size: clamp(20px, 2.5vw, 32px);
    line-height: 90px;
}

.footer-address {
    position: absolute;
    width: 100%;
    bottom: 5%;
    left: 0;
    font-family: "TT Neoris Trial", sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 1.2vw, 16px);
    line-height: 25px;
}

.burger-overlay,
.burger-drawer {
    display: none;
}

@media (max-width: 768px) {
    header nav {
        position: fixed !important;
        top: 60px;
        left: 20px;
        right: 20px;
        width: calc(100vw - 40px) !important;
        height: 68px;
        padding: 10px 30px 10px 15px;
        border-radius: 17px;
        background: rgba(230, 230, 230, 0.13);
        border: 1px solid rgba(185, 185, 185, 1);
        backdrop-filter: blur(20.75px);
        z-index: 999;

        .logo-wrapper-mobile {
            position: relative;
            width: 127px;
            height: 48px;
            filter: invert(1);
            text-decoration: none;
            align-items: center;
        }
        .logo-mobile {
            display: flex;
            flex-direction: row;
        }
        .logo-img {
            position: relative;
            display: flex !important;
            width: 46px;
            height: 48px;
            align-self: center;
        }
        .logo-name {
            width: 74px !important;
            height: 16.26px !important;
            margin-left: 6px;
            object-fit: cover;
            align-self: center;
        }
    }

    header nav .d-flex {
        height: 56px;
    }

    header .navbar-list,
    header .list-item {
        display: none;
    }

    .burger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: transparent;
        border: none;
        border-radius: 10px;
        padding: 10px 12px;
        cursor: pointer;
        z-index: 999;
    }

    .burger-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background: rgba(185, 185, 185, 1);
        border-radius: 2px;
    }

    .burger-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(31, 31, 41, 0.5);
        backdrop-filter: blur(41.79999923706055px);
        z-index: 1001;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .burger-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .burger-drawer {
        display: flex;
        position: fixed;
        top: 60px;
        right: 20px;
        width: 67dvw;
        height: 81dvh;
        background: rgba(255, 255, 255, 1);
        border-radius: 7px;
        z-index: 1002;
        flex-direction: column;
        padding: 60px 20px 40px;
        transform: translateX(+150%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .burger-drawer.active {
        transform: translateX(0);
    }

    .burger-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: clamp(22px, 5vw, 28px);
        color: rgba(3, 1, 41, 1);
        cursor: pointer;
        line-height: 1;
        padding: 4px 8px;
    }

    .burger-nav {
        display: flex;
        flex-direction: column;
        align-items: end;
        flex: 1;
    }

    .burger-nav a {
        font-family: 'TT Neoris Trial', sans-serif;
        font-weight: 500;
        font-size: clamp(24px, 5vw, 32px);
        line-height: 90px;
        color: rgba(3, 1, 41, 1);
        text-decoration: none;
    }

    .burger-nav a.active,
    .burger-nav a:hover {
        color: rgba(4, 129, 255, 1);
    }

    .burger-drawer-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        margin-top: auto;
        filter: invert(1);
        justify-content: center;
    }

    .burger-drawer-logo img:first-child {
        width: 71.77px;
        height: auto;
    }
    .burger-drawer-logo img:last-child {
        width: 115.62px;
        height: auto;
    }

    main {
        margin-bottom: 150px;
    }

    .main-bottom-blur {
        width: 256px;
        height: 149px;
        filter: blur(41.4px);
        bottom: 92vh;
    }

    .footer {
        position: relative;
        bottom: auto;
        min-height: 100dvh;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding: 0 20px;
        padding-top: 60px;
    }

    .footer-logo-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 73px;
        order: 2;
    }

    .footer-logo {
        width: 251.5px;
        height: 342px;
    }

    .footer-content {
        margin: 0;
        text-align: start !important;
        width: 100%;
        order: 1;
    }

    .footer-address {
        position: relative;
        bottom: auto;
        left: auto;
        order: 3;
    }

    .footer::before {
        width: 314px;
        height: 396px;
        bottom: 133.75px;
        left: -163px;
        background: rgba(68, 101, 255, 1);
        filter: blur(150px);
    }

    .footer::after {
        width: 324px;
        height: 484px;
        top: -198px;
        right: -139px;
        filter: blur(150px);
    }

    .br-mobile {
        display: block !important;
    }
}
