/* =========================================
   БАЗОВЫЕ ПЕРЕМЕННЫЕ И ОБЩИЕ СТИЛИ
   ========================================= */
:root {
    --bg-color: #F8F9FA;     
    --primary-green: #1C4630; 
    --accent-green: #27A656;  
    --dark-navy: #111827;     
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --border-color: #E5E7EB;
    --shadow-soft: 0 10px 25px rgba(20, 28, 39, 0.03), 0 2px 5px rgba(0,0,0,0.02);
    --shadow-hover: 0 15px 35px rgba(39, 166, 86, 0.06), 0 5px 12px rgba(0,0,0,0.03);
    --tab-orange: #F59E0B;
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-color); 
    margin: 0; padding: 0; 
    color: var(--text-dark); 
    -webkit-font-smoothing: antialiased;
    display: flex; flex-direction: column; min-height: 100vh;
}

.main-content-wrapper { flex: 1 0 auto; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; box-sizing: border-box; }

/* =========================================
   ШАПКА И ЛОГОТИП
   ========================================= */
header { padding: 0; position: relative; z-index: 100; }
.header-top-bar { background-color: var(--dark-navy); padding: 16px 0; color: white; }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }

.logo-wrapper { display: flex; flex-direction: column; }
.logo { font-size: 26px; font-weight: 900; color: white; letter-spacing: 0.5px; text-transform: uppercase; line-height: 1;}
.logo span { color: var(--accent-green); }
.logo-sub { font-size: 10px; color: #9CA3AF; font-weight: 700; letter-spacing: 1px; margin-top: 4px; text-transform: uppercase;}

.auth-section { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.auth-link-top { font-size: 14px; font-weight: 600; color: #E5E7EB; transition: color 0.2s; white-space: nowrap; }
.auth-link-top:hover { color: var(--accent-green); }


.burger-btn span { display: block; width: 26px; height: 2px; background-color: white; transition: 0.3s; border-radius: 2px;}

.header-bottom-bar { background-color: #fff; border-bottom: 1px solid var(--border-color); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.header-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }

.top-menu { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.top-menu a { font-size: 14px; font-weight: 600; color: var(--text-dark); transition: color 0.2s; }
.top-menu a:hover { color: var(--accent-green); }

.action-section { display: flex; align-items: center; gap: 20px; }
.btn-add { background: var(--accent-green); color: white; padding: 10px 24px; border-radius: 8px; font-weight: 700; font-size: 14px; transition: all 0.2s; box-shadow: 0 4px 10px rgba(39, 166, 86, 0.2); white-space: nowrap;}
.btn-add:hover { background: var(--primary-green); transform: translateY(-1px); box-shadow: 0 6px 15px rgba(28, 70, 48, 0.2); }

/* =========================================
   МЕНЮ ПРОФИЛЯ (DROPDOWN)
   ========================================= */
.profile-dropdown { position: relative; z-index: 101; }
.dropdown-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; color: white; }
.user-name { font-weight: 600; font-size: 14px; }
.avatar-wrapper { position: relative; }
.avatar-placeholder { width: 36px; height: 36px; border-radius: 50%; background-color: #ced4da; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color 0.2s; }
.dropdown-trigger:hover .avatar-placeholder { border-color: var(--accent-green); }
.dropdown-arrow { width: 20px; height: 20px; fill: #adb5bd; transition: transform 0.2s; margin-left: 4px; }
.dropdown-trigger:hover .dropdown-arrow { fill: white; transform: translateY(1px); }
.dropdown-content { display: none; position: absolute; top: calc(100% + 15px); right: 0; width: 200px; background-color: #fff; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 1px solid #e9ecef; overflow: hidden; }
.profile-dropdown.active .dropdown-content { display: block; }
.dropdown-content a, .dropdown-content button { display: block; width: 100%; padding: 12px 20px; text-align: left; border: none; background: none; font-size: 14px; font-weight: 500; color: #141C27; cursor: pointer; transition: background-color 0.2s, color 0.2s; font-family: 'Inter', sans-serif;}
.dropdown-content a:hover, .dropdown-content button:hover { background-color: #f8f9fa; color: var(--accent-green); }
.dropdown-divider { height: 1px; background-color: #e9ecef; margin: 5px 0; }

/* =========================================
   ФУТЕР
   ========================================= */
footer { background: var(--dark-navy); color: white; padding: 40px 0 20px; text-align: center; border-top: 4px solid var(--accent-green); flex-shrink: 0; margin-top: auto;}
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 25px; font-size: 12px; font-weight: 500; color: #D1D5DB; flex-wrap: wrap;}
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 13px; color: #9CA3AF; }

/* =========================================
   АДАПТАЦИЯ (МОБИЛЬНАЯ ШАПКА)
   ========================================= */
@media (max-width: 768px) {
    .burger-btn { display: flex; }
    .header-bottom-bar { display: none; }
    .header-bottom-bar.active { display: block; position: absolute; width: 100%; top: 100%; left: 0; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); z-index: 100; }
    .header-bottom-inner { flex-direction: column; padding: 20px; gap: 20px; }
    .top-menu { flex-direction: column; align-items: flex-start; width: 100%; border-bottom: 1px solid #eee; padding-bottom: 20px;}
    .btn-add { width: 100%; text-align: center; box-sizing: border-box;}
    .desktop-only { display: none !important; }
    .header-top-inner { justify-content: flex-end; gap: 15px; }
    .logo-wrapper { margin-right: auto; }
    .logo { font-size: 22px; }
    .auth-link-top { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
    .auth-section { margin-left: 0; gap: 8px; flex-direction: row; flex-wrap: nowrap; }
    .profile-dropdown { position: static; }
    .dropdown-trigger { gap: 0; }
    .dropdown-content { width: auto; right: 15px; left: 15px; top: 65px; }
}
html {
    overflow-y: scroll;
}
/* --- НАВИГАЦИЯ И ВЫПАДАЮЩЕЕ МЕНЮ --- */
        .top-menu { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
        .top-menu a { text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.2s; }
        
        .nav-dropdown { position: relative; }
        .nav-dropdown-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; }
        .nav-dropdown-toggle svg { transition: transform 0.2s ease; }
        .nav-dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            border: 1px solid var(--border-color, #E5E7EB);
            border-radius: 8px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
            padding: 8px 0;
            min-width: 220px;
            z-index: 100;
            display: none;
            flex-direction: column;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.2s ease;
            margin-top: 5px;
        }
        .nav-dropdown-menu a { padding: 10px 20px; display: block; font-weight: 500; color: var(--dark-navy, #111827); white-space: nowrap; }
        .nav-dropdown-menu a:hover { background: #f9fafb; color: var(--primary-green, #1e8745); }

        /* Hover effect for Desktop */
        @media (min-width: 993px) {
            .nav-dropdown:hover .nav-dropdown-menu {
                display: flex;
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
            .nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }
        }