/* ========== HEADER ========== */
.header {
    width: 100%;
    height: 80px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #000744;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}
.header__inner {
    width: 100%;
    display: flex;
    align-items: center;
    padding-left: 16.82%;
    padding-right: 16.82%;
}
.header__logo {
    width: 140px;
    height: 40px;
    flex-shrink: 0;
}
.header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.header__nav {
    display: flex;
    align-items: center;
    gap: 6.25%;
    margin-left: 1.97%;
    flex: 1;
    justify-content: center;
}
.header__link {
    font-size: 14px;
    color: #000744;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
    margin: 1px;
}
.header__link:hover {
    opacity: 0.7;
}
.header__link--active {
    font-weight: bold;
}
.header__profile {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    border-radius: 50%;
    flex: 0 0 40px;
    cursor: pointer;
    margin-left: auto;
}
.header__profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* ========== FOOTER ========== */
.footer {
    width: 100%;
    height: 80px;
    min-height: 80px;
    background-color: #000744;
    display: flex;
    align-items: center;
    
}
.footer__inner {
    width: 100%;
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    padding-left: 16.82%;
    padding-right: 16.82%;
}
.footer__logo {
    width: 140px;
    height: 40px;
    flex-shrink: 0;
}
.footer__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.footer__privacy {
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    transition: opacity 0.2s;
}
.footer__privacy:hover {
    opacity: 0.7;
}
.footer__social {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    border-radius: 50%;
    flex: 0 0 40px;
    cursor: pointer;
    margin-left: auto;
}
.footer__social img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
/* ========== МЕНЮ ПРОФИЛЯ ========== */
.header__profile {
    position: relative;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 20px;
    background-color: #000744;
    border-radius: 5px;
    border: 1px solid white;
    width: 175px;
    height: 145px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 200;
}

.profile-dropdown.visible {
    display: block;
}

.profile-dropdown a {
    display: block;
    padding: 0;
    font-size: 16px;
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
        padding-top: 20px;
    padding-left: 15px;
}

.profile-dropdown a:first-child {
    padding-top: 30px;
    padding-left: 15px;
    border-bottom: none;
}

.profile-dropdown a:hover {
    text-decoration: underline;
}

.profile-dropdown a:last-child {
    padding-top: 24px;
    padding-left: 15px;
}
.profile-dropdown .dropdown-divider {
    width: 145px;
    height: 2px;
    background-color: #FFFFFF;
    margin-top: 15px;
    margin-left: 15px;
    margin-right: 15px;
}

.profile-dropdown .dropdown-login {
    display: block;
    padding-top: 5px;
    padding-left: 15px;
    font-size: 12px;
    color: #FFFFFF;
    cursor: default;
}
.scroll-to-top {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 40px;
    height: 40px;
    border: 1px solid #00B509;
    background-color: #00b50923;
    cursor: pointer;
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.scroll-to-top.visible {
    display: flex;
}
.scroll-to-top::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 7px solid #000;
}
.scroll-container::-webkit-scrollbar {
    display: none;
}
.mobile-nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: background-color 0.2s;
}

.mobile-nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}



@media (max-width: 688px) {
    .header {
        height: 50px !important;
    }

    .header__inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    .header__logo {
        width: 60px !important;
        height: 18px !important;
    }

    .header__logo img {
        width: 60px !important;
        height: 18px !important;
    }

    .header__nav {
        gap: 8px !important;
        flex-shrink: 1;
        overflow: hidden;
        margin-left: 5px !important;
    }

    .header__link {
        font-size: 9px !important;
    }

    .header__profile {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
        flex: 0 0 24px !important;
    }

    .header__profile img {
        width: 24px !important;
        height: 24px !important;
    }

    .admin-content {
        margin-top: 50px !important;
        padding: 15px 10px !important;
        box-sizing: border-box !important;
    }

    .admin-content h1 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .admin-stats {
        gap: 10px !important;
        flex-wrap: wrap !important;
    }

    .stat-card {
        width: calc(50% - 5px) !important;
        padding: 10px !important;
        box-sizing: border-box;
    }

    .stat-card h3 {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }

    .stat-card p {
        font-size: 20px !important;
    }

    .admin-section {
        padding: 10px !important;
    }

    .admin-section h2 {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .admin-table {
        font-size: 9px !important;
        display: block;
        overflow-x: auto;
    }

    .admin-table th,
    .admin-table td {
        padding: 5px 3px !important;
        font-size: 9px !important;
        white-space: nowrap;
    }

    .footer {
        height: 40px !important;
        min-height: 40px !important;
    }

    .footer__inner {
        height: 40px !important;
        min-height: 40px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    .footer__logo {
        width: 60px !important;
        height: 18px !important;
    }

    .footer__logo img {
        width: 60px !important;
        height: 18px !important;
    }

    .footer__privacy {
        font-size: 7px !important;
    }

    .footer__social {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        max-width: 18px !important;
        flex: 0 0 18px !important;
    }

    .footer__social img {
        width: 18px !important;
        height: 18px !important;
    }
}