/* ============================================
   ROOT VARIABLES - НОВАЯ ЦВЕТОВАЯ ПАЛИТРА
   ============================================ */
:root {
    /* Основные цвета из палитры */
    --primary: #b89191;
    --primary-dark: #a07a7a;
    --primary-light: #d4bdbd;
    --primary-gradient: linear-gradient(135deg, #b89191 0%, #a07a7a 100%);
    
    --accent: #e3826b;
    --accent-light: #f0b5a5;
    --accent-gradient: linear-gradient(135deg, #e3826b 0%, #cf6b52 100%);
    
    --secondary: #cf87fd;
    --secondary-light: #e8c4f5;
    
    --gray: #a0a09f;
    --gray-light: #d4d4d3;
    --gray-dark: #80807f;
    
    /* Дополнительные цвета */
    --beige: #caa58c;
    --silver: #c3c1c2;
    --lavender: #d5c2d7;
    --rose: #dbbfc8;
    --blue: #7da3b6;
    --olive: #b3b151;
    --teal: #00a79d;
    --navy: #006078;
    
    /* Системные цвета */
    --success: #4CAF50;
    --success-light: #E8F5E9;
    --warning: #FF9800;
    --warning-light: #FFF3E0;
    --danger: #d32f2f;
    --danger-light: #FBE9E7;
    --info: #2196F3;
    --info-light: #E3F2FD;
    
    /* Текст */
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #999;
    --text-light: #fff;
    
    /* Фоны */
    --bg-white: #ffffff;
    --bg-light: #f8f5f4;
    --bg-gray: #f0efee;
    
    /* Границы и тени */
    --border-color: #e8e6e5;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Анимации */
    --transition: all 0.25s ease;
    
    /* Шрифты */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
    background: var(--bg-white);
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 24px 32px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 32px 40px;
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    max-height: 40px;
    width: auto;
}

.logo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 11px;
    }
    .logo-img {
        max-height: 32px;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.header-right .user-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.logout-link,
.login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f5efee;
    transition: var(--transition);
    font-size: 13px;
}

.logout-link:hover,
.login-link:hover {
    background: #e8dedc;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--primary-gradient);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 320px;
    letter-spacing: 0.3px;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(184, 145, 145, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 145, 145, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    gap: 6px;
}

.btn-secondary:hover {
    background: #e0dedc;
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
}

.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover { background: #388E3C; }

.btn-warning {
    background: var(--warning);
    color: #fff;
}
.btn-warning:hover { background: #F57C00; }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { background: #b71c1c; }

.btn-info {
    background: var(--info);
    color: #fff;
}
.btn-info:hover { background: #1976D2; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.action-button {
    text-align: center;
    margin: 16px 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.main-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .main-title {
        font-size: 22px;
    }
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 480px) {
    .page-title {
        font-size: 20px;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    text-align: center;
    padding: 10px 0 20px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-button {
    margin: 16px 0;
}

.hero-button .btn-primary {
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    margin: 30px 0 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0 30px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e8e6e5;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* ============================================
   SERVICE ICONS - ОСНОВНОЕ
   ============================================ */
.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
    margin-bottom: 10px;
}

.service-icon img,
.service-icon .service-icon-img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.service-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.service-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   PRIORITY BLOCK
   ============================================ */
.priority-block {
    text-align: center;
    background: #f8f5f4;
    border-radius: 16px;
    padding: 30px 20px;
    margin: 20px 0 30px;
    border: 1px solid #e8e6e5;
}

.priority-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.priority-icon img,
.priority-icon .priority-icon-img {
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    object-fit: contain;
    display: block;
}

.priority-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.priority-desc {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* ============================================
   ADVANTAGES GRID
   ============================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0 30px;
}

.advantage-item {
    background: #ffffff;
    border: 1px solid #e8e6e5;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.25s ease;
}

.advantage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ============================================
   ADVANTAGE ICONS
   ============================================ */
.advantage-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

.advantage-icon img,
.advantage-icon .advantage-icon-img {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    object-fit: contain;
    display: block;
}

.advantage-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.advantage-desc {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-note {
    text-align: center;
    padding: 20px 0 10px;
    border-top: 1px solid #e8e6e5;
    margin-top: 10px;
}

.footer-note p {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* ============================================
   LOGO FULLWIDTH
   ============================================ */
.logo-fullwidth {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 0;
    margin: 20px 0 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-fullwidth-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 350px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .services-grid {
        gap: 12px;
    }
    
    .service-card {
        padding: 16px 12px;
    }
    
    .service-icon {
        height: 50px;
    }
    
    .service-icon img,
    .service-icon .service-icon-img {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
    
    .service-title {
        font-size: 12px;
    }
    
    .service-desc {
        font-size: 12px;
    }
    
    .advantages-grid {
        gap: 12px;
    }
    
    .advantage-icon img,
    .advantage-icon .advantage-icon-img {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }
    
    .priority-block {
        padding: 24px 16px;
    }
    
    .priority-title {
        font-size: 18px;
    }
    
    .priority-icon img,
    .priority-icon .priority-icon-img {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .services-grid {
        gap: 10px;
    }
    
    .service-card {
        padding: 14px 10px;
    }
    
    .service-icon {
        height: 40px;
    }
    
    .service-icon img,
    .service-icon .service-icon-img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    
    .service-title {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    
    .service-desc {
        font-size: 11px;
    }
    
    .advantages-grid {
        gap: 10px;
    }
    
    .advantage-item {
        padding: 12px 10px;
    }
    
    .advantage-icon img,
    .advantage-icon .advantage-icon-img {
        width: 25px !important;
        height: 25px !important;
        max-width: 25px !important;
        max-height: 25px !important;
    }
    
    .advantage-title {
        font-size: 13px;
    }
    
    .advantage-desc {
        font-size: 11px;
    }
    
    .priority-block {
        padding: 20px 14px;
    }
    
    .priority-title {
        font-size: 16px;
    }
    
    .priority-desc {
        font-size: 13px;
    }
    
    .priority-icon img,
    .priority-icon .priority-icon-img {
        width: 35px !important;
        height: 35px !important;
        max-width: 35px !important;
        max-height: 35px !important;
    }
    
    .footer-note p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .services-grid {
        gap: 8px;
    }
    
    .service-card {
        padding: 12px 8px;
    }
    
    .service-icon {
        height: 35px;
    }
    
    .service-icon img,
    .service-icon .service-icon-img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
    
    .service-title {
        font-size: 10px;
    }
    
    .service-desc {
        font-size: 10px;
    }
    
    .advantages-grid {
        gap: 8px;
    }
    
    .advantage-item {
        padding: 10px 8px;
    }
    
    .advantage-icon img,
    .advantage-icon .advantage-icon-img {
        width: 22px !important;
        height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
    }
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-новая { background: var(--info-light); color: #1565C0; }
.status-назначена { background: var(--warning-light); color: #E65100; }
.status-в-работе { background: var(--warning-light); color: #E65100; }
.status-выполнена { background: var(--success-light); color: #2E7D32; }
.status-закрыта { background: #f5f5f5; color: #666; }
.status-просрочена { background: var(--danger-light); color: #C62828; }

.urgency-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.urgency-normal { background: #f5f5f5; color: #666; }
.urgency-urgent { background: var(--danger-light); color: #C62828; }

.role-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}
.role-admin { background: var(--primary); color: #fff; }
.role-executor { background: var(--info-light); color: #1565C0; }
.role-director { background: var(--warning-light); color: #E65100; }

/* ============================================
   RESPONSIVE TABLES
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.responsive-table th {
    background: var(--bg-light);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.responsive-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.responsive-table tr:hover td {
    background: var(--bg-light);
}

@media (max-width: 768px) {
    .responsive-table {
        font-size: 12px;
        min-width: 500px;
    }
    .responsive-table td,
    .responsive-table th {
        padding: 8px 12px;
    }
    .hide-mobile {
        display: none;
    }
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stats-grid .stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stats-grid .stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.stat-card.primary .stat-number { color: var(--primary); }
.stat-card.success .stat-number { color: var(--success); }
.stat-card.warning .stat-number { color: var(--warning); }
.stat-card.danger .stat-number { color: var(--danger); }
.stat-card.info .stat-number { color: var(--info); }

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stats-grid .stat-card {
        padding: 10px 12px;
    }
    .stat-card .stat-number {
        font-size: 20px;
    }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 22px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.modal-content .form-group {
    margin-bottom: 14px;
}

.modal-content .form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.modal-content .form-group input,
.modal-content .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184, 145, 145, 0.15);
}

.modal-content .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.modal-content .form-actions button {
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.modal-content .form-actions .btn-save {
    background: var(--primary-gradient);
    color: #fff;
}
.modal-content .form-actions .btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 145, 145, 0.3);
}

.modal-content .form-actions .btn-cancel {
    background: var(--bg-gray);
    color: var(--text-secondary);
}
.modal-content .form-actions .btn-cancel:hover {
    background: #e0dedc;
}

.modal-content .error {
    background: var(--danger-light);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: #721c24;
    margin-bottom: 16px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        border-radius: var(--radius-md);
    }
    .modal-content h2 {
        font-size: 18px;
    }
    .modal-content .form-actions {
        flex-direction: column;
    }
    .modal-content .form-actions button {
        width: 100%;
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
}

.notification-bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    font-weight: 700;
}

.notification-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 100;
}

.notification-dropdown.active {
    display: block;
}

.notification-dropdown .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.notification-dropdown .header .title {
    font-weight: 600;
    font-size: 14px;
}

.notification-dropdown .header .read-all {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.notification-item .message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.notification-item .time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-item.unread {
    background: #f5efee;
    border-left: 3px solid var(--primary);
}

.notification-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: 280px;
        right: -60px;
    }
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-layout {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.admin-sidebar .menu {
    list-style: none;
    padding: 0;
}

.admin-sidebar .menu li {
    margin-bottom: 4px;
}

.admin-sidebar .menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.admin-sidebar .menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.admin-sidebar .menu a.active {
    background: #f5efee;
    color: var(--primary);
    font-weight: 600;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
        gap: 16px;
    }
    .admin-sidebar {
        width: 100%;
    }
    .admin-sidebar .menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .admin-sidebar .menu li {
        flex: 1;
        min-width: 80px;
        margin-bottom: 0;
    }
    .admin-sidebar .menu a {
        justify-content: center;
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 50px;
    }
}

/* ============================================
   BULK ACTIONS
   ============================================ */
.bulk-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.bulk-actions select,
.bulk-actions button {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-white);
    transition: var(--transition);
}

.bulk-actions select:focus,
.bulk-actions button:focus {
    outline: none;
    border-color: var(--primary);
}

.bulk-actions button {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.bulk-actions button:hover {
    opacity: 0.9;
}

.bulk-actions .executor-select {
    display: none;
}

@media (max-width: 480px) {
    .bulk-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .bulk-actions select,
    .bulk-actions button {
        width: 100%;
    }
}

/* ============================================
   FILTERS
   ============================================ */
.filters {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 130px;
}

.filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 145, 145, 0.15);
}

.filter-actions {
    display: flex;
    gap: 6px;
}

@media (max-width: 600px) {
    .filters {
        flex-direction: column;
        gap: 10px;
    }
    .filter-group {
        min-width: 100%;
    }
    .filter-actions {
        width: 100%;
    }
    .filter-actions button {
        flex: 1;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.container {
    animation: fadeIn 0.3s ease-out;
}
/* ============================================
   СТИЛИ ДЛЯ ФОРМЫ СОЗДАНИЯ ЗАЯВКИ
   ============================================ */

/* Форма */
.request-form {
    max-width: 100%;
}

/* Секции формы */
.form-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Группы полей */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.required {
    color: var(--danger);
    margin-left: 2px;
}

/* Поля ввода */
.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184, 145, 145, 0.15);
}

.form-group select:disabled {
    background: var(--bg-light);
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Загрузка файла */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    width: 100%;
    text-align: center;
    gap: 8px;
}

.file-label:hover {
    background: #ece8e6;
    border-color: var(--primary);
}

/* Превью фото */
.photo-preview {
    position: relative;
    margin-top: 12px;
    display: inline-block;
}

.photo-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
}

.remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.remove-photo:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

/* Кнопка отправки */
.form-actions {
    margin-top: 8px;
    text-align: center;
}

.btn-submit {
    max-width: 100%;
    padding: 18px;
    font-size: 18px;
    width: 100%;
}

/* Алerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: var(--danger-light);
    border: 1px solid #f5c6c6;
    color: #721c24;
}

.alert-success {
    background: var(--success-light);
    border: 1px solid #c8e6c9;
    color: #1e4620;
}

/* Подсказка формы */
.form-hint {
    font-size: 13px;
    color: #666;
    background: #f8f8f8;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
}

.form-hint strong {
    color: var(--primary);
}

/* Автоматическое назначение */
.auto-assign-info {
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #2E7D32;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Подкатегории */
.subcategory-group {
    display: none;
}

.subcategory-group.active {
    display: block;
}
.photo-box img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.info-item {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f7;
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item .value {
    font-size: 15px;
    color: #1a1a1a;
    margin-top: 2px;
    word-break: break-word;
    line-height: 1.4;
}

/* Если одно значение занимает всю строку */
.info-item.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}