/* Общие переменные */
:root {
    /*    --fp-page-bg: #F5F7FA;
    --bs-body-bg: #F5F7FA;*/
    --fp-page-bg: #ffffff;
    --bs-body-bg: #ffffff;
    --fp-green: #18A55E;
    --fp-green-hover: #E9F7EF;
    --fp-text-primary: #07130b;
    --fp-text-secondary: #a1a1a1;
    --fp-border: #e1e8f1;
    --fp-white: #ffffff;
    --fp-bg: #F5F7FA;
    --font-inter: 'Inter', sans-serif;
    --fp-text-gray: #A1A1A1;
    --fp-border-light: #E1E8F1;
    --fp-max-width: 1300px;
}

html,
body {
    background-color: var(--fp-page-bg);
}

.wrapper {
    background-color: var(--fp-page-bg);
}

.site-footer {
    width: 100%;
    background-color: var(--fp-page-bg);
    padding-bottom: 40px;
    margin-top: 60px;
}

.footer-divider {
    max-width: 1300px; /* Ширина как в макете */
    height: 0px;
    border-top: 1.5px solid #E1E8F1;
    margin: 0 auto 24px;
    width: 100%;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    /* РАСПРЕДЕЛЕНИЕ ПО ВСЕЙ ШИРИНЕ */
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #A1A1A1;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .footer-link:hover {
        color: var(--fp-green);
    }

.moderator-link {
    color: var(--fp-green);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #A1A1A1;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.footer-social-box {
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border: 1px solid #E1E8F1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* АДАПТИВ */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column; /* На мобилке в столбик */
        gap: 24px;
        text-align: center;
    }

    .footer-divider {
        width: calc(100% - 40px);
    }
}


.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--fp-border);
    font-family: var(--font-inter);
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; 
    max-width: 180px; 
}

    .header-logo img {
        display: block;
        height: 44px; 
        width: auto; 
        object-fit: contain;
    }
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start; /* Центровка по левому краю */
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .footer-link {
        width: 100%;
        text-align: left;
    }

    .footer-social {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-divider {
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
    }
}

/* Дополнительный адаптив для очень маленьких экранов */
@media (max-width: 480px) {
    .footer-inner {
        padding: 0 16px;
    }

    .footer-links {
        gap: 12px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-social {
        font-size: 13px;
    }

    .footer-social-box {
        width: 32px;
        height: 32px;
    }

        .footer-social-box img {
            width: 18px;
        }
}

/* Верхняя узкая полоска */
.header-topbar {
    border-bottom: 1px solid var(--fp-border);
}

.header-topbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    height: 36px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-nav {
    display: flex;
    gap: 20px;
}

.topbar-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--fp-text-secondary);
    text-decoration: none;
}

.topbar-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    font-weight: 500;
}

.topbar-rate {
    color: var(--fp-text-primary);
    font-weight: 700;
}

.topbar-datetime {
    color: var(--fp-text-secondary);
}

/* Основная часть хэддера */
.header-mainbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    height: 90px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Блок с данными юзера (customerId, статус, баланс) */
.user-info-strip {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    padding-left: 40px;
}


.user-info-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--fp-text-primary);
}

.user-info-label {
    font-size: 12px;
    color: var(--fp-text-secondary);
}

/* Навигация с иконками */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--fp-text-secondary);
    border-radius: 10px;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}


    .nav-btn span {
        font-size: 11px;
        font-weight: 600;
    }

.nav-icon img {
    filter: brightness(0) saturate(100%) invert(63%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(88%);
    transition: filter 0.2s ease;
}

.nav-btn.active {
    color: var(--fp-green); 
}

.nav-btn.active .nav-icon img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(57%) saturate(520%) hue-rotate(95deg) brightness(92%) contrast(87%);
}

.nav-btn:hover .nav-icon img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(88%);
}

@media (max-width: 992px) {
    .user-info-strip {
        display: none;
    }
}




.profile-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.2s ease;
    font-style: normal;
}

.profile-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    min-width: 220px;
    background: var(--fp-white);
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--fp-text-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-inter);
}

    .dropdown-item i {
        font-size: 18px;
        color: var(--fp-text-secondary);
        width: 20px;
        text-align: center;
    }

    .dropdown-item:hover {
        background: #F5F7FA;
        color: var(--fp-green);
    }

        .dropdown-item:hover i {
            color: var(--fp-green);
        }

.dropdown-divider {
    height: 1px;
    background: var(--fp-border);
    margin: 6px 0;
    border: none;
}

.logout-item {
    color: var(--fp-text-secondary);
}

    .logout-item:hover {
        color: #dc2626;
    }

        .logout-item:hover i {
            color: #dc2626;
        }

@media (max-width: 992px) {
    .user-info-strip {
        display: none;
    }
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

        .dropdown-menu.show {
            transform: translateY(0);
        }

    .profile-dropdown {
        position: static;
    }
}

.user-info-col {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
}

/* Стили для значения номера */
.user-info-value {
    
    display: inline-block;
}

/* Чтобы тултип не ломал верстку, Bootstrap создает его в конце body, 
   но на всякий случай убедимся, что обертка иконки не занимает лишнего места */
[data-bs-toggle="tooltip"] {
    display: inline-flex;
    vertical-align: middle;
}