        /* СБРОС И БАЗОВЫЕ СТИЛИ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-primary);
            font-weight: 400;
            font-size: 16px;
            line-height: 1.6;
            color: var(--treasury-text-dark);
            background-color: #e6eef5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            position: relative;
        }

        /* ДЕЛОВОЙ УЗОР ДЛЯ ФОНА - ГЕОМЕТРИЧЕСКИЙ ПАТТЕРН */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                radial-gradient(circle at 25px 25px, rgba(0, 51, 102, 0.03) 2%, transparent 2%),
                radial-gradient(circle at 75px 75px, rgba(26, 127, 55, 0.02) 2%, transparent 2%);
            background-size: 100px 100px;
            background-position: 0 0;
            pointer-events: none;
            z-index: -1;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 24px;
        }

        /* ===== ШАПКА - СОВРЕМЕННЫЙ ДЕЛОВОЙ СТИЛЬ ===== */
        header {
            background: linear-gradient(135deg,
                    rgba(0, 26, 51, 0.98) 0%,
                    rgba(0, 51, 102, 0.96) 100%);
            color: white;
            padding: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            backdrop-filter: blur(20px);
            border-bottom: 2px solid var(--treasury-emerald);
            box-shadow: 0 4px 40px rgba(0, 0, 0, 0.2);
            font-family: var(--font-primary);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            position: relative;
        }

        /* ЛОГОТИП С ПРАВИЛЬНЫМ ТЕКСТОМ */
        .logo-section {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: inherit;
            gap: 20px;
            transition: var(--transition-modern);
            padding: 10px 16px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            position: relative;
            overflow: hidden;
        }

        .logo-link:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(26, 127, 55, 0.3);
            transform: translateX(3px);
        }

        .site-logo {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            padding: 6px;
            background: linear-gradient(135deg,
                    rgba(26, 127, 55, 0.15) 0%,
                    rgba(45, 140, 255, 0.1) 100%);
            border: 2px solid var(--treasury-emerald);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            transition: var(--transition-modern);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        .logo-link:hover .site-logo {
            transform: scale(1.05);
            border-color: var(--treasury-ice);
        }

        .logo-text {
            display: flex;
            flex-direction: column;
        }

        .logo-main-title {
            font-family: var(--font-accent);
            font-size: 1.2rem;
            font-weight: 600;
            margin: 0;
            color: white;
            letter-spacing: 0.5px;
        }

        .logo-subtitle {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.85);
            margin-top: 2px;
            font-weight: 400;
            letter-spacing: 0.3px;
        }

        /* НАВИГАЦИЯ */
        nav ul {
            display: flex;
            list-style: none;
            gap: 4px;
            margin: 0;
            padding: 0;
            align-items: center;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            padding: 12px 20px;
            border-radius: 8px;
            transition: var(--transition-modern);
            display: flex;
            align-items: center;
            gap: 10px;
            position: relative;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid transparent;
            font-size: 14px;
            letter-spacing: 0.2px;
            font-family: var(--font-primary);
        }

        nav a:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(26, 127, 55, 0.3);
            transform: translateY(-1px);
        }

        nav a.active {
            background: linear-gradient(135deg,
                    rgba(26, 127, 55, 0.2) 0%,
                    rgba(45, 140, 255, 0.15) 100%);
            border-color: var(--treasury-emerald);
            color: white;
            font-weight: 600;
        }

        nav a i {
            font-size: 15px;
            min-width: 20px;
        }

        /* ВЫПАДАЮЩЕЕ МЕНЮ С ИСПРАВЛЕННЫМ АВАТАРОМ */
        .dropdown {
            position: relative;
        }

        .dropbtn {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.1) 0%,
                    rgba(255, 255, 255, 0.05) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            font: inherit;
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            transition: var(--transition-modern);
            position: relative;
            overflow: hidden;
            font-weight: 500;
            letter-spacing: 0.2px;
            font-family: var(--font-primary);
        }

        .dropbtn:hover {
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.15) 0%,
                    rgba(255, 255, 255, 0.1) 100%);
            border-color: rgba(26, 127, 55, 0.3);
            transform: translateY(-1px);
        }

        .user-info-nav {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .user-info-nav i {
            color: var(--treasury-mint);
        }

        .dropdown-content {
            display: none;
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            background: white;
            min-width: 320px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            border-radius: 12px;
            z-index: 1000;
            overflow: hidden;
            border: 1px solid var(--treasury-border-light);
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .dropdown-content.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .user-menu-header {
            padding: 20px;
            background: linear-gradient(135deg,
                    var(--treasury-navy) 0%,
                    var(--treasury-blue) 100%);
            color: white;
            display: flex;
            align-items: center;
            gap: 16px;
            position: relative;
            overflow: hidden;
            min-height: 100px;
        }

        .user-menu-avatar {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg,
                    var(--treasury-emerald) 0%,
                    var(--treasury-green) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 24px;
            flex-shrink: 0;
            overflow: hidden;
            border: 3px solid white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 1;
        }

        /* ИСПРАВЛЕНИЕ: Аватар не обрезается */
        .user-menu-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .user-menu-details {
            flex: 1;
            min-width: 0;
            position: relative;
            z-index: 1;
            overflow: visible;
        }

        .user-menu-details strong {
            display: block;
            font-size: 16px;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: visible;
            text-overflow: clip;
            font-weight: 600;
            font-family: var(--font-primary);
            color: white;
        }

        .user-menu-details small {
            display: block;
            font-size: 13px;
            opacity: 0.9;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 4px;
            white-space: normal;
            word-wrap: break-word;
            overflow: visible;
        }

        .dropdown-content a {
            color: var(--treasury-text-gray);
            padding: 16px 24px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: var(--transition-modern);
            border-left: 3px solid transparent;
            font-size: 14px;
            position: relative;
            overflow: hidden;
            font-family: var(--font-primary);
        }

        .dropdown-content a:hover {
            background: rgba(45, 140, 255, 0.05);
            color: var(--treasury-blue);
            border-left-color: var(--treasury-emerald);
            padding-left: 28px;
        }

        .dropdown-content a.active {
            background: rgba(45, 140, 255, 0.1);
            color: var(--treasury-blue);
            border-left-color: var(--treasury-emerald);
            font-weight: 600;
        }

        .dropdown-divider {
            height: 1px;
            background: linear-gradient(90deg,
                    transparent,
                    var(--treasury-border),
                    transparent);
            margin: 8px 24px;
        }

        .dropdown-header {
            padding: 12px 24px;
            color: var(--treasury-blue);
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            background: rgba(45, 140, 255, 0.05);
            border-bottom: 1px solid var(--treasury-border-light);
            border-top: 1px solid var(--treasury-border-light);
            font-family: var(--font-accent);
        }

        .logout-link {
            color: #dc3545 !important;
            font-weight: 600;
        }

        .logout-link:hover {
            background: rgba(220, 53, 69, 0.05) !important;
            border-left-color: #dc3545 !important;
        }

        /* ОСНОВНОЙ КОНТЕНТ */
        main.container {
            flex: 1;
            padding: 120px 0 60px;
            animation: fadeInUp 0.6s ease-out 0.2s both;
            position: relative;
        }

        /* ФОН ДЛЯ ОСНОВНОГО КОНТЕНТА */
        main.container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 20% 80%, rgba(45, 140, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(26, 127, 55, 0.02) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }

        /* ===== ФУТЕР - СОВРЕМЕННЫЙ ДИЗАЙН ===== */
        footer {
            background: linear-gradient(135deg,
                    var(--treasury-navy) 0%,
                    var(--treasury-blue) 100%);
            color: white;
            padding: 40px 0 30px;
            margin-top: auto;
            border-top: 2px solid var(--treasury-emerald);
            position: relative;
            overflow: hidden;
            font-family: var(--font-primary);
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 30px;
        }

        .footer-logo-img {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            padding: 5px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid var(--treasury-emerald);
            transition: var(--transition-modern);
        }

        .footer-logo-img:hover {
            transform: scale(1.05);
            border-color: var(--treasury-mint);
        }

        .footer-info {
            flex: 1;
            text-align: center;
            min-width: 300px;
        }

        .footer-info p {
            margin: 8px 0;
            font-size: 14px;
            opacity: 0.9;
            line-height: 1.5;
        }

        .footer-info p:first-child {
            font-weight: 600;
            font-size: 15px;
            color: white;
            position: relative;
            display: inline-block;
            padding-bottom: 8px;
            font-family: var(--font-accent);
        }

        .footer-info p:first-child::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 2px;
            background: linear-gradient(90deg, var(--treasury-emerald), var(--treasury-mint));
        }

        .footer-links {
            display: flex;
            gap: 20px;
        }

        .footer-links a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 14px;
            transition: var(--transition-modern);
            padding: 8px 0;
            position: relative;
            font-family: var(--font-primary);
        }

        .footer-links a:hover {
            color: white;
        }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--treasury-emerald);
            transition: width 0.3s ease;
        }

        .footer-links a:hover::after {
            width: 100%;
        }

        /* ===== FLASH СООБЩЕНИЯ - УЛУЧШЕННАЯ ЧИТАЕМОСТЬ ===== */
        .flash-messages {
            margin-bottom: 25px;
            position: relative;
            z-index: 100;
        }

        .flash {
            padding: 20px 24px;
            margin-bottom: 15px;
            border-radius: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            border: 1px solid;
            background: white;
            box-shadow: var(--shadow-hover);
            font-family: var(--font-primary);
            font-size: 15px;
            line-height: 1.5;
            color: var(--treasury-text-dark);
        }

        .flash::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
        }

        .flash-success {
            border-color: #d1e7dd;
            background: linear-gradient(135deg, #f8fff9 0%, white 100%);
        }

        .flash-success::before {
            background: linear-gradient(180deg, var(--treasury-emerald), var(--treasury-green));
        }

        .flash-error {
            border-color: #f8d7da;
            background: linear-gradient(135deg, #fff9f9 0%, white 100%);
        }

        .flash-error::before {
            background: linear-gradient(180deg, #dc3545, #c82333);
        }

        .flash-warning {
            border-color: #fff3cd;
            background: linear-gradient(135deg, #fffdf6 0%, white 100%);
        }

        .flash-warning::before {
            background: linear-gradient(180deg, #ffc107, #e0a800);
        }

        .flash-info {
            border-color: #d1ecf1;
            background: linear-gradient(135deg, #f8fcff 0%, white 100%);
        }

        .flash-info::before {
            background: linear-gradient(180deg, var(--treasury-mint), var(--treasury-emerald));
        }

        .flash-close {
            background: none;
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            color: inherit;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: var(--transition-modern);
            margin-left: 15px;
            flex-shrink: 0;
            opacity: 0.7;
        }

        .flash-close:hover {
            opacity: 1;
            background: rgba(0, 0, 0, 0.05);
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* ===== КНОПКИ - СТИЛЬНЫЕ ===== */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 32px;
            border-radius: 10px;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition-modern);
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            font-size: 15px;
            letter-spacing: 0.3px;
            font-family: var(--font-primary);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .btn-primary {
            background: linear-gradient(135deg,
                    var(--treasury-blue) 0%,
                    var(--treasury-navy) 100%);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-primary:hover {
            box-shadow: 0 10px 30px rgba(0, 30, 80, 0.25);
        }

        /* ЗЕЛЕНАЯ КНОПКА */
        .btn-accent {
            background: linear-gradient(135deg,
                    var(--treasury-green) 0%,
                    var(--treasury-emerald) 100%);
            color: white;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .btn-accent:hover {
            background: linear-gradient(135deg,
                    var(--treasury-emerald) 0%,
                    #0c8c4d 100%);
            box-shadow: 0 10px 30px rgba(26, 127, 55, 0.25);
        }

        /* ===== АДАПТИВНОСТЬ ===== */
        @media (max-width: 1024px) {
            nav ul {
                gap: 3px;
            }

            nav a {
                padding: 10px 16px;
                font-size: 13px;
            }

            .dropbtn {
                padding: 10px 16px;
            }
        }

        @media (max-width: 900px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }

            .logo-section {
                width: 100%;
                justify-content: center;
            }

            nav {
                width: 100%;
            }

            nav ul {
                justify-content: center;
                flex-wrap: wrap;
            }

            .dropdown-content {
                position: fixed;
                top: 100px;
                left: 50%;
                transform: translateX(-50%);
                width: 90%;
                max-width: 400px;
            }
        }

        @media (max-width: 768px) {
            .footer-content {
                flex-direction: column;
                text-align: center;
            }

            .footer-links {
                justify-content: center;
                flex-wrap: wrap;
                gap: 15px;
            }

            .flash {
                padding: 16px 20px;
                font-size: 14px;
            }

            .user-menu-header {
                padding: 16px;
                min-height: 90px;
            }

            .user-menu-avatar {
                width: 60px;
                height: 60px;
                font-size: 20px;
            }
        }

        /* ===== АНИМАЦИИ ===== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ===== */
        .content-animate {
            animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
        }

        .hover-lift {
            transition: var(--transition-modern);
        }

        .hover-lift:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-hover);
        }


        /* ===== СТИЛИ ДЛЯ ГИРЛЯНД =====  */
        #gir {
            position: absolute;
            top: 0;
            left: 0;
            background-image: url('../images/gir.png');
            height: 62px;
            width: 100%;
            overflow: hidden;
            z-index: 1;
            pointer-events: none
        }

        .gir_1 {
            background-position: 0 0
        }

        .gir_2 {
            background-position: 0 -62px
        }

        .gir_3 {
            background-position: 0 -124px
        }
            