/* Header */
.site-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 10;
    background-color: #101c3c;
}

header:not(.sticked):has(+ main#start) {
    background-color: transparent;

    .header-logo {
        margin-bottom: -60px;

        img {
            height: 140px;
        }
    }
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1224px;
    margin: 0 auto;
    padding: 24px 32px;
}

.header-logo {
    display: flex;
    align-items: center;

    img {
        height: 80px;
        width: auto;
    }
}

/* Desktop nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-item {
    color: #dde4f5;
    transition: color 0.15s;
    &:hover {
        color: #ffffff;
    }
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: #3d6ce0;
    color: #ffffff;
    font-weight: 600;
    transition: background 0.15s;
    &:hover {
        background: #2050c8;
        color: #ffffff;
    }
}

/* Dropdown */
.nav-drop {
    position: relative;
}

.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
    color: #dde4f5;
    transition: color 0.15s;
    &:hover {
        color: #ffffff;
    }
    .ph-fill {
        font-size: 12px;
        transition: transform 0.2s;
    }
}

.nav-drop-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    padding-top: 14px;
    z-index: 20;
    &::before {
        content: '';
        position: absolute;
        top: 7px;
        left: 24px;
        width: 12px;
        height: 12px;
        background: rgba(13, 22, 54, 0.82);
        border-left: 1px solid rgba(255, 255, 255, 0.16);
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        transform: rotate(45deg);
    }
}

.nav-drop-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 272px;
    padding: 8px;
    background: rgba(13, 22, 54, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(6, 12, 32, 0.35);
}

.nav-drop-item {
    display: flex;
    padding: 10px 14px;
    border-radius: 7px;
    color: #dde4f5;
    font-size: 14px;
    font-weight: 600;
    transition:
        background 0.15s,
        color 0.15s;
    &:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}

/* Burger */
.nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(13, 22, 54, 0.35);
    color: #ffffff;
    .ph-fill {
        font-size: 24px;
    }
}

/* Mobile panel */
.nav-mobile {
    display: none;
    position: absolute;
    top: 176px;
    left: 16px;
    right: 16px;
    z-index: 30;
}

.nav-mobile-list {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(13, 22, 54, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(6, 12, 32, 0.4);
    font-size: 16px;
    font-weight: 600;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 8px;
    color: #dde4f5;
    transition:
        background 0.15s,
        color 0.15s;
    &:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}

.nav-mobile-sub-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 8px;
    color: #dde4f5;
    text-align: left;
    &:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    .ph-fill {
        font-size: 14px;
        transition: transform 0.2s;
    }
}

.nav-mobile-sub {
    display: none;
    flex-direction: column;
    margin: 0 0 6px 14px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile-sub-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14.5px;
    color: #b9c4e2;
    transition:
        background 0.15s,
        color 0.15s;
    &:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
}

.nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 4px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 9px;
    background: #3d6ce0;
    color: #ffffff;
    font-weight: 700;
    &:hover {
        background: #2050c8;
        color: #ffffff;
    }
}

.nav-mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 51px;
    border-radius: 9px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-weight: 700;
    &:hover {
        border-color: #ffffff;
        color: #ffffff;
    }
    .ph-fill {
        font-size: 18px;
    }
}

@media (max-width: 1099px) {
    header:has(+ main#start) {
        background-color: #101c3c;
    }
    .site-header {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
    }
    .nav-desktop {
        display: none;
    }
    .nav-burger {
        display: inline-flex;
    }
    .header-bar {
        padding: 16px 20px;
    }
    .header-logo {
        margin-bottom: unset !important;
        img {
            height: 80px !important;
        }
    }
    .nav-mobile {
        top: 128px;
    }
}

@media (max-width: 600px) {
    .nav-mobile {
        top: 128px;
    }
}
